Since I last fiddled with the templates there have been a few changes to the way things work, and some really cool additions to SellerDeck. I'd like to ask if there any developers listening, how to do certain things.
I've written a web app that loads a javascript widget into product pages. This widget should display only when there is no stock of the item.
I've found the template that chooses the real time stock display mechanism, and i've added a block that displays only when the stock is zero or less (this part is very similar to how i would have done it in the old days). This works, and for simple items, with no drop-downs and such this feeds data into my web app just fine.
The problem i'm having is that i want to integrate correctly with the real time stock system, and the drop down lists that SD provides. Can a developer help me to trigger a JS event when the following happens:
- a combination of items that has no stock is chosen.
- the real time stock happens and an item goes out of stock while you're looking at it (if thats how it works)
ideally i would like a function that looks like this:
function OutOfStock(ProductReference, ProductName, ProductImage) {
//my things go here.
}
I've written a web app that loads a javascript widget into product pages. This widget should display only when there is no stock of the item.
I've found the template that chooses the real time stock display mechanism, and i've added a block that displays only when the stock is zero or less (this part is very similar to how i would have done it in the old days). This works, and for simple items, with no drop-downs and such this feeds data into my web app just fine.
The problem i'm having is that i want to integrate correctly with the real time stock system, and the drop down lists that SD provides. Can a developer help me to trigger a JS event when the following happens:
- a combination of items that has no stock is chosen.
- the real time stock happens and an item goes out of stock while you're looking at it (if thats how it works)
ideally i would like a function that looks like this:
function OutOfStock(ProductReference, ProductName, ProductImage) {
//my things go here.
}
Comment