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

#   Shipping price is lost if another payment method or pickup point is selected

##

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

Less More

- Posts: 88
- Thank you received: 20
-
-

9 years 10 months ago [\#258685](#258685) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  *[Shipping price is lost if another payment method or pickup point is selected](/forum/28-shipping-methods/888126-shipping-price-is-lost-if-another-payment-method-or-pickup-point-is-selected#258685 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi  I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.  My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total. the table td with class hikashop&#95;cart&#95;shipping&#95;value is empty (see attached).  If I update item total or deletes an item from the cart, then shipping total is added again.  Do you have any idea, what could be the issue?")* was created by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6

Hi

I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.

My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total.
the table td with class hikashop_cart_shipping_value is empty (see attached).

If I update item total or deletes an item from the cart, then shipping total is added again.

Do you have any idea, what could be the issue?

- [ ![Skrmbillede2017-01-02kl.12.04.50.png](/forum/attachment/35382) ](/forum/attachment/35382 "...l.12.04.50.png") [ ](/forum/attachment/35382?download=1 "...l.12.04.50.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg4MTI2LXNoaXBwaW5nLXByaWNlLWlzLWxvc3QtaWYtYW5vdGhlci1wYXltZW50LW1ldGhvZC1vci1waWNrdXAtcG9pbnQtaXMtc2VsZWN0ZWQ/dG1wbD1tYXJrZG93bg==) 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
-
-
-

9 years 10 months ago [\#258688](#258688) 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 *[Shipping price is lost if another payment method or pickup point is selected](/forum/28-shipping-methods/888126-shipping-price-is-lost-if-another-payment-method-or-pickup-point-is-selected#258688 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi  I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.  My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total. the table td with class hikashop&#95;cart&#95;shipping&#95;value is empty (see attached).  If I update item total or deletes an item from the cart, then shipping total is added again.  Do you have any idea, what could be the issue?")*

Hello,

Firstly, does it work worrectly if you set the "Auto submit shipping and payment methods selection" option to YES through the page "Hikashop-&gt;System-&gt;Configuration-&gt;Checkout" ?

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

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

Less More

- Posts: 88
- Thank you received: 20
-
-

9 years 9 months ago [\#259595](#259595) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Shipping price is lost if another payment method or pickup point is selected](/forum/28-shipping-methods/888126-shipping-price-is-lost-if-another-payment-method-or-pickup-point-is-selected#259595 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi  I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.  My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total. the table td with class hikashop&#95;cart&#95;shipping&#95;value is empty (see attached).  If I update item total or deletes an item from the cart, then shipping total is added again.  Do you have any idea, what could be the issue?")*

Sorry for the late reply. Auto submit shipping and payment methods selection is already set to yes, so that is not the issue...

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

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

Less More

- Posts: 88
- Thank you received: 20
-
-

9 years 9 months ago [\#259598](#259598) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Shipping price is lost if another payment method or pickup point is selected](/forum/28-shipping-methods/888126-shipping-price-is-lost-if-another-payment-method-or-pickup-point-is-selected#259598 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi  I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.  My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total. the table td with class hikashop&#95;cart&#95;shipping&#95;value is empty (see attached).  If I update item total or deletes an item from the cart, then shipping total is added again.  Do you have any idea, what could be the issue?")*

Debugged some more - if I use a manual shipping plugin, then I don't see the issue. But if I activate a GLS shipping plugin that I've developed instead, then the issue is present. So the issue seems to be related to the shipping plugin somehow.

Any ideas?

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

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

Less More

- Posts: 88
- Thank you received: 20
-
-

9 years 9 months ago [\#259600](#259600) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Shipping price is lost if another payment method or pickup point is selected](/forum/28-shipping-methods/888126-shipping-price-is-lost-if-another-payment-method-or-pickup-point-is-selected#259600 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi  I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.  My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total. the table td with class hikashop&#95;cart&#95;shipping&#95;value is empty (see attached).  If I update item total or deletes an item from the cart, then shipping total is added again.  Do you have any idea, what could be the issue?")*

Ok, seems I found the issue...

unset($usable_methods[$key]);

in my onShippingDisplay - removed it, and everything seems fine now ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg4MTI2LXNoaXBwaW5nLXByaWNlLWlzLWxvc3QtaWYtYW5vdGhlci1wYXltZW50LW1ldGhvZC1vci1waWNrdXAtcG9pbnQtaXMtc2VsZWN0ZWQ/dG1wbD1tYXJrZG93bg==) 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
-
-
-

9 years 9 months ago -  9 years 9 months ago [\#259609](#259609) 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 *[Shipping price is lost if another payment method or pickup point is selected](/forum/28-shipping-methods/888126-shipping-price-is-lost-if-another-payment-method-or-pickup-point-is-selected#259609 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi  I have created a custom shipping plugin for a customer of mine who is a hikashop enterprise user. The shipping plugin lists parcel pickup shops that the user can select.  My problem is, if I select another pickup point or select another payment method, then hikashop no longer adds the shipping price to the total. the table td with class hikashop&#95;cart&#95;shipping&#95;value is empty (see attached).  If I update item total or deletes an item from the cart, then shipping total is added again.  Do you have any idea, what could be the issue?")*

Hello,

Thank you for your feedback !

For more information, the "unset'($usable_methods[$key]" is only used to unset shipping services that are disabled by the owner of the shop through the configuration page of that shipping method, here is an example of how we do it through the UPS shipping plugin : Code:

//Comparing method received by UPS and allowed method foreach($warehouse-&gt;methods as $i =&gt; $method){ if(!in_array($method['code'], $rate-&gt;shipping_params-&gt;methods)){ unset($usableWarehouses[$k]-&gt;methods[$i]); } }

Last edit: 9 years 9 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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