Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to Make a button ”show product” if have attributes.


peteravu

Recommended Posts

How to Make a button ”show product” if have attributes.

 

I only like to show this code on products without attribute. And then show a SHOW PRODUCT button on products that has an attribute.

case 'PRODUCT_LIST_BUY_NOW':
		$prod_list_contents .= '		<td align="center">' . $lc_text = '<input type=button value="  -1" onclick="javascript:changeValue(document.getElementById(\'add_id_'.$listing[$x]['products_id'].'\'),-1);return  false;"><input type="text" name="add_id['.$number_of_products.']"  id="add_id_'.$listing[$x]['products_id'].'" value="0" size="3"><input  type=button value="+1" onclick="javascript:changeValue(document.getElementById(\'add_id_'.$listing[$x]['products_id'].'\'),1);return  false;">';
	  $lc_text .= '<input type="hidden"  name="products_id['.$number_of_products.']"  value="'.$listing[$x]['products_id'].'">';
	 break;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...