opencart category quantity discount - php

I want to set discount is as follows.
Suppose, My one product is for £4.29.
If buyer buys 3 or in multiple of 3 like 3,54,39 or 189 etc, will cost him as £3.33/product.
If buyer buys bulk order other than multiple of three like 4 or 14 or 2 or 38 etc, than it will cost him as regular price of £4.29/product.
* One product will cost £3.33 only and only if bulk order is made with multiple quantity of 3. *
I found some setting in the discount section of each product. It works fine as per my requirement. (reffer attached image)
![enter image description here][1]
But it's hard to mention it for each multiple of 3. For Eg. What if a customer wants to 300 products. For that I need to write till the 300.
Is there any extension available for this or any one have other solution for this problem.
Thank you for your answer.

If am getting you right, you are able to calculate discount for all other quantities except for those in multiples of 3.
If that is the case, my suggestion is:
qty;
if ((qty % 3) == 0) {
// multiply qty by 3.33
price = qty * 3.33;
}
else {
// use your existing (working) formula
}
I hope this works.

twist added into the problem.
There are three categories with same price. Assume that its £4.29.
If a customer buys any of these category product with a total quantity of 3 or multiple of 3 than one product price will be £3.33
If a customer buys 10 products than 9 products will cost him as £3.33/product and remaining 1 product will cost £4.29.
Customer is allowed to buy 3 diffrent products of three different categories or he may buy 2 from one category or 1 from another category.
I hope you guys will understand the problem and give the bestest solution possible.

Related

Calculate, display and add price based on weight n wordpress

I am designing a grocery website in wordpress where in I wish to display price per kg for vegetable and user will now enter the weight they wish and price should get recalculated and displayed and added to cart(after user click on add to cart button).
I have tried few plugins like Price per product and Price Measurement but nothing seems to work. How can this be achieved?
Just multiply the price per Kg by the weight requested to get the price.

Open cart multiple Quantities with different pricing

I was wondering if there was an easy way on opencart(2.0.x) to let a user buy a product in 3 different Quantity options. 3,6, or 12 quantity, with each quantity having a unique price. (I.E- QTY 3 would sell for 10, QTY 6, 8.50, then 12 pack for 7). I tried to use the options module, to create a few radio button options but that tacks on the option to the original set price. I want the only options available to be the 3 types of quantity options. so if i choose the 3 QTY option I only pay $10.
Thank you in advance
No modifications are needed for this.
Go to the product's edit page and look at the discounts tab. In here you can put different quantities and prices. Note that the price field is per item, so you just need to divide your total by the number of products.
You can leave the start and end dates empty if they aren't appropriate.
There is a demonstration of this functionality on the official demo site and (I think) the dummy data provided when you first install OpenCart.

Magento - buy 1 product get another free

I have two categories, I am trying to make some thing like if some one buys a product from one category, customer will have a option to choose a free product from another category(like a gift).
I found some thing similar to this in admin -
Promotions -> shopping cart price rule
You can create a rule that buy X qty of one product and get Y quantity of same product free. How can I make it - get X qty of product and get Y qty of another product free. Is this feature available in magento feature or do I have to implement this. Thanks.
you can check the below links for this purpose
http://www.webguys.de/magento/turchen-21-kostenlose-produkte-uber-warenkorb-preisregeln/
http://blog.goods-pro.com/1733/magento-extension-buy-x-selection-of-products-get-another-y-selection-for-free/
http://www.magentocommerce.com/knowledge-base/entry/how-to-setup-buy-x-get-y-free

Is it possible to schedule woocommerce products to go off sale after 5 purchases?

I have a woocomerce store selling memberships to study groups, the study group being the product. Each product has 2 variations, semester 1|semester 2.
Is it possible for me to sell my first 5 memberships for each product variation for free, and update to the regular price after the first 5 are sold?
Make it easy way: made one product with price 0, 5 in stock, another product with regular price and no stock management.

Product quantity based coupon rules for a single category products

I am working on drupal 7.12. I need to add a quantity based coupon for a single category products.
If I have that category product qty = 3 in cart and I apply the code it should apply on this category of product only.
I want to apply "buy 1 at $10, buy 2 at $15 and buy 6 at $30".
Please help how I can achieve this.
There is a module called discount alternative module may do your targets. But it has only alpha version with critical bugs
https://drupal.org/project/uc_discounts_alt
https://drupal.org/comment/7164268#comment-7164268

Categories