Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Help - products without attributes wont add to cart


andy_1984

Recommended Posts

Posted

run in to a little problem.

 

for some reason when i disable "Display Buy Now column"

 

when looking at the product via "product_info.php" i can only add products to the cart that have attributes set to them, any products that do not have attributes i am unable to "add to cart" the button is still active and displayed but it just will not add that product.

 

anyone know whats going on ?

Posted

Solved:

 

the problem was down to a quantity contribution i used http://addons.oscommerce.com/info/1253

 

it states

actually you can add this code anywhere.

 

this is not true, the location i placed it was within the part of the code that handles display of attributes and as there was none it would not output the code required for the quantity box

 

i wanted it displayed after the product description, not at the add to cart button so where i had to position it in order for it to work was ABOVE:

 

<?php
   $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

 

thanks for taking the time to read my post and hopefuly it will be of use to the nexct person who has this problem

Archived

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

×
×
  • Create New...