This is a discussion on How to configure "Minimum Order" in storefront. within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Could any of you help me figure out how to set my store to only accept a minumum order of ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Could any of you help me figure out how to set my store to only accept a minumum order of 2 (like) items. I am selling food items and need the customer to be able to order 2 or more items as it would not be profitable for me to only make 1. The can order 2, 3, 4 or more, but cannot order only 1. I'm not talking about a minimum of 2 orders before they can proceed to checkout, but the minimum purchase for item A is 2. Any ideas? Carlos |
|
#2
| |||
| |||
| Try this contribute but you may have to modify it to fit your oscommerce version http://www.oscommerce.com/community/...ns,2198/page,2 |
|
#3
| |||
| |||
| That's the contribution that I was trying to install. The instructions say to edit Shopping_Cart.php on line 144, but mine only has 26 lines in it. I'm using OSMAX, so I believe they are set-up different than that OSc straight version. I made sure I was in the right cart in /catalog and not the one deeper in /languages. |
|
#4
| |||
| |||
| you edit the file in catalog/templates/EXAMPLEaabox/contents/shopping_cart.tpl.php the line is around 104 follow the instructions |
|
#5
| |||
| |||
| I did everything up to Step 8: I got this parse: Parse error: parse error, unexpected '<' in /hsphere/local/home/carlitov/doricancatering.com/catalog/templates/content/shopping_cart.tpl.php on line 163 These are those lines of text: <?php } } ?> //Minimum quantity code if ($cart_notice) { ?> <tr> <td class="stockWarning" align="center"><br><?php echo $cart_notice; ?></td> </tr> <?php } //End Minimum quantity code <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> Line 164 is the second line after: //End Minimum quantity code Any ideas what I did wrong? |
|
#6
| ||||
| ||||
| You are missing ?> on the blank line below //End Minimum quantity code
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| Ok, now I get this: Parse error: parse error, unexpected '}' in /hsphere/local/home/carlitov/doricancatering.com/catalog/templates/content/shopping_cart.tpl.php on line 190 Line 190 = } else { Am I missing another ?> somewhere? Here's the code (from the last error on 164 to the end) <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?></td> <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { ?> <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php } ?> <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } else { ?> <tr> <td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> </table></form> |
|
#8
| ||||
| ||||
| This works great, only one thing. If you have twebty items listed the code checks each product again and again after you keep adding more items. The customer will have to keep accepting the qty for each item each time. Also if the qty is greater than the min desired and you sell 20 per box as the case qty. When the customer adds more of the same item it will only add 1 more to the qty making it 21 instead of 40. How do keep it from checking items already updated to the min. qty? Is there a way to make the product description reflect the desired qty you will sell it, in the admin panel for each product? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do "create order" orders get processed with Paymen | chrismole | osCMax v2 Features Discussion | 1 | 03-29-2006 03:33 PM |
| Change Create Order Text "Réduction" and "Li | kelly34 | osCMax v2 Customization/Mods | 3 | 08-03-2005 10:55 AM |
| invoice format in the "order comfirmation.php" | kellycog | osCommerce 2.2 Modification Help | 0 | 08-19-2004 10:14 AM |
| Anyone implemented "order email only" hack? | xtech | osCommerce 2.2 Modification Help | 0 | 08-15-2004 06:38 PM |
| How to find out "shipind method" from order | stando | osCMax v1.7 Discussion | 2 | 02-08-2004 05:03 AM |