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

#   discount also influences the delivery value?

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 1 month ago [\#214981](#214981) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#214981 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")* was created by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")*

-- HikaShop version -- : 2.5.0

Hi,

First I loved this exelente tool that you guys have provided .

One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product ,
the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 1 month ago [\#214988](#214988) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#214988 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

Hello,

> One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product ,

Can you give us more information on the way you are applying your discount ?
Thank you.

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

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 1 month ago [\#215132](#215132) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  Replied by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215132 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

Yes , I am sending attached a screenshot.
Use the percentage option to apply the discount should apply to all products from the site , if the customer choose this method of payment.

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

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#215167](#215167) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215167 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

Hi,

Well, using the payment fee as a discount is already border line, so there is no mechanism to have it apply to only the products and not the shipping fee.
The only solution would be to customize the code: Code:

$methods[$k]-&gt;payment_price = $currencyClass-&gt;round(($price_all * (float)@$method-&gt;payment_params-&gt;payment_percentage / 100) + @$method-&gt;payment_price,$currencyClass-&gt;getRounding($currency,true));

in the file administrator/components/com_hikashop/classes/payment.php in order to calculate differently the payment fee. But you'll need the help of a developer in order to do that.

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

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 1 month ago [\#215242](#215242) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  Replied by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215242 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

hi , thanks for the reply , I found that the line of code which you reported:
Code:

$methods[$k]-&gt;payment_price = ($price_all* (float)@$method-&gt;payment_params-&gt;payment_percentage / 100) + @$method-&gt;payment_price ;

What I'm trying to do only need recall the value of sending and add it on that account , but unfortunately I can not find it , if that's possible someone could send me ?

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#215268](#215268) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215268 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

Hi,

Do a var_dump() of the variable $order. One of the sub attributes of that object should contain the value you're looking for. If you're a developer, it shouldn't be a problem.

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

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 1 month ago [\#215361](#215361) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  Replied by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215361 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

hi ,
Unfortunately I am not a developer , I have some knowledge of PHP, but i could do with it was correctly calculated the discount amount , modified the line as follows :
Code:

$methods[$k]-&gt;payment_price = (@$order-&gt;full_total-&gt;prices[0]-&gt;price_value_without_shipping_with_tax* (float)@$method-&gt;payment_params-&gt;payment_percentage / 100) + @$method-&gt;payment_price

But what to modify the value that will appear in the email and at the end of the purchase, because in these places still show the wrong value , which I file to modify to achieve the desired result in these steps?

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#215374](#215374) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215374 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

Hi,

You'll find a similar line to calculate the percentage fee in the same file.
Make sure that you change them all and that should help.
You can search for "payment_params-&gt;payment_percentage" in that file in order to find them.

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

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 4 weeks ago [\#215568](#215568) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  Replied by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")* on topic *[discount also influences the delivery value?](/forum/29-payment-methods/879417-discount-also-influences-the-delivery-value#215568 "-- HikaShop version -- : 2.5.0  Hi,  First I loved this exelente tool that you guys have provided .  One of the payment methods (Bank transfer) in my website has a discount of 10 % on the value of the product , the problem is that it also calculates the discount upon the delivery value , how can I solve this problem ?")*

HI , apparently my version of hikashop was outdated , with the latest(2.6.0) got the desired result , thank Nicolas for the explanation , the file will be attached next to this post if someone wanted.

It would be interesting to have this option without being necessary to modify the source code , perhaps in the future.

Thanks again .

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

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

[](#top)
