PHP Warnings When Saving a Product – Undefined Variant Properties - Forum | JoomShaper
Staff replied EasyStore Joomla 6 v6.1.4

PHP Warnings When Saving a Product – Undefined Variant Properties

Asked by Stephane Hanrez 6 hours ago Last activity 5 hours ago

Hi,

When saving a product from the EasyStore administrator interface, the following PHP warnings are generated:

Undefined property: stdClass::$discount_value – VariantManagement.php:193
Undefined property: stdClass::$base_unit_price – VariantManagement.php:197
Undefined property: stdClass::$min_sell_qty – VariantManagement.php:206
Undefined property: stdClass::$max_sell_qty – VariantManagement.php:207

The issue occurs in administrator/components/com_easystore/src/Traits/VariantManagement.php.

It seems that some optional variant properties are accessed without checking whether they exist.

Could you please add the appropriate fallback values for missing properties?

Thanks!

1 reply

Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. To better address the issue, could you kindly provide Joomla administrator access? This will enable me to thoroughly investigate the matter and provide you with a prompt resolution.

I appreciate your cooperation and will ensure to get back to you as soon as possible.

Best regards,

Toufiqur Rahman (Team Lead, Support)

Log in to reply.