Follow

@coriander not sure it is trivial since it depends on weebly providing that information and i'm not sure they do

it looks like they don't have a public API (thingy you can send questions to) for stuff like order counts; they have a non-public one but (a) it requires an access token, which you definitely shouldn't give to people browsing your site, and (b) it doesn't say how many of an item were sold, it can only give the total number of orders for the entire site

so if weebly themselves don't provide this functionality in the site editor you might be out of luck; i don't know how you would get the information from them (if you have a reliable way to get the information the rest is probably doable lol)

@Lady Hmmm troubling

I was thinking there would be a way as part of the checkout process to have it ping the counter and increment by 1, y'know?

@coriander my GUESS is that weebly probably has the checkout process pretty locked down and won't let you add scripts there but that could be wrong

if they do then yeah it's easy to just send a request to a page in a script

in that case the problem is where are you STORING that information (has to be on somebody's server and i don't think weebly lets you); there do exist hosted website “hit counters” which are basically this, but you would have to be careful because you only want the counter to increment when people ping the thingy, not just whenever people retrieve the image

@Lady I'm starting to get the impression that just plonking in a static counter and updating the number manually might be the easiest option, if not the only one...

@coriander yeah, i mean, having a storefront manager like weebly is definitely the correct way to do things nobody wants to manage that shit by themselves, but unfortunately my impression is that all storefront managers basically are terrible and only let you do the narrow list of things they think you should want

doing it manually is a pain but at least you can trust that it's working right? 🤷🏻‍♀️

@Lady Okay she ended up just putting in a static counter and will manually update it, which was prolly her only real option unless she wanted to learn what webhooks are, dig into that, and then also get extremely janky with how they work

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.