- Posts: 79
- Thank you received: 4
Discount for Orders with 3 or More Products
- designer71
-
Topic Author
- Offline
Less
More
3 weeks 6 hours ago - 3 weeks 5 hours ago #100000258
by designer71
Discount for Orders with 3 or More Products was created by designer71
-- HikaShop version -- : 6.6.0
-- Joomla version -- : 6.2.0
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome 155.0
Hi!
Could you please help me set up a discount of $5 per product when a customer adds 3 or more different products to their cart?
For example:
I use few currencies on the site - euro, usd and more
Is this possible to configure?
Thank you for your help!
-- Joomla version -- : 6.2.0
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome 155.0
Hi!
Could you please help me set up a discount of $5 per product when a customer adds 3 or more different products to their cart?
For example:
- If a customer adds 1 or 2 different or same products to the cart, no discount is applied.
- If a customer adds 3 different or same products, they receive a $15 discount ($5 × 3).
- If a customer adds 4 different or sane products, they receive a $20 discount ($5 × 4), and so on.
I use few currencies on the site - euro, usd and more
Is this possible to configure?
Thank you for your help!
Last edit: 3 weeks 5 hours ago by designer71.
Please Log in or Create an account to join the conversation.
3 weeks 3 hours ago - 3 weeks 39 minutes ago #100000259
by nicolas
Replied by nicolas on topic Discount for Orders with 3 or More Products
Hi,
Yes, this can be done with the Cart fees plugin from our marketplace: www.hikashop.com/marketplace/operations/product/279-cart-fee
It lets you add a line to the cart calculated with a formula, and that line can be negative, so it works as an automatic discount.
Once installed, go to System > Plugins, open "Hikashop - Fees", enable it and fill in one row with the values of the attached file fees-plugin-settings.txt: the condition
makes the row apply only from 3 items in the cart, and the formula
gives $5 per item. The quantity counts every item, the same product several times or different products.
I tried it: with 2 items there is no discount, with 3 items (different or the same) the cart shows a discount of 15, with 4 items 20, and so on. It is applied automatically on the cart and checkout, the customer has nothing to enter.
We don't recommend auto-loaded coupons for this: a coupon has a fixed amount that is not multiplied by the quantity, so you would need one coupon per quantity (3, 4, 5...), and the automatic coupon would prevent your customers from using another coupon code.
Yes, this can be done with the Cart fees plugin from our marketplace: www.hikashop.com/marketplace/operations/product/279-cart-fee
It lets you add a line to the cart calculated with a formula, and that line can be negative, so it works as an automatic discount.
Once installed, go to System > Plugins, open "Hikashop - Fees", enable it and fill in one row with the values of the attached file fees-plugin-settings.txt: the condition
Code:
{cart.total_quantity}>=3
Code:
-5*{cart.total_quantity}
I tried it: with 2 items there is no discount, with 3 items (different or the same) the cart shows a discount of 15, with 4 items 20, and so on. It is applied automatically on the cart and checkout, the customer has nothing to enter.
We don't recommend auto-loaded coupons for this: a coupon has a fixed amount that is not multiplied by the quantity, so you would need one coupon per quantity (3, 4, 5...), and the automatic coupon would prevent your customers from using another coupon code.
Last edit: 3 weeks 39 minutes ago by nicolas.
Please Log in or Create an account to join the conversation.
- designer71
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 4
2 weeks 6 days ago #100000266
by designer71
Replied by designer71 on topic Discount for Orders with 3 or More Products
Hi, Nicolas. Thank you for great support! I will use this plug-in in my site.
I can to ask additional question?
We have around 500 products, each of its prodict have his weight, ftom 0.1 kg to 1 kg.
Now I need to add to each product price with his weight from 0.01 kg to o.1 kg 12$, and to each product from 0.11kg to 0.3 kg +22$, and from 0.31 kg to 0.5 kg 32$. Any way to do ?
Thank you!
I can to ask additional question?
We have around 500 products, each of its prodict have his weight, ftom 0.1 kg to 1 kg.
Now I need to add to each product price with his weight from 0.01 kg to o.1 kg 12$, and to each product from 0.11kg to 0.3 kg +22$, and from 0.31 kg to 0.5 kg 32$. Any way to do ?
Thank you!
Please Log in or Create an account to join the conversation.
2 weeks 6 days ago #100000269
by nicolas
Replied by nicolas on topic Discount for Orders with 3 or More Products
Hi,
Yes, this can be done with a mass action (HikaShop menu System > Mass actions), one mass action per weight range. Because it rewrites the stored prices, make a database backup first, and run each mass action only once.
Create a new mass action and set:
- Data: Product.
- Filters: click "Add a filter" twice. In each one choose "Product columns", then the column product_weight. First filter: operator >=, value 0.01. Second filter: operator <=, value 0.1.
- Actions: choose "Update values", column price_value, type "A calculation", and the value +12.
Save, then click Process and confirm.
Repeat with a copy of it for the other ranges: weights >= 0.11 and <= 0.3 with +22, and weights >= 0.31 and <= 0.5 with +32. Keep the ranges from overlapping so a product never gets two increases. Weights are compared as stored on each product, so they must all be in the same unit (kg). A product with a weight between 0.1 and 0.11 or above 0.5 is not changed by any of the three.
The calculation adds the amount to the price as stored in the product (the price without tax, in the currency of that price line). If you set several currencies as separate price lines on your products, each line gets the same number, so check them afterwards. If you want to be able to change the surcharge later without touching the base prices, the alternative is to store the base price in a custom product field and then configure the mass action with triggers to automatically reprocess it based on the custom field value.
Yes, this can be done with a mass action (HikaShop menu System > Mass actions), one mass action per weight range. Because it rewrites the stored prices, make a database backup first, and run each mass action only once.
Create a new mass action and set:
- Data: Product.
- Filters: click "Add a filter" twice. In each one choose "Product columns", then the column product_weight. First filter: operator >=, value 0.01. Second filter: operator <=, value 0.1.
- Actions: choose "Update values", column price_value, type "A calculation", and the value +12.
Save, then click Process and confirm.
Repeat with a copy of it for the other ranges: weights >= 0.11 and <= 0.3 with +22, and weights >= 0.31 and <= 0.5 with +32. Keep the ranges from overlapping so a product never gets two increases. Weights are compared as stored on each product, so they must all be in the same unit (kg). A product with a weight between 0.1 and 0.11 or above 0.5 is not changed by any of the three.
The calculation adds the amount to the price as stored in the product (the price without tax, in the currency of that price line). If you set several currencies as separate price lines on your products, each line gets the same number, so check them afterwards. If you want to be able to change the surcharge later without touching the base prices, the alternative is to store the base price in a custom product field and then configure the mass action with triggers to automatically reprocess it based on the custom field value.
Please Log in or Create an account to join the conversation.
- designer71
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 4
2 weeks 6 days ago #100000270
by designer71
Replied by designer71 on topic Discount for Orders with 3 or More Products
Great!
thank you!
thank you!
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds