Post by jonidfld » Wed Apr 11, 2012 8:48 pm

Hi all,

I have a small problem in that when a coupon is applied in the cart the code title appears as opposed to the coupon name. For example 2222 would appear - id prefer '10% Discount" - it means more to the customers - anyway to get this changed?

I've worked around it in the meantime by adjusting the language files! ;)

Thanks for any help!
Jon ;D

Newbie

Posts

Joined
Wed Apr 11, 2012 8:44 pm

Post by Qphoria » Wed Apr 11, 2012 10:19 pm

I agree, that is stupid. It used to show name. I'll see about changing it back to show the title.

For now the fix is.
1. EDIT: catalog/model/total/coupon.php

2. FIND:

Code: Select all

'title'      => sprintf($this->language->get('text_coupon'), $this->session->data['coupon']),
3. REPLACE WITH:

Code: Select all

'title'      => $coupon_info['name'],

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jonidfld » Wed Apr 11, 2012 10:34 pm

Thanks Qphoria! Worked perfectly! ;)

Newbie

Posts

Joined
Wed Apr 11, 2012 8:44 pm

Post by clinton4 » Tue Aug 19, 2014 7:17 pm

I know this post is over 2 years old, but this is still not changed in the latest version.

Do you have any plans to make such change in next version?

Spam blocking PHP script, use it!


Active Member

Posts

Joined
Sun Jan 17, 2010 11:54 am
Who is online

Users browsing this forum: jp1077 and 78 guests