Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basic Templates and Minium Order


jgkiefer

Recommended Posts

I need help - :o

I am using BTS and want to use the minium order mod. I installed the minium order mod and set a minium amount. Everything works except that the reason is not being displayed.

 

I inserted this code into the shopping_cart.tpl.php instead of shopping_cart.php:

In shopping_cart.php, around line 162 should be:
<?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
// minimum order total
   if ($order->info['subtotal'] <= MIN_ORDER_AMOUNT) {
?>
     <tr>
       <td class="stockWarning" align="center"><br><?php echo TEXT_ORDER_UNDER_MIN_AMOUNT; ?></td>
     </tr>
<?php
   }
?>
     <tr>

Anyone know how I can get this to work?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...