pauly
03-05-2010, 12:36 PM
I have a site with two buttons displayed, 'buy now' and 'add to cart'
I can't seem to get the codes to work in an if else statement. Can any one help?
add to cart button:
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
buy now button:
<a class="button" href="<?php echo $buyurl; ?>" <span><?php echo $button_buy_now; ?></span></a>
if i put them in an if else statement I get unexpected "<" error
This is driving me nuts!
I can't seem to get the codes to work in an if else statement. Can any one help?
add to cart button:
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
buy now button:
<a class="button" href="<?php echo $buyurl; ?>" <span><?php echo $button_buy_now; ?></span></a>
if i put them in an if else statement I get unexpected "<" error
This is driving me nuts!