[Skip to main content](#vessel-content)

#   Add percentage of shipping cost to shipping cost

##

- **[megana](/forum/user/47414-megana "View megana's Profile")**
- [![megana's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47414-megana "View megana's Profile") Topic Author
- [ Offline](/forum/user/47414-megana)

Less More

- Posts: 11
- Thank you received: 0
-
-

5 years 3 weeks ago [\#336489](#336489) by [megana](/forum/user/47414-megana "View megana's Profile")  *[Add percentage of shipping cost to shipping cost](/forum/28-shipping-methods/903346-add-percentage-of-shipping-cost-to-shipping-cost#336489 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome 94.0.4606.81  Hi,  I'm trying to add a percentage of the shipping cost to the shipping cost, using the USPS plugin. As far as I can tell, the current percentage and formula fields only take the price of the items in the cart. I'd like to take the USPS generated shipping rate and multiply it by 1.2. Is there an easy way to do this that I'm missing?  Any help would be greatly appreciated.")* was created by *[megana](/forum/user/47414-megana "View megana's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Chrome 94.0.4606.81

Hi,

I'm trying to add a percentage of the shipping cost to the shipping cost, using the USPS plugin. As far as I can tell, the current percentage and formula fields only take the price of the items in the cart. I'd like to take the USPS generated shipping rate and multiply it by 1.2. Is there an easy way to do this that I'm missing?

Any help would be greatly appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAzMzQ2LWFkZC1wZXJjZW50YWdlLW9mLXNoaXBwaW5nLWNvc3QtdG8tc2hpcHBpbmctY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

5 years 2 weeks ago [\#336497](#336497) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add percentage of shipping cost to shipping cost](/forum/28-shipping-methods/903346-add-percentage-of-shipping-cost-to-shipping-cost#336497 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome 94.0.4606.81  Hi,  I'm trying to add a percentage of the shipping cost to the shipping cost, using the USPS plugin. As far as I can tell, the current percentage and formula fields only take the price of the items in the cart. I'd like to take the USPS generated shipping rate and multiply it by 1.2. Is there an easy way to do this that I'm missing?  Any help would be greatly appreciated.")*

Hi,

There is indeed no option to do that. You have the Weight approximation and Dimension approximation settings that you can use to increase the weight/dimensions of the package and thus the shipping price calculated by USPS.
Otherwise, to really do what you want, you would have to add the line: Code:

$usps_rate['Rate'] = $usps_rate['Rate'] * 1.2;

before the line: Code:

if(isset($currency) &amp;&amp; $currency != $rates[$type]-&gt;shipping_currency_id)

in the file plugins/hikashopshipping/usps/usps.php
Note however that you would loose the change after each update of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAzMzQ2LWFkZC1wZXJjZW50YWdlLW9mLXNoaXBwaW5nLWNvc3QtdG8tc2hpcHBpbmctY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.044 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
