Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 03-03-2015, 02:09 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

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

Try the 'Extra Fields' module perhaps?
This way you can customize the message for each applicable product?
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:31 PM.

   

 
X-Cart forums © 2001-2020