1. How can I put products automatically into the cart? (im searching for a general code that works on every product) I found out the following but need to know what I need to add on the part where stands ‘’your code here’’.
To put products into the basket after they liked, Ishould add add triggers for the "Unlock" event.
- So I Open the file: <root>\wp-content\plugins\sociallocker\assets\js\jquery.op.sociallocker.min.js
- Find the block that has a name of the theme I use:
$.onepress.presets['ui-social-locker-secrets'] = {
// change only after support request
_iPhoneBug: false,
buttons: {
layout: 'horizontal',
counter: true
},
effects: {
flip: true
}
};
Then I add the "events" option after the "effects" option and put into the code to add a product in to the basket:
events: {
unlock: function( sender ) {
if ( sender != 'user' ) return;
// your code here
}
}
2. When I try to logout on my website it said ‘’are you sure you want to logout’’ then I say yes. But after that I see a wordpress website and when I return to my website again im still logged in, how can I change that (I don’t want them to send to a wordpress form and I want them to logout when they ask for it)?
3. When i click on log in, then i have the problem that is says ‘’Username or email *’’ whil I have a dutch translation on it, how can I change those words in to dutch?
4. When someone Is logged in on my site you can still see the possibility to log in to the site but when you click on that you are in your account (while you got another option to click on ‘’my account’). I would like to have It like, when someone logges in you can see that you are logged in. And when someone isn’t logged in that you can see the option to log in, how can I fix that?
5. When someone lost his password they can see by the login field ‘’lost my password?’’ but when the click on it the come into a wordpress site, while I wanted them to stay on my website how can I fix that?
Hope you can help us out because we spend a lot of time on it! Thanks for this great template...
Best regards,
Frank














