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

#   show option collect on delivery even if the adress is not in the accepted zones

##

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

Less More

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

10 years 1 week ago [\#252657](#252657) by [mixes](/forum/user/32406-mixes "View mixes's Profile")  *[show option collect on delivery even if the adress is not in the accepted zones](/forum/29-payment-methods/886958-show-option-collect-on-delivery-even-if-the-adress-is-not-in-the-accepted-zones#252657 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : chrome 53.0.2785.143 (64-bit)  Dear support, we have set up the collect on delivery plugin for only one of the shipping zones available, now we would like to show this option available even if the user hasnt yet set up and addres so they will see the option, then if the address is out of the zone then hidde the collect on deivery option or even better show message that is not available in the zone address selected  we understand that the behaviour is logical but the user cant see available method until has entered and address  many thanks mixes")* was created by *[mixes](/forum/user/32406-mixes "View mixes's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.20
-- Browser(s) name and version -- : chrome 53.0.2785.143 (64-bit)

Dear support, we have set up the collect on delivery plugin for only one of the shipping zones available, now we would like to show this option available even if the user hasnt yet set up and addres so they will see the option, then if the address is out of the zone then hidde the collect on deivery option or even better show message that is not available in the zone address selected

we understand that the behaviour is logical but the user cant see available method until has entered and address

many thanks
mixes

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

10 years 1 week ago [\#252660](#252660) 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 *[show option collect on delivery even if the adress is not in the accepted zones](/forum/29-payment-methods/886958-show-option-collect-on-delivery-even-if-the-adress-is-not-in-the-accepted-zones#252660 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : chrome 53.0.2785.143 (64-bit)  Dear support, we have set up the collect on delivery plugin for only one of the shipping zones available, now we would like to show this option available even if the user hasnt yet set up and addres so they will see the option, then if the address is out of the zone then hidde the collect on deivery option or even better show message that is not available in the zone address selected  we understand that the behaviour is logical but the user cant see available method until has entered and address  many thanks mixes")*

Hello mixes,

To restrict a payment method based on your customer billing address using the "Zone" option will do the job.

However, if you want a "zone restricted" payment method to be displayed when your customer didn't entered an address, you'll have to directly edit the code of the payment plugin, and correctly handle the case when your customer have selected the Collect on delivery and have also entered an address outside of the "payment restricted zone".

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

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

Less More

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

10 years 1 week ago [\#252726](#252726) by [mixes](/forum/user/32406-mixes "View mixes's Profile")  Replied by *[mixes](/forum/user/32406-mixes "View mixes's Profile")* on topic *[show option collect on delivery even if the adress is not in the accepted zones](/forum/29-payment-methods/886958-show-option-collect-on-delivery-even-if-the-adress-is-not-in-the-accepted-zones#252726 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : chrome 53.0.2785.143 (64-bit)  Dear support, we have set up the collect on delivery plugin for only one of the shipping zones available, now we would like to show this option available even if the user hasnt yet set up and addres so they will see the option, then if the address is out of the zone then hidde the collect on deivery option or even better show message that is not available in the zone address selected  we understand that the behaviour is logical but the user cant see available method until has entered and address  many thanks mixes")*

Thanks for your fast response
I supposed we have to edit the code but, could you point me to a solution or a similar case in the forums as we couldn’t find anything related
many thanks in advance

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

10 years 1 week ago [\#252776](#252776) 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 *[show option collect on delivery even if the adress is not in the accepted zones](/forum/29-payment-methods/886958-show-option-collect-on-delivery-even-if-the-adress-is-not-in-the-accepted-zones#252776 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.20 -- Browser(s) name and version -- : chrome 53.0.2785.143 (64-bit)  Dear support, we have set up the collect on delivery plugin for only one of the shipping zones available, now we would like to show this option available even if the user hasnt yet set up and addres so they will see the option, then if the address is out of the zone then hidde the collect on deivery option or even better show message that is not available in the zone address selected  we understand that the behaviour is logical but the user cant see available method until has entered and address  many thanks mixes")*

Hello,

> I supposed we have to edit the code but, could you point me to a solution or a similar case in the forums as we couldn’t find anything related

I didn't find any similar case in the forum but the solution will probably be to directly edit the code of the "onPaymentDisplay" function of the "administrator\components\com_hikashop\helpers\helper.php" file.

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

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

[](#top)
