Post by hrevis25 » Mon May 01, 2017 5:48 am

Hello,
Is it possible to remove discount text (100 or more xx.xx$, etc.) from product page?
I tried remove some lines from product.tpl but nothing happened. Any ideas??
I've attached a screenshot of what i want to be removed.

Thank you.

Attachments

discount.PNG

discount.PNG (136.46 KiB) Viewed 1058 times


Active Member

Posts

Joined
Wed Apr 19, 2017 8:27 pm

Post by IP_CAM » Mon May 01, 2017 7:14 am

This is not part of the product.tpl File, it's either an Product-Option, or then a Custom Mod,
inserting this into the product page.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by hrevis25 » Mon May 01, 2017 7:22 am

I couldn't find any custom mods, or even the file to edit this.

Active Member

Posts

Joined
Wed Apr 19, 2017 8:27 pm

Post by cyclops12 » Wed May 03, 2017 2:20 am

In your product.tpl file find

Code: Select all

 <?php if ($discounts) { ?>
            <li>
              <hr>
            </li>
            <?php foreach ($discounts as $discount) { ?>
            <li><?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></li>
            <?php } ?>
            <?php } ?>
And comment it out like so....

Code: Select all

 <!-- <?php if ($discounts) { ?>
            <li>
              <hr>
            </li>
            <?php foreach ($discounts as $discount) { ?>
            <li><?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></li>
            <?php } ?>
            <?php } ?>-->

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 4 guests