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

#   Continue and Next buttons on first page of checkou

##

- **[intown](/forum/user/26697-intown "View intown's Profile")**
- [![intown's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/26697-intown "View intown's Profile") Topic Author
- [ Offline](/forum/user/26697-intown)

Less More

- Posts: 70
- Thank you received: 4
-
-
-

13 years 3 months ago [\#119879](#119879) by [intown](/forum/user/26697-intown "View intown's Profile")  *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#119879 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")* was created by *[intown](/forum/user/26697-intown "View intown's Profile")*

-- url of the page with the problem -- : [ ](http://www.charitymobi.org/purchase-ticket/checkout)[ www.charitymobi.org/purchase-ticket/checkout](http://www.charitymobi.org/purchase-ticket/checkout)
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5

On the first step of our checkout page a "Continue" and "Next" button are appearing.
[ ![&#91;img](http://media.screensteps.me/intown/dknhnm/charity-mobi.png) ](http://media.screensteps.me/intown/dknhnm/charity-mobi.png "&#91;img")

I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.

1. Are they both needed?
2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)

Thanks! -- Steven

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTMxMC1jb250aW51ZS1hbmQtbmV4dC1idXR0b25zLW9uLWZpcnN0LXBhZ2Utb2YtY2hlY2tvdT90bXBsPW1hcmtkb3du) 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 months ago -  13 years 3 months ago [\#119895](#119895) 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 *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#119895 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

Hi,

The **continue** button will test each field of your registration form, and the **next** button will only test if your username (email) is already used.
So if you hide the continue button, your registration won't be completely checked, and if you hide the next button, you won't be able to go through the next step if you're already logged in.

I think that the "best" solution will be to :
- Edit the checkout workflow through "*Hikashop-&gt;System-&gt;Configuration-&gt;Checkout*"
- Put only the "login" action through the first step
- Edit the **Step** file of the **Checkout** view of your **front-end template** and change this line : Code:

if($this-&gt;nextButton){

By : Code:

if($this-&gt;nextButton &amp;&amp; $this-&gt;step != 0){

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

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

- **[intown](/forum/user/26697-intown "View intown's Profile")**
- [![intown's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/26697-intown "View intown's Profile") Topic Author
- [ Offline](/forum/user/26697-intown)

Less More

- Posts: 70
- Thank you received: 4
-
-
-

13 years 3 months ago [\#119897](#119897) by [intown](/forum/user/26697-intown "View intown's Profile")  Replied by *[intown](/forum/user/26697-intown "View intown's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#119897 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

Thanks so much for the reply and suggestion.

I already had the login step as the only item on the first step, so that was done. (I changed the name to shipping)

I had modified Code:

if($this-&gt;nextButton){

to
Code:

if($this-&gt;step==4){ echo $this-&gt;cart-&gt;displayButton('Purchase Ticket','next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"'); }else{ echo $this-&gt;cart-&gt;displayButton(JText::_('NEXT'),'next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"'); }

So that I could change the text on the purchase step to custom text.

With the modifications I have made what should the new if statement look like?

Thanks! -- Steven

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#119901](#119901) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#119901 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

Your solution seems good.
It's way easier than changing the behavior of these button.
However I'm not sure I understood your question, which "if" are you talking about?

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

- **[intown](/forum/user/26697-intown "View intown's Profile")**
- [![intown's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/26697-intown "View intown's Profile") Topic Author
- [ Offline](/forum/user/26697-intown)

Less More

- Posts: 70
- Thank you received: 4
-
-
-

13 years 3 months ago [\#119906](#119906) by [intown](/forum/user/26697-intown "View intown's Profile")  Replied by *[intown](/forum/user/26697-intown "View intown's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#119906 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

I am not sure how to write an if statement that will show the custom text on final checkout step and NOT display the next button on the first step (so only the continue button shows).

Here is our product page
[ www.charitymobi.org/purchase-ticket/product](http://www.charitymobi.org/purchase-ticket/product)

you can go through the checkout to see how it works.

-- Steven

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#119986](#119986) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#119986 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

Well in this case the code Mohamed gave you should work fine ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[intown](/forum/user/26697-intown "View intown's Profile")**
- [![intown's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/26697-intown "View intown's Profile") Topic Author
- [ Offline](/forum/user/26697-intown)

Less More

- Posts: 70
- Thank you received: 4
-
-
-

13 years 3 months ago [\#120083](#120083) by [intown](/forum/user/26697-intown "View intown's Profile")  Replied by *[intown](/forum/user/26697-intown "View intown's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#120083 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

Thanks for the reply.

I am not sure how to combine
Code:

if($this-&gt;nextButton &amp;&amp; $this-&gt;step != 0){

and
Code:

if($this-&gt;step==4){

so the buttons work the way I need them to.

Thanks! -- Steven

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

- **[intown](/forum/user/26697-intown "View intown's Profile")**
- [![intown's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/26697-intown "View intown's Profile") Topic Author
- [ Offline](/forum/user/26697-intown)

Less More

- Posts: 70
- Thank you received: 4
-
-
-

13 years 3 months ago [\#120090](#120090) by [intown](/forum/user/26697-intown "View intown's Profile")  Replied by *[intown](/forum/user/26697-intown "View intown's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#120090 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

I think I got it.

Does this look correct?
Code:

if($this-&gt;step==4){ echo $this-&gt;cart-&gt;displayButton('Purchase Ticket','next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"'); }elseif($this-&gt;nextButton &amp;&amp; $this-&gt;step != 0){ echo $this-&gt;cart-&gt;displayButton(JText::_('NEXT'),'next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"'); }

Everything seems to work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTMxMC1jb250aW51ZS1hbmQtbmV4dC1idXR0b25zLW9uLWZpcnN0LXBhZ2Utb2YtY2hlY2tvdT90bXBsPW1hcmtkb3du) 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 months ago -  13 years 3 months ago [\#120099](#120099) 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 *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#120099 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

I think that you should use something like : Code:

if($this-&gt;nextButton){ if($this-&gt;step != 0 &amp;&amp; $this-&gt;step != 4){ echo $this-&gt;cart-&gt;displayButton(JText::_('NEXT'),'next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"'); } if($this-&gt;step==4){ echo $this-&gt;cart-&gt;displayButton('Purchase Ticket','next',$this-&gt;params,hikashop::completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"'); } }

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

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

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

- **[intown](/forum/user/26697-intown "View intown's Profile")**
- [![intown's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/26697-intown "View intown's Profile") Topic Author
- [ Offline](/forum/user/26697-intown)

Less More

- Posts: 70
- Thank you received: 4
-
-
-

13 years 3 months ago [\#120121](#120121) by [intown](/forum/user/26697-intown "View intown's Profile")  Replied by *[intown](/forum/user/26697-intown "View intown's Profile")* on topic *[Continue and Next buttons on first page of checkou](/forum/27-checkout/861310-continue-and-next-buttons-on-first-page-of-checkou#120121 "-- url of the page with the problem -- : -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5  On the first step of our checkout page a &quot;Continue&quot; and &quot;Next&quot; button are appearing.  I am pretty sure the continue button has to do with user registration and the next button is part of the checkout process.  1. Are they both needed? 2. If they both do the same thing, what is the best way to hide the continue button? (I want to keep the next button since it has the same text and in same place as all of the other checkout screens)  Thanks! -- Steven")*

Thanks so much for the code!

You guys are the best! -- Steven

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

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