![]() |
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} |
All times are GMT -8. The time now is 02:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.