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

#   Shipping method with dropdown selection?

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 9 months ago [\#261660](#261660) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Shipping method with dropdown selection?](/forum/28-shipping-methods/884934-shipping-method-with-dropdown-selection?start=20#261660 "Hi,  I have looked to shipping plugins and couldn't find anything what I need. In our country we have very popular shipping method via terminals...and a lot buyers are asking for it. So I need shipping method where should be dropdown list with addresses/terminals selection. I should see this selection in back-end after order created as well. How can I achieve this?  Thanks")*

Hi,

What would be solution for new hikashop checkout?

This doesn't work anymore.

$app = JFactory::getApplication();
$shipping_id = reset($app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping_id'));
if($shipping_id == 'XXX@0') continue;

Thanks

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 9 months ago [\#261691](#261691) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[Shipping method with dropdown selection?](/forum/28-shipping-methods/884934-shipping-method-with-dropdown-selection?start=20#261691 "Hi,  I have looked to shipping plugins and couldn't find anything what I need. In our country we have very popular shipping method via terminals...and a lot buyers are asking for it. So I need shipping method where should be dropdown list with addresses/terminals selection. I should see this selection in back-end after order created as well. How can I achieve this?  Thanks")*

Hi,
I have similar question so I would like to join this topic.
We are currently testing new shipping plugin for terminals (our partner is [ www.depo.sk](http://www.depo.sk)). They provided the plugin, but this is the first installation ([ www.montemama.eu](http://www.montemama.eu)).
If customer selects this type of shipping, clicks on DEPO option but also need to choose from list of terminals. But if the terminal is not selected, checkout process continues without warning message. Developers of the plugins replied that they do not know how to require the selection from the dropdown list and asked us to contact Hikashop support.
On the other hand, when customer selects directly from the dropdown and doesn´t click on DEPO option, there is an error message and it is not very clear what to do. Is it possible to use some radio buttons or something more visually clear for selection shipping method? Now it only changes color of background under the name of shipping method.
Another question - is it possible to show the selected DEPO terminal in order confimation?
Could you, please, advice? Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg0OTM0LXNoaXBwaW5nLW1ldGhvZC13aXRoLWRyb3Bkb3duLXNlbGVjdGlvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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: 86556
- Thank you received: 14304
-
-

9 years 9 months ago [\#261683](#261683) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping method with dropdown selection?](/forum/28-shipping-methods/884934-shipping-method-with-dropdown-selection?start=20#261683 "Hi,  I have looked to shipping plugins and couldn't find anything what I need. In our country we have very popular shipping method via terminals...and a lot buyers are asking for it. So I need shipping method where should be dropdown list with addresses/terminals selection. I should see this selection in back-end after order created as well. How can I achieve this?  Thanks")*

Hi,

Something like that: Code:

&lt;?php $checkoutHelper = hikashop_get('helper.checkout'); $cart = $checkoutHelper-&gt;getCart(); $shipping_id = reset($cart-&gt;cart_shipping_ids); if($shipping_id == 'XXX@0') continue; ?&gt;

Note however that you need to do such modification in the show_block_shipping view file for the new checkout.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 9 months ago -  9 years 9 months ago [\#261800](#261800) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Shipping method with dropdown selection?](/forum/28-shipping-methods/884934-shipping-method-with-dropdown-selection?start=20#261800 "Hi,  I have looked to shipping plugins and couldn't find anything what I need. In our country we have very popular shipping method via terminals...and a lot buyers are asking for it. So I need shipping method where should be dropdown list with addresses/terminals selection. I should see this selection in back-end after order created as well. How can I achieve this?  Thanks")*

Hi,

Thank you for looking into this Nicolas.
I think you have misunderstood my question or asked it wrong.

I have manual shipping method with id 15. It is terminal shipping method.
When it is selected i need to show custom field with dropdown selection.
It was working fine with that code and with old checkout.

However with new checkout it doesnt work properly. When i come at first to checkout step where are shipping methods on choosing shipping method with id 15 fields view won't showp up and i need to refresh page then all working fine. It shows or hides based on shipping method selected.

I have this code in show block fields:
Code:

$cart = $this-&gt;checkoutHelper-&gt;getCart(); $shipping_id = reset($cart-&gt;cart_shipping_ids); if($shipping_id == '8@0') continue; if($shipping_id == '12@0') continue;

And to register wit ajax i have this:
Code:

window.Oby.registerAjax(['checkout.fields.updated','cart.updated','checkout.shipping.updated'], function(params){

More about it you can read this topic where Jerome was helpful until some point... [ www.hikashop.com/forum/hikashop-3-0-beta...stions.html?start=40](https://www.hikashop.com/forum/hikashop-3-0-beta/887933-hikashop-3-beta-questions.html?start=40)

Thanks

Last edit: 9 years 9 months ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg0OTM0LXNoaXBwaW5nLW1ldGhvZC13aXRoLWRyb3Bkb3duLXNlbGVjdGlvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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: 86556
- Thank you received: 14304
-
-

9 years 9 months ago [\#261819](#261819) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping method with dropdown selection?](/forum/28-shipping-methods/884934-shipping-method-with-dropdown-selection?start=20#261819 "Hi,  I have looked to shipping plugins and couldn't find anything what I need. In our country we have very popular shipping method via terminals...and a lot buyers are asking for it. So I need shipping method where should be dropdown list with addresses/terminals selection. I should see this selection in back-end after order created as well. How can I achieve this?  Thanks")*

Hi,

Then in your "show_block_shipping view file, change the code:
window.checkout.shippingSelected(this);
to:
this.form.submit();
And that should work like before (several places).

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 9 months ago [\#261929](#261929) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Shipping method with dropdown selection?](/forum/28-shipping-methods/884934-shipping-method-with-dropdown-selection?start=20#261929 "Hi,  I have looked to shipping plugins and couldn't find anything what I need. In our country we have very popular shipping method via terminals...and a lot buyers are asking for it. So I need shipping method where should be dropdown list with addresses/terminals selection. I should see this selection in back-end after order created as well. How can I achieve this?  Thanks")*

Hi,

Thank you, it does work. However i lose ajax with this...

I will stick with this solution until i find how to get it to work properly with ajax.

Kind Regards

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

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