Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    8
    Plugin Contributions
    0

    Default need help about restrict shipping method by $cartShowTotal

    hello all, i need help on how to set up different shipping method base on shopping-cart sub-total.

    For example, i like ship by USPS if the sub-total value is less than Us$100, if the sub-total is higher than US$100, it will show one message say you will need to select UPS method.

    When i try

    if ($cartShowTotal>100) {
    $error = true;
    }

    nothing happen, it seems $cartShowTotal can not be regonized.

    Really appreciate for your concern. thanks.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: need help about restrict shipping method by $cartShowTotal

    That isn't a variable in Zen Cart except on the shopping__cart page so its value is 0 in the checkout_shipping ...

    Wouldn't it be better to customize the shipping modules themselves to only display based on price rather than have the customer have to think?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: need help about restrict shipping method by $cartShowTotal

    Thanks Ajeh for your tips and advice, it is really better and easier.

    What i though is shipping method shown bases on shopping cart price, if higher, then unselectable and only show one message.

    After two days trace, $_SESSION['cart']->show_total() looks like the one what i am looking for.

 

 

Similar Threads

  1. Need to set default shipping method to FedExGround
    By rgshearer in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 14 Apr 2011, 04:15 PM
  2. How to restrict payment method by category?
    By GLV in forum Setting Up Categories, Products, Attributes
    Replies: 17
    Last Post: 14 Jan 2008, 07:21 PM
  3. I need a customized shipping method.
    By frankiepol in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Oct 2007, 05:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg