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

#   No shipping method selected

##

- **[dreads](/forum/user/8219-dreads "View dreads's Profile")**
- [![dreads's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8219.png)](/forum/user/8219-dreads "View dreads's Profile") Topic Author
- [ Offline](/forum/user/8219-dreads)

Less More

- Posts: 69
- Thank you received: 0
-
-

13 years 3 weeks ago [\#128780](#128780) by [dreads](/forum/user/8219-dreads "View dreads's Profile")  *[No shipping method selected](/forum/28-shipping-methods/862977-no-shipping-method-selected#128780 "How I can set up a message when no shipping method selected?")* was created by *[dreads](/forum/user/8219-dreads "View dreads's Profile")*

How I can set up a message when no shipping method selected?

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

13 years 3 weeks ago -  13 years 3 weeks ago [\#128807](#128807) 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 *[No shipping method selected](/forum/28-shipping-methods/862977-no-shipping-method-selected#128807 "How I can set up a message when no shipping method selected?")*

Hi,

You'll be able to do it by editing the code of your "**shipping**" file of your "**checkout**" view of your **front-end template** through "**Hikashop-&gt;Display-&gt;Views**", but some development skill will be required to do that.
A solution will probably be to change this line : Code:

foreach($this-&gt;rates as $rate) {

By : Code:

$shipping_checked = 0; foreach($this-&gt;rates as $rate) {

These lines : Code:

if((in_array($rate-&gt;shipping_type.'@'.$shipping_group_key, $this-&gt;shipping_method) &amp;&amp; in_array($rate-&gt;shipping_id.'@'.$shipping_group_key, $this-&gt;shipping_id)) &#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;shipping_id) &amp;&amp; !$done)) { $done = true; $checked = 'checked="checked"'; }

By : Code:

if((in_array($rate-&gt;shipping_type.'@'.$shipping_group_key, $this-&gt;shipping_method) &amp;&amp; in_array($rate-&gt;shipping_id.'@'.$shipping_group_key, $this-&gt;shipping_id)) &#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;shipping_id) &amp;&amp; !$done)) { $done = true; $checked = 'checked="checked"'; $shipping_checked = 1; }

And this line : Code:

$k = 1-$k; }

By : Code:

$k = 1-$k; } if($shipping_checked == 0){ $app = JFactory::getApplication(); $app-&gt;enqueueMessage('Please select a shipping method'); }

Note that you'll be able to change the text "Please select a shipping method" by your message.

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

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

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

- **[dreads](/forum/user/8219-dreads "View dreads's Profile")**
- [![dreads's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8219.png)](/forum/user/8219-dreads "View dreads's Profile") Topic Author
- [ Offline](/forum/user/8219-dreads)

Less More

- Posts: 69
- Thank you received: 0
-
-

13 years 3 weeks ago [\#128835](#128835) by [dreads](/forum/user/8219-dreads "View dreads's Profile")  Replied by *[dreads](/forum/user/8219-dreads "View dreads's Profile")* on topic *[No payment methods selected](/forum/28-shipping-methods/862977-no-shipping-method-selected#128835 "How I can set up a message when no shipping method selected?")*

Perfect.

Now feel the same way but with payment methods.
What file should I change lines?

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

13 years 3 weeks ago [\#128854](#128854) 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 *[No shipping method selected](/forum/28-shipping-methods/862977-no-shipping-method-selected#128854 "How I can set up a message when no shipping method selected?")*

You should edit the code of the "**payment**" file of the "**checkout**" view of your front-end template.

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

- **[dreads](/forum/user/8219-dreads "View dreads's Profile")**
- [![dreads's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8219.png)](/forum/user/8219-dreads "View dreads's Profile") Topic Author
- [ Offline](/forum/user/8219-dreads)

Less More

- Posts: 69
- Thank you received: 0
-
-

13 years 3 weeks ago [\#128977](#128977) by [dreads](/forum/user/8219-dreads "View dreads's Profile")  Replied by *[dreads](/forum/user/8219-dreads "View dreads's Profile")* on topic *[No shipping method selected](/forum/28-shipping-methods/862977-no-shipping-method-selected#128977 "How I can set up a message when no shipping method selected?")*

What lines should I change?

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

13 years 3 weeks ago -  13 years 3 weeks ago [\#129025](#129025) 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 *[No shipping method selected](/forum/28-shipping-methods/862977-no-shipping-method-selected#129025 "How I can set up a message when no shipping method selected?")*

You'll have to change these lines (which is appearing 2 times) : Code:

foreach($this-&gt;methods as $method){

By : Code:

$payment_checked = 0; foreach($this-&gt;methods as $method){

These lines (which are appearing 2 times) : Code:

if(($this-&gt;payment_method==$method-&gt;payment_type &amp;&amp; $this-&gt;payment_id==$method-&gt;payment_id)&#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;payment_id)&amp;&amp;!$done)){ $checked = 'checked="checked"'; $done = true; }

By : Code:

if(($this-&gt;payment_method==$method-&gt;payment_type &amp;&amp; $this-&gt;payment_id==$method-&gt;payment_id)&#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;payment_id)&amp;&amp;!$done)){ $checked = 'checked="checked"'; $payment_checked = 1; $done = true; }

The last 3 lines : Code:

&lt;?php } } }

By : Code:

&lt;?php } if($payment_checked == 0){ $app = JFactory::getApplication(); $app-&gt;enqueueMessage('Please select a payment method'); } }

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

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

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

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