- Posts: 116
- Thank you received: 7
Step workflow: prevent skipping ahead
- stratacorps
-
Topic Author
- Offline
Less
More
11 years 10 months ago #184804
by stratacorps
Step workflow: prevent skipping ahead was created by stratacorps
-- 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?
-- 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?
Please Log in or Create an account to join the conversation.
11 years 10 months ago #184837
by nicolas
Replied by nicolas on topic Step workflow: prevent skipping ahead
Hi,
Edit the file "step" of the view "checkout" via the menu Display>Views and change the code:
to:
and that should remove the links to jump ahead of the current step on the checkout.
Edit the file "step" of the view "checkout" via the menu Display>Views and change the code:
Code:
if($k == $this->step || empty($link)) {
Code:
if($k >= $this->step || empty($link)) {
The following user(s) said Thank You: stratacorps
Please Log in or Create an account to join the conversation.
- stratacorps
-
Topic Author
- Offline
Less
More
- Posts: 116
- Thank you received: 7
11 years 10 months ago #184906
by stratacorps
Replied by stratacorps on topic Step workflow: prevent skipping ahead
That works like a charm, thank you!
Please Log in or Create an account to join the conversation.
Time to create page: 0.050 seconds