nwatko Posted August 25, 2006 Posted August 25, 2006 When going through the installation of the MSRP Percent Only Contribution everything was going good until I came across 2 parts of code that I was suppose to find and replace. Well these 2 parts of code were no where in the files I was suppose to find them in. So needless to say there were 2 chunks of code I couldn't put into the files and I'm assuming that's why it isn't working. If I need to include the code to find and replace and the files they were suppose to be in I will. Was just hoping someone else has had this problem and could help. Thanks, Nwatko Quote
Guest Posted April 5, 2007 Posted April 5, 2007 When going through the installation of the MSRP Percent Only Contribution everything was going good until I came across 2 parts of code that I was suppose to find and replace. Well these 2 parts of code were no where in the files I was suppose to find them in. So needless to say there were 2 chunks of code I couldn't put into the files and I'm assuming that's why it isn't working. If I need to include the code to find and replace and the files they were suppose to be in I will. Was just hoping someone else has had this problem and could help. Thanks, Nwatko the damn thing has never worked for me anyway Quote
bonzabuy Posted November 8, 2007 Posted November 8, 2007 When going through the installation of the MSRP Percent Only Contribution everything was going good until I came across 2 parts of code that I was suppose to find and replace. Well these 2 parts of code were no where in the files I was suppose to find them in. So needless to say there were 2 chunks of code I couldn't put into the files and I'm assuming that's why it isn't working. If I need to include the code to find and replace and the files they were suppose to be in I will. Was just hoping someone else has had this problem and could help. Thanks, Nwatko Gday - did you get an answer for this? I am getting a similar problem: I think this Contrib is written for an older version of OSc? INSTRUCTIONS: 12. In catalog/admin/categories.php around line 940 find the lines that read as follows: if (isset($_GET['search'])) { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name"); } else { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name"); } But there is no if (isset($_GET['search'])) { in my file... I don't think it has been modified. Here is the relevant section of my code $products_count = 0; if (isset($HTTP_GET_VARS['search'])) { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name"); } else { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name"); } Can I just keep my original " if (isset($HTTP_GET_VARS['search']))" and use the rest of the code? Also: my file doesn't have this code: if ($new_price = tep_get_products_special_price($pInfo->products_id)) { $products_price = '<s>' . $currencies->display_price($pInfo->products_price, tep_get_tax_rate($pInfo->products_tax_class_id)) . '</s> <span class="specialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($pInfo->products_tax_class_id)) . '</span>'; } else { $products_price = $currencies->display_price($pInfo->products_price, tep_get_tax_rate($pInfo->products_tax_class_id)); }; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.