If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 2.x.x / Thrown back to home page from checkout

Thrown back to home page from checkout

Started by royaldave on 30 Jul 2024, 12:04 PM · Views: 650

Results 1 to 7 of 7
30 Jul 2024, 12:04 PM
#1
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Post #1 by royaldave

zc201
php8.2
bootstrap latest
multisite
order delivery date
square webpay

Am currently building my upgrade from 158.

Generally everything seems to run fine, however occasionally I will get an issue around the checkout area.

Eg in clicking continue to go from step 1 to step 2, instead of getting the payment page I get thrown back to the home page.
The url will show - myurl.com/# - ie there's always a # added to the end of it.

There's nothing in the logs and I can't find a pattern to the behaviour - if anyone has any clues?

30 Jul 2024, 3:50 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Post #2 by dbltoe

No log file found? How did you upgrade? Have you considered One Page Checkout versus the built in 3-step?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 Jul 2024, 5:47 PM
#3
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Post #3 by royaldave

dbltoe:

No log file found? How did you upgrade? Have you considered One Page Checkout versus the built in 3-step?

The recommended way - not like some of the horror stories I've read lately.

I installed a fresh 201 on my ubuntu box, dropped in a copy of my live db, upgraded it. Then one by one installed the plugins, and amended the template slightly in places to carry forward some changes I like.

I did think of OPC, might be a good workaround if I can't work this out.

Have to point out that it only happens sometimes. If I go step 1, step 2, step 3, confirm - it won't happen. But the problem was exposed when I went back and forth between steps which I always do during testing to try and break it. Never happened before.

1 Aug 2024, 10:12 AM
#4
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Post #4 by royaldave

Just checking in to report this doesn't look like a bug with 2.0.1 as such.

I've narrowed it down to what seems that the Order Delivery Date Plugin and Bootstrap template have an issue together (this is my first time using bootstrap hence why I haven't encountered this before).

I temporarily removed order delivery date plugin from my upgrade and could not recreate the error.

I also created a 2.0.1 test install where I have multisite, the default template, and order delivery date installed and it all works fine.

Will post to the relevant threads after some more investigation - the problem being I can't find a consistent pattern to the issue - and no errors appear in the logs.

1 Aug 2024, 10:41 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #5 by swguy

This plugin has an observer

includes/classes/observers/auto.order_delivery_date_observer.php

that bounces you back to the shipping page in some conditions -could it be related to this?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

1 Aug 2024, 10:51 AM
#6
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Post #6 by royaldave

swguy:

This plugin has an observer

includes/classes/observers/auto.order_delivery_date_observer.php

that bounces you back to the shipping page in some conditions -could it be related to this?

Probably - but working out what bootstrap does to it is the big question.

1 Aug 2024, 12:08 PM
#7
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Post #7 by royaldave

royaldave:

Probably - but working out what bootstrap does to it is the big question.

Actually, I think my old friend mootools is to blame. I've documented previously how it breaks the responsive template on a mobile phone.

I thought it was playing nice with bootstrap but actually now I think its the cause of this issue (have deleted it and now the "bug" does not occur).

Looks like time for a revision of the order delivery date plugin...