Hi Blot,
What exactly do you want to accomplish: A user clicks on the add to cart button and a box slides in, if the product fits some criteria?
You could have your boxes load on the product page (with the conditional rules) and then add a few lines of JS to have them slide in after clicking the add to cart button. The jQuery code for that would look something like this (untested).
$("#add-to-cart").click(function() {
var box_id = 123;
$("<a>").attr('href', '#stb-' + box_id).click();
});
You just need to find a way to find the box ID then. Or if only the correct box is on the page, simulate clicks for all boxes.
If you can go into a little more detail about what you’re trying to do I’d be happy to see what can be done to make this easier with the plugin as it is now. 🙂
Thanks!
“What exactly do you want to accomplish: A user clicks on the add to cart button and a box slides in, if the product fits some criteria?”
Yes, what you have written there exactly.
Also, where would I implement those lines you have given?
Sorry I did not see your reply earlier- I expected an email when I got a reply but no dice there :-/
Specifically, I have a product group that requires items to be added to their cart in steps. (food delivery website)
example: first they have to add a diet therapy package (cancer fighting / gluten free/ etc) then they have to choose the specific meals from our menu that they may want from within the package.
What I am looking for is: when a user clicks “add to cart” on a specific item, a box then slides in from the side prompting them to click a button to continue. the “continue” button is located within the popup and this button takes them to a category page on our menu that corresponds to the item added to cart.
-example of what I have set up so far.
http://karmynskuisine.com/?product=breakfast-lunch-dinner-gluten-free-20
My site is currently under construction and this would help me launch before X-mas as planned.
Thank you for your help in this matter, I feel like I have explained it as clear as possible but it is still a little complex :-/
-Blot