Error when setting a "zone price" for product variants

  • Posts: 12
  • Thank you received: 6
  • Hikashop Business
6 hours 38 minutes ago #371002

-- 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

Attachments:
Last edit: 6 hours 37 minutes ago by navarre.

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

  • Posts: 85327
  • Thank you received: 13938
  • MODERATOR
2 hours 7 minutes ago #371003

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.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum