Hey all, I'm building a shop that sells subscripti...
# support
m
Hey all, I'm building a shop that sells subscriptions on clothes. Basically people subscribe to a plan, and every month they choose a certain number of clothes. So I'm trying to understand what would be the best way to differentiate the subscription plans from the clothes. The plans would be under 'products' so people can add to their cart and subscribe to, and the clothes don't have price but customer who already subscribed to a plan should be able to order from the shop, and once they do, this should create an order in the admin panel, and the inventory should be updated. • My idea was to maybe add a 'clothing' attribute to products and implement a different for logic wether clothing is true or false, but how can I remove the price validation for products ? And is it possible to create an order without having a payment (only by checking if customer has subscribed)?
j
I think you’re on the right track. You will probably have to create a dummy 0 dollar payment to process those orders.
👀 1
b
If it were me, I would build the subscription in as a standard SaaS model instead of fitting it into the ecommerce process.
Then the subscription just auto creates orders each month on the users behalf with the credit card and shipping address attached to their subscription.
m
Thank you for your replies! I think I'll try the dummy 0 euros payment then. I'm not sure I completely get your idea @benmorganio but customers can pick new clothes each month, only if they want to. They can also extend a current rental if they prefer, and in that I wouldn't like for a new order to be created. So not sure this would work? Also I'm really relying on the way solidus and the subscription gem work, because I'm a junior developer so I don't think I could build this feature by myself for now.
Hi @Jared Norman. I added a clothing attribute to my Spree::Product model and it seems to work for what I want to do. Only issue is, that in development I can edit the backend and add a 'clothing' checkbox to either set true or false, but when I deploy my app it disappears. Any idea what I'm doing wrong here ? 🙃
j
Hmm. It's just the checkbox that isn't appearing in production?
m
Yes
j
You added it with a deface override?
m
No I didn't actually, I'll do that, thank you.