I will try to explain what I need:
By default woocommerce allows to handle just 1 scheduled sale price per product, I need the possibility to add another one (for simple and variable products).
In other words, for each product I need to have 3 different prices, depending on the date the purchase is made.
Also, in the product page I need to show ALWAYS the 3 prices and their relative scheduled period of time (even if it's in the past or future).
Example:
Product #1
from 01-01-2014 to 01-31-2014 you pay € 100 (this is what I need)
from 02-01-2014 to 02-28-2014 you pay € 200 (scheduled woocommerce
sale price) from 03-01-2014 and after you pay € 300 (regular woocommerce price)
Product #2
from 01-01-2014 to 01-31-2014 you pay € 150 (this is what I need)
from 02-01-2014 to 02-28-2014 you pay € 280 (scheduled woocommerce sale price)
from 03-01-2014 and after you pay € 330 (regular woocommerce price)
etc...
Any suggestion on how to add this feature in a new plugin?
You can easily customized these conditions using inner code on WooCoomerce. No need to use any extra plugin for the same. Following is the idea, how you can do that.. Hope this helps.
Having a look at the Product abstract class in WooCommerce the following php code gets whether or not the product is on sale:
return ($this->sale_price != $this->regular_price && $this->sale_price == $this->price);
Which seems to indicate that the _price has to be the same as the sale_price in order for it to be classed as on sale. So just
update_post_meta($id, '_price', 'new sale price here too');
you can edit this code as per your required conditions.
Related
I use the API to set the prices on my site and its configured to accept inclusive prices.
I have set up the standard rate for the VAT for my country.
I now need to allow a neighbouring country to be able to purchase from my store. However, I want them to buy at the inclusive price but with no VAT.
I tried adding the country to the standard rates at 0% but that just deducts the local VAT from the price. So if the price is $15 normally, now will show as $12. I need the price to be the same as the local inclusive price but with 0% VAT.
So if I sell something for $15, the VAT may be $3 locally. On my local orders this what will show. Now if my foreign customer wants to buy something, it need to still show it at $15 but the VAT is 0%.
I just can't find a way to get the system configured that way.
Found the answer
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
We've a webshop built in Woocommerce and we accept crypto payments (Bitcoin, ETH etc).
Since we're based in the EU we need to calculate tax on our prices.
So every customer that's inside the EU needs to pay tax.
We've displayed the prices including tax (0.1 BTC for example). The customer pays 0.1 BTC and there is already a 0.02 TAX calculated within that price.
But what if we get a customer from without the EU? We want them to pay 0.1 BTC as well but then without the TAX rate.
Is this possible within woocommerce?
Thanks in advance!
Mand
Been searching high and low for a solution to this problem. Actually found it just 5 min ago.
Add this to your functions.php
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
Read more, https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce#prices-including-tax---experimental-behavior
I'm new to Opencart. In fact I'm working in my first project that is in Opencart 2.3.0.2. It's almost done.
Now the client need the price of a product should be inclusive of tax.
now actually it's working like the tax is added with unit price. I need it to be included.
ex: Rs.100 (includes GST 18%)
incorrect:
Unit Price: 100
GST#18%: 18
Total: 118
Correct:
Unit Price: 84.75
GST#18%: 15.25
Total: Rs.100
instead of 100*18/100, we need to calculate 100*100/118
(100*100/118)-100 to get GST
Go to Admin->System->Settings, edit your Store, and select the Option tab. There is a setting called "Display Prices With Tax."
I need to find a way to create Negative product prices in Magento.
We use Magento both as Online shop and POS and in POS we sometimes need
to give a certain discount that simply can't be accomplished with coupons or shopping cart rules.
I did some googling but nothing turned out. Does anybody know how I could create this?
Example:
1 x Apple iPhone 6 - € 699,99
1 x Discount with subscription from provider X - € -100
Total : € 599,99
Thanks in advance!
Why can't you use coupons?
Another possible way to go with is a configureable product option. You need to setup this for each product, however. An option can have a negative price, in your case -100€. You can include an description as text on invoices, but it won't show you "599.99-100.00 = 499.99" but just "499.99" as row total price.
I have a very big problem, I need some products do not specify the discount to be applied to the product or the difference in amount, but to directly specify the selling price including tax, I'll explain:
Sales price without discount -> 30.00
Sales price I wanted -> 12:56
12:56 I want to write directly without having to do subtractions and / or calculations of percentages, can you tell me how can I do? Thank you very much.