Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2010
    Posts
    16
    Plugin Contributions
    0

    Default Adding extra amount to flat shipping base on pincode

    I want to add extra amount to flat rate shipping based on buyer's pincode.I stored extra amount in session.But when i tried to add that amount in flat.php,its not working.
    PHP Code:
    $this->quotes = array('id' => $this->code,
                                
    'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
                                
    'methods' => array(array('id' => $this->code,
                                                         
    'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
                                                         
    'cost' => MODULE_SHIPPING_FLAT_COST +$_SESSION['postage_fee'] ))); 

  2. #2
    Join Date
    Jun 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: Adding extra amount to flat shipping based on pincode

    Any ideas??

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

    Default Re: Adding extra amount to flat shipping base on pincode

    If you add above that code:
    Code:
    echo 'Postage Fee: ' . $_SESSION['postage_fee'] . '<br>';
    what value do you see?

    Are you sure that the:
    $_SESSION['postage_fee']

    is being set properly? Is it a number, like 1.25 or characters like $1.25 ...
    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!

  4. #4
    Join Date
    Jun 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: Adding extra amount to flat shipping base on pincode

    It has $ sign with number.

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

    Default Re: Adding extra amount to flat shipping base on pincode

    The number sign makes it characters or a word and a word is worth $0.00 ...

    Change it to a number only with not characters or commas etc.
    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!

  6. #6
    Join Date
    Jun 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: Adding extra amount to flat shipping base on pincode

    Thanks fixed

 

 

Similar Threads

  1. Flat fee shipping (individually assigned) AND a lesser shipping amount for subsequent
    By dawnmartinello in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 4 Apr 2011, 10:38 PM
  2. How to change shipping amount from base currency?
    By EnviroBoy in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 29 May 2009, 06:20 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