[email protected] Posted January 10, 2007 Share Posted January 10, 2007 I have a question about the instructions for your Product Attributes - Option Type Feature. It is for the instructions for the file: /catalog/includes/classes/shopping_cart.php These are the instructions I'm confused about: ______________________________________________________________ FIND: (around line 88) $products_id_string = tep_get_uprid($products_id, $attributes); $products_id = tep_get_prid($products_id_string); if (is_numeric($products_id) && is_numeric($qty)) { $check_product_query = tep_db_query("select products_status from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $check_product = tep_db_fetch_array($check_product_query); if (($check_product !== false) && ($check_product['products_status'] == '1')) { REPLACE with $products_id = tep_get_uprid($products_id, $attributes); ______________________________________________________________ Because in my file it has some extra code which I pasted below: ______________________________________________________________ $products_id_string = tep_get_uprid($products_id, $attributes); $products_id = tep_get_prid($products_id_string); $attributes_pass_check = true; if (is_array($attributes)) { reset($attributes); while (list($option, $value) = each($attributes)) { if (!is_numeric($option) || !is_numeric($value)) { $attributes_pass_check = false; break; } } } if (is_numeric($products_id) && is_numeric($qty) && ($attributes_pass_check == true)) { $check_product_query = tep_db_query("select products_status from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $check_product = tep_db_fetch_array($check_product_query); if (($check_product !== false) && ($check_product['products_status'] == '1')) { ______________________________________________________________ Any idea what to do here? I'm not sure why my file has extra code, as I have not installed any other modules yet. Thanks so much and I'm really excited about getting this module up and running! Sorry to post this out here, this system would not let me send you a personal message. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.