Post by FnF » Wed Jan 03, 2024 11:42 am

I cannot figure this one out folks.
OC version 3.0.3.8 MB (downloaded from G.H.)
2 Mods
  • send same email to admin as customer
  • Different Downloads Per Product Options
The "Different Downloads Per Product Options" mod, which was from opencartextensions.eu, basically allows me to offer product downloads in a different format verses creating a whole different product for different formats.
I am confident that neither mod caused the "guest checkout option" issue since the problem existed before the mods. And we tested it by disabling the mods to confirm. Guest checkout remains.

All download products have been installed and created properly as they all work perfectly and appear in customers account perfectly for them to download.
The problem is we have some customers that are checking out as guests (with downloadable products) and for obvious reasons cannot access their downloads. The "Guest" checkout option is not disabling like it should when customers adds downloadable products to their cart.

The OC error log is empty and the server log only shows denial attempts to bots guessing at directory names.

EDIT- forgot to add url
https://bustinfur.com/
Default template, no changes to it.

User avatar
FnF
Active Member

Posts

Joined
Sat Mar 19, 2011 9:59 pm

Post by ADD Creative » Thu Jan 04, 2024 1:17 am

Check the following lines haven't been modified. Also check the same files in storage/modification.

https://github.com/opencart/opencart/bl ... gin.php#L6

https://github.com/opencart/opencart/bl ... #L404-L412

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by FnF » Thu Jan 04, 2024 6:31 am

Thanks for the reply ADD Creative.
Upon checking, neither of those lines nor those files have been modified at all. The coding was identical and the last modified dates matched the install date 6/5/23
Neither of the files existed in storage/modification, luckily. That would have been embarrassing lol

User avatar
FnF
Active Member

Posts

Joined
Sat Mar 19, 2011 9:59 pm

Post by ADD Creative » Thu Jan 04, 2024 8:06 am

Also check your template hasn't been modified.

https://github.com/opencart/opencart/bl ... ig#L13-L22

Have you tried switching off Guest Checkout in the Options tab in the settings, to see if that makes any difference?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by FnF » Thu Jan 04, 2024 10:15 am

Thanks again, ADD Creative.
Looks like the template remains unedited as well.
Yes, I have tested with the "guest checkout" disabled and it works perfectly. I was hoping not to have to resort to that when I decided to give the forums here a try.
BUT...with that said. I think I may have figured out whats causing my problem.
The mentioned "Different Downloads Per Product Options" mod, doesn't use the "downloads field found in the, Edit Product > Links, tab. In fact it gets left empty. And then the mod recreates the same Auto-filling field under the, Edit Product > Options, tab where we can let the customer choose the download format.

I'm assuming OC depends on the original field having an entry in it to consider the product an actual download. I tested that by putting data back into that field and the Guest option disappeared as expected.
BUT..it then puts ALL the files into the product, defeating the purpose of the mod.
Unless you know something I dont, I guess It's time I reach out to the Mod vendor from here.
I very much appreciate all the time you took to look at this and point me in a few directions.

User avatar
FnF
Active Member

Posts

Joined
Sat Mar 19, 2011 9:59 pm

Post by ADD Creative » Thu Jan 04, 2024 5:22 pm

I think you are correct. If your extension is not setting the original download field, then the cart->hasDownload() check will be false and the guest checkout will show. The extension will also need to modify the guest checkout check for downloads to work correctly.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by JNeuhoff » Thu Jan 04, 2024 7:32 pm

In the System > Settings > edit > tab Option > Checkout > Guest Checkout, is it set to No ?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by FnF » Sat Jan 06, 2024 10:11 pm

Hi Jeff, and thanks.
The "Guest checkout" option was left enabled because there's other items being sold that wouldn't require registration. We wanted to allow guests to purchase those easier.
We depended on the OC default function of removing the Guest checkout option when a customer placed a downloadable product in there cart.

That option is NOW disabled because we cannot get the mod vendor to to reply to us on this, and the number of guests checking out with downloads was becoming very time consuming since they couldn't access them.

User avatar
FnF
Active Member

Posts

Joined
Sat Mar 19, 2011 9:59 pm
Who is online

Users browsing this forum: Amazon [Bot] and 19 guests