totallytech Posted August 24, 2013 Share Posted August 24, 2013 Hi Guys, I'm using some code to add to a shopping cart, you have to hard code the product details to the php so I have this <?php echo name="' . $image->alttext .'" options_name="Size" options="'.8x6:9.50;10x8:13.50.'" qty_field = "true" b_title="Add To Basket" ; The issue i have is with the options section : options="'.8x6:9.50;10x8:13.50.'" if I use options="8x6:9.50;10x8:13.50" then it only displays 8x6 - £9.50 and doesnt show the 10x8 one, If I add options="'.8x6:9.50;10x8:13.50.'" it breaks the code completely. Any ideas how I can code this? Link to comment https://forums.phpfreaks.com/topic/281510-code-fails-using/ Share on other sites More sharing options...
.josh Posted August 24, 2013 Share Posted August 24, 2013 echo "name='" . $image->alttext ."' options_name='Size' options='8x6:9.50;10x8:13.50' qty_field = 'true' b_title='Add To Basket'"; Link to comment https://forums.phpfreaks.com/topic/281510-code-fails-using/#findComment-1446556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.