View Single Post
  #1  
Old 03-02-2015, 05:11 PM
 
khalidr khalidr is offline
 

Member
  
Join Date: Jun 2013
Posts: 15
 

Default Promo Text for products in 1 category only or products i select only

i would like to have certain products display a line of text when they are on promotion such as "Free accessory you buy this item" -
Is there some built in functionality that allows me to turn on "promo text" for specific products only ?

Alternatively, I'm looking at the file template product_t.tpl and i'd like to mimic the free shipping functionality by adding this code

{if $product.free_accessory eq "Y"}
<div><span class="label label-success">{$lng.lbl_free_accessory|upper}</span></div>
{/if}

I've added the language label but now i need to know how to add the boolean field to check if free_accessory = 1 or 0. I assume i need to

1. add a new DB field
2. add a checkbox in add/edit template

Can someone please give me some guidance on how best to accomplish this.



Thank you
__________________
X-Cart 4.6.3
Abandoned Cart Reminder
Refine Filters
Reply With Quote