In the meantime I solved the task.
1. Edit the “frontend.js” file of the plugin.
2. The following lines need to be replaced:
woosc_remove_product(id);
if (woosc_vars.button_action === 'show_message') {
$.notiny({
theme: 'woosc',
position: woosc_vars.message_position,
image: product_image,
text: woosc_vars.message_removed.replace('{name}',
'<strong>' + product_name + '</strong>'),
});
}
}
TO:
if ((woosc_vars.page_url !== '') && (woosc_vars.page_url !== '#')) {
window.location.href = woosc_vars.page_url;
}
}
- Save frontend.js file
- In the plugin settings, modify this setting: “Remove when clicking again = YES”
- Save settings
- Clear cache (all device)
- Test
-
This reply was modified 1 year, 4 months ago by
levke21.
-
This reply was modified 1 year, 4 months ago by
levke21.
-
This reply was modified 1 year, 4 months ago by
levke21.
-
This reply was modified 1 year, 4 months ago by
levke21.