Skip to main content

Modify coupon/discount text on cart

More
11 years 10 months ago #180940 by nmanek
-- HikaShop version -- : 2.3.4

A question, not an error!

I have a coupon that applies to a category, and it is autoloaded in cart. It works perfectly, but on checkout it displays the text "Coupon". I would like to display the actual code that is applied.

I tried to edit the language file, and I changed it to display "Discount" which is more accurate. However, it is limited to fixed text and I would like to display the code of the coupon - then I can make it more descriptive like "Buy 4 get 10% off".

I think I found the place to make the change : Display / Views / Frontend / Product / Cart
Code:
<td class="hikashop_cart_module_coupon_title" colspan="<?php echo $colspan; ?>"> <?php echo JText::_('HIKASHOP_COUPON'); ?> </td>

However, I don't know what to display for the coupon code instead of the text.

Can you help please?

Also, can you confirm if you still do not allow multiple coupons? I really would like to have one discount for one category and a different discount for a different category and have both apply if the customer buys from both categories!

Thanks for your help!
Niamh

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

More
11 years 10 months ago #180947 by Mohamed Thelji
Hello,

I have a coupon that applies to a category, and it is autoloaded in cart. It works perfectly, but on checkout it displays the text "Coupon". I would like to display the actual code that is applied.

Can you tell me where and how do you exactly want to display the code of your coupon ?

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

More
11 years 10 months ago #181116 by nmanek
Sorry, what I should have said is that when a customer goes to Checkout and the code is automatically applied, the text is displayed as part of the checkout page under subtotal and before final total.

I know the field I want to display is in the table _hikashop_discount and the fieldname is discount_code
but I do not know how to update the code in the cart.php file

Thank you!

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

More
11 years 10 months ago #181123 by Mohamed Thelji
Can you show me some screenshots of what do you exactly want to do ? And tell me if you are talking about a coupon or a discount ?
Thanks.

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

Time to create page: 0.176 seconds
Powered by Kunena Forum