Skip to main content

Error when setting a "zone price" for product variants

More
5 months 4 weeks ago - 5 months 4 weeks ago #371002 by navarre
-- HikaShop version -- : 6.4.0
-- Joomla version -- : 5.4.3
-- PHP version -- : 8.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Call to a member function get() on null

I am having an issue with configuring pricing on items with variants - when inserting a new price to be restricted to a Zone.

On pressing Save - the subscreen shows the error - Call to a member function get() on null



I can see in the database that the variant has the two prices (Existing plus the new) written - one of course showing the Zone ID



Thanks in advance for your guidance on what to check
Last edit: 5 months 4 weeks ago by navarre.

Please Log in or Create an account to join the conversation.

More
5 months 4 weeks ago #371003 by nicolas
Hello,

Thank you for reporting this issue.

The problem was that the zone class was not loaded when displaying the variant editing form, so when a variant had a zone-restricted price, the page would crash with a fatal error "Call to a member function get() on null". As you noticed, the price data was saved correctly to the database before the error occurred on the page reload.

We have fixed this and updated the package available for download in your HikaShop account. You can download and install it over your current version to apply the fix.
The following user(s) said Thank You: navarre

Please Log in or Create an account to join the conversation.

More
5 months 4 weeks ago #371019 by navarre
Many thanks - applied the new package and confirm all is okay :)

Many thanks again for the excellent service
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.248 seconds
Powered by Kunena Forum