Open jtlapp opened 5 years ago
I've revised the plugin as follows, but haven't checked it in to my repo yet:
The server side code remains unchanged. Otherwise, the amount of code has halved.
Given that the new plugin is not backwards compatible and no longer provides shopping cart functionality, should I make it available to spreadcart, or should I post it as a new repo of my own? I'm inclined to also post additional advice (in the README) about creating custom shops.
SpreadShirt wouldn't happen to have provided a more efficient way to communicate item count changes to a shopping cart plugin, has it? My new plugin polls SpreadShirt pretty much every time the user does anything in the embedded shop. Moreover, if the poll results in a basket having the same number of items as before, I don't know whether I polled too soon or whether the basket wasn't changed, so I poll again with several retries until eventually deciding it really didn't change.
Hey Robert,
I'm fixing up my spreadshirt site for all the changes that have been made in the past two years. In particular, I notice that it's now possible to refer to a page on SpreadShirt for managing the shopping cart. That makes for a great "Cart" link on my site, but I still need to show the number of items in the cart.
Should I modify this plugin for this simpler purpose, or does SpreadShirt now provide a plugin that I can use, making this plugin completely obsolete?
Thanks for your help!