Copy link to clipboard
Copied
I'm trying to create a "credit" program for my customers. I'd like for them to be able to purchase a certain number of credits and be able to use those credits to purchase individual products, sort of how you can purchase templates on BCGurus or the old Tribvita/Simple Flame site (I'm not selling templates, so no worries on competition). I'm having a hard time figuring out how to link the credit purchase to the client account and make it dynamic, so that when they order content, it is subtracted from their credits. I'm certain there is a simple answer, but I'm just having a hard time figuring it out.
Copy link to clipboard
Copied
Unless you develop a 3rd party system that manages it all and barely use BC to handle stuff which be a lot of time and cost to develop... Not worth doing.
Look to another solution that actually supports such a feature.
Copy link to clipboard
Copied
Hi Amartelada25,
We've achieved what you're asking using two different methods on two separate websites; we called the modules Loyalty Programme,
I'll give you a brief breakdown of the main points, but you're going to have to code everything up yourself.
Method 1 (Loyalty Points redeemed via Discount Codes):
Of course there are several other ways, the two methods mentioned above followed the customer's RFPs but you can always search through a customers order history using {module_data} to see if they are elligable for credits.
The redeeming part I've found can be done using Discount Codes, or apply a Free Product which is normally hidden from general customers view, even locked down using liquid in the page_content.html page.
I hope the above gives you inspiration on how you can achieve "free credits" on purchases.
Copy link to clipboard
Copied
You do better then this... But I will still and always will tell people to not do this in BC. You can just read the above and you can pick the wholes out of it and it can not be solid enough.
Updates have to be done to the platform or use another platform if you want a true program thats solid.
Copy link to clipboard
Copied
This is really helpful. I think I've figured out a way to do it that works via Web Apps using Liquid. I'll let you know the second I figure it out and test it.
Copy link to clipboard
Copied
My way of achieving this was using Module data and Liquid combined calculating the amount that the user has spent in the site and crate a score system based on the amount of total orders, following creating conditionals to show a range of Discount Codes depending on the amount spent as such 5% 10% 20% 50%.
Result user get to spend a certain amount to qualify also you can give a preview of how much they need to spend to qualify for discounts.
I have also used the same method combined with WebApps for offers and competitions.
Let me know if it can give you some idea to get it done, if not I can build a widget for you to just drop in your customer zone to be used the way you need.
Copy link to clipboard
Copied
That's sort of what I decided to do, but I'm having a hard time with Liquid. I haven't been able to figure out how to add an array. That is, when the client order credits, it's an array - I'd like to do some simple math to keep track of the credits bought (adding each credit purchase) and the credits used (adding each credit used) and then subtracting each. I tried to create an Assign for the addition, but it won't add more than a few of the items in the array.
Am I doing it wrong?
Copy link to clipboard
Copied
If you share your code and how you are using it I can maybe give you some instructions to get it sorted.