View Single Post
  #2  
Old 02-11-2009, 09:58 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default 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} {include file="buttons/button.tpl" href="javascript:window.open('../view.php?name={$v.option_name}','Banner','width=590,height=450,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');" button_title="View Design" style="button"} {else} {$v.option_name} {/if}

Quote:
Originally Posted by 1day2004
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} {include file="buttons/button.tpl" href="javascript:window.open('../view.php?name=$v.option_name','Banner','width=590,height=450,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');" button_title="View Design" style="button"} {else} {$v.option_name} {/if}

Anyone have any ideas why it's working?

Thanks
Reply With Quote