Custom Button in Cart
I have a product which requires a button in place of one of its option values in the shopping cart. The button is supposed to open a pop-up window which is linked to the original option value.
I created the button and everything is fine except the value ($v.option_name) is not inserted into the link. The link is opening as http ://www.website/view.php?name= It should open as http ://www.website/view.php?name=banner.option.should.be.here Code:
{if $k eq 10403 or $k eq 31132 or $k eq 31139 or $k eq 31146 or $k eq 31153} Anyone have any ideas why it's working? Thanks |
Re: Custom Button in Cart
Try this
Code:
{if $k eq 10403 or $k eq 31132 or $k eq 31139 or $k eq 31146 or $k eq 31153} Quote:
|
Re: Custom Button in Cart
Thanks for the suggestion.
I'll give it a try. |
Re: Custom Button in Cart
You have to access to variable value in Smarty as {$variable_name}, so in your case URL should be: ../view.php?name={$v.option_name}
|
All times are GMT -8. The time now is 09:05 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.