zc156b, created a simple product with a maximum quantity of 1 and added the demo products' Logo Back file-upload attribute as the product's single, required attribute.
Unfortunately, when the product is added to the order the requirement of that file-upload attribute isn't enforced and the shopping_cart class throws a couple of warnings:
Code:
[03-Jun-2019 13:35:20 America/New_York] Request URI: /zc156posm/index.php?main_page=product_info&cPath=83&products_id=228&number_of_uploads=1&action=add_product, IP address: ::1
#1 shoppingCart->actionAddProduct() called at [C:\xampp\htdocs\zc156posm\includes\main_cart_actions.php:43]
#2 require(C:\xampp\htdocs\zc156posm\includes\main_cart_actions.php) called at [C:\xampp\htdocs\zc156posm\includes\init_includes\init_cart_handler.php:44]
#3 require(C:\xampp\htdocs\zc156posm\includes\init_includes\init_cart_handler.php) called at [C:\xampp\htdocs\zc156posm\includes\autoload_func.php:48]
#4 require(C:\xampp\htdocs\zc156posm\includes\autoload_func.php) called at [C:\xampp\htdocs\zc156posm\includes\application_top.php:170]
#5 require(C:\xampp\htdocs\zc156posm\includes\application_top.php) called at [C:\xampp\htdocs\zc156posm\index.php:26]
--> PHP Warning: Illegal string offset 'txt_7' in C:\xampp\htdocs\zc156posm\includes\classes\shopping_cart.php on line 1991.
[03-Jun-2019 13:35:20 America/New_York] Request URI: /zc156posm/index.php?main_page=product_info&cPath=83&products_id=228&number_of_uploads=1&action=add_product, IP address: ::1
#1 shoppingCart->actionAddProduct() called at [C:\xampp\htdocs\zc156posm\includes\main_cart_actions.php:43]
#2 require(C:\xampp\htdocs\zc156posm\includes\main_cart_actions.php) called at [C:\xampp\htdocs\zc156posm\includes\init_includes\init_cart_handler.php:44]
#3 require(C:\xampp\htdocs\zc156posm\includes\init_includes\init_cart_handler.php) called at [C:\xampp\htdocs\zc156posm\includes\autoload_func.php:48]
#4 require(C:\xampp\htdocs\zc156posm\includes\autoload_func.php) called at [C:\xampp\htdocs\zc156posm\includes\application_top.php:170]
#5 require(C:\xampp\htdocs\zc156posm\includes\application_top.php) called at [C:\xampp\htdocs\zc156posm\index.php:26]
--> PHP Warning: Cannot assign an empty string to a string offset in C:\xampp\htdocs\zc156posm\includes\classes\shopping_cart.php on line 1991.
Is there something 'special' that needs to be included in that product's configuration to get that attribute to be required?
Noting that this issue has been present as far back as the zc155 series, if not further.
Bookmarks