Results 1 to 8 of 8

How to configure "Minimum Order" in storefront.

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 ...

      
  1. #1
    Lurker
    Join Date
    Sep 2005
    Posts
    4
    Rep Power
    0


    Default How to configure "Minimum Order" in storefront.

    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. #2
    Member
    Join Date
    Sep 2004
    Location
    Langhorne, PA
    Posts
    31
    Rep Power
    0


    Default mim order

    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. #3
    Lurker
    Join Date
    Sep 2005
    Posts
    4
    Rep Power
    0


    Default

    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. #4
    Member
    Join Date
    Sep 2004
    Location
    Langhorne, PA
    Posts
    31
    Rep Power
    0


    Default re: mim order

    you edit the file in catalog/templates/EXAMPLEaabox/contents/shopping_cart.tpl.php the line is around 104 follow the instructions

  5. #5
    Lurker
    Join Date
    Sep 2005
    Posts
    4
    Rep Power
    0


    Default

    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. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    You are missing ?> on the blank line below //End Minimum quantity code
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Lurker
    Join Date
    Sep 2005
    Posts
    4
    Rep Power
    0


    Default

    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. #8
    Member Cisco's Avatar
    Join Date
    Feb 2003
    Posts
    89
    Rep Power
    0


    Default

    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?

Similar Threads

  1. Do "create order" orders get processed with Paymen
    By chrismole in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 03-29-2006, 03:33 PM
  2. Change Create Order Text "Réduction" and "Li
    By kelly34 in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 08-03-2005, 11:55 AM
  3. invoice format in the "order comfirmation.php"
    By kellycog in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-19-2004, 11:14 AM
  4. Anyone implemented "order email only" hack?
    By xtech in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-15-2004, 07:38 PM
  5. How to find out "shipind method" from order
    By stando in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 02-08-2004, 05:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •