osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-26-2005, 11:43 AM
Lurker
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
doricanchef
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-26-2005, 08:25 PM
Member
 
Join Date: Sep 2004
Location: Langhorne, PA
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
AnnieChrist
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-26-2005, 08:32 PM
Lurker
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
doricanchef
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-26-2005, 08:46 PM
Member
 
Join Date: Sep 2004
Location: Langhorne, PA
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
AnnieChrist
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 09-26-2005, 09:25 PM
Lurker
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
doricanchef
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 09-27-2005, 05:13 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 09-27-2005, 05:55 AM
Lurker
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
doricanchef
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-01-2006, 09:16 AM
Cisco's Avatar
Member
 
Join Date: Feb 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cisco
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax