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

#   Checkout Message Display After Address Is Entered

##

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

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 8 months ago [\#193671](#193671) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#193671 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")* was created by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

On the checkout page, at the bottom, I have this message.

> Please review your order. If it is correct, click PAY NOW.
> If it is in-crorrect, please make your changes before you proceed.

How can I have this message show ONLY after the user have entered their shipping address, the same way the "Pay Now" button displays after the shipping address is entered?

Please see PIC.

Thank you!!

- [ ![checkout-note.jpg](/forum/attachment/22890) ](/forum/attachment/22890 "checkout-note.jpg") [ ](/forum/attachment/22890?download=1 "checkout-note.jpg")

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 8 months ago [\#193672](#193672) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#193672 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

Hi,

I suppose that you added that text in the file "step" of the view "checkout" via the menu Display&gt;views.
You can use such code: Code:

if($this-&gt;step == (count($this-&gt;steps) - 2)) { echo "My custom message"; }

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

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

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 8 months ago [\#194181](#194181) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#194181 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

I am obviously placing it in the wrong location as the code is showing on the front-end ![:(](/media/kunena/emoticons/22.png ":(")

I copied the form action code so that you can see where I placed it. Thanks!
Code:

&lt;form action="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).$url_itemid); ?&gt;" method="post" name="hikashop_checkout_form" enctype="multipart/form-data" onsubmit="if('function' == typeof(hikashopSubmitForm)) { hikashopSubmitForm('hikashop_checkout_form'); return false; } else { return true; }"&gt; &lt;?php } $dispatcher = JDispatcher::getInstance(); $this-&gt;nextButton = true; foreach($this-&gt;layouts as $layout) { $layout = trim($layout); if($layout == 'end') { $this-&gt;continueShopping = ''; } if(substr($layout, 0, 4) != 'plg.') { $this-&gt;setLayout($layout); echo $this-&gt;loadTemplate(); } else { $html = ''; $dispatcher-&gt;trigger('onCheckoutStepDisplay', array($layout, &amp;$html, &amp;$this)); if(!empty($html)) { echo $html; } } } if(empty($this-&gt;noform)){ ?&gt; &lt;input type="hidden" name="Itemid" value="&lt;?php echo $Itemid; ?&gt;"/&gt; &lt;input type="hidden" name="option" value="com_hikashop"/&gt; &lt;input type="hidden" name="ctrl" value="checkout"/&gt; &lt;input type="hidden" name="task" value="step"/&gt; &lt;input type="hidden" name="previous" value="&lt;?php echo $this-&gt;step; ?&gt;"/&gt; &lt;input type="hidden" name="step" value="&lt;?php echo $this-&gt;step+1; ?&gt;"/&gt; &lt;input type="hidden" id="hikashop_validate" name="validate" value="0"/&gt; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &lt;input type="hidden" name="unique_id" value="[&lt;?php echo md5(uniqid())?&gt;]"/&gt; &lt;br style="clear:both"/&gt; if($this-&gt;step == (count($this-&gt;steps) - 2)) { echo "&lt;div id="hikashop_checkout_message"&gt;Please review your order. If it is correct, click PAY NOW.&lt;br&gt; If it is in-correct, please make your changes before you proceed.&lt;/div&gt;"; } &lt;?php if($this-&gt;nextButton) { if($this-&gt;step == (count($this-&gt;steps) - 2)) { $checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH'); if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH') $checkout_next_button = JText::_('NEXT'); } else $checkout_next_button = JText::_('NEXT'); echo $this-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"'); $button = $this-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; } ?&gt; &lt;/form&gt; &lt;?php if($this-&gt;continueShopping){ if(strpos($this-&gt;continueShopping,'Itemid')===false){ if(strpos($this-&gt;continueShopping,'index.php?')!==false){ $this-&gt;continueShopping.=$url_itemid; } } if(!preg_match('#^https?://#',$this-&gt;continueShopping)) $this-&gt;continueShopping = JURI::base().ltrim($this-&gt;continueShopping,'/'); echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,JRoute::_($this-&gt;continueShopping),'window.location=\''.JRoute::_($this-&gt;continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"'); } } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php if(JRequest::getWord('tmpl','')=='component'){ exit; }

Thank you

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 8 months ago [\#194194](#194194) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#194194 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

Hi,

That's indeed not correct.
You should put it after a php opening tag like this one: &lt;?php

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

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

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 8 months ago [\#194382](#194382) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#194382 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

Sorry - I feel real silly ![:(](/media/kunena/emoticons/22.png ":(")

No matter where I put it after an opening tag ( &lt;?php ) as you suggested it still shows.

1) Should I put it in a specific location?

2) Is something wrong with the code? Code:

if($this-&gt;step == (count($this-&gt;steps) - 2)) { echo "&lt;div id='hikashop_checkout_message'&gt;Please review your order. If it is correct, click PAY NOW.&lt;br&gt; If it is in-correct, please make your changes before you proceed.&lt;/div&gt;"; }

Thank you!

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 8 months ago [\#194390](#194390) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#194390 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

For example, you can do it like that:
Code:

&lt;form action="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).$url_itemid); ?&gt;" method="post" name="hikashop_checkout_form" enctype="multipart/form-data" onsubmit="if('function' == typeof(hikashopSubmitForm)) { hikashopSubmitForm('hikashop_checkout_form'); return false; } else { return true; }"&gt; &lt;?php } $dispatcher = JDispatcher::getInstance(); $this-&gt;nextButton = true; foreach($this-&gt;layouts as $layout) { $layout = trim($layout); if($layout == 'end') { $this-&gt;continueShopping = ''; } if(substr($layout, 0, 4) != 'plg.') { $this-&gt;setLayout($layout); echo $this-&gt;loadTemplate(); } else { $html = ''; $dispatcher-&gt;trigger('onCheckoutStepDisplay', array($layout, &amp;$html, &amp;$this)); if(!empty($html)) { echo $html; } } } if(empty($this-&gt;noform)){ ?&gt; &lt;input type="hidden" name="Itemid" value="&lt;?php echo $Itemid; ?&gt;"/&gt; &lt;input type="hidden" name="option" value="com_hikashop"/&gt; &lt;input type="hidden" name="ctrl" value="checkout"/&gt; &lt;input type="hidden" name="task" value="step"/&gt; &lt;input type="hidden" name="previous" value="&lt;?php echo $this-&gt;step; ?&gt;"/&gt; &lt;input type="hidden" name="step" value="&lt;?php echo $this-&gt;step+1; ?&gt;"/&gt; &lt;input type="hidden" id="hikashop_validate" name="validate" value="0"/&gt; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &lt;input type="hidden" name="unique_id" value="[&lt;?php echo md5(uniqid())?&gt;]"/&gt; &lt;br style="clear:both"/&gt; &lt;?php if($this-&gt;step == (count($this-&gt;steps) - 2)) { echo "&lt;div id="hikashop_checkout_message"&gt;Please review your order. If it is correct, click PAY NOW.&lt;br&gt; If it is in-correct, please make your changes before you proceed.&lt;/div&gt;"; } if($this-&gt;nextButton) { if($this-&gt;step == (count($this-&gt;steps) - 2)) { $checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH'); if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH') $checkout_next_button = JText::_('NEXT'); } else $checkout_next_button = JText::_('NEXT'); echo $this-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"'); $button = $this-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; } ?&gt; &lt;/form&gt; &lt;?php if($this-&gt;continueShopping){ if(strpos($this-&gt;continueShopping,'Itemid')===false){ if(strpos($this-&gt;continueShopping,'index.php?')!==false){ $this-&gt;continueShopping.=$url_itemid; } } if(!preg_match('#^https?://#',$this-&gt;continueShopping)) $this-&gt;continueShopping = JURI::base().ltrim($this-&gt;continueShopping,'/'); echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,JRoute::_($this-&gt;continueShopping),'window.location=\''.JRoute::_($this-&gt;continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"'); } } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php if(JRequest::getWord('tmpl','')=='component'){ exit; }

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

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

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 8 months ago [\#194535](#194535) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#194535 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

WOW! I must really need sleep or something - cause this is just not working. The is the last piece of code that I edit - the message is still showing although I am not logged in. It is only supposed to show when I am logged in.
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.5 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;div class="hikashop_checkout_header"&gt;Checkout&lt;/div&gt; &lt;div id="hikashop_checkout_page" class="hikashop_checkout_page hikashop_checkout_page_step&lt;?php echo $this-&gt;step; ?&gt;"&gt; &lt;?php if(hikashop_level(1)){ $open_hour = $this-&gt;config-&gt;get('store_open_hour',0); $close_hour = $this-&gt;config-&gt;get('store_close_hour',0); $open_minute = $this-&gt;config-&gt;get('store_open_minute',0); $close_minute = $this-&gt;config-&gt;get('store_close_minute',0); if($open_hour!=$close_hour &#124;&#124; $open_minute!=$close_minute){ function getCurrentDate($format = '%H'){ if(version_compare(JVERSION,'1.6.0','&gt;=')) $format = str_replace(array('%H','%M'),array('H','i'),$format); return (int)JHTML::_('date',time()- date('Z'),$format,null); } $current_hour = hikashop_getDate(time(),'%H'); $current_minute = hikashop_getDate(time(),'%M'); $closed=false; if($open_hour&lt;$close_hour &#124;&#124; ($open_hour==$close_hour &amp;&amp; $open_minute&lt;$close_minute)){ if($current_hour&lt;$open_hour &#124;&#124; ($current_hour==$open_hour &amp;&amp; $current_minute&lt;$open_minute)){ $closed=true; } if($close_hour&lt;$current_hour &#124;&#124; ($current_hour==$close_hour &amp;&amp; $close_minute&lt;$current_minute)){ $closed=true; } }else{ $closed=true; if($current_hour&lt;$close_hour &#124;&#124; ($current_hour==$close_hour &amp;&amp; $current_minute&lt;$close_minute)){ $closed=false; } if($open_hour&lt;$current_hour &#124;&#124; ($current_hour==$open_hour &amp;&amp; $open_minute&lt;$current_minute)){ $closed=false; } } if($closed){ $app=&amp; JFactory::getApplication(); $app-&gt;enqueueMessage(JText::sprintf('THE_STORE_IS_ONLY_OPEN_FROM_X_TO_X',$open_hour.':'.sprintf('%02d', $open_minute),$close_hour.':'.sprintf('%02d', $close_minute))); echo '&lt;/div&gt;'; return; } } } global $Itemid; $checkout_itemid = $this-&gt;config-&gt;get('checkout_itemid'); if(!empty($checkout_itemid )){ $Itemid = $checkout_itemid ; } $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } if($this-&gt;display_checkout_bar){ if(HIKASHOP_RESPONSIVE) { ?&gt; &lt;div class="hikashop_wizardbar"&gt; &lt;ul&gt; &lt;?php } else { ?&gt; &lt;div id="hikashop_cart_bar" class="hikashop_cart_bar"&gt; &lt;?php } $already=true; if (count($this-&gt;steps) &gt; $this-&gt;step+1) $link=true; foreach($this-&gt;steps as $k =&gt; $step){ $step=explode('_',trim($step)); $step_name = reset($step); if($this-&gt;display_checkout_bar==2 &amp;&amp; $step_name=='end'){ continue; } $class = ''; $badgeClass = ''; if($k == $this-&gt;step){ $already = false; $class .= ' hikashop_cart_step_current'; $badgeClass = 'info'; } if($already){ $class .= ' hikashop_cart_step_finished'; $badgeClass = 'success'; } if(HIKASHOP_RESPONSIVE) { ?&gt; &lt;li class="&lt;?php echo trim($class); ?&gt;"&gt; &lt;span class="badge badge-&lt;?php echo $badgeClass; ?&gt;"&gt;&lt;?php echo ($k + 1); ?&gt;&lt;/span&gt; &lt;?php if($k == $this-&gt;step &#124;&#124; empty($link)) { echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name)); } else { ?&gt; &lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.$k.$url_itemid);?&gt;"&gt; &lt;?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;span class="hikashop_chevron"&gt;&lt;/span&gt; &lt;/li&gt; &lt;?php } else { ?&gt; &lt;div class="hikashop_cart_step&lt;?php echo $class;?&gt;"&gt; &lt;span&gt;&lt;?php if($k == $this-&gt;step &#124;&#124; empty($link)){ echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name)); }else{ ?&gt; &lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.$k.$url_itemid);?&gt;"&gt; &lt;?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?&gt; &lt;/a&gt; &lt;?php } ?&gt;&lt;/span&gt; &lt;/div&gt;&lt;?php } } ?&gt; &lt;/div&gt; &lt;?php } if(empty($this-&gt;noform)){ ?&gt; &lt;form action="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).$url_itemid); ?&gt;" method="post" name="hikashop_checkout_form" enctype="multipart/form-data" onsubmit="if('function' == typeof(hikashopSubmitForm)) { hikashopSubmitForm('hikashop_checkout_form'); return false; } else { return true; }"&gt; &lt;?php } $dispatcher = JDispatcher::getInstance(); $this-&gt;nextButton = true; foreach($this-&gt;layouts as $layout) { $layout = trim($layout); if($layout == 'end') { $this-&gt;continueShopping = ''; } if(substr($layout, 0, 4) != 'plg.') { $this-&gt;setLayout($layout); echo $this-&gt;loadTemplate(); } else { $html = ''; $dispatcher-&gt;trigger('onCheckoutStepDisplay', array($layout, &amp;$html, &amp;$this)); if(!empty($html)) { echo $html; } } } if(empty($this-&gt;noform)){ ?&gt; &lt;input type="hidden" name="Itemid" value="&lt;?php echo $Itemid; ?&gt;"/&gt; &lt;input type="hidden" name="option" value="com_hikashop"/&gt; &lt;input type="hidden" name="ctrl" value="checkout"/&gt; &lt;input type="hidden" name="task" value="step"/&gt; &lt;input type="hidden" name="previous" value="&lt;?php echo $this-&gt;step; ?&gt;"/&gt; &lt;input type="hidden" name="step" value="&lt;?php echo $this-&gt;step+1; ?&gt;"/&gt; &lt;input type="hidden" id="hikashop_validate" name="validate" value="0"/&gt; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &lt;input type="hidden" name="unique_id" value="[&lt;?php echo md5(uniqid())?&gt;]"/&gt; &lt;br style="clear:both"/&gt; &lt;?php if($this-&gt;step == (count($this-&gt;steps) - 2)) { echo "&lt;div id="hikashop_checkout_message"&gt;Please review your order. If it is correct, click PAY NOW.&lt;br&gt; If it is in-correct, please make your changes before you proceed.&lt;/div&gt;"; } if($this-&gt;nextButton) { if($this-&gt;step == (count($this-&gt;steps) - 2)) { $checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH'); if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH') $checkout_next_button = JText::_('NEXT'); } else $checkout_next_button = JText::_('NEXT'); echo $this-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"'); $button = $this-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; } ?&gt; &lt;/form&gt; &lt;?php if($this-&gt;continueShopping){ if(strpos($this-&gt;continueShopping,'Itemid')===false){ if(strpos($this-&gt;continueShopping,'index.php?')!==false){ $this-&gt;continueShopping.=$url_itemid; } } if(!preg_match('#^https?://#',$this-&gt;continueShopping)) $this-&gt;continueShopping = JURI::base().ltrim($this-&gt;continueShopping,'/'); echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,JRoute::_($this-&gt;continueShopping),'window.location=\''.JRoute::_($this-&gt;continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"'); } } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php if(JRequest::getWord('tmpl','')=='component'){ exit; }

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#195194](#195194) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#195194 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

Hi,

To display the message only when logged in, you can use that code: Code:

if(hikashop_loadUser() != null &amp;&amp; $this-&gt;step == (count($this-&gt;steps) - 2)) { echo "&lt;div id='hikashop_checkout_message'&gt;Please review your order. If it is correct, click PAY NOW.&lt;br&gt; If it is in-correct, please make your changes before you proceed.&lt;/div&gt;"; }

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

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

Less More

- Posts: 966
- Thank you received: 11
-
-

11 years 8 months ago [\#195229](#195229) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Checkout Message Display After Address Is Entered](/forum/27-checkout/875501-checkout-message-display-after-address-is-entered#195229 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  On the checkout page, at the bottom, I have this message.  How can I have this message show ONLY after the user have entered their shipping address, the same way the &quot;Pay Now&quot; button displays after the shipping address is entered?  Please see PIC.  Thank you!!")*

This worked!! Thanks guys.
Code:

if(hikashop_loadUser() != null &amp;&amp; $this-&gt;step == (count($this-&gt;steps) - 2)) { echo "&lt;div id='hikashop_checkout_message'&gt;Please review your order. If it is correct, click PAY NOW.&lt;br&gt; If it is in-correct, please make your changes before you proceed.&lt;/div&gt;"; }

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