Step workflow: prevent skipping ahead

  • Posts: 116
  • Thank you received: 7
  • Hikashop Business
10 years 4 months ago #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) -- : "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?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 4 months ago #184837

Hi,

Edit the file "step" of the view "checkout" via the menu Display>Views and change the code:

if($k == $this->step || empty($link)) {
to:
if($k >= $this->step || 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

Please Log in or Create an account to join the conversation.

  • Posts: 116
  • Thank you received: 7
  • Hikashop Business
10 years 4 months ago #184906

That works like a charm, thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum