Zen Cart Logo

UPS Shipping Markup?

Locked

Views: 4,065

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Mar 2009, 7:36 PM
#1
rocketfoot avatar

rocketfoot

New Zenner

Join Date:
Mar 2009
Posts:
64
Plugin Contributions:
0

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?

27 Mar 2009, 10:39 AM
#2
rocketfoot avatar

rocketfoot

New Zenner

Join Date:
Mar 2009
Posts:
64
Plugin Contributions:
0

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.

31 Mar 2009, 4:04 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS Shipping Markup?

I did not test this but you should be able to customize the ups.php shipping module with:

// 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 );
31 Mar 2009, 5:33 PM
#4
r2i2009 avatar

r2i2009

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Re: UPS Shipping Markup?

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

2 Apr 2009, 7:37 PM
#5
thegoodlifestore avatar

thegoodlifestore

New Zenner

Join Date:
Oct 2007
Location:
North Carolina
Posts:
102
Plugin Contributions:
0

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:

$percentage_added = $order_total_amount * .20;

with

$percentage_added = $cost * .20;

SO ...

I USED THIS 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:

// 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!

12 Apr 2009, 5:46 AM
#6
norcalbrg avatar

norcalbrg

New Zenner

Join Date:
Mar 2009
Posts:
1
Plugin Contributions:
0

Re: UPS Shipping Markup?

would these work with the USPS module as well?

12 Apr 2009, 2:58 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS Shipping Markup?

It is the same concept ... :smile: