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

#   Shipping calculation with multiple item discount and credit charge

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

5 years 6 months ago [\#332123](#332123) by [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")  *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332123 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")* was created by *[themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.4.16

I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.

For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be:
$3.00 + ($10.00 x 3%) = $3.30

If a customer orders 5 hats, the charge would be:
(($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00

Is this possible??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvOTAyNDc2LXNoaXBwaW5nLWNhbGN1bGF0aW9uLXdpdGgtbXVsdGlwbGUtaXRlbS1kaXNjb3VudC1hbmQtY3JlZGl0LWNoYXJnZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

5 years 6 months ago [\#332126](#332126) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332126 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")*

Hi,

In your example it seems that the 10% shipping discount is only on the "shipping prices per product" and not the "3% charge to cover credit card transaction fees".
So I think it makes more sense to separate both parts and actually add the 3% fee in the "percentage" setting of your payment methods. That way, it will appear as a "payment fee" and the discount on shipping won't be on it.
Then, for the discount on the shipping, I would recommend you to do it with a coupon code. You could configure it to be auto loaded in the cart with a "minimum number of products" of 2 and a "shipping percentage" of 10%
That way the coupon will be automatically added to the cart above 2 products in the cart and its value will be 10% of the calculated shipping fee (which will be based on the shipping prices per products).
However, the fees will be split into 3 parts: the shipping fee, the coupon discount of 10% of the shipping fees, and the payment fees of 3%. Note also that the payment fees will be based off the total amount, not the subtotal amount ( note that the payment fees of your payment gateway are also based on that amount, not the subtotal so I think it's better that way).

The following user(s) said Thank You: [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

5 years 6 months ago [\#332172](#332172) by [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")  Replied by *[themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")* on topic *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332172 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")*

Thank you for the help!!

Do you mean that the customer will see all three charges listed separately? If so, is there a way to combine these charges so that the customer only sees one charge, like "Shipping, Handling, Fees"?

Thanks!!

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

5 years 6 months ago [\#332188](#332188) by [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")  Replied by *[themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")* on topic *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332188 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")*

I made the changes and they work perfectly! Is there a way to combine the three amounts into one line, showing "Shipping &amp; Handling" for the customer to see? (Image attached)

If not, how can I change the verbiage and order of how the lines show in the cart? I'd like it to be:
Shipping
Shipping Discount
Handling Fee

Thanks!!

- [ ![cart.jpg](/forum/attachment/52599) ](/forum/attachment/52599 "cart.jpg") [ ](/forum/attachment/52599?download=1 "cart.jpg")

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

5 years 6 months ago [\#332191](#332191) by [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")  Replied by *[themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")* on topic *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332191 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")*

Well, I wasn't able to combine them, but I found the following section in show_block_cart:
Code:

&lt;?php } if(!empty($this-&gt;options['show_price']) &amp;&amp; !empty($cart-&gt;coupon) &amp;&amp; !empty($this-&gt;options['show_coupon'])) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count - 2; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title"&gt;&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_coupon_value" data-title="&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_coupon"&gt;&lt;?php if(empty($this-&gt;options['price_with_tax'])) echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;coupon-&gt;discount_value_without_tax * -1, @$cart-&gt;coupon-&gt;discount_currency_id); else echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;coupon-&gt;discount_value * -1, @$cart-&gt;coupon-&gt;discount_currency_id); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

which I moved below the shipping section it proceeded. Worked!!

I also overwrote the HIKASHOP_COUPON and HIKASHOP_CHECKOUT_COUPON constants in my language overrides.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvOTAyNDc2LXNoaXBwaW5nLWNhbGN1bGF0aW9uLXdpdGgtbXVsdGlwbGUtaXRlbS1kaXNjb3VudC1hbmQtY3JlZGl0LWNoYXJnZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

5 years 6 months ago [\#332177](#332177) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332177 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")*

Hi,

If you only want one fee and not three separate that's not possible without developing a custom shipping plugin to manually calculate the amount of the fee like you want.

The following user(s) said Thank You: [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

5 years 6 months ago [\#332207](#332207) by [themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")  Replied by *[themagicbag](/forum/user/60606-themagicbag "View themagicbag's Profile")* on topic *[Shipping calculation with multiple item discount and credit charge](/forum/28-shipping-methods/902476-shipping-calculation-with-multiple-item-discount-and-credit-charge#332207 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.4.16  I am using the Manual Shipping plugin and shipping prices per product, which are entered for each product in the store. I would like to include a 10% discount on shipping when customers order more than one product. I would also like to add in a 3% charge (based on the total product cost in the order) to cover credit card transaction fees.  For example, I have a hat that costs $10.00 and the shipping is $3.00 per hat. If the customer orders one hat, I would like the shipping cost to be: $3.00 + ($10.00 x 3%) = $3.30  If a customer orders 5 hats, the charge would be: (($3.00 x 5) x 0.90) + ($10.00 x 5 x 3%) = $15.00  Is this possible??")*

Hello!

I think I'm good with just rearranging and renaming items. I appreciate the help very much!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvOTAyNDc2LXNoaXBwaW5nLWNhbGN1bGF0aW9uLXdpdGgtbXVsdGlwbGUtaXRlbS1kaXNjb3VudC1hbmQtY3JlZGl0LWNoYXJnZT90bXBsPW1hcmtkb3du) 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.085 seconds

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