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

#   Step workflow: prevent skipping ahead

##

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

Less More

- Posts: 116
- Thank you received: 7
-

11 years 10 months ago [\#184804](#184804) by [stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")  *[Step workflow: prevent skipping ahead](/forum/27-checkout/873923-step-workflow-prevent-skipping-ahead#184804 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : &quot;Thank you for your purchase&quot;  On the checkout workflow we have 3 steps plus the end enabled. The tabs at the top of the page showing each of the steps have links that can be clicked. This is great for being able to navigate backwards to previous steps, however this also allows the visitor to get ahead of the process.  On some occasions it bypasses the payment and terms of service acknowledgement altogether and just shows the final tab with the &quot;Thank you&quot; message, even though the order was not processed (see the attached image).  We have disabled SEF for the Hikashop component for testing, fearing that sh404sef was the problem, but in testing it still allows the visitor to skip ahead.  Is there any way to avoid this? Specifically the links in the tabs is nice, but maybe to disable the links on Tabs that should not be visited to prevent skipping to far ahead of the checkout process?")* was created by *[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : "Thank you for your purchase"

On the checkout workflow we have 3 steps plus the end enabled. The tabs at the top of the page showing each of the steps have links that can be clicked. This is great for being able to navigate backwards to previous steps, however this also allows the visitor to get ahead of the process.

On some occasions it bypasses the payment and terms of service acknowledgement altogether and just shows the final tab with the "Thank you" message, even though the order was not processed (see the attached image).

We have disabled SEF for the Hikashop component for testing, fearing that sh404sef was the problem, but in testing it still allows the visitor to skip ahead.

Is there any way to avoid this? Specifically the links in the tabs is nice, but maybe to disable the links on Tabs that should not be visited to prevent skipping to far ahead of the checkout process?

- [ ![Screen&#95;Shot&#95;2014-12-30&#95;at&#95;7&#95;09&#95;17&#95;PM.png](/forum/attachment/21399) ](/forum/attachment/21399 "...7&#95;09&#95;17&#95;PM.png") [ ](/forum/attachment/21399?download=1 "...7&#95;09&#95;17&#95;PM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MzkyMy1zdGVwLXdvcmtmbG93LXByZXZlbnQtc2tpcHBpbmctYWhlYWQ/dG1wbD1tYXJrZG93bg==) 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 10 months ago [\#184837](#184837) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Step workflow: prevent skipping ahead](/forum/27-checkout/873923-step-workflow-prevent-skipping-ahead#184837 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : &quot;Thank you for your purchase&quot;  On the checkout workflow we have 3 steps plus the end enabled. The tabs at the top of the page showing each of the steps have links that can be clicked. This is great for being able to navigate backwards to previous steps, however this also allows the visitor to get ahead of the process.  On some occasions it bypasses the payment and terms of service acknowledgement altogether and just shows the final tab with the &quot;Thank you&quot; message, even though the order was not processed (see the attached image).  We have disabled SEF for the Hikashop component for testing, fearing that sh404sef was the problem, but in testing it still allows the visitor to skip ahead.  Is there any way to avoid this? Specifically the links in the tabs is nice, but maybe to disable the links on Tabs that should not be visited to prevent skipping to far ahead of the checkout process?")*

Hi,

Edit the file "step" of the view "checkout" via the menu Display&gt;Views and change the code: Code:

if($k == $this-&gt;step &#124;&#124; empty($link)) {

to: Code:

if($k &gt;= $this-&gt;step &#124;&#124; empty($link)) {

and that should remove the links to jump ahead of the current step on the checkout.

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

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

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

Less More

- Posts: 116
- Thank you received: 7
-

11 years 10 months ago [\#184906](#184906) by [stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")  Replied by *[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")* on topic *[Step workflow: prevent skipping ahead](/forum/27-checkout/873923-step-workflow-prevent-skipping-ahead#184906 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : &quot;Thank you for your purchase&quot;  On the checkout workflow we have 3 steps plus the end enabled. The tabs at the top of the page showing each of the steps have links that can be clicked. This is great for being able to navigate backwards to previous steps, however this also allows the visitor to get ahead of the process.  On some occasions it bypasses the payment and terms of service acknowledgement altogether and just shows the final tab with the &quot;Thank you&quot; message, even though the order was not processed (see the attached image).  We have disabled SEF for the Hikashop component for testing, fearing that sh404sef was the problem, but in testing it still allows the visitor to skip ahead.  Is there any way to avoid this? Specifically the links in the tabs is nice, but maybe to disable the links on Tabs that should not be visited to prevent skipping to far ahead of the checkout process?")*

That works like a charm, thank you!

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

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