Guest Posted February 23, 2013 Share Posted February 23, 2013 Hi there i am trying to install this add on onto my site www.theonlinefurniturestore.org.uk heres the link for the add on :http://addons.oscommerce.com/info/2982/category,all/search,MIN+QUANTITY. I have installed it perfectly fine up until step number 13 where it says: _____________________________________________________________________________________________________ STEP 13: _____________________________________________________________________________________________________ In ./catalog/index.php around line 133 after this: 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, add this: //Minimum quantity code 'PRODUCT_LIST_MINORDER' => PRODUCT_LIST_MINORDER, //End: Minimum quantity code _____________________________________________________________________________________________________ STEP 14: _____________________________________________________________________________________________________ In ./catalog/index.php around line 164 after this: case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; add this: //Minimum quantity code case 'PRODUCT_LIST_MINORDER': $select_column_list .= 'p.minorder, '; break; //End: Minimum quantity code _____________________________________________________________________________________________ STEP 15: _____________________________________________________________________________________________________ In ./catalog/index.php around line 223 after this: case 'PRODUCT_LIST_QUANTITY': $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; add this: //Minimum quantity code case 'PRODUCT_LIST_MINORDER': $listing_sql .= "p.minorder " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; //End: Minimum quantity code now i have gone into my index.php page and it is only 85 lines long so obviously i need to put this code in elsewhere but i do not know where. I realise this is designed for oscommerce 2.2 and i am running 2.3.1 but i am desperate for an add on like this. can anybody help me please? i just need to know where to put this code to get this to work up until this point all the code between 2.2 and 2.3.1 has been the same. thanks in advance for all help. also i am new to php so please can you explain simply many thanks. Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted February 24, 2013 Share Posted February 24, 2013 A standard index.php file taken from the oscommerce download from this site has about 276 lines of code, and the code you require can all be found in the file. What you have to do is to figure out why your index.php file has been altered. Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
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.