[Skip to main content](#vessel-content)

#   Error when setting a "zone price" for product variants

##

- **[navarre](/forum/user/52450-navarre "View navarre's Profile")**
- [![navarre's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52450-navarre "View navarre's Profile") Topic Author
- [ Offline](/forum/user/52450-navarre)

Less More

- Posts: 18
- Thank you received: 7
-
-

7 months 1 week ago -  7 months 1 week ago [\#371002](#371002) by [navarre](/forum/user/52450-navarre "View navarre's Profile")  *[Error when setting a "zone price" for product variants](/forum/32-content-creation/910215-error-when-setting-a-zone-price-for-product-variants#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")* was created by *[navarre](/forum/user/52450-navarre "View navarre's Profile")*

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

- [ ![Screenshot2026-03-26154717.png](/forum/attachment/61316) ](/forum/attachment/61316 "...3-26154717.png") [ ](/forum/attachment/61316?download=1 "...3-26154717.png")
- [ ![Screenshot2026-03-26154409.png](/forum/attachment/61317) ](/forum/attachment/61317 "...3-26154409.png") [ ](/forum/attachment/61317?download=1 "...3-26154409.png")
- [ ![Screenshot2026-03-26155808.png](/forum/attachment/61318) ](/forum/attachment/61318 "...3-26155808.png") [ ](/forum/attachment/61318?download=1 "...3-26155808.png")

Last edit: 7 months 1 week ago by [navarre](/forum/user/52450-navarre "View navarre's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwMjE1LWVycm9yLXdoZW4tc2V0dGluZy1hLXpvbmUtcHJpY2UtZm9yLXByb2R1Y3QtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

7 months 1 week ago [\#371003](#371003) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when setting a "zone price" for product variants](/forum/32-content-creation/910215-error-when-setting-a-zone-price-for-product-variants#371003 "-- 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")*

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](/forum/user/52450-navarre "View navarre's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwMjE1LWVycm9yLXdoZW4tc2V0dGluZy1hLXpvbmUtcHJpY2UtZm9yLXByb2R1Y3QtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[navarre](/forum/user/52450-navarre "View navarre's Profile")**
- [![navarre's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52450-navarre "View navarre's Profile") Topic Author
- [ Offline](/forum/user/52450-navarre)

Less More

- Posts: 18
- Thank you received: 7
-
-

7 months 1 week ago [\#371019](#371019) by [navarre](/forum/user/52450-navarre "View navarre's Profile")  Replied by *[navarre](/forum/user/52450-navarre "View navarre's Profile")* on topic *[Error when setting a "zone price" for product variants](/forum/32-content-creation/910215-error-when-setting-a-zone-price-for-product-variants#371019 "-- 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")*

Many thanks - applied the new package and confirm all is okay ![:)](/media/kunena/emoticons/3.png ":)")

Many thanks again for the excellent service

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwMjE1LWVycm9yLXdoZW4tc2V0dGluZy1hLXpvbmUtcHJpY2UtZm9yLXByb2R1Y3QtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.052 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
