zxedxz Posted August 30, 2005 Posted August 30, 2005 Is there a way to add the qty input box in the product description using the STS template?
Iggy Posted September 2, 2005 Posted September 2, 2005 Anyone know how? <{POST_SNAPBACK}> The easy way is to add it directly to the /catalog/product_info.php, disable any product_info templates you have in sts_templates and not use the STS product info at all. The hard way is to define a new STS tag for that hunk o code. Check out the readme. Iggy Everything's funny but nothing's a joke...
zxedxz Posted September 2, 2005 Author Posted September 2, 2005 what junk of code are you talking about? Can you post it here?
zxedxz Posted September 2, 2005 Author Posted September 2, 2005 Fount it already, thanks. What I did was use the qty field contribution and added this line to the sts_product_info.php file. $template['quantity'] = TEXT_QUANTITY . tep_draw_input_field('quantity', '1', 'SIZE=2 maxlength=2') . tep_draw_separator('pixel_trans.gif', '5', '1') . tep_draw_hidden_field('products_id', $product_info['products_id']); It works, but I wonder if it is efficient this way?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.