osCmax v2.5 User Manual
Results 1 to 3 of 3

Wholesale Minimum Order

This is a discussion on Wholesale Minimum Order within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi there, Well I am only new to this forum and to osCmax after having used oscommerce for somw time ...

      
  1. #1
    New Member
    Join Date
    Dec 2010
    Posts
    13
    Rep Power
    0


    Default Wholesale Minimum Order

    Hi there,

    Well I am only new to this forum and to osCmax after having used oscommerce for somw time now.

    I am working on the 2.5 version right now and trying to get the wholesale minimum order mod (part of SPPC) to work correctly.

    I have installed the mod and yes it definitely works as I am unable to check out unless I have the minimum order in my cart, however the text that should be displayed informing the customer that they have not met the minimum quantity I cannot make appear.

    I have modified the correct file as per the install doc (in this case in the template folder), but I still cannot get the text to show up.

    If anyone has any ideas I would be most appreciative, or if you require any further information, please let me know and I will supply it.

    Regards

    Richard

  2. #2
    osCMax Developer

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


    Default Re: Wholesale Minimum Order

    Are you using the One Page Checkout or the standard checkout? Where is the text supposed to show? Maybe post the code that is not working and the instructions for the part that is not working.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  3. #3
    New Member
    Join Date
    Dec 2010
    Posts
    13
    Rep Power
    0


    Default Re: Wholesale Minimum Order

    Thanks Michael

    I am using one page checkout.

    The code is as follows.....

    4. In shopping_cart.php, around line 162 should be:
    PHP Code:
    <?php
        
    if ($any_out_of_stock == 1) {
          if (
    STOCK_ALLOW_CHECKOUT == 'true') {
    ?>
          <tr>
            <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT?></td>
          </tr>
    <?php
          
    } else {
    ?>
          <tr>
            <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT?></td>
          </tr>
    <?php
          
    }
        }
    ?>
          <tr>
    replace the last line ( <tr>)
    with:

    PHP Code:
    <?php
    // minimum order total
        
    if ($cart->show_total() < WHOLESALE_MIN_ORDER_AMOUNT && $_SESSION['sppc_customer_group_id'] == '1') {
    ?>
          <tr>
            <td class="stockWarning" align="center"><br><?php echo sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT$currencies->format(WHOLESALE_MIN_ORDER_AMOUNT)); ?></td>
          </tr>
    <?php
        
    }
    ?>
          <tr>
    I have added that to shopping_cart.tpl.php in various different ways and I either get no text at all showing or a blank page.

    My current code in file below......

    PHP Code:
    <?php
        
    if ($any_out_of_stock == 1) {
          if (
    STOCK_ALLOW_CHECKOUT == 'true') {
    ?>
          <tr>
            <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT?></td>
          </tr>
    <?php
          
    } else {
    ?>
          <tr>
            <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT?></td>
    <?php
    // minimum order total
        
    if ($cart->show_total() < MIN_ORDER_AMOUNT && $_SESSION['sppc_customer_group_id'] == '1') {
    ?>
          <tr>
            <td class="stockWarning" align="center"><br><?php echo sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT$currencies->format(MIN_ORDER_AMOUNT)); ?></td>
          </tr>
    <?php
        
    }
    ?>
          <tr>
    <?php
          
    }
        }
    // BOF QPBPP for SPPC
    Regards

    Richard

Similar Threads

  1. Minimum order help
    By bkpie in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 10-03-2008, 11:38 AM
  2. Minimum Order Amount
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-19-2008, 03:20 PM
  3. Minimum Order Amount
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 11-01-2007, 07:03 PM
  4. Minimum Order Amount
    By jgkiefer in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 03-05-2004, 09:47 AM
  5. Minimum Order Modification
    By sirasoni in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-15-2003, 08:37 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
  •