Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Problem With Registry::get After Upgrade To 4.11.x Rate Topic   - - - - -

 
  • radaman
  • Junior Member
  • Members
  • Join Date: 10-Jun 09
  • 9 posts

Posted 26 February 2020 - 08:30 AM #1

Hello guys,
I have a problem to get values for particular storefront from addons setting via Registry::get('addons.addon_name.key') method.

To be accurate this regards when you have two and more storefronts. Example:

(Clear cache (?cc))

1. Select storefront A in admin => everything is all right = I can get the value.
2. Switch to storefront B in admin => BUT I still getting value from addon settings for storefront A!
3. When I clear cache again I finnaly get value for storefront B, but even not for storefront A now.

I found workarround and using method
Settings::instance()->getValue('key', 'addon_name', $company_id);
instead and it works.

Any ideas or same experiance with it?



 
  • radaman
  • Junior Member
  • Members
  • Join Date: 10-Jun 09
  • 9 posts

Posted 03 March 2020 - 05:46 AM #2

Solved. Helpdesk answer:
The issue is caused by a bug in CS-Cart which is fixed in version 4.11.3.