osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Minimum order help

This is a discussion on Minimum order help within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I use the minimum order contribution and it works great site wide. What I would like to do though is ...


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
Reply

 

LinkBack Thread Tools
  #1  
Old 11-07-2007, 05:17 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 298
Thanks: 23
Thanked 35 Times in 34 Posts
Rep Power: 6
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Minimum order help

I use the minimum order contribution and it works great site wide. What I would like to do though is just have it work for my wholesale customer group and not my retail customer group. Not being a fluent coder could one of our php wizards here direct me in the right or better yet write direction. It was an easy mod to install but not sure how to just get it to work with one customer group.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 11-07-2007, 07:16 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 470
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: Minimum order help

look at how the pricing selection work (it uses the group information) then set the entire min order contrib in a giant if statement based on the flag...
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to met00 For This Useful Post:
bkpie (11-09-2007)
  #3  
Old 11-09-2007, 10:05 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 298
Thanks: 23
Thanked 35 Times in 34 Posts
Rep Power: 6
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Minimum order help

For anyone else who uses minimum order contribution but wants to use it with sppc the changes are as follows Below assumes I want minimum order only on customer group 1 which is my wholesale customer group change to whatever group you want

Change the text shown in the minimum order contribution where it applys in checkout_confirmation.php, checkout_payment.php, checkout_shipping.php, and checkout_process.php from

// check order total minimum
if ($order->info['subtotal'] < MIN_ORDER_AMOUNT) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
}
to
// check order total minimum Wholesale
if ($order->info['subtotal'] < MIN_ORDER_AMOUNT && $_SESSION['sppc_customer_group_id'] == '1') {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
}

and in shopping_cart.tpl.php change

// minimum order total
if ($cart->show_total() < MIN_ORDER_AMOUNT) {
?>

to

// minimum order total
if ($cart->show_total() < MIN_ORDER_AMOUNT && $_SESSION['sppc_customer_group_id'] == '1') {
?>

If you do not have the minimum order contribution installed you must install first then make these changes. This allows retail buyers to check out with no minimum and wholesale buyers to check out only after reaching minimum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to bkpie For This Useful Post:
qualityonedesigns (11-16-2007)
  #4  
Old 10-03-2008, 11:40 AM
Lurker
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
monad is on a distinguished road
Default Re: Minimum order help

So I set up the modified minimum order contribution to only apply to the Wholesale group as noted above.
This works great, but now my client wants it set up so that, instead there is only a minimum order for wholesale customers the first time they order....
does anyone have an idea on how I can do that? Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 10-03-2008, 12:38 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 298
Thanks: 23
Thanked 35 Times in 34 Posts
Rep Power: 6
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Minimum order help

To do it simply just have your wholesale group 1 then create another group wholesale group 2

Enter the same prices in both groups. Have a minimum on group 1 and once the customer orders go to there account in admin and switch them to group 2 easily which does not have a minimum order.

Otherwise it would entail a bit more coding since you can only set one price in configuration section of your admin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Minimum Order Amount michael_s New osCommerce Contributions 0 09-23-2007 02:25 AM
Minimum Order By Categories michael_s New osCommerce Contributions 0 06-13-2007 05:21 PM
Minimum Order Contrib - Can I use this with ms2 max? sasjamal osCMax v1.7 General Mods Discussion 3 06-25-2006 02:46 PM
Minimum Order Amount jgkiefer osCMax v1.7 Discussion 3 03-05-2004 10:47 AM
Minimum Order Modification sirasoni osCommerce 2.2 Modification Help 0 08-15-2003 09:37 AM


All times are GMT -8. The time now is 08:32 PM.


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