Results 1 to 7 of 7
  1. #1

    Default UPS Shipping Markup?

    Is there anyway to markup ups shipping? Say the actual customer shipping cost is $10.00 we like to add 20% on top of that to cover handling and shipping materials. I don't see a place to add a percentage markup...so how to do without customer seeing the markup?

  2. #2

    Default Re: UPS Shipping Markup?

    Ugggh, still trying to figure a way to add markup to shipping UPS charges...there has to be a way to do this? I see the UPS handling fee box in the settings, but It seems to add a flat fee to each transaction. I need to ad a percentage variable on the shipping cost.

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

    Default Re: UPS Shipping Markup?

    I did not test this but you should be able to customize the ups.php shipping module with:
    Code:
    // calculate order total less free shipping
        $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
        $percentage_added = $order_total_amount * .20;
    
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => (($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes) + $percentage_added );
    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: v1.5.5]
    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

    Default Re: UPS Shipping Markup?

    Linda's solution look right... we did something similar for a separate isssue.

  5. #5
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default Re: UPS Shipping Markup?

    This is just what I was needing as well!!!

    After playing around with it for a bit I got it to work!

    I did replace:
    Code:
    $percentage_added = $order_total_amount * .20;
    with
    Code:
    $percentage_added = $cost * .20;

    SO ...

    I USED THIS CODE:
    Code:
    // calculate order total less free shipping
        $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
        $percentage_added = $cost * .20;
    
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => (($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes) + $percentage_added );
    TO REPLACE THIS CODE:
    Code:
    // EOF: UPS USPS
    	$methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
    in includes/modules/shipping/ups.php.

    Seems to be working great!

  6. #6
    Join Date
    Mar 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: UPS Shipping Markup?

    would these work with the USPS module as well?

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

    Default Re: UPS Shipping Markup?

    It is the same concept ...
    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: v1.5.5]
    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. v151 UPS Shipping module - Tweak to show UPS Freight LTL
    By pexter in forum Addon Shipping Modules
    Replies: 0
    Last Post: 13 Jun 2013, 09:37 PM
  2. UPS Shipping - not working (UPS-XML addon)
    By breck in forum Addon Shipping Modules
    Replies: 30
    Last Post: 20 Aug 2010, 03:24 AM
  3. UPS We are unable to obtain a rate quote for UPS shipping.
    By spikeycactus in forum General Questions
    Replies: 17
    Last Post: 27 Oct 2008, 04:59 PM
  4. UPS Shipping Module - UPS Pickup Method
    By inovermyhead in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 4 Jun 2008, 01:49 PM
  5. Markup One Shipping Type?
    By RWerksman in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Oct 2007, 04:00 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR