abantecart / abantecart-src

AbanteCart is a free PHP based eCommerce solution for merchants to provide ability creating online business and sell products online quick and efficient. AbanteCart application is built and supported by experienced enthusiasts that are passionate about their work and contribution to rapidly evolving eCommerce industry. AbanteCart is more than just a shopping cart, it is rapidly growing eCommerce platform
www.abantecart.com
Open Software License 3.0
142 stars 161 forks source link

Option Values Issue #1717

Open jcschott opened 1 day ago

jcschott commented 1 day ago

When setting up an Option with a type: label

the option values are not saved and the tab does not reload upon clicking save. Steps to reproduce: 1) Navigate to product options 2) Add New Option 3) Select Element Type Label and click add Screenshot 2024-12-03 154143 4)Update price modifier and any other details Screenshot 2024-12-03 153736 5) Click Save and tab does not load and data is not saved or reflected on product page Screenshot 2024-12-03 153802

BasaraABC commented 19 hours ago

Thank you @jcschott for your detailed report. @abolabo the error in log occurs `Unknown Error: AbanteCart core v.1.4.1 array_map(): Argument #2 ($array) must be of type array, null given Trace:

0 //public_html/qa/141/admin/model/catalog/product.php(3062): array_map()

1 //public_html/qa/141/admin/controller/responses/product/product.php(696): ModelCatalogProduct->validateOptionValues()

2 //public_html/qa/141/core/engine/dispatcher.php(306): ControllerResponsesProductProduct->update_option_values()

3 //public_html/qa/141/core/engine/response.php(87): ADispatcher->dispatch()

4 //public_html/qa/141/core/engine/router.php(222): ATypeResponse->build()

5 //public_html/qa/141/core/engine/router.php(86): ARouter->route()

6 //public_html/qa/141/index.php(101): ARouter->processRoute()

7 {main} in //public_html/qa/141/admin/model/catalog/product.php on line 3062`