[Skip to main content](#vessel-content)

Board Categories Discount &amp; Coupon

##

#  [Discount &amp; Coupon](/forum/46-discount-coupon "View Category 'Discount &amp; Coupon'")  475 topics

| Increase your sales with our coupon/discount feature |
|---|

##

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post |
|---|---|---|---|
| [](/forum/46-discount-coupon/100000006-cant-add-products-to-discount-coupons-after-migrating-from-joomla-to-wordpress) | [Can't add products to discount/coupons after migrating from Joomla to Wordpress](/forum/46-discount-coupon/100000006-cant-add-products-to-discount-coupons-after-migrating-from-joomla-to-wordpress "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 7.2.0 /Wordpress -- PHP version -- : latest -- Browser(s) name and version -- :  Firefox 156.0  I have successfully moved my whole hikashop from Joomla to Wordpress - overall, it went very smooth. However, I have one issue: In discounts/coupons, I can't select the products, they don't appear - I guess, there is something pointing in the wrong place? Any idea how to fix this? Thanks in advance!")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 month 6 days ago, by [cskmanagement](/forum/user/34856-cskmanagement "View cskmanagement's Profile")       [Last Post](/forum/46-discount-coupon/100000006-cant-add-products-to-discount-coupons-after-migrating-from-joomla-to-wordpress#100000030 "solved! Thanks to Claude...") 1 month 6 days ago     by [cskmanagement](/forum/user/34856-cskmanagement "View cskmanagement's Profile") | Replies:1  Views:126 | [Last Post](/forum/46-discount-coupon/100000006-cant-add-products-to-discount-coupons-after-migrating-from-joomla-to-wordpress#100000030 "solved! Thanks to Claude...") by [cskmanagement](/forum/user/34856-cskmanagement "View cskmanagement's Profile")      1 month 6 days ago |
| [](/forum/46-discount-coupon/910666-discounts-exclude-from-existing-discount) | [Discounts exclude from existing discount](/forum/46-discount-coupon/910666-discounts-exclude-from-existing-discount "-- HikaShop version -- : 6.5.1 -- Joomla version -- : 6.1.2  Hi!  I have many different discounts for many products, and now i want to add a 20% discount to the whole eshop except the ones that already have a dicsount. I cannot find an easy way to do that though.  Thank you")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 months 3 weeks ago, by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")       [Last Post](/forum/46-discount-coupon/910666-discounts-exclude-from-existing-discount#372618 "We'll look into adding extra options for this in HikaShop for its next version in August / September.") 3 months 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:9  Views:286 | [Last Post](/forum/46-discount-coupon/910666-discounts-exclude-from-existing-discount#372618 "We'll look into adding extra options for this in HikaShop for its next version in August / September.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 months 3 weeks ago |
| [](/forum/46-discount-coupon/910532-coupon-avangt-frais-de-port) | [Coupon avangt frais de port](/forum/46-discount-coupon/910532-coupon-avangt-frais-de-port "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10 -- PHP version -- : 7.4  Bonjour,  Je n'ai pas trouvé la configuration permettant d'appliquer le coupon (taux) uniquement sur les produits vendus. Le coupon s'applique sur les produits et les frais de port. Dans le passage en caisse, le bloc coupon est entre le bloc panier et le bloc livraison.  Merci")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 5 months 2 weeks ago, by [sompi](/forum/user/46386-sompi "View sompi's Profile")       [Last Post](/forum/46-discount-coupon/910532-coupon-avangt-frais-de-port#371983 "Merci pour votre aide qui m'a permis de trouver le soucis. Les 10.50 de coupon correspondaient avec les frais de port dans un certain sens mais également avec la TVA. En creusant un peu plus, le problème venait également dans la configuration d'Hikashop &gt; Systeme &gt; Principal &gt; Taxes &gt; Appliquer les coupons, il fallait mettre avant les taxes au lieu d'après les taxes.  C'est corrigé. Merci") 5 months 2 weeks ago     by [sompi](/forum/user/46386-sompi "View sompi's Profile") | Replies:4  Views:335 | [Last Post](/forum/46-discount-coupon/910532-coupon-avangt-frais-de-port#371983 "Merci pour votre aide qui m'a permis de trouver le soucis. Les 10.50 de coupon correspondaient avec les frais de port dans un certain sens mais également avec la TVA. En creusant un peu plus, le problème venait également dans la configuration d'Hikashop &gt; Systeme &gt; Principal &gt; Taxes &gt; Appliquer les coupons, il fallait mettre avant les taxes au lieu d'après les taxes.  C'est corrigé. Merci") by [sompi](/forum/user/46386-sompi "View sompi's Profile")      5 months 2 weeks ago |
| [](/forum/46-discount-coupon/910472-coupon-unique-avec-differents-taux-de-remise-selon-les-produits) | [Coupon unique avec différents taux de remise selon les produits](/forum/46-discount-coupon/910472-coupon-unique-avec-differents-taux-de-remise-selon-les-produits "Bonjour,  Nous souhaitons mettre en place dans HikaShop le fonctionnement suivant :  Un code coupon unique (ex : MONCODE) Appliquant : -15 % sur PRODUCT1 -30 % sur PRODUCT2 Avec la possibilité que les deux remises s’appliquent simultanément si les deux produits sont dans le panier  Après vérification, nous n’avons pas trouvé de solution native permettant d’associer plusieurs règles de remise différentes à un même code coupon. Est-ce néanmoins possible ?  Merci d'avance de votre réponse :-)")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 6 months 1 week ago, by [cb75ter](/forum/user/7364-cb75ter "View cb75ter's Profile")       [Last Post](/forum/46-discount-coupon/910472-coupon-unique-avec-differents-taux-de-remise-selon-les-produits#371713 "Bonjour,  Alors, &quot;Sur chaque ligne produit concernée dans le panier&quot; là, ce n'est pas possible avec une option ou un plugin. Il faudrait faire un override de vue de checkout / show&#95;block&#95;cart.php via le menu Affichage&gt;Vues avec une personnalisation du code affichant le panier. Possible mais cela demande un peu de développement.  Pour &quot;Dans le récapitulatif des totaux, sous la ligne du coupon&quot;, là c'est possible avec le plugin   www.hikashop.com/marketplace/product/279-cart-fee.html  Il permet d'ajouter des lignes au récapitulatif. Donc il est possible de le configurer pour ajouter une ligne pour chaque produit avec une condition pour qu'elles n'apparaissent que s'il y a un coupon appliqué. Cela demande un peu de configuration du plugin avec des tags, dans un style similaire au plugin coupon conditions.") 6 months 1 week ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:378 | [Last Post](/forum/46-discount-coupon/910472-coupon-unique-avec-differents-taux-de-remise-selon-les-produits#371713 "Bonjour,  Alors, &quot;Sur chaque ligne produit concernée dans le panier&quot; là, ce n'est pas possible avec une option ou un plugin. Il faudrait faire un override de vue de checkout / show&#95;block&#95;cart.php via le menu Affichage&gt;Vues avec une personnalisation du code affichant le panier. Possible mais cela demande un peu de développement.  Pour &quot;Dans le récapitulatif des totaux, sous la ligne du coupon&quot;, là c'est possible avec le plugin   www.hikashop.com/marketplace/product/279-cart-fee.html  Il permet d'ajouter des lignes au récapitulatif. Donc il est possible de le configurer pour ajouter une ligne pour chaque produit avec une condition pour qu'elles n'apparaissent que s'il y a un coupon appliqué. Cela demande un peu de configuration du plugin avec des tags, dans un style similaire au plugin coupon conditions.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 months 1 week ago |
| [](/forum/46-discount-coupon/909281-bulk-import-coupon-codes) | [Bulk import coupon codes](/forum/46-discount-coupon/909281-bulk-import-coupon-codes "-- HikaShop version -- : 5.1.5 -- Joomla version -- : Joomla! 4.4.12 Stable -- PHP version -- : 8.1.31 -- Browser(s) name and version -- : multible browsers -- Error-message(debug-mod must be tuned on) -- : No error, need a info if it is possible to import coupon codes from the admin site.  Hi,  we plan to create a bunch of coupon codes. Is there a way to import these codes from the web frontend as admin? Or do I have to import them via sql to the 'hikashop&#95;discouint' table?  Best regards Richard")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 7 months ago, by [RitchieM](/forum/user/46621-ritchiem "View RitchieM's Profile")       [Last Post](/forum/46-discount-coupon/909281-bulk-import-coupon-codes#371676 "Hi,  Good question ! That's something we've actually decided to add for the next version of HikaShop in May, similarly to us adding the same capability for the orders in a recent release.") 6 months 1 week ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1284 | [Last Post](/forum/46-discount-coupon/909281-bulk-import-coupon-codes#371676 "Hi,  Good question ! That's something we've actually decided to add for the next version of HikaShop in May, similarly to us adding the same capability for the orders in a recent release.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 months 1 week ago |
| [](/forum/46-discount-coupon/895544-coupon-and-vat-incorrect) | [Coupon and VAT incorrect](/forum/46-discount-coupon/895544-coupon-and-vat-incorrect "-- HikaShop version -- : 3.5.1  Hi, I've got a coupon set up to give 10% discount The total VAT on the invoice is incorrect.  Example: 17.45 - 10% (coupon code) = £16.00 + postage (£2.99) = £18.99 VAT at 20% should be £3.16 but it is showing VAT at £3.41 which is the before discount price.  I have tried with automatic taxes = yes, and with automatic taxes as no. Nothing has changed.  My taxes are set to apply discounts and coupons = after taxes  Thanks")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 8 years 2 months ago, by [GB11](/forum/user/20674-gb11 "View GB11's Profile")       [Last Post](/forum/46-discount-coupon/895544-coupon-and-vat-incorrect#370595 "Unfortunately, it seems that coupons and discounts used with floating taxes still don't work. We have tried to make it work for years now, but no luck. So we're running a script to correct the amounts...") 8 months 1 week ago     by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile") | Replies:9  Views:2233 | [Last Post](/forum/46-discount-coupon/895544-coupon-and-vat-incorrect#370595 "Unfortunately, it seems that coupons and discounts used with floating taxes still don't work. We have tried to make it work for years now, but no luck. So we're running a script to correct the amounts...") by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")      8 months 1 week ago |
| [](/forum/46-discount-coupon/910072-apply-discount-to-product-c-only-if-product-a-is-in-cart) | [Apply discount to product C only if product A is in cart](/forum/46-discount-coupon/910072-apply-discount-to-product-c-only-if-product-a-is-in-cart "-- HikaShop version -- : 6.1.0 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.3.28  Is there any way in HikaShop to apply a conditional discount to a specific product based on the presence of other products in the cart?  For example: I sell product A at a fixed price, and if the customer adds both product B and product C to the cart, I want a discount (or coupon) to be applied only to product C.  Does HikaShop support this kind of logic out of the box (discounts, coupons, product rules), or would this require a custom plugin / override?  If custom development is needed, what would be the recommended approach (events/hooks, cart calculation override, or existing extensions)?")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 9 months 5 days ago, by [oxido](/forum/user/29793-oxido "View oxido's Profile")       [Last Post](/forum/46-discount-coupon/910072-apply-discount-to-product-c-only-if-product-a-is-in-cart#370216 "Hi,  You said:  I think this is possible with the coupon conditions plugin and clever use of existing coupon restrictions:   www.hikashop.com/marketplace/product/292-coupon-conditions.html  First, you want to create a coupon restricted to product C. With its &quot;Coupon percentage applies to product only&quot; setting activated, the value / percentage of the coupon will apply only to product C and product C will have to be in the cart for the coupon to apply.   www.hikashop.com/support/documentation/i...p-discount-form.html  And in the settings of the coupon conditions plugin, you can then select that coupon, and add the condition: {product.product&#95;id} == XX where XX is the id of product B, and with the &quot;OR&quot; logic selected. This means that the condition applied by the plugin will allow the use of the coupon only if product B is in the cart.  You can even configure several conditions for the same coupon in the plugin to create more complex rules.") 9 months 4 days ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:476 | [Last Post](/forum/46-discount-coupon/910072-apply-discount-to-product-c-only-if-product-a-is-in-cart#370216 "Hi,  You said:  I think this is possible with the coupon conditions plugin and clever use of existing coupon restrictions:   www.hikashop.com/marketplace/product/292-coupon-conditions.html  First, you want to create a coupon restricted to product C. With its &quot;Coupon percentage applies to product only&quot; setting activated, the value / percentage of the coupon will apply only to product C and product C will have to be in the cart for the coupon to apply.   www.hikashop.com/support/documentation/i...p-discount-form.html  And in the settings of the coupon conditions plugin, you can then select that coupon, and add the condition: {product.product&#95;id} == XX where XX is the id of product B, and with the &quot;OR&quot; logic selected. This means that the condition applied by the plugin will allow the use of the coupon only if product B is in the cart.  You can even configure several conditions for the same coupon in the plugin to create more complex rules.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      9 months 4 days ago |
| [](/forum/46-discount-coupon/910030-how-do-i-setup-a-buy-x-get-x-free-option) | [How do I setup a buy x get x free option](/forum/46-discount-coupon/910030-how-do-i-setup-a-buy-x-get-x-free-option "Hi there,  On my site I want to create an discount where you can buy 2 items and get 1 item for free.  I've seen the solution where you set a different price with a minimum of x items, but then when you add more than the minimum amount of items, that price stays the same.  For example: Let's say an item costs $10,-. You set a price of $20,- with a minimum op 3 items. When you add a fourth or fifth item the price stays $20,-. So every item over 2 is free.  How do I go about this?  With kind regards, Rachel Walraven")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 9 months 3 weeks ago, by [webwerk](/forum/user/37949-webwerk "View webwerk's Profile")       [Last Post](/forum/46-discount-coupon/910030-how-do-i-setup-a-buy-x-get-x-free-option#370004 "Thanks so much for your elaborate explanation!") 9 months 2 weeks ago     by [webwerk](/forum/user/37949-webwerk "View webwerk's Profile") | Replies:2  Views:546 | [Last Post](/forum/46-discount-coupon/910030-how-do-i-setup-a-buy-x-get-x-free-option#370004 "Thanks so much for your elaborate explanation!") by [webwerk](/forum/user/37949-webwerk "View webwerk's Profile")      9 months 2 weeks ago |
| [](/forum/46-discount-coupon/910013-can-a-coupon-be-limited-for-only-1-time-per-unique-product) | [can a coupon be limited for only 1 time per unique product?](/forum/46-discount-coupon/910013-can-a-coupon-be-limited-for-only-1-time-per-unique-product "-- HikaShop version -- : 6.2.0 -- Joomla version -- : 5.4.1 -- PHP version -- : 8.4.15  I found this extension : and was trying to figure out if the following could be done with it:  Customers can buy products as many as they like but only on the first unique product they get the discount. For example product 1, if they buy 10 only 1 product gets the discount. The same for more products.  For 1 product we can do this manually but with a lot of products this is not something you want to do manually.  Other tips / solutions are more than welcome :)")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 9 months 4 weeks ago, by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")       [Last Post](/forum/46-discount-coupon/910013-can-a-coupon-be-limited-for-only-1-time-per-unique-product#369918 "Hi,  To restrict the number of uses for a coupon, only the &quot;quota&quot; and &quot;quota per user&quot; settings can be used.  Being able to restrict the number of users of a coupon based on the purchased quantity of individual products means tracking that information. This is not done at the moment. There is no table in the database which links the users, the products and the coupons / discounts to know how many time a coupon / discount was used by a user and for which products. Supposing that this table existed ( it could be done in a custom plugin), it would then be possible to develop a custom plugin to restrict the use of a coupon based on past purchases and what is already in the cart.  The coupon conditions plugin won't help with that extra table, and even if that extra table was properly filled, it is not meant to be able to tap into other tables than the standard ones in HikaShop ( cart, product, user, address, etc). So this is a dead end.  A simpler solution would be to create one discount per product with a quota per user of 1 and a fixed flat value corresponding to the price of the product. That way, you can have different products discounted in the same cart, and only the value of one product is discounted for each product. However, that indeed means having to setup one discount per produc. And if you want the customer to enter a code to get the discount, it means also using the multicoupon plugin, and having to manage one code per product, which is not practical.  Here, I think a custom plugin is the proper way to go.") 9 months 4 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:468 | [Last Post](/forum/46-discount-coupon/910013-can-a-coupon-be-limited-for-only-1-time-per-unique-product#369918 "Hi,  To restrict the number of uses for a coupon, only the &quot;quota&quot; and &quot;quota per user&quot; settings can be used.  Being able to restrict the number of users of a coupon based on the purchased quantity of individual products means tracking that information. This is not done at the moment. There is no table in the database which links the users, the products and the coupons / discounts to know how many time a coupon / discount was used by a user and for which products. Supposing that this table existed ( it could be done in a custom plugin), it would then be possible to develop a custom plugin to restrict the use of a coupon based on past purchases and what is already in the cart.  The coupon conditions plugin won't help with that extra table, and even if that extra table was properly filled, it is not meant to be able to tap into other tables than the standard ones in HikaShop ( cart, product, user, address, etc). So this is a dead end.  A simpler solution would be to create one discount per product with a quota per user of 1 and a fixed flat value corresponding to the price of the product. That way, you can have different products discounted in the same cart, and only the value of one product is discounted for each product. However, that indeed means having to setup one discount per produc. And if you want the customer to enter a code to get the discount, it means also using the multicoupon plugin, and having to manage one code per product, which is not practical.  Here, I think a custom plugin is the proper way to go.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      9 months 4 weeks ago |
| [](/forum/46-discount-coupon/909963-feature-requests-custom-field-conditions-for-coupons-multi-select-product-pic) | [Feature Requests: Custom Field Conditions for Coupons &amp; Multi-Select Product Pic](/forum/46-discount-coupon/909963-feature-requests-custom-field-conditions-for-coupons-multi-select-product-pic "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.2.2 -- PHP version -- : 8.2.20 -- Browser(s) name and version -- : chrome latest, firefox, etc.  Dear HikaShop Team,  I hope you are doing well.  I am writing to kindly request two improvements that I believe would significantly enhance the usability and flexibility of the coupon system in HikaShop. Both of these seem like natural and essential features, especially for stores with larger product databases.  1. Coupon Conditions Based on Custom Product Fields  Currently, coupons can only be restricted by product or category. However, many stores rely heavily on product custom fields (e.g., flags, product types, attributes, internal data fields). It would be extremely useful if coupons could be restricted based on the value of one or more custom fields.  For example:  A coupon should apply only if the product has a custom field with a specific value.  Or: the coupon should apply if the field contains any value from a predefined list.  This would allow much more dynamic and practical coupon setups without creating dozens of categories or additional workarounds.  2. Multi-Select Product Picker for Coupons  The current coupon product selection workflow only allows adding products one by one. For stores with hundreds or thousands of products, this is very time-consuming and difficult to manage.  A true multi-select product picker, where multiple products can be selected at once, would make a tremendous difference and is something I believe many users expect from a modern ecommerce platform.  This could be implemented via:  &#42; checkbox selection,  &#42; shift/ctrl multi-highlight,  &#42; or even by allowing bulk actions and filters.  Why these features matter  Both of the above functionalities are quite commonly needed in real-world store setups, and in many cases feel like natural, expected features. Implementing them would greatly improve the user experience and reduce the need for custom plugin development.  I truly appreciate all the great work you do on HikaShop, and I hope you will consider adding these improvements in a future release. Thank you in advance for your attention, and please let me know if you need any additional details.  Kind regards, Zsolt")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 10 months 3 weeks ago, by [mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")       [Last Post](/forum/46-discount-coupon/909963-feature-requests-custom-field-conditions-for-coupons-multi-select-product-pic#369734 "Hi,  We've released a new plugin for coupon conditions which will be able to allow for things you're talking about in your first point:   www.hikashop.com/marketplace/product/292-coupon-conditions.html  Regarding your second point, we're looking into adding it for the next version of HikaShop in the form of checkboxes in the selector dropdown for products.  Thanks again for your feedback.") 10 months 2 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:2  Views:538 | [Last Post](/forum/46-discount-coupon/909963-feature-requests-custom-field-conditions-for-coupons-multi-select-product-pic#369734 "Hi,  We've released a new plugin for coupon conditions which will be able to allow for things you're talking about in your first point:   www.hikashop.com/marketplace/product/292-coupon-conditions.html  Regarding your second point, we're looking into adding it for the next version of HikaShop in the form of checkboxes in the selector dropdown for products.  Thanks again for your feedback.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      10 months 2 weeks ago |
| [](/forum/46-discount-coupon/909847-order-discount-tax) | [order discount tax](/forum/46-discount-coupon/909847-order-discount-tax "-- HikaShop version -- : HikaShop Starter: 6.1.0 -- Joomla version -- : 5.4.0 -- PHP version -- : 8.3 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- : &quot;order&#95;discount&#95;tax&quot;: &quot;0.00000&quot;,  Regardless of the VAT rate set for the coupon, I always see 0.00000 in the logs. &quot;order&#95;discount&#95;tax&quot;: &quot;0.00000&quot;,")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 6 days ago, by [pablop76](/forum/user/59854-pablop76 "View pablop76's Profile")       [Last Post](/forum/46-discount-coupon/909847-order-discount-tax#369191 "Hi,  Yes. That's the same for the other things. If you check the order&#95;shipping&#95;tax or the order&#95;product&#95;tax columns in the database or the corresponding attributes in the $order object, it's only the tax amount that is provided. The details of what tax rate is applied, with which untaxed amount as base, etc is all stored in the order&#95;tax&#95;info for the whole order and the order&#95;product&#95;tax&#95;info columns for each product. The data in there in the database is serialized with PHP's serialize function:   www.php.net/manual/en/function.serialize.php  In plugins, you should have the data readily available in $order-&gt;order&#95;tax&#95;info as an array of objects with the keys of the array being the tax rate namekey provided when creating the tax rate via the &quot;manage rates&quot; button of the System&gt;Taxes menu.") 1 year 4 days ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:591 | [Last Post](/forum/46-discount-coupon/909847-order-discount-tax#369191 "Hi,  Yes. That's the same for the other things. If you check the order&#95;shipping&#95;tax or the order&#95;product&#95;tax columns in the database or the corresponding attributes in the $order object, it's only the tax amount that is provided. The details of what tax rate is applied, with which untaxed amount as base, etc is all stored in the order&#95;tax&#95;info for the whole order and the order&#95;product&#95;tax&#95;info columns for each product. The data in there in the database is serialized with PHP's serialize function:   www.php.net/manual/en/function.serialize.php  In plugins, you should have the data readily available in $order-&gt;order&#95;tax&#95;info as an array of objects with the keys of the array being the tax rate namekey provided when creating the tax rate via the &quot;manage rates&quot; button of the System&gt;Taxes menu.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 4 days ago |
| [](/forum/46-discount-coupon/909779-coupons-restrictions-avancees) | [Coupons restrictions avancées](/forum/46-discount-coupon/909779-coupons-restrictions-avancees "-- url of the page with the problem -- :   www.tonykart-france.fr/  -- HikaShop version -- : 6.1.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.23  Bonsoir, Dans un coupon que je viens de créer, je n'ai pas accès aux restrictions avancées, à savoir, Produit, Catégorie, Zone et Utilisateurs ! Avez-vous une explication ? Merci pour votre aide")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 4 weeks ago, by [chlyroju](/forum/user/79-chlyroju "View chlyroju's Profile")       [Last Post](/forum/46-discount-coupon/909779-coupons-restrictions-avancees#368929 "J'ai remis 180px Comme nous sommes plusieurs administrateurs, quelqu'un a du modifier le css pour qu'on voit les textes en entier ! J'ai remis 180 px. Merci pour votre aide") 1 year 4 weeks ago     by [chlyroju](/forum/user/79-chlyroju "View chlyroju's Profile") | Replies:5  Views:611 | [Last Post](/forum/46-discount-coupon/909779-coupons-restrictions-avancees#368929 "J'ai remis 180px Comme nous sommes plusieurs administrateurs, quelqu'un a du modifier le css pour qu'on voit les textes en entier ! J'ai remis 180 px. Merci pour votre aide") by [chlyroju](/forum/user/79-chlyroju "View chlyroju's Profile")      1 year 4 weeks ago |
| [](/forum/46-discount-coupon/909655-how-can-i-create-a-coupon-that-applies-to-one-item-per-products) | [How can I create a coupon that applies to one item per products?](/forum/46-discount-coupon/909655-how-can-i-create-a-coupon-that-applies-to-one-item-per-products "-- HikaShop version -- : 6.0.0 -- Joomla version -- : 5.3.2 -- PHP version -- : 8.3 -- Browser(s) name and version -- : Chrome latest  How can I create a coupon that applies to an entire category in percentages, but only applies to one product of a type? I can create the coupon, but it only applies to one item, and when I buy another item, it counts it as a second product and tells me that I cannot use the coupon. The idea is that the discount should only apply to one item, but I should be able to buy 5 items, for example. Is there a way to do this?")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 2 months ago, by [marto42](/forum/user/38319-marto42 "View marto42's Profile")       [Last Post](/forum/46-discount-coupon/909655-how-can-i-create-a-coupon-that-applies-to-one-item-per-products#368230 "Hi,  I don't see a way to do that with the discount / coupon system. It would require the development of a custom plugin to do exactly this.  A simple alternative would be to not use a percentage but a fixed value in your coupon. That way, regardless of the number of products of the category in the cart, the amount of the coupon would be the same.") 1 year 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1085 | [Last Post](/forum/46-discount-coupon/909655-how-can-i-create-a-coupon-that-applies-to-one-item-per-products#368230 "Hi,  I don't see a way to do that with the discount / coupon system. It would require the development of a custom plugin to do exactly this.  A simple alternative would be to not use a percentage but a fixed value in your coupon. That way, regardless of the number of products of the category in the cart, the amount of the coupon would be the same.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 2 months ago |
| [](/forum/46-discount-coupon/909618-bug-report-100-discount-causes-a-fatal-error-and-makes-the-website-unusable) | [Bug report: 100% discount causes a fatal error and makes the website unusable](/forum/46-discount-coupon/909618-bug-report-100-discount-causes-a-fatal-error-and-makes-the-website-unusable "-- HikaShop version -- : 6.0.0 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Attempt to assign property &quot;tax&#95;amount&quot; on null  Hi,  we have the following discount code set up in HikaShop:   prnt.sc/MqVO4V&#95;4aAYr  In combination with particular products in the cart, it results in the following error:  Attempt to assign property &quot;tax&#95;amount&quot; on null  Screenshot:   prnt.sc/yvZW&#95;qPkwnz&#95;  The user can no longer use the website at all as every page visit results in the same error.  Stack trace:   prnt.sc/vOAmxB1yOVZ9  Our developer investigated this and determined it is indeed a bug.  Here is what he said:  For a quick fix, I updated the file: &#92;&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;discount.php and around line 703 added:  Can you include an official fix in the next version?  Thank you")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 2 months ago, by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile")       [Last Post](/forum/46-discount-coupon/909618-bug-report-100-discount-causes-a-fatal-error-and-makes-the-website-unusable#368089 "Hi,  Thank you for your feedback. I've made a patch for it. Download the install package of the 6.0.0 and install it on your website and it will add the patch. Otherwise, it will also be in the next version.") 1 year 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1266 | [Last Post](/forum/46-discount-coupon/909618-bug-report-100-discount-causes-a-fatal-error-and-makes-the-website-unusable#368089 "Hi,  Thank you for your feedback. I've made a patch for it. Download the install package of the 6.0.0 and install it on your website and it will add the patch. Otherwise, it will also be in the next version.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 2 months ago |
| [](/forum/46-discount-coupon/909612-conditional-discounting) | [Conditional Discounting](/forum/46-discount-coupon/909612-conditional-discounting "-- HikaShop version -- : 6.0.0 -- Joomla version -- : 4.4.5 -- PHP version -- : 8.2.29  I want to give a discount on our English language courses for August, with the discount percentage rate based on the number of weeks (quantity) a course (product) is purchased. For example, a 10% discount for 1 to 12 weeks, a 20% discount for 13 to 24 weeks, etc. Is there any way to implement this?")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 3 months ago, by [pqas](/forum/user/32448-pqas "View pqas's Profile")       [Last Post](/forum/46-discount-coupon/909612-conditional-discounting#368049 "Hi,  From what I understand the &quot;number of weeks&quot; on your website is actually the &quot;quantity&quot; of the product in the cart. And the &quot;english courses&quot; are only some of the products on your website, as you're also selling other things, which, from what I understand of your message, won't get the discount. So, one solution I can see is to edit these products, and add extra prices with start / end dates and a &quot;minimum quantity&quot; and a reduced price. While this is the simplest solution, it's also the more labor intensive, as you'll have to add a few prices for each product.  Another solution I can see is to create a coupon on the category of these products (or create a new category and add it as a second category for all of the products you want the discount to apply) via the menu Orders&gt;Coupons. There, you can use the &quot;Product quantity from&quot; setting to set the 1 to 12 range, etc and then you can select the category in the &quot;category&quot; setting, you want to turn on the &quot;Product quantity from&quot; and the &quot;Coupon percentage applies to product only&quot; settings, fill in the end and start dates, and the percentage, and it will do it automatically. Note however, that in this case, if someone purchase 10 weeks of english course 1, and 5 weeks of english course 2, the 20% coupon will apply for the sum of the amount of both products.") 1 year 3 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1223 | [Last Post](/forum/46-discount-coupon/909612-conditional-discounting#368049 "Hi,  From what I understand the &quot;number of weeks&quot; on your website is actually the &quot;quantity&quot; of the product in the cart. And the &quot;english courses&quot; are only some of the products on your website, as you're also selling other things, which, from what I understand of your message, won't get the discount. So, one solution I can see is to edit these products, and add extra prices with start / end dates and a &quot;minimum quantity&quot; and a reduced price. While this is the simplest solution, it's also the more labor intensive, as you'll have to add a few prices for each product.  Another solution I can see is to create a coupon on the category of these products (or create a new category and add it as a second category for all of the products you want the discount to apply) via the menu Orders&gt;Coupons. There, you can use the &quot;Product quantity from&quot; setting to set the 1 to 12 range, etc and then you can select the category in the &quot;category&quot; setting, you want to turn on the &quot;Product quantity from&quot; and the &quot;Coupon percentage applies to product only&quot; settings, fill in the end and start dates, and the percentage, and it will do it automatically. Note however, that in this case, if someone purchase 10 weeks of english course 1, and 5 weeks of english course 2, the 20% coupon will apply for the sum of the amount of both products.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 3 months ago |
| [](/forum/46-discount-coupon/906612-erreur-quand-le-plugin-multi-coupon-est-active) | [Erreur quand le plugin multi-coupon est activé.](/forum/46-discount-coupon/906612-erreur-quand-le-plugin-multi-coupon-est-active "-- HikaShop version -- : 4.7.4 -- Joomla version -- : 4.3.2 -- PHP version -- : 8.1.18 -- Error-message(debug-mod must be tuned on) -- : Erreur: 0 Call to a member function get() on null  Bonjour, nous essayons de mettre en place le multicoupon, Quand le plugin est activé et que nous rentrons un premier coupon dans le formulaire, une erreur &quot;Erreur: 0 Call to a member function get() on null&quot; se produit. Si nous désactivons le plugin &quot;multi-coupon&quot;, le coupon est bien chargé et le checkout semble fonctionner normalement.  Voici une capture de l'erreur :  Merci d'avance pour votre aide.")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 4 months ago, by [info@lerenardquitrace.be](/forum/user/59029-info-lerenardquitrace-be "View info@lerenardquitrace.be's Profile")       [Last Post](/forum/46-discount-coupon/906612-erreur-quand-le-plugin-multi-coupon-est-active#367915 "Bonjour,  Désolé, le sujet été passé entre les mailles du fillet. Pour quelqu'un qui arriverait sur le sujet, noté qu'il y a eu plusieurs mises à jour du plugin depuis, dont celle de septembre 2024 qui corrige les calculs de TVA avec les coupons et le plugin multi coupons. Donc, si vous avez un problème similaire, vérifiez que vous avez bien la dernière version du plugin.") 1 year 3 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:18  Views:1784 | [Last Post](/forum/46-discount-coupon/906612-erreur-quand-le-plugin-multi-coupon-est-active#367915 "Bonjour,  Désolé, le sujet été passé entre les mailles du fillet. Pour quelqu'un qui arriverait sur le sujet, noté qu'il y a eu plusieurs mises à jour du plugin depuis, dont celle de septembre 2024 qui corrige les calculs de TVA avec les coupons et le plugin multi coupons. Donc, si vous avez un problème similaire, vérifiez que vous avez bien la dernière version du plugin.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 3 months ago |
| [](/forum/46-discount-coupon/909356-discount-when-at-least-x-differents-products-are-purchased) | [Discount when at least X differents products are purchased](/forum/46-discount-coupon/909356-discount-when-at-least-x-differents-products-are-purchased "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 8.2.6 -- PHP version -- : 8.2.26  Hi, I would like to implement an automatic % discount when at least 3 different products are purchased. I mean: 5 product A = no discount 5 product A + 2 product B = no discount 1 product A + 1 product B + 1 product C = -10%  How to achieve that?  Regards Marc")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 6 months ago, by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")       [Last Post](/forum/46-discount-coupon/909356-discount-when-at-least-x-differents-products-are-purchased#366815 "Hi,  HikaShop's coupon / discount system has a &quot;minimum quantity ordered&quot; and a &quot;maximum quantity ordered&quot; setting so that a discount can apply once a certain number of products in the cart is reached. However, that system doesn't distinguish between products. So if you set a minimum of 3, it will match regardless of whether it is 3 items of product A, or 1 of product A + 1 of product B + 1 of product C.  I see 2 potential solutions: 1. You could develop a small plugin implementing the onAfterCouponCheck event of HikaShop:   www.hikashop.com/support/documentation/6...l#onAfterCouponCheck  This way, you could configure a coupon without a restriction on the number of products, and process that restriction in the code of your plugin. While this allows for maximum customization capability, it requires development skills or hiring someone who could do it for you.  2. The cart fee plugin is a plugin which can be used to add extra fees to carts:   www.hikashop.com/marketplace/product/279-cart-fee.html  And if the result of the calculation made by the plugin is a negative amount, it will effectively be a discount. So, you could: - create a custom product field via the menu Display&gt;Custom fields:   www.hikashop.com/support/documentation/4...shop-field-form.html  - in each product, you would fill that custom field with the value &quot;1&quot;. You can automate this with a mass action:   www.hikashop.com/support/documentation/167-massaction-form.html  - then, in your cart fees plugin settings page, you could add an entry with the condition: where xxx is the column name of the custom field and a formula:  The system will first sum the value of product.xxx for each entry of the cart, and since you don't multiply by the tag {product.cart&#95;product&#95;quantity} in your condition, it won't take into account the quantity of each entry in the cart. And thus, the condition will only match if there are at least 3 distinct products in the cart, regardless of the quantity of each one. Then, for the fee calculation, it will replace {price} by the total amount of the cart and multiply by -0.1 which will effectively add a fee of -10% to the cart. It's a bit convoluted to setup, but it doesn't require any coding and should do exactly what you want.") 1 year 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1267 | [Last Post](/forum/46-discount-coupon/909356-discount-when-at-least-x-differents-products-are-purchased#366815 "Hi,  HikaShop's coupon / discount system has a &quot;minimum quantity ordered&quot; and a &quot;maximum quantity ordered&quot; setting so that a discount can apply once a certain number of products in the cart is reached. However, that system doesn't distinguish between products. So if you set a minimum of 3, it will match regardless of whether it is 3 items of product A, or 1 of product A + 1 of product B + 1 of product C.  I see 2 potential solutions: 1. You could develop a small plugin implementing the onAfterCouponCheck event of HikaShop:   www.hikashop.com/support/documentation/6...l#onAfterCouponCheck  This way, you could configure a coupon without a restriction on the number of products, and process that restriction in the code of your plugin. While this allows for maximum customization capability, it requires development skills or hiring someone who could do it for you.  2. The cart fee plugin is a plugin which can be used to add extra fees to carts:   www.hikashop.com/marketplace/product/279-cart-fee.html  And if the result of the calculation made by the plugin is a negative amount, it will effectively be a discount. So, you could: - create a custom product field via the menu Display&gt;Custom fields:   www.hikashop.com/support/documentation/4...shop-field-form.html  - in each product, you would fill that custom field with the value &quot;1&quot;. You can automate this with a mass action:   www.hikashop.com/support/documentation/167-massaction-form.html  - then, in your cart fees plugin settings page, you could add an entry with the condition: where xxx is the column name of the custom field and a formula:  The system will first sum the value of product.xxx for each entry of the cart, and since you don't multiply by the tag {product.cart&#95;product&#95;quantity} in your condition, it won't take into account the quantity of each entry in the cart. And thus, the condition will only match if there are at least 3 distinct products in the cart, regardless of the quantity of each one. Then, for the fee calculation, it will replace {price} by the total amount of the cart and multiply by -0.1 which will effectively add a fee of -10% to the cart. It's a bit convoluted to setup, but it doesn't require any coding and should do exactly what you want.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 6 months ago |
| [](/forum/46-discount-coupon/909114-coupon-usage-limit-per-user) | [Coupon usage limit per user](/forum/46-discount-coupon/909114-coupon-usage-limit-per-user "Hi. I have an unbelievable problem. I set the number of coupons that can be used to 5, but the number of times the coupon has been used is 6. That means I have 6 orders with that coupon. I tried to buy with that user's account for the 7th time with the same coupon, but it didn't work. I also checked if other users can buy more than their number, but that didn't work either. Can you guess what the problem was? note: i don't change &quot;Number of times used&quot; or &quot;Quota&quot; .")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 8 months ago, by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")       [Last Post](/forum/46-discount-coupon/909114-coupon-usage-limit-per-user#365558 "Hi,  Well, the quota bases itself on the &quot;number of times used&quot;. So if you change the &quot;number of times used&quot; in the coupon in the middle, you'll potentially be able to use it more. For example, if I create aa coupon with a quota of 5, and there are 3 clients purchasing with it. The &quot;number of times used&quot; goes from 0 to 3. If I edit the coupon and change its value to 2, 3 more clients will be able to use it, for a total of 6 orders, instead of 5. This could happen if you edit a coupon and someone places an order while you're editing the coupon. When you save the coupon, you might have saved it with the value from before the purchase, negating the increment which was done to the &quot;number of times used&quot; in the background.") 1 year 8 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1475 | [Last Post](/forum/46-discount-coupon/909114-coupon-usage-limit-per-user#365558 "Hi,  Well, the quota bases itself on the &quot;number of times used&quot;. So if you change the &quot;number of times used&quot; in the coupon in the middle, you'll potentially be able to use it more. For example, if I create aa coupon with a quota of 5, and there are 3 clients purchasing with it. The &quot;number of times used&quot; goes from 0 to 3. If I edit the coupon and change its value to 2, 3 more clients will be able to use it, for a total of 6 orders, instead of 5. This could happen if you edit a coupon and someone places an order while you're editing the coupon. When you save the coupon, you might have saved it with the value from before the purchase, negating the increment which was done to the &quot;number of times used&quot; in the background.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 8 months ago |
| [](/forum/46-discount-coupon/909077-discount-by-accumulative-purchase-amount-over-time) | [Discount by Accumulative Purchase Amount Over Time.](/forum/46-discount-coupon/909077-discount-by-accumulative-purchase-amount-over-time "-- Joomla version -- : 5  Hi, Is there a method or plug in to give a discount to customers on future orders that reach a specific amount over time?  Using Hikashop Business Charles")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 9 months ago, by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")       [Last Post](/forum/46-discount-coupon/909077-discount-by-accumulative-purchase-amount-over-time#365434 "Hi,  How about using the points system ?   www.hikashop.com/support/documentation/257-using-points.html") 1 year 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1280 | [Last Post](/forum/46-discount-coupon/909077-discount-by-accumulative-purchase-amount-over-time#365434 "Hi,  How about using the points system ?   www.hikashop.com/support/documentation/257-using-points.html") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 9 months ago |
| [](/forum/46-discount-coupon/909066-student-discount) | [Student discount](/forum/46-discount-coupon/909066-student-discount "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 8.2.3 -- PHP version -- : 8.2.26  Hi, I would like to implement a student discount, on per product basis. i.e. for product xxx, I choose &quot;student discount&quot; and I get -10% on the product  I've tried variants but it's a very complicated way to do it. I've tried coupons but the discount is applied on the whole basket, so not applicable.  How to achieve that?  Regards, marc")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 1 year 9 months ago, by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")       [Last Post](/forum/46-discount-coupon/909066-student-discount#365421 "Hi,  Ah, that's a good way ! Nice thinking outside of the box !") 1 year 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:9  Views:1490 | [Last Post](/forum/46-discount-coupon/909066-student-discount#365421 "Hi,  Ah, that's a good way ! Nice thinking outside of the box !") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 9 months ago |
| <a id="forumbottom"> </a> [   ](#forumtop) |  |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
