mohamed Posted February 18, 2003 Share Posted February 18, 2003 Hello ppl, can somebody help me? well, i need to make sure my customers buy whole sale , atleast 10 pcs per product and minimum purchase total not less than 100 US$.. can somebody tell me if such a thing is ever possible.... & tell me what to do.. Your knowledge would be of great help to me... thanX.. Link to comment Share on other sites More sharing options...
Ajeh Posted February 18, 2003 Share Posted February 18, 2003 Setup a Qty Minimum on the products and a cost minimum before you allow checkout to happen. The $cart->show_total() will get you the total cost of the order. Link to comment Share on other sites More sharing options...
mohamed Posted February 18, 2003 Author Share Posted February 18, 2003 ThanX for postin ur reply ... well i get what u mean but it would 've been better if u/anybody can tell me exactly which files i've to change/modify... so, any tech details would be of great help!.. AnywayZ... I'd be glad if some one could help....... -------- RIFAI Link to comment Share on other sites More sharing options...
Ajeh Posted February 18, 2003 Share Posted February 18, 2003 That's what I wrote the Quantity Controller v5.1 for ... :D If you want a simplified version of that, perhaps looking at the code can help you out and you can see how the Minimums and Units are handled for the products. You will have to peek over on my site while I am re-writting it for the new MS1 snapshots. Link to comment Share on other sites More sharing options...
mohamed Posted February 20, 2003 Author Share Posted February 20, 2003 well, i got quantity controller from ur site ....! i upload ur files to the server .. i'm not sure if i've to manually make adjustments to the files or if i could change configurations from the admin page on the server.. 1 other thing when i open admin/categories.php i get this! -> Fatal error: Call to undefined function: tep_get_categories_name() in /home/gemsuppl/public_html/jewelry/admin/categories.php on line 1266 pls. help.. ------- RIFAI Link to comment Share on other sites More sharing options...
Ajeh Posted February 20, 2003 Share Posted February 20, 2003 You need to go through the README.TXT file and add in all the changes to the files that it states so that the new functions are included. Also, you need to compare my files to your existing files and merge in the changes. Quantity Controller v5.1 was not written for MS1 so there are a lot of changes to make to make them compatible. Or, wait for the eventual release of Quantity Controller v5.2 if it becomes too overwhelming to do. Link to comment Share on other sites More sharing options...
mohamed Posted February 20, 2003 Author Share Posted February 20, 2003 ThanX.. Ajeh i went through the readme.txt --- > i set up the quantity controller v5.1 on my site.. i think it's workin fine.. ---> Anywayz i've to keep checkin so no errors are there........ I think ur contribution to the oscommerce & ppl like me :D .. are very useful indeed... lastly i would like to appreciate ur help in the forum ... many thanX Ajeh 8) Link to comment Share on other sites More sharing options...
Ajeh Posted February 21, 2003 Share Posted February 21, 2003 I am glad that the add-on worked out for you. It takes a bit to install, but it is a very handy one, I think ... :D Link to comment Share on other sites More sharing options...
mohamed Posted February 22, 2003 Author Share Posted February 22, 2003 Hey, Ajeh .. i hope you could help me... well , when i try to check out from my cart... i see this -->Fatal error: Cannot redeclare tep_get_free_shipper() (previously declared in /home/gemsuppl/public_html/silver/catalog/includes/functions/webmakers_added_functions.php:56) in /home/gemsuppl/public_html/silver/catalog/includes/functions/webmakers_added_functions.php on line 56 it seems i cannot checkout .... can you help ... please..! Link to comment Share on other sites More sharing options...
Ajeh Posted February 22, 2003 Share Posted February 22, 2003 You have the function defined twice. Do a search on your files for: function tep_get_free_shipper You only need that once. Note: If you switched to MS1 or Ian's new Load5 you will want to update to Downloads Controller v5.3 then take out the old code for the Free Shipping and Payment modules. ie. remove the old IF statements from the top of the payment and shipping modules. The new Free Shipping and Payment modules can be configured in the Admin and do not interfer with the code when on or off. You no longer need to modify the other shipping and payment modules for these to work. Link to comment Share on other sites More sharing options...
mohamed Posted February 22, 2003 Author Share Posted February 22, 2003 hey! ajeh .. hope i'm not bothering you much .. :? i think the quantity controller was for oscommerce snapshot 11/23/2002 ..well my oscommerce 02/07/2003... do u think thatz why i get these errors.. can you tell me if it was possible for me to get the older snapshot 11/23/2002 .. which i think might work with ur quantity controller v.5.1 ..cuz i don't know what to do ... it keeps sayin fuction redeclare for many fuctions.. 1 after the other.. hope you could help me... Ajeh ---- Rifai Link to comment Share on other sites More sharing options...
Ajeh Posted February 22, 2003 Share Posted February 22, 2003 99.9% positive ... :shock: I am trying to think of the easy way to get an old snapshot. I forget the URL for this stuff. I just collect them in case I might need one. Perhaps someone else might recall the easy way to get all of 11-23-2002 snapshot? I know off-hand how to get the peices and parts ... just not the whole thing ... :D Link to comment Share on other sites More sharing options...
mohamed Posted February 23, 2003 Author Share Posted February 23, 2003 ThanX Ajeh ,, Well i knida fix the redeclare problem... can you tell me abt this 1.. Fatal error: Call to undefined function: get_content_type() in /home/gemsuppl/public_html/catalog/includes/classes/order.php on line 135 i don't know in which file the get_content_type() function is usualy defined.. 1 more thing.. Fatal error: Call to undefined function: !validate_password() in /home/gemsuppl/public_html/catalog/login.php on line 26 login file came from the Quantity controller v.5.1 catalog dir THEN i checked my previous login file from the snapshot release.. i figured out that the function name was wrong.. not... !validate_password() but rather !tep_validate_password() .. then it worked fine.. why i bring this up is i wonder if that could be the problem .. like different function name changed..! please.. comment! ---------- RIFAI Link to comment Share on other sites More sharing options...
mohamed Posted February 23, 2003 Author Share Posted February 23, 2003 Hey Ajeh.. ! :D i've a good news! haha.. i finally made it!.. catalog/includes/classes/shoppingcart.php the function definition for get_content_type() was omitted.. so i copy & paste from the oscommerce snapshot catalog/includes/classes/shoppingcart.php then i was able to check out from my cart...! i'am very happy... & i want to thank you a lot for helping me along the way... ajeh , i couldn't thank you more... anywayz.. i'll keep in touch.. if i run into problems i'll post on the forum/pvt msg you .. if u don't mind... :) ---- Rifai Link to comment Share on other sites More sharing options...
Ajeh Posted February 23, 2003 Share Posted February 23, 2003 Hey Ajeh.. ! :D i've a good news! haha.. i finally made it!.. catalog/includes/classes/shoppingcart.php the function definition for get_content_type() was omitted.. so i copy & paste from the oscommerce snapshot catalog/includes/classes/shoppingcart.php then i was able to check out from my cart...! i'am very happy... & i want to thank you a lot for helping me along the way... ajeh , i couldn't thank you more... anywayz.. i'll keep in touch.. if i run into problems i'll post on the forum/pvt msg you .. if u don't mind... :) ---- Rifai Be careful of just cutting and pasting a missing function into a program. You want to make sure any other program that utilizes this is updated as well. The get_content_type is new and the tep_validate_password is new since the writting of Quantity Controller. The shipping and payment modules are all new, depending on your snapshot. And the method for testing them is new. This means Free Shipping and Payments will not work and the logic for them will not work. The validation will not work properly ... etc. etc. I am not sure what else is new as well. Link to comment Share on other sites More sharing options...
mohamed Posted February 24, 2003 Author Share Posted February 24, 2003 Ajeh, well, i had this problem. while checkout last confirmation... catalog/checkout_process.php it said unknown column 'comments' in orders .. i checked my database & i added a field 'comments' in orders with the following field type null default comments text no then i came across another prob after that it said unknown fiels 'new_value' in orders_status_history... i went back to my database & added a field 'new_value' in orders_status_history field type null default new_value int(5) no 0 then i was able to successfully check out! can you please tell me if i have done the right thing.. & have i set the right attributes... --------- rifai Link to comment Share on other sites More sharing options...
Ajeh Posted February 24, 2003 Share Posted February 24, 2003 If you go through the EXTRAS folder there are several updates for various tables to get the data moved around and create the new fields. You might want to read through the code on those and see how everything is moved about. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.