This is a discussion on Best way of controlling (max one product at checkout) within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi as the subject suggests. I was wondering if anyone has ever attempted to configure their site to only allow ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi as the subject suggests. I was wondering if anyone has ever attempted to configure their site to only allow one product at checkout. What would your suggestion be in doing so? Edit the classes/shopping_cart.php?? Remove Qty and buttons etc in the shopping_cart_tpl.php? Implications with cookies stored? Well any thoughts, ideas or its impossible are welcomed! regads Mike Van diike in Greece www.mobilegamer.gr |
|
#2
| |||
| |||
| I saw on another post: http://oscdox.com/index.php?name=PNp...mp;p=7786#7786 about editing: includes/application_top.php What do you think? initiate another tep_redirect?? Regards Mike |
|
#3
| |||
| |||
| OK got it. in includes/application_top.php put: // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { if ($cart->count_contents() == 0) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; in this case the add item is not working if there is already a product in the cart. With regards to Jfield Cheers Mike |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| checkout bug, picture doesnt show during checkout | ogilirca | osCMax v2 Installation issues | 1 | 05-31-2006 06:04 AM |
| Downloadable product error on checkout | robfor | osCMax v2 Features Discussion | 2 | 05-20-2006 04:23 AM |
| controlling text width in right/left columns. | lhotch | osCMax v1.7 Discussion | 3 | 09-29-2004 01:38 PM |
| Tax is lost at checkout if product weight is zero | NickW | osCMax v1.7 Installation | 4 | 08-10-2004 03:09 AM |
| pricing tweks on product info page and checkout | cvc505 | osCommerce 2.2 Installation Help | 0 | 06-28-2003 05:01 AM |