Zen Cart Logo
Forums / All Other Contributions/Addons / Bug in 1.3+ "Minimum Order Mod" ?

Bug in 1.3+ "Minimum Order Mod" ?

Locked

Views: 2,332

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 May 2006, 12:20 AM
#1
jaxmac avatar

jaxmac

New Zenner

Join Date:
Feb 2006
Posts:
64
Plugin Contributions:
0

Bug in 1.3+ "Minimum Order Mod" ?

Hi Masterblaster,

The PM system doesn't work at the new Zencart forum. I don't know how to reach you.

I think I found a bug in the minimum order mod. I'm using the latest minimum order mod on my 1.3.0 zen cart.

I have only 2 payment modules installed, Authorize.net AIM and Paypal. When I set a minimum order amount, I do not get an order confirmation page (the page that gives the order number and that appears after the sale) with either Paypal or Authorize.net credit card. When I turn the minimum order to zero or blank, I get order confirmation pages for both Paypal and Authorize.Net AIM sales.

Is there a fix? Thanks!

10 May 2006, 12:22 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Bug in 1.3+ "Minimum Order Mod" ?

PMs have to be turned on in the USER CP

edit options

16 May 2006, 1:22 PM
#3
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Bug in 1.3+ "Minimum Order Mod" ?

I spoke to masterblaster about this yesterday, you need to replace all the code in this file includes/modules/minorderamount.php

with the following code

<?php
// BOF MIN ORDER AMOUNT
// check order total minimum
if(substr($_GET['main_page'], 0, 8) == 'checkout' && substr($_GET['main_page'], 0, 16) != 'checkout_success')  {
  if ($_SESSION['cart']->total < MIN_ORDER_AMOUNT) {
    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
  }
}

?>

Works brilliantly, and what a great mod, still amazed this isn't included in the 1.3x version of ZC.

30 May 2006, 10:11 PM
#4
masterblaster avatar

masterblaster

Totally Zenned

Join Date:
Aug 2004
Location:
Germany
Posts:
528
Plugin Contributions:
0

Re: Bug in 1.3+ "Minimum Order Mod" ?

I have my PMs turned on... Wondering why you couldn't contact me. The update posted by Pauls is the current final version.

31 Jul 2006, 6:44 PM
#5
lichen avatar

lichen

New Zenner

Join Date:
Jul 2006
Posts:
4
Plugin Contributions:
0

Re: Bug in 1.3+ "Minimum Order Mod" ?

Hello,

Forgive me if this is the wrong place to post. I have searched the forums and the downloads section, and cannot seem to locate a minimum orders contribution.

Where can I find this contribution?

Thank you,
lichen

9 Aug 2006, 12:37 PM
#6
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Bug in 1.3+ "Minimum Order Mod" ?

Hi Lichen,
I think this is normally available from MasterBlasters website, however at the moment the part of his site containing the module will be down for a few days, I will attach and send you the file privately.