| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hiding the Add to Cart button for certain parts | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: Hiding the Add to Cart button for certain parts
Quote:
$extra_fields is an array, you have to loop through it or use the exact array element #, you can't use $extra_fields.field as there is no such thing {foreach from=$extra_field item=ef} {if $ef.service_name eq "NO_ADD_CART" && $ef.field_value ne ""} YOUR CODE HERE {/if} {/foreach}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#12
|
|||||||
|
|||||||
Re: Hiding the Add to Cart button for certain parts
Thanks for the pointers with the code. I was thinking of these variables the wrong way. I'll be changing it now.
__________________
X-Cart 4.4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|