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

#   Checkout -&gt; Final total less than 0,00 €

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 8 months ago [\#8694](#8694) by [kaykaykay](/forum/user/1230-kaykaykay "View kaykaykay's Profile")  *[Checkout -&gt; Final total less than 0,00 €](/forum/3-bug-report/8694-checkout-final-total-less-than-0-00-eur#8694 "Hi Nicolas,  first of all thanks a lot for your help you gave Gabor and me within the recent months.  on our web site we have a problem with total amounts less than 0.00€. If a customer uses a coupon with an amount bigger than the amount of the product including shipping and tax the final total is less than 0, e.g. -1,20€.  Is there a possibility to change it to 0.00€?  Till now we just use the check and the paypal plugin as payment methods. If a user choosed paypal and has an amount less than 0, Hikashop still leads the user to paypal. And more worse, the coupon is not showing up on the paypal calculation, so the user has to pay the total without a reduction.  We haven't updated Hikashop yet, so we still use version 1.4.4!  Thank you!")* was created by *[kaykaykay](/forum/user/1230-kaykaykay "View kaykaykay's Profile")*

Hi Nicolas,

first of all thanks a lot for your help you gave Gabor and me within the recent months.

on our web site [ ](http://www.nail-designer.com)[ www.nail-designer.com](http://www.nail-designer.com) we have a problem with total amounts less than 0.00€.
If a customer uses a coupon with an amount bigger than the amount of the product including shipping and tax the final total is less than 0, e.g. -1,20€.

Is there a possibility to change it to 0.00€?

Till now we just use the check and the paypal plugin as payment methods. If a user choosed paypal and has an amount less than 0, Hikashop still leads the user to paypal. And more worse, the coupon is not showing up on the paypal calculation, so the user has to pay the total without a reduction.

We haven't updated Hikashop yet, so we still use version 1.4.4!

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk0LWNoZWNrb3V0LWZpbmFsLXRvdGFsLWxlc3MtdGhhbi0wLTAwLWV1cj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

15 years 8 months ago [\#8695](#8695) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Checkout -&gt; Final total less than 0,00 €](/forum/3-bug-report/8694-checkout-final-total-less-than-0-00-eur#8695 "Hi Nicolas,  first of all thanks a lot for your help you gave Gabor and me within the recent months.  on our web site we have a problem with total amounts less than 0.00€. If a customer uses a coupon with an amount bigger than the amount of the product including shipping and tax the final total is less than 0, e.g. -1,20€.  Is there a possibility to change it to 0.00€?  Till now we just use the check and the paypal plugin as payment methods. If a user choosed paypal and has an amount less than 0, Hikashop still leads the user to paypal. And more worse, the coupon is not showing up on the paypal calculation, so the user has to pay the total without a reduction.  We haven't updated Hikashop yet, so we still use version 1.4.4!  Thank you!")*

Hi,

What you can do is edit the file administrator/components/com_hikashop/classes/cart.php and add after the code: Code:

if(!empty($shipping_id)){ $cart-&gt;shipping = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.shipping_data'); if(!empty($cart-&gt;shipping)){ $currencyClass = hikashop::get('class.currency'); $shipping =&amp; $cart-&gt;shipping; $shippings = array(&amp;$shipping); $currencyClass-&gt;processShippings($shippings); //calculate total price with shipping $currencyClass-&gt;addShipping($cart-&gt;shipping,$cart-&gt;full_total); $cart-&gt;full_total=&amp;$cart-&gt;shipping-&gt;total; } }

the code: Code:

if(bccomp($cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,0,5)&lt;=0){ $cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax = 0; $cart-&gt;full_total-&gt;prices[0]-&gt;price_value = 0; }

Let us know if that works and we will included it in next version of HikaShop.

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 8 months ago [\#8696](#8696) by [kaykaykay](/forum/user/1230-kaykaykay "View kaykaykay's Profile")  Replied by *[kaykaykay](/forum/user/1230-kaykaykay "View kaykaykay's Profile")* on topic *[Re: Checkout -&gt; Final total less than 0,00 €](/forum/3-bug-report/8694-checkout-final-total-less-than-0-00-eur#8696 "Hi Nicolas,  first of all thanks a lot for your help you gave Gabor and me within the recent months.  on our web site we have a problem with total amounts less than 0.00€. If a customer uses a coupon with an amount bigger than the amount of the product including shipping and tax the final total is less than 0, e.g. -1,20€.  Is there a possibility to change it to 0.00€?  Till now we just use the check and the paypal plugin as payment methods. If a user choosed paypal and has an amount less than 0, Hikashop still leads the user to paypal. And more worse, the coupon is not showing up on the paypal calculation, so the user has to pay the total without a reduction.  We haven't updated Hikashop yet, so we still use version 1.4.4!  Thank you!")*

Hi Nicolas,

once again thank you for your quick response!

Works fine and it seems to solve all mentioned problems!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk0LWNoZWNrb3V0LWZpbmFsLXRvdGFsLWxlc3MtdGhhbi0wLTAwLWV1cj90bXBsPW1hcmtkb3du) 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.043 seconds

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