[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/907253-want-to-give-a-discount-on-all-products-or-category-on-every-wednesday) | [Want to give a discount on all products or category on every wednesday](/forum/46-discount-coupon/907253-want-to-give-a-discount-on-all-products-or-category-on-every-wednesday "-- url of the page with the problem -- :   07.bluepoint-concept.nl/feestdagen/pasen  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.x -- PHP version -- : 8.1.x  Hello,  I need some help with giving for example 10% discount on products or category. The discount is not a problem but i want to give the discount on every Tuesday. How can i accomplish that?  Hope you can help.  Regards, Mark")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 5 days ago, by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")       [Last Post](/forum/46-discount-coupon/907253-want-to-give-a-discount-on-all-products-or-category-on-every-wednesday#356555 "Hi,  You need to cron job to be set up so that the query can run every day. And the query will only update the discount if the end date is in the past, so it's not a problem if it runs every day.") 3 years 4 days ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:812 | [Last Post](/forum/46-discount-coupon/907253-want-to-give-a-discount-on-all-products-or-category-on-every-wednesday#356555 "Hi,  You need to cron job to be set up so that the query can run every day. And the query will only update the discount if the end date is in the past, so it's not a problem if it runs every day.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 4 days ago |
| [](/forum/46-discount-coupon/907242-the-coupon-not-working-for-shipping-100) | [The coupon not working for shipping 100%](/forum/46-discount-coupon/907242-the-coupon-not-working-for-shipping-100 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.2.34 -- Browser(s) name and version -- : Chrome  hi, found that the coupon not working as expected. i have create a coupon to waived the shipping fees, after coupon applied the order details is not correct. the shipping price deducted also not correct.  here is the coupon settings and order details, the shipping fee waived should be RM5.90 but after coupon applied show RM4.90")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 1 week ago, by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")       [Last Post](/forum/46-discount-coupon/907242-the-coupon-not-working-for-shipping-100#356460 "Hi can ignore this forum, problem solved, thanks") 3 years 1 week ago     by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile") | Replies:1  Views:716 | [Last Post](/forum/46-discount-coupon/907242-the-coupon-not-working-for-shipping-100#356460 "Hi can ignore this forum, problem solved, thanks") by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")      3 years 1 week ago |
| [](/forum/46-discount-coupon/906763-discounts-causing-call-to-a-member-function-get-on-null) | [Discounts causing 'Call to a member function get() on null'](/forum/46-discount-coupon/906763-discounts-causing-call-to-a-member-function-get-on-null "-- HikaShop version -- : 4.7.4 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.0 -- Browser(s) name and version -- : Firefox (any) -- Error-message(debug-mod must be tuned on) -- : Call to a member function get() on null  We have a recently created discount for clients with a total cart value over a certain amount. When any client reaches that amount, the error in the subject is thrown. Logs are below:  From the site: 0 Call to a member function get() on null Call stack # Function Location 1 () JROOT/administrator/components/com&#95;hikashop/helpers/paymentplugin.php:96 2 hikashopPaymentPlugin-&gt;onPaymentDisplay() JROOT/libraries/src/Plugin/CMSPlugin.php:284 3 Joomla&#92;CMS&#92;Plugin&#92;CMSPlugin-&gt;Joomla&#92;CMS&#92;Plugin&#92;{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486 4 Joomla&#92;Event&#92;Dispatcher-&gt;dispatch() JROOT/libraries/src/Application/EventAware.php:111 5 Joomla&#92;CMS&#92;Application&#92;WebApplication-&gt;triggerEvent() JROOT/administrator/components/com&#95;hikashop/classes/payment.php:256 6 hikashopPaymentClass-&gt;getPayments() JROOT/administrator/components/com&#95;hikashop/classes/cart.php:1458 7 hikashopCartClass-&gt;getFullCart() JROOT/administrator/components/com&#95;hikashop/classes/cart.php:4340 8 hikashopCartClass-&gt;getCartProductData() JROOT/components/com&#95;hikashop/views/product/tmpl/show&#95;quantity.php:68 9 include() JROOT/libraries/src/MVC/View/HtmlView.php:410 10 Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2789 11 hikashopView-&gt;loadTemplate() JROOT/components/com&#95;hikashop/views/product/tmpl/quantity.php:128 12 include() JROOT/libraries/src/MVC/View/HtmlView.php:410 13 Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2789 14 hikashopView-&gt;loadTemplate() JROOT/components/com&#95;hikashop/views/product/tmpl/show&#95;default.php:183 15 include() JROOT/libraries/src/MVC/View/HtmlView.php:410 16 Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2789 17 hikashopView-&gt;loadTemplate() JROOT/components/com&#95;hikashop/views/product/tmpl/show.php:97 18 include() JROOT/libraries/src/MVC/View/HtmlView.php:410 19 Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2789 20 hikashopView-&gt;loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203 21 Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;display() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2744 22 hikashopView-&gt;display() JROOT/components/com&#95;hikashop/views/product/view.html.php:29 23 ProductViewProduct-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:645 24 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;display() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2463 25 hikashopController-&gt;display() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2176 26 hikashopController-&gt;show() JROOT/libraries/src/MVC/Controller/BaseController.php:678 27 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2441 28 hikashopController-&gt;execute() JROOT/components/com&#95;hikashop/hikashop.php:88 29 require&#95;once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 30 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73 31 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 32 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208 33 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:249 34 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:293 35 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:61 36 require&#95;once() JROOT/index.php:32  From the logs: ==&gt; ./logs/error&#95;log  ./httpdocs/administrator/logs/everything.php parse() #1 &#91;ROOT&#93;/libraries/src/Application/SiteApplication.php(232): Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;route() #2 &#91;ROOT&#93;/libraries/src/Application/CMSApplication.php(293): Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() #3 &#91;ROOT&#93;/includes/app.php(61): Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() #4 &#91;ROOT&#93;/index.php(32): require&#95;once('...') #5 {main}  paymentplugin.php 95 $total&#95;quantity = 0; 96 $group = (int)$this-&gt;config-&gt;get('group&#95;options', 0); 97 foreach($order-&gt;products as $p) {  Joomla and Hikashop are happy they're up to date. Login details are available for Hikashop support if needed.")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 3 months ago, by [joes3029](/forum/user/57695-joes3029 "View joes3029's Profile")       [Last Post](/forum/46-discount-coupon/906763-discounts-causing-call-to-a-member-function-get-on-null#353671 "That worked like a charm - props to you guys for such a quick turnaround!") 3 years 3 months ago     by [joes3029](/forum/user/57695-joes3029 "View joes3029's Profile") | Replies:2  Views:975 | [Last Post](/forum/46-discount-coupon/906763-discounts-causing-call-to-a-member-function-get-on-null#353671 "That worked like a charm - props to you guys for such a quick turnaround!") by [joes3029](/forum/user/57695-joes3029 "View joes3029's Profile")      3 years 3 months ago |
| [](/forum/46-discount-coupon/906402-discounts-dont-work) | [discounts don't work](/forum/46-discount-coupon/906402-discounts-dont-work "-- url of the page with the problem -- :   www.aroma-massage.it  -- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.3.1  Hi all, I'm trying to set a 15% discount on all the products in my ecommerce. I have set all the parameters as per the documentation but the discounts are not displayed on the product page.  Did I miss any steps? I attach screenshot of the configuration.  any help or suggestions?")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 5 months ago, by [aromamassage](/forum/user/64297-aromamassage "View aromamassage's Profile")       [Last Post](/forum/46-discount-coupon/906402-discounts-dont-work#351763 "hi everyone, I solved it, an anomalous time had been set in setting the start date of the discount.  Thanks") 3 years 5 months ago     by [aromamassage](/forum/user/64297-aromamassage "View aromamassage's Profile") | Replies:1  Views:789 | [Last Post](/forum/46-discount-coupon/906402-discounts-dont-work#351763 "hi everyone, I solved it, an anomalous time had been set in setting the start date of the discount.  Thanks") by [aromamassage](/forum/user/64297-aromamassage "View aromamassage's Profile")      3 years 5 months ago |
| [](/forum/46-discount-coupon/906387-discount-on-first-order) | [Discount on first order](/forum/46-discount-coupon/906387-discount-on-first-order "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11  Hello,  I want to offer 10% discount on first order, so i created a coupon and followed I want to ask though, if a customer has ordered before they would be able to use the 1st order discount too?  Thank you")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 6 months ago, by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")       [Last Post](/forum/46-discount-coupon/906387-discount-on-first-order#351744 "Hi,  The quota per user is calculated dynamically. That means that each time someone tries to use this coupon, it will check how many orders that user has made on your shop with that coupon and it will compare it against the quota per user. So a simple solution would be to run a mass action to set the order&#95;discount&#95;code of existing orders to the coupon code of this coupon. That way, old orders would be taken into account automatically.") 3 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:906 | [Last Post](/forum/46-discount-coupon/906387-discount-on-first-order#351744 "Hi,  The quota per user is calculated dynamically. That means that each time someone tries to use this coupon, it will check how many orders that user has made on your shop with that coupon and it will compare it against the quota per user. So a simple solution would be to run a mass action to set the order&#95;discount&#95;code of existing orders to the coupon code of this coupon. That way, old orders would be taken into account automatically.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 6 months ago |
| [](/forum/46-discount-coupon/906391-need-max-qty-for-discounts) | [Need Max QTY for Discounts](/forum/46-discount-coupon/906391-need-max-qty-for-discounts "-- url of the page with the problem -- :   theshadowmatrix.com/site  -- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.3.1 -- PHP version -- : 8.1.18 -- Browser(s) name and version -- : MS Edge 12.0.1722.64 (64-bit) -- Error-message(debug-mod must be tuned on) -- : N/A  Greetings, I am trying to set up discounts for some products. The problem I am running into is that I need to set a range of QTY's for each item. EX: Pieces Cost Sell $ 100-200+ pcs $16.00 $15.00 51-100 pcs $13.83 $13.50 01-50 pcs $13.00 $13.25  So, as you can see, I need to set a Min-Max QTY range w/ a discreet price for each item. I have been through the documentation, but I simply cannot find anything that fits my needs.")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 6 months ago, by [MacNaughton](/forum/user/46044-macnaughton "View MacNaughton's Profile")       [Last Post](/forum/46-discount-coupon/906391-need-max-qty-for-discounts#351735 "Hi,  Sorry but I'm not clear on what you're trying to do. It seems you're saying that you want the unit price to be $13.25 when the product is purchased with a quantity between 1 and 50, and then the unit price to increase to $13.50 between 51 and 100 However, normally, the unit price decreases when the quantity purchased increases. Also, usually to set different prices for different ranges of quantities, you want to add several prices to the product with different &quot;minimum quantity&quot; (the &quot;maximum quantity&quot; will be derived from the other prices, so there is not need for one). But supposing that you're talking about doing this, I don't see the link with discounts which can be configured in the Orders&gt;Discounts menu. So I'm thinking I didn't understand what you're trying to do.") 3 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:776 | [Last Post](/forum/46-discount-coupon/906391-need-max-qty-for-discounts#351735 "Hi,  Sorry but I'm not clear on what you're trying to do. It seems you're saying that you want the unit price to be $13.25 when the product is purchased with a quantity between 1 and 50, and then the unit price to increase to $13.50 between 51 and 100 However, normally, the unit price decreases when the quantity purchased increases. Also, usually to set different prices for different ranges of quantities, you want to add several prices to the product with different &quot;minimum quantity&quot; (the &quot;maximum quantity&quot; will be derived from the other prices, so there is not need for one). But supposing that you're talking about doing this, I don't see the link with discounts which can be configured in the Orders&gt;Discounts menu. So I'm thinking I didn't understand what you're trying to do.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 6 months ago |
| [](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon) | [minimum price to work this coupon](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon "hi i need to a minimum price field to use coupon. for example if user purchase more than 10$ he can use coupon or discount code. if it is need create plugin for that please advise: 1-how to add field to coupon config and how to read that? 2-what event trigger must use?")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 6 months ago, by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")       [Last Post](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon#351439 "thank you and excuse me for silly question... :) there is in coupon setting") 3 years 6 months ago     by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile") | Replies:2  Views:867 | [Last Post](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon#351439 "thank you and excuse me for silly question... :) there is in coupon setting") by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")      3 years 6 months ago |
| [](/forum/46-discount-coupon/906294-attach-invoice-no-coupon-shown) | [attach invoice : no coupon shown](/forum/46-discount-coupon/906294-attach-invoice-no-coupon-shown "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.2.9 -- PHP version -- : 8.1  Hi,  I use the attach invoice plugin, but the coupon isn't shown anymore in the invoice. See screenshots.  Sorry, already solved, there was no name used for the coupon. That was the cause.")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 6 months ago, by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")       [Last Post](/forum/46-discount-coupon/906294-attach-invoice-no-coupon-shown#351172 "Hello,  Thanks for your returns, this may help other HikaShop user that have the same issue. Regards") 3 years 6 months ago     by [Philip](/forum/user/34318-philip "View Philip's Profile") | Replies:1  Views:826 | [Last Post](/forum/46-discount-coupon/906294-attach-invoice-no-coupon-shown#351172 "Hello,  Thanks for your returns, this may help other HikaShop user that have the same issue. Regards") by [Philip](/forum/user/34318-philip "View Philip's Profile")      3 years 6 months ago |
| [](/forum/46-discount-coupon/906288-coupons-taxes) | [Coupons taxes](/forum/46-discount-coupon/906288-coupons-taxes "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.3 -- PHP version -- : 8  I'm totally confused about tax thing with coupons  and there are two options when we select Coupon that no explainetion is provided on the hikashoshop website  i have attached the screenshot  please tell what are this 3 fields ?")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 6 months ago, by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")       [Last Post](/forum/46-discount-coupon/906288-coupons-taxes#351135 "Hi,  Thank you for your feedback. I've updated the documentation to include these options which are recent. Click on the &quot;help&quot; button on the coupon edit form page and you'll see the documentation for that including for these settings.") 3 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:776 | [Last Post](/forum/46-discount-coupon/906288-coupons-taxes#351135 "Hi,  Thank you for your feedback. I've updated the documentation to include these options which are recent. Click on the &quot;help&quot; button on the coupon edit form page and you'll see the documentation for that including for these settings.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 6 months ago |
| [](/forum/46-discount-coupon/906240-coupon-usage-in-checkout) | [Coupon usage in checkout](/forum/46-discount-coupon/906240-coupon-usage-in-checkout "-- url of the page with the problem -- :   divecaboverde.com  -- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.2.9  Hi, today I bought the HikaSerial add-on to do the following: When a customer buy a 5 or 10 dive package, he gets 5 or 10 or just one with the correct valued coupon (but ideally 1 coupon for each dive of the package).  Then, when selecting a date (s)he wants to dive, (s)he pays with the coupon.  I put a payment link in my JEvents/RSVP to send the selection to the cart, this works great, the dives are automatically added to a category called events (not displayed in the shop) with a description (date) and a transaction id.  Till there, all good.  I added the ‘coupon field’ in my checkout, but when trying to use a generated coupon, the checkout gives me an ‘The coupon you entered is not valid’ error.  I cannot, or did not find, how to allow these coupons only on the ‘event’ category’ only, allowing it to a particular product will not function.  Any help or idea?  Thanks Xavier")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 7 months ago, by [tzaff](/forum/user/74288-tzaff "View tzaff's Profile")       [Last Post](/forum/46-discount-coupon/906240-coupon-usage-in-checkout#350970 "Hi, I changed, as you suggested the 'add coupon' to the very beginning, and changed the cart display as well. Now it's all good.  Un grand merci Xavier") 3 years 7 months ago     by [tzaff](/forum/user/74288-tzaff "View tzaff's Profile") | Replies:6  Views:1335 | [Last Post](/forum/46-discount-coupon/906240-coupon-usage-in-checkout#350970 "Hi, I changed, as you suggested the 'add coupon' to the very beginning, and changed the cart display as well. Now it's all good.  Un grand merci Xavier") by [tzaff](/forum/user/74288-tzaff "View tzaff's Profile")      3 years 7 months ago |
| [](/forum/46-discount-coupon/906057-wrong-result-on-discount-coupon) | [Wrong result on discount + coupon](/forum/46-discount-coupon/906057-wrong-result-on-discount-coupon "-- url of the page with the problem -- :   www.erboristeriazambrini.it/  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4 -- Browser(s) name and version -- : All  Hi, there is an error applying discount and coupon on the same product. Example: I've got a product 100€ This product has a discount 20% = 80€ Correct I've made a 30% coupon with the field Coupon handling of discounted products set as Override discounted products. The result isn't 70€ but 76€. Why? If I unpublish the discount the result is correct 70€ If I set the discount as 10% the result is 73€ It seems that the discount value is applied to the coupon value. 100 - &#91;(100 &#42; 30%) - 20%&#93; = 76 100 - &#91;(100 &#42; 30%) - 10%&#93; = 73  Thank you")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 8 months ago, by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")       [Last Post](/forum/46-discount-coupon/906057-wrong-result-on-discount-coupon#350009 "Hi,  I think there is indeed an issue in that calculation mode. Change the code:  to:  (several places) in the file administrator/components/com&#95;hikashop/classes/discount.php and it should calculate based on the initial price and not the discounted price.") 3 years 8 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1095 | [Last Post](/forum/46-discount-coupon/906057-wrong-result-on-discount-coupon#350009 "Hi,  I think there is indeed an issue in that calculation mode. Change the code:  to:  (several places) in the file administrator/components/com&#95;hikashop/classes/discount.php and it should calculate based on the initial price and not the discounted price.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 8 months ago |
| [](/forum/46-discount-coupon/905580-how-can-i-set-to-not-round-the-discounts-in-the-order) | [How can I set to not round the discounts in the order?](/forum/46-discount-coupon/905580-how-can-i-set-to-not-round-the-discounts-in-the-order "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.33  Hi support,  I've set Round prices during calculations to &quot;NO&quot; in the backend but even still the discounts are being rounded up. I have a 1% coupon to all products and a 3% discount in the payment method (bank transfer) as an option. How can I set to not round the discounts in the order?")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 10 months ago, by [FM Supply](/forum/user/60580-fm-supply "View FM Supply's Profile")       [Last Post](/forum/46-discount-coupon/905580-how-can-i-set-to-not-round-the-discounts-in-the-order#347813 "Hi,  Well, rounding normally works like that: When you have 0.001, 0.002, 0.003 or 0.004, rounding it to 2 decimals means it would output 0.00. When you have 0.006, 0.007, 0.008 or 0.009, rounding it to 2 decimals means it would output 0.01. So it's normal the system displays -1.04 for -1.0363 as that's how rounding normally works. You can read more about rounding numbers here:   www.mathsisfun.com/rounding-numbers.html  Now, it is possible to change the way rounding works in PHP:   www.php.net/manual/en/function.round.php  The round function (which we use in HikaShop) has a third argument you can use to change the mode for 0.005. If you want to change it, you can change the line: return round($price, $round); For example, you could change it to: return round($price, $round, PHP&#95;ROUND&#95;HALF&#95;DOWN); in the file administrator/components/com&#95;hikashop/classes/currency.php  But even so, it doesn't handle truncate. So for example, you can't have 1.039, or 1.036 to output 1.03 with that function. So, in your example, it wouldn't change what is displayed. If you want to achieve a truncate instead of a rounding, you would have to add a truncate function like:  and use that function instead of the round function of PHP there. However, I don't recommend it. This will affect all calculations, including tax calculations. Also, I think it might not be legally allowed to do that in some countries. So before changing the way the rounding is done, I would recommend you to check with your accountant what they suggest.") 3 years 10 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1190 | [Last Post](/forum/46-discount-coupon/905580-how-can-i-set-to-not-round-the-discounts-in-the-order#347813 "Hi,  Well, rounding normally works like that: When you have 0.001, 0.002, 0.003 or 0.004, rounding it to 2 decimals means it would output 0.00. When you have 0.006, 0.007, 0.008 or 0.009, rounding it to 2 decimals means it would output 0.01. So it's normal the system displays -1.04 for -1.0363 as that's how rounding normally works. You can read more about rounding numbers here:   www.mathsisfun.com/rounding-numbers.html  Now, it is possible to change the way rounding works in PHP:   www.php.net/manual/en/function.round.php  The round function (which we use in HikaShop) has a third argument you can use to change the mode for 0.005. If you want to change it, you can change the line: return round($price, $round); For example, you could change it to: return round($price, $round, PHP&#95;ROUND&#95;HALF&#95;DOWN); in the file administrator/components/com&#95;hikashop/classes/currency.php  But even so, it doesn't handle truncate. So for example, you can't have 1.039, or 1.036 to output 1.03 with that function. So, in your example, it wouldn't change what is displayed. If you want to achieve a truncate instead of a rounding, you would have to add a truncate function like:  and use that function instead of the round function of PHP there. However, I don't recommend it. This will affect all calculations, including tax calculations. Also, I think it might not be legally allowed to do that in some countries. So before changing the way the rounding is done, I would recommend you to check with your accountant what they suggest.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 10 months ago |
| [](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working) | [Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 3 years 11 months ago, by [oxido](/forum/user/29793-oxido "View oxido's Profile")       [Last Post](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347765 "Hi,  We add fixes in HikaShop every day. We can't make a new release every day. Web agencies would complain that their customer keep bugging them to update HikaShop on their website. So unless it is a critical bug, we only add the patch as a hot fix, without changing the version number. Merchants would still get the patch a few weeks later, when we do the official release. This also has the added benefit of getting feedback on a reduced quantity of merchants before rolling out a new release. That allows us sometimes to avoid side effects of fixes for most. That way, people updating their HikaShop without testing the update on a copy of their website have a lot less chance of getting a critical bug.  Now, if you are worried you don't have all the latest fixes, I can only recommend you to update HikaShop every day. But I don't think it's a practical solution. It will take up your time, and you might have more issues than before since the latest patches would have been less tested by others.") 3 years 10 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:1065 | [Last Post](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347765 "Hi,  We add fixes in HikaShop every day. We can't make a new release every day. Web agencies would complain that their customer keep bugging them to update HikaShop on their website. So unless it is a critical bug, we only add the patch as a hot fix, without changing the version number. Merchants would still get the patch a few weeks later, when we do the official release. This also has the added benefit of getting feedback on a reduced quantity of merchants before rolling out a new release. That allows us sometimes to avoid side effects of fixes for most. That way, people updating their HikaShop without testing the update on a copy of their website have a lot less chance of getting a critical bug.  Now, if you are worried you don't have all the latest fixes, I can only recommend you to update HikaShop every day. But I don't think it's a practical solution. It will take up your time, and you might have more issues than before since the latest patches would have been less tested by others.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 10 months ago |
| [](/forum/46-discount-coupon/899662-can-not-add-coupon-to-product) | [Can not add coupon to product](/forum/46-discount-coupon/899662-can-not-add-coupon-to-product "-- HikaShop version -- : 4,2,3 -- PHP version -- : 7,2  We use coupon for product (free shipping)and when I want to add product to coupon wont save. We have some 50 product listed on that coupon. Now I can not add any new product. I can select, but when I save, product is missing.")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 6 years 6 months ago, by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")       [Last Post](/forum/46-discount-coupon/899662-can-not-add-coupon-to-product#346908 "OK, thank you.") 3 years 11 months ago     by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile") | Replies:6  Views:1192 | [Last Post](/forum/46-discount-coupon/899662-can-not-add-coupon-to-product#346908 "OK, thank you.") by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")      3 years 11 months ago |
| [](/forum/46-discount-coupon/905287-exlude-products-from-discount) | [Εxlude products from discount](/forum/46-discount-coupon/905287-exlude-products-from-discount "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.11  Hello!  If i set a discount for a category, could i exlude some products in that category from the dicount?  Thank you")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 4 years 1 week ago, by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")       [Last Post](/forum/46-discount-coupon/905287-exlude-products-from-discount#346239 "Hello,  No not directly, but there are a solution maybe you can use. For this you have to create a another category in your parent categories, and associated required products just for your discount. In details : 1° You have your selected category, &quot;Category A&quot; 2° Create your new category, &quot;Category A-discounted&quot;, =&gt; Take care to place your new category in an appropriate place to prevent it from appearing for example in one of your product listings, the best way to do this is that this category is not a parent category. 3° Associate to your new Category (&quot;A-discounted&quot;) all your required products. 4° Use this new category for your Discount restriction  Hope this will help you to achieve your needs. Regards") 4 years 1 week ago     by [Philip](/forum/user/34318-philip "View Philip's Profile") | Replies:1  Views:817 | [Last Post](/forum/46-discount-coupon/905287-exlude-products-from-discount#346239 "Hello,  No not directly, but there are a solution maybe you can use. For this you have to create a another category in your parent categories, and associated required products just for your discount. In details : 1° You have your selected category, &quot;Category A&quot; 2° Create your new category, &quot;Category A-discounted&quot;, =&gt; Take care to place your new category in an appropriate place to prevent it from appearing for example in one of your product listings, the best way to do this is that this category is not a parent category. 3° Associate to your new Category (&quot;A-discounted&quot;) all your required products. 4° Use this new category for your Discount restriction  Hope this will help you to achieve your needs. Regards") by [Philip](/forum/user/34318-philip "View Philip's Profile")      4 years 1 week ago |
| [](/forum/46-discount-coupon/905250-discount-setting) | [Discount Setting](/forum/46-discount-coupon/905250-discount-setting "Is there any way to turn off the discount applied on products, other than unpublished the discount?")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 4 years 2 weeks ago, by [jiawen](/forum/user/68179-jiawen "View jiawen's Profile")       [Last Post](/forum/46-discount-coupon/905250-discount-setting#346010 "You can use restrictions, set a Start and a End date, the discount it will be available only in that period of time.") 4 years 2 weeks ago     by [oxido](/forum/user/29793-oxido "View oxido's Profile") | Replies:1  Views:860 | [Last Post](/forum/46-discount-coupon/905250-discount-setting#346010 "You can use restrictions, set a Start and a End date, the discount it will be available only in that period of time.") by [oxido](/forum/user/29793-oxido "View oxido's Profile")      4 years 2 weeks ago |
| [](/forum/46-discount-coupon/905229-total-amount-is-affected-by-the-order-of-the-products-in-the-cart) | [Total amount is affected by the order of the products in the cart](/forum/46-discount-coupon/905229-total-amount-is-affected-by-the-order-of-the-products-in-the-cart "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.26 &amp; 7.4.32  Hi, Total amount is affected by the order of the products in the cart, when products have a discount. I have Product 3 with a discount of -25%. I have a coupon with a discount of -30% with Auto load in cart if possible when Product 1, Product 2, Product 3 are in cart, Coupon handling of discounted products: Override discounted products , and the coupon applies only for this 3. The problem I have, is that the price change if Product 3 it is added last in the cart.  Thank you!")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 4 years 3 weeks ago, by [oxido](/forum/user/29793-oxido "View oxido's Profile")       [Last Post](/forum/46-discount-coupon/905229-total-amount-is-affected-by-the-order-of-the-products-in-the-cart#345929 "Hi,  Thank you for the feedback and the details. I was able to reproduce the issue on my end. It comes from the check we have to make sure that the coupon amount is not negative when taking into account the discount (if the discount value is bigger than the coupon value, then the coupon amount would be negative with that handling mode). The problem is that this check is done for each product taken into account instead of being placed after all the products have been taken into account.  I've made a patch which seems to fix the problem on my end. Please download again the install package of the 4.6.2 on our website and install it on yours and you'll get the patch.") 4 years 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:855 | [Last Post](/forum/46-discount-coupon/905229-total-amount-is-affected-by-the-order-of-the-products-in-the-cart#345929 "Hi,  Thank you for the feedback and the details. I was able to reproduce the issue on my end. It comes from the check we have to make sure that the coupon amount is not negative when taking into account the discount (if the discount value is bigger than the coupon value, then the coupon amount would be negative with that handling mode). The problem is that this check is done for each product taken into account instead of being placed after all the products have been taken into account.  I've made a patch which seems to fix the problem on my end. Please download again the install package of the 4.6.2 on our website and install it on yours and you'll get the patch.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      4 years 3 weeks ago |
| [](/forum/46-discount-coupon/905222-apply-discount-based-on-product-brand) | [Apply discount based on product brand](/forum/46-discount-coupon/905222-apply-discount-based-on-product-brand "-- url of the page with the problem -- :   office.satumalaysiahosting.com/product-page  Hi.  I would like to apply a discount % to my product based on brand rather than category.  Is there any way to do so? I'm trying to modify the query, but I can't locate the code in hikashop product class file.  Hope can get some ideas from here, thanks.")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 4 years 3 weeks ago, by [JF](/forum/user/67343-jf "View JF's Profile")       [Last Post](/forum/46-discount-coupon/905222-apply-discount-based-on-product-brand#345907 "Hi,  The brand support in that option of the coupons/discounts has been added in HikaShop 4.6.2 I can see you have HikaShop 4.4.5 on your website so please update and it should work fine without having to change any code.") 4 years 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:988 | [Last Post](/forum/46-discount-coupon/905222-apply-discount-based-on-product-brand#345907 "Hi,  The brand support in that option of the coupons/discounts has been added in HikaShop 4.6.2 I can see you have HikaShop 4.4.5 on your website so please update and it should work fine without having to change any code.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      4 years 3 weeks ago |
| [](/forum/46-discount-coupon/903494-coupons-auto-load-in-cart-if-possible-not-working) | [Coupons: Auto load in cart if possible not working](/forum/46-discount-coupon/903494-coupons-auto-load-in-cart-if-possible-not-working "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4 -- Browser(s) name and version -- : any  Hello  Since update to 4.4.4 the coupons are not applied automatically anymore.  I have set coupons as precentage to be applied to products. And I have set &quot;Auto load in cart if possible&quot; to yes. So far this did work all the time: In cart the coupon got applied automatically.  Now this is not working anymore, no coupon gets applied. Coupons still are set up same so they should work. I did open and save them again but this did not help.  How can I solve this?  Thanks.")         Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 4 years 11 months ago, by [pat01](/forum/user/58191-pat01 "View pat01's Profile")       [Last Post](/forum/46-discount-coupon/903494-coupons-auto-load-in-cart-if-possible-not-working#345721 "Hi,  Thank you for the details. I've made a patch for that. Please download again the install package on our website and install it on yours and it should then work properly.  Note that when you want to use an auto loaded coupon, I would first recommend to turn of the auto load setting and make sure you're able to use the coupon code in the cart when the coupon should be auto loaded. And if that doesn't work, you should get an error message explaining which restriction is the problem. That way, you can check that it works like you want before activating the auto load on it.") 4 years 4 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:1415 | [Last Post](/forum/46-discount-coupon/903494-coupons-auto-load-in-cart-if-possible-not-working#345721 "Hi,  Thank you for the details. I've made a patch for that. Please download again the install package on our website and install it on yours and it should then work properly.  Note that when you want to use an auto loaded coupon, I would first recommend to turn of the auto load setting and make sure you're able to use the coupon code in the cart when the coupon should be auto loaded. And if that doesn't work, you should get an error message explaining which restriction is the problem. That way, you can check that it works like you want before activating the auto load on it.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      4 years 4 weeks ago |
| [](/forum/46-discount-coupon/904810-displaying-the-discount-code-on-all-order-emails) | [Displaying the DISCOUNT CODE on All Order Emails](/forum/46-discount-coupon/904810-displaying-the-discount-code-on-all-order-emails "-- url of the page with the problem -- :   www.notable.au/new/  -- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 8.0.21  I used to use this code to display the DISCOUNT CODE on all of the order emails:  However, with Joomla 4, this is no longer working and actually stops the &quot;Order administrator notification&quot; email from being sent.  Any ideas?  Thank you.")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 4 years 3 months ago, by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")       [Last Post](/forum/46-discount-coupon/904810-displaying-the-discount-code-on-all-order-emails#343775 "Excellent. These work great.  Thank you very much.") 4 years 3 months ago     by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile") | Replies:6  Views:1107 | [Last Post](/forum/46-discount-coupon/904810-displaying-the-discount-code-on-all-order-emails#343775 "Excellent. These work great.  Thank you very much.") by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")      4 years 3 months ago |
| <a id="forumbottom"> </a> [   ](#forumtop) |  |

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

Time to create page: 0.052 seconds

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