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

#   when coupon added to cart, and go back to product page, getting erroer

##

- **[edzz83](/forum/user/33988-edzz83 "View edzz83's Profile")**
- [![edzz83's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33988-edzz83 "View edzz83's Profile") Topic Author
- [ Offline](/forum/user/33988-edzz83)

Less More

- Posts: 36
- Thank you received: 2
-
-

9 years 3 months ago -  9 years 3 months ago [\#275620](#275620) by [edzz83](/forum/user/33988-edzz83 "View edzz83's Profile")  *[when coupon added to cart, and go back to product page, getting erroer](/forum/27-checkout/891457-when-coupon-added-to-cart-and-go-back-to-product-page-getting-erroer#275620 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.0 latest -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$discount&#95;flat&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 589  Notice: Undefined property: stdClass::$discount&#95;percent&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 594  add coupon BUY2ANDSAVE to cart,  goto product page.  you will see the cart option has error:  Notice: Undefined property: stdClass::$discount&#95;flat&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 589  Notice: Undefined property: stdClass::$discount&#95;percent&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 594")* was created by *[edzz83](/forum/user/33988-edzz83 "View edzz83's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.4
-- PHP version -- : 7.0 latest
-- Browser(s) name and version -- : na
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$discount_flat_amount in /home/public_html/testsite/administrator/components/com_hikashop/classes/shipping.php on line 589

Notice: Undefined property: stdClass::$discount_percent_amount in /home/public_html/testsite/administrator/components/com_hikashop/classes/shipping.php on line 594

add coupon BUY2ANDSAVE to cart,

goto product page.

you will see the cart option has error:

Notice: Undefined property: stdClass::$discount_flat_amount in /home/public_html/testsite/administrator/components/com_hikashop/classes/shipping.php on line 589

Notice: Undefined property: stdClass::$discount_percent_amount in /home/public_html/testsite/administrator/components/com_hikashop/classes/shipping.php on line 594

Last edit: 9 years 3 months ago by [edzz83](/forum/user/33988-edzz83 "View edzz83's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MTQ1Ny13aGVuLWNvdXBvbi1hZGRlZC10by1jYXJ0LWFuZC1nby1iYWNrLXRvLXByb2R1Y3QtcGFnZS1nZXR0aW5nLWVycm9lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[edzz83](/forum/user/33988-edzz83 "View edzz83's Profile")**
- [![edzz83's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33988-edzz83 "View edzz83's Profile") Topic Author
- [ Offline](/forum/user/33988-edzz83)

Less More

- Posts: 36
- Thank you received: 2
-
-

9 years 3 months ago [\#275621](#275621) by [edzz83](/forum/user/33988-edzz83 "View edzz83's Profile")  Replied by *[edzz83](/forum/user/33988-edzz83 "View edzz83's Profile")* on topic *[when coupon added to cart, and go back to product page, getting erroer](/forum/27-checkout/891457-when-coupon-added-to-cart-and-go-back-to-product-page-getting-erroer#275621 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.0 latest -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$discount&#95;flat&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 589  Notice: Undefined property: stdClass::$discount&#95;percent&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 594  add coupon BUY2ANDSAVE to cart,  goto product page.  you will see the cart option has error:  Notice: Undefined property: stdClass::$discount&#95;flat&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 589  Notice: Undefined property: stdClass::$discount&#95;percent&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 594")*

also, we dont even charge for shipping at all. its free. so i dont know why this is happening. also where the error is popping up (in the cart module) we have price and such all turned off in this module.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MTQ1Ny13aGVuLWNvdXBvbi1hZGRlZC10by1jYXJ0LWFuZC1nby1iYWNrLXRvLXByb2R1Y3QtcGFnZS1nZXR0aW5nLWVycm9lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

9 years 3 months ago [\#275629](#275629) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[when coupon added to cart, and go back to product page, getting erroer](/forum/27-checkout/891457-when-coupon-added-to-cart-and-go-back-to-product-page-getting-erroer#275629 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.0 latest -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$discount&#95;flat&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 589  Notice: Undefined property: stdClass::$discount&#95;percent&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 594  add coupon BUY2ANDSAVE to cart,  goto product page.  you will see the cart option has error:  Notice: Undefined property: stdClass::$discount&#95;flat&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 589  Notice: Undefined property: stdClass::$discount&#95;percent&#95;amount in /home/public&#95;html/testsite/administrator/components/com&#95;hikashop/classes/shipping.php on line 594")*

Hi,

Thank you for your feedback. I'm not able to reproduce nor to understand why it would do that.
However, these are just notices so not real errors.
You can easily deactivate them by turning off the "error reporting" setting of the Joomla configuration.
On our end, we'll modify a bit the code there for the next version in order to avoid the notices from showing up.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MTQ1Ny13aGVuLWNvdXBvbi1hZGRlZC10by1jYXJ0LWFuZC1nby1iYWNrLXRvLXByb2R1Y3QtcGFnZS1nZXR0aW5nLWVycm9lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

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

Time to create page: 0.040 seconds

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