opencart 4.0.2.3 custom field not working correctly if sending order as guest or not registered user
opencart 4.0.2.3
php8.1
if user is not registered or sending order as guest for of custom field stored in DB is different and then these custom field are not visible (example ICO, DIC, text fields)
registered used format of custom field in Database:
{"29":"12345678","30":"9874562","31":"SK451278"}
guest :
{"address":{"29":"123456787","30":"12345678","31":"SK000101101"}}
php8.1
if user is not registered or sending order as guest for of custom field stored in DB is different and then these custom field are not visible (example ICO, DIC, text fields)
registered used format of custom field in Database:
{"29":"12345678","30":"9874562","31":"SK451278"}
guest :
{"address":{"29":"123456787","30":"12345678","31":"SK000101101"}}
Attachments
customFields.png (20.9 KiB) Viewed 2168 times
Hi,
We have checked the behaviour on the default Opencart Store (Version 4.0.2.3) and the feature is not working on the default checkout with the default Shipping Method and Payment Method as well.
We are not sure why the process of saving the data in the Custom Field is different when we are doing the Guest Checkout or Checkout with the Registered User.
The only possible reason we find is that for the Registered User, the Address is already saved in the database table and mapped with the user, whereas, in the case of the Guest User, the address is saved in the session.
Please review the above information and let us know if it helps in any way.
Regards,
Knowband team
We have checked the behaviour on the default Opencart Store (Version 4.0.2.3) and the feature is not working on the default checkout with the default Shipping Method and Payment Method as well.
We are not sure why the process of saving the data in the Custom Field is different when we are doing the Guest Checkout or Checkout with the Registered User.
The only possible reason we find is that for the Registered User, the Address is already saved in the database table and mapped with the user, whereas, in the case of the Guest User, the address is saved in the session.
Please review the above information and let us know if it helps in any way.
Regards,
Knowband team
Don't use OC 4.0.2.3 on a live website, it simply has too many bugs and known issues. Use OC 3.0.4.0, or wait until the release of the upcoming 4.1.0.1.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Unfortunately there is no downgrade function in OpenCart. It's either a fresh install of OC 3.0.4.0, or wait until the upcoming 4.1.0.1 release.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 6 guests