Post by aljawaid » Wed Nov 05, 2014 10:17 am

Hello All

Could I please draw your attention to the attached picture where an item is discounted if more than two are ordered.

Is there any way, and if so how, that I can change the 'or more' to the same style or format as the 'Sales Advice' blue box?

I would like it to say in a highlighted subtle box: Buy 2 or more for only £1.00 each (where the values are taken form the normal places in the code/database)

Any help would be highly appreciated.

Attachments

33.PNG

notice 'or more' and notice 'sales advice' box - 33.PNG (7.44 KiB) Viewed 902 times


Total e-commerce newbie bravely testing OC v2.0.3.1 before rolling it live...getting there slowly, somehow. Maybe not. I dunno.


Active Member

Posts

Joined
Fri Oct 10, 2014 10:33 pm
Location - UK

Post by fido-x » Wed Nov 05, 2014 10:13 pm

Try this:

Replace line 68 in "catalog/view/theme/default/template/product/product.tpl", which reads:

Code: Select all

<li><?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></li>
with the following:

Code: Select all

<li><div class="alert alert-info"><i class="fa fa-info-circle"></i> <?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></div></li>
and see how you go.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by aljawaid » Wed Nov 05, 2014 11:38 pm

fido-x wrote:Try this:

Replace line 68 in "catalog/view/theme/default/template/product/product.tpl", which reads:

Code: Select all

<li><?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></li>
with the following:

Code: Select all

<li><div class="alert alert-info"><i class="fa fa-info-circle"></i> <?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></div></li>
and see how you go.

Hello, thanks for this, the blue box works excellent now :)

Any idea where I can change the text so it reads better? example "Buy (x) or more for a special price of (x) each"

Total e-commerce newbie bravely testing OC v2.0.3.1 before rolling it live...getting there slowly, somehow. Maybe not. I dunno.


Active Member

Posts

Joined
Fri Oct 10, 2014 10:33 pm
Location - UK

Post by aljawaid » Sat Nov 08, 2014 11:57 am

Any idea where I can change the text so it reads better? example "Buy (x) or more for a special price of (x) each"

Total e-commerce newbie bravely testing OC v2.0.3.1 before rolling it live...getting there slowly, somehow. Maybe not. I dunno.


Active Member

Posts

Joined
Fri Oct 10, 2014 10:33 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 5 guests