MichaelEZ Posted October 6, 2020 Posted October 6, 2020 Hi, so today basically - i tried to make auto group assignment through datakicks module "Consequences" - which is awesome. When I go (as a customer), and set up DNI (tax ID numb.) - it shoud automatically change customer group to another one. Unfortunatly here comes error: Fatal error: Call to protected method LinkCore::getBaseLink() from context 'Conseqs\Trigger' in /data/4/1/416845245904f-c044-4719-963b-e3df8996d456cd5/xxxxxxxxx/web/modules/conseqs/classes/trigger.php on line 160 160. $values->addParameter('context.shop.url', $context->link->getBaseLink($context->shop->id)); So i tried to use getBaseURL - same error, also tried getPageBase (not sure if returns are same but just tried) - which seems to worked around but did not assign customer to new group.. Any ideas?
datakick Posted October 6, 2020 Posted October 6, 2020 Do you have override for core Link class? If not, did you modify this class yourself?
MichaelEZ Posted October 6, 2020 Author Posted October 6, 2020 i did not, but someone before me could.. so i just replaced (backup fisrt) Link.php with default one, and it seems to be working - no errors - but group is not assigned .. so gona look for that now
datakick Posted October 6, 2020 Posted October 6, 2020 I have created similar rule on my demo server, and it works fine. You can test your rule on my demo server, just to see if it's environment specific problem. If the rule works on my server, then you might have some "other" issues on your server (similar to this Link). http://demo.getdatakick.com/admin561wkvz9k Anyway, you should run core updater to see what other core files has been modified.
MichaelEZ Posted October 6, 2020 Author Posted October 6, 2020 Thank you many times 😉 Well gona use that demo for sure now! Welp.. im stupid 😄 we are using DNI field as VAT_NUMBER so thats on me ..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now