You are here:  » Insert HTML tags in voucher code display


Insert HTML tags in voucher code display

Submitted by NiceGuyEddie on Thu, 2014-05-01 17:07 in

Hi David,

I want to put a line break <br> before and after the voucher code where I display the voucher codes alongside the discounted price on my site. At the moment I am putting the tags before and after the actual voucher code where I create a new one, but I keep forgetting to do it.

Where can I insert the tag in the tapestry code so I don't have to add it manually every time? I have tried adding them in tapestry.php but I couldn't get it to work.

Thanks

Eddie

Submitted by support on Fri, 2014-05-02 08:57

Hi Eddie,

If this isn't what you have already tried, in includes/tapestry.php look for the following code at line 260:

  $products[$k]["voucher_code"] = $product["voucher_code"];

...and REPLACE with:

  $products[$k]["voucher_code"] = "<br />".$product["voucher_code"]."<br />";

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Tue, 2014-05-06 20:15

Thanks David!