Skip to main content

Discounts not calculating correctly

More
12 years 4 months ago #158214 by abasel
Below is a list of the coupons that used to work for calculating my discounts,



No it only ever applies a 10% discount. It should only give 10% for purchases in the 200's, 15% if in the 300's, 20% if in the 400s, etc

What might have change or have I done wrong?

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #158215 by abasel
I tried changing the order of the coupons and it made no difference.

This how a coupon is set up


Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #158345 by nicolas
Hi,

Add the code:
Code:
unset($cart->products[$k]->cart_modified); unset($cart->products[$k]->cart_coupon);
before the line:
Code:
$currencyClass->calculateProductPriceForQuantity($cart->products[$k]);
in the file administrator/components/com_hikashop/classes/cart.php and that should solve the problem.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #158397 by abasel
Hi

I tried this ie
Code:
foreach($cart->products as $k => $row){ unset($cart->products[$k]->cart_modified); unset($cart->products[$k]->cart_coupon); $currencyClass->calculateProductPriceForQuantity($cart->products[$k]); }

And it made no difference, still only applying the 10% one.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #158488 by nicolas
Hi,

It's working fine for me with that change.
Please provide a link to the shop with the problem, a backend access in order to check your settings, a FTP access so that we can look at the code and a link to this thread via our contact page:
www.hikashop.com/contact-us.html

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #158508 by abasel
Just sent the details. I did sent one a day or so ago but that will no longer be valid. The correct one will be the one with the ftp details in. Thanks again

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #158811 by nicolas
Replace the file administrator/components/com_hikashop/classes/cart.php with the one in this archive and that should fix the problem.

This attachment is hidden for guests.
Please log in or register to see it.
The following user(s) said Thank You: abasel

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #158843 by abasel
Many thanks, just a quick question, will I loose this in future updates of will it be included?

Thanks again :cheer:

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #158852 by nicolas
It will be included of course.

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds
Powered by Kunena Forum