We also see that the models: "Profile.Model", "Aja...
# suitecommerce
v
We also see that the models: "Profile.Model", "AjaxRequestsKiller", "Session" are no longer supported apparently. Are there any better alternatives for these modules/models?
Perhaps we can use the UserProfile component of Extensibility API instead of Profile.Model. But what about "AjaxRequestsKiller" and "Session". We use Session to get the login touchpoint (to generate the link to the login page: Session.get('touchpoints.login')), and to get the selected language of the webstore (Session.get('language').locale).
s
Yes, you should not be touching core modules in your extensions. AjaxRequestsKiller cannot be used, and session information is available via
getSession()
on the Environment component
Although for touchpoints, you probably want
getSiteSetting()
instead
v
Thanks Steve, that's helpful
k
is there a replacement method for AjaxRequestKiller
s
Nope
k
perhaps its not needed?
s
It's not needed as it always one of those things that added some optimisation. Kinda like cachedModel and cachedCollection -- if you can use them then good, otherwise don't worry about it
c
Assuming we need to remove references in existing extensions?
s
Generally yes. If they're extensions for older SCA sites only then no, but SC and SCA sites that will keep current, yes
k
While we’re on the subject 😎 …can I request the tracker module be added to the list of modules we can access? from the core?
c
If the tracker module is not available, is there a workaround solution?
s
How are you customising it?
c
Tracker.getInstance().trackEvent({                category: '',action: 'submit',value: 1, label: '',callback: callback });
Just an simple example to push data to Google Tag Manager
s
Ah, interesting
Just so I understand here. When are you using this? Are you saying that there are scenarios where you, say, create a custom route in your extension, the user visits it, but the site does not automatically track the page view (unless you add in this code)?
c
Custom forms mainly as some clients need to capture data in Google Tag Manager
s
I will talk to the devs
netsuite halo 1