- Posts: 50
- Thank you received: 0
coupon per product
11 years 10 months ago - 11 years 10 months ago #181702
by cjmicro
coupon per product was created by cjmicro
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Browser(s) name and version -- : firefox
I want to set up coupon per specific product. $9 off, BUT they have to order $50 worth of merchandise (not necessarily same category or product).
If i set coupon to a particular product OR category it will tell you that you don't have $50 in your cart, even if you do. I believe it is looking for $50 in that product or category (i have tried both ways).
Is it possible to do this and how? I have been trying to get it to work for days and tried different suggestions from forum but it does not work and we want coupon for Monday!
PS the $9 off is for the 2015 Calendar, so they have to have $50 worth of stuff AND the calendar then they get $9 off the calendar.
Please advise. Thank you.
Cheryl
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Browser(s) name and version -- : firefox
I want to set up coupon per specific product. $9 off, BUT they have to order $50 worth of merchandise (not necessarily same category or product).
If i set coupon to a particular product OR category it will tell you that you don't have $50 in your cart, even if you do. I believe it is looking for $50 in that product or category (i have tried both ways).
Is it possible to do this and how? I have been trying to get it to work for days and tried different suggestions from forum but it does not work and we want coupon for Monday!
PS the $9 off is for the 2015 Calendar, so they have to have $50 worth of stuff AND the calendar then they get $9 off the calendar.
Please advise. Thank you.
Cheryl
Last edit: 11 years 10 months ago by cjmicro.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181749
by nicolas
Replied by nicolas on topic coupon per product
Hi,
The system indeed doesn't work like you want.
As a temporary change, add the line:
before the line:
in the file administrator/components/com_hikashop/classes/discount.php and that should do what you want.
The system indeed doesn't work like you want.
As a temporary change, add the line:
Code:
$total_amount = $total->prices[0]->price_value_with_tax;
Code:
if($coupon->discount_minimum_order>$total_amount){
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds