Post by ADD Creative » Tue Dec 19, 2023 8:55 pm

answersun wrote:
Sun Dec 17, 2023 2:55 am
Customers able to place order without choosing mandatory product options.

How to reproduce:
1. add a product in admin side without any option.
2. add this product to cart in the customer side.
3. add some mandatory options to the product in admin side.
4. update the product quantity in the cart and checkout, you can see the customer can update the cart and checkout without choosing any of the mandatory options introduced in the step before, which shouldn't be allowed.

Here's a recording showcase this problem: https://drive.google.com/file/d/1b42JH3 ... sp=sharing

Any suggestion on how to fix this?
Thanks in advance!
You would need to add extra validation to catalog/controller/checkout/confirm.php. You can see the sort validation code you would need to add in the add method in catalog/controller/checkout/cart.php. However, then the difficult bit, you would need to somehow let the customer know so they could add the options.

If the product is that different, you would maybe be better disabling or deleting the old version and add a new product with the options.

www.add-creative.co.uk


Expert Member

Posts

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

Post by barnettgs » Fri Apr 05, 2024 10:58 pm

What could it be? I get this about every hour or two. I'm using newly installed Opencart 3.0.3.9 (downloaded from the Opencart site) and just upgraded to PHP 8.1 yesterday.

Code: Select all

2024-04-05 12:19:25 - PHP Unknown:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in domain.com/system/engine/action.php on line 65

New member

Posts

Joined
Thu Sep 16, 2010 3:01 am

User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by barnettgs » Fri Apr 05, 2024 11:14 pm

JNeuhoff wrote:
Fri Apr 05, 2024 11:09 pm
Already fixed in OC 3.0.x.x (upcoming 3.0.4.0).
Thank you :)

New member

Posts

Joined
Thu Sep 16, 2010 3:01 am

Post by yuenchu » Mon Jul 08, 2024 2:50 pm

We are using Opencart v3.0.3.8.
In Extensions-> Modules -> Core Modules -> Featured, we have 10 Featureds in use.
One day, we removed 1 Featured(remain 9 Featureds), our Android app's homepage became completely blank(other pages were fine), and the Web version displayed fine but was missing the removed Featured part.
Later, I tried to add it back, but the app's Homepage was still blank(and the Web version did not display the newly added part).

Newbie

Posts

Joined
Mon Mar 18, 2024 3:56 pm

Post by JNeuhoff » Mon Jul 08, 2024 11:22 pm

There is no Android app of OpenCart. OpenCart is browser based. Without further details, nobody will be able to help you here, see forum rules. Using a web browser on your Android device, e.g. Chrome or Firefox, works just fine for OpenCart-based websites.

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


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: Elm5512 and 2 guests