View Single Post
  #1  
Old 02-11-2009, 05:55 PM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default 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} {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
__________________
Version 4.0.8 Live
Reply With Quote