Marking up shipping prices in the USPS module

Posts: 95
Joined: 08/07/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Spreading the word - Ubercart for president.

This is G o o g l e's cache of http://www.ubercart.org/forum/support/1634/marking_shipping_prices_usps_... as retrieved on Aug 1, 2007 23:08:58 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:HZtEm4ZbLqQJ:www.ubercart.org/forum...

Google is neither affiliated with the authors of this page nor responsible for its content.
These search terms have been highlighted: 08 01 2007
Ubercart

* Home
* Documentation
* Forums
* Issues
* Livetest

Home » Forums » Ubercart » Support
Marking up shipping prices in the USPS module
Submitted by mizru on Wed, 08/01/2007 - 09:55
mizru
Posts: 13
Joined: 07/18/2007
Uber Donor

My boss asked that we add a $2 "processing fee" to all the shipping quotes, something that the credit card company is charging us.

I've already added it to the flat rate quotes, but how do I go about marking up the USPS quotes?

* Add new comment

permalinkWed, 08/01/2007 - 12:34
Lyle

Posts: 567
Joined: 09/26/2006
AdministratoreLiTe!

I think I deleted the form element from the admin settings accidentally. Oops. It'll be back in the bazaar version shortly.

* reply

permalinkWed, 08/01/2007 - 13:52
mizru
Posts: 13
Joined: 07/18/2007
Uber Donor

Just out of curiosity, which are the lines to put in / comment out to enable to markup admin settings?

* reply

permalinkWed, 08/01/2007 - 14:30
Lyle

Posts: 567
Joined: 09/26/2006
AdministratoreLiTe!

Oh, yes, that would be helpful, wouldn't it?

In uc_usps_admin_settings(), add:

<?php
  $form
['uc_usps_markup'] = array('#type' => 'textfield',
   
'#title' => t('Shipping Rate Markup'),
   
'#default_value' => variable_get('uc_usps_markup', '0%'),
   
'#description' => t('Markup shipping rate quote by dollar amount, percentage, or multiplier.'),
  );
?>

* reply

--