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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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 |
| The Following User Says Thank You to met00 For This Useful Post: | ||
bkpie (11-09-2007) | ||
|
#3
| |||
| |||
| 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. |
| The Following User Says Thank You to bkpie For This Useful Post: | ||
qualityonedesigns (11-16-2007) | ||
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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. |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |