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

calling an extra field in 4.0.13?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-14-2005, 07:17 PM
  Christopher728's Avatar 
Christopher728 Christopher728 is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: CA
Posts: 46
 

Default calling an extra field in 4.0.13?

Hi,
In my shop I have an anchor link on the product details page which jumps down to the detailed images area. Some of the products have detailed images and some don't so I wanted the link to show up when a product does and not show up for the ones that don't. I have set up an extra field with values of "Y" or "N" and in version 3.5.x I have added this code to call (or not call) the link - - -
Code:
{if $product.param00 ne N} {include file="detailed_images.tpl"}{/if}
which works fine.

My problem is that when trying to do the same thing in 4.0.13 I can't get it to work. From reading other posts I see that calling an extra field has changed a bit and I have tried - - -
Code:
{if $extra_fields[00].value ne 'N'}{include file="detailed_images.tpl"}{/if}
as well as some variations, but can't get it to work.

Can anyone show me how to write this statement so that it works in 4.0.13 the same as it does for me in 3.5.x?

Thanks in advance
__________________
X-cart versions 4.1.11, 4.1.9 & 4.1.8
Reply With Quote
  #2  
Old 07-13-2005, 12:40 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

http://forum.x-cart.com/viewtopic.php?t=13217
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-14-2005, 02:24 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

why not just do

Code:
{if $images} link here {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:26 AM.

   

 
X-Cart forums © 2001-2020