X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   calling an extra field in 4.0.13? (https://forum.x-cart.com/showthread.php?t=14582)

Christopher728 06-14-2005 07:17 PM

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

balinor 07-13-2005 12:40 PM

http://forum.x-cart.com/viewtopic.php?t=13217

shan 07-14-2005 02:24 AM

why not just do

Code:

{if $images}
link here
{/if}



All times are GMT -8. The time now is 06:59 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.