Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Shipping Add On Cost

    Here's the situation,

    I have some products that I have on hand and other items that I use from a drop shipper.

    My drop shipper bases their shipping this way:

    Carrier Charge(USPS) x 1.2 + $1.00 = Shipping Charge For example, $4.80(USPS) x 1.2 + $1.00 = shipping charges of $6.76

    Is it possible for me to multiple the shipping cost this way and add on the $1.00

    Or would I be better off doing a flat rate total order percentage to cover the extra expense?

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

    Default Re: Shipping Add On Cost

    Do you want to do this for ALL Products in the Order?

    If so, then it would not be a difficult customization ...

    However, if you try to separate the Products based on who gets the extra charges and who does not, then it will get very complicated ...
    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
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Shipping Add On Cost

    It would be on every product

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

    Default Re: Shipping Add On Cost

    Then this would make it a simple processes of customizing the file:
    /includes/modules/shipping/usps.php

    and increasing the cost received from the USPS server in the quote function ...

    For the Handling of $1.00, you can set that on the USPS shipping module itself in your Zen Cart Admin when you edit the settings for the module ...
    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!

  5. #5
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Shipping Add On Cost

    I'm looking through the file and can't see what needs to be changed, what is the quote area that needs to be changed, the only thing I saw was for a quote and a -1

    what would I need to change and to what?

    Thank you for your help

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

    Default Re: Shipping Add On Cost

    In the function quote, you will see this line:
    Code:
              $cost = preg_replace('/[^0-9.]/', '',  $cost);
    That is converting the $cost to a value ...

    Beneath that, before the array is build for the $methods, you can add additional code to raise this price so that it is now 1.2 times the cost received from USPS ...

    Something like:
    Code:
    $cost = $cost * 1.2;
    would raise ALL quotes from USPS by 20% ...
    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!

  7. #7
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Shipping Add On Cost

    thank you that did it :)

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

    Default Re: Shipping Add On Cost

    Thanks for the update that this was able to work for you ...
    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!

 

 

Similar Threads

  1. Add shipping cost to Cart sub total
    By joecooper in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Aug 2011, 12:50 PM
  2. How do I add a shipping cost to my products?
    By bparker in forum General Questions
    Replies: 1
    Last Post: 3 Jun 2010, 10:10 PM
  3. Manually Add Shipping Cost on Phone Orders??
    By dlc7592 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Aug 2008, 01:22 AM
  4. Add Additional Shipping Cost to Only One Item
    By gocujo in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 8 Jan 2008, 09:04 PM
  5. Add shipping cost after order received
    By kyates in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Aug 2007, 08:21 PM

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