| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
hiding a shipping option based on user | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: hiding a shipping option based on user
in the smarty php file - shipping array, membershipid and shippingid are parameters. So it can go like this
PHP Code:
You can also pass to this function multiple shipping ids and redo the foreach to match any; it can also be used for payment methods. As for the shipping being used in multiple templates - not a problem - use the function call in home.tpl just after the <body> tag to reassign $shipping - that way there is no need to track down all templates this is being used in {if $shipping} function call here {/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|