oc-shopaholic / oc-shopaholic-plugin

🛍️ No. 1 e-commerce platform for October CMS
https://shopaholic.one
GNU General Public License v3.0
425 stars 52 forks source link

Accessing shop via API #281

Open Nvironmental opened 4 years ago

Nvironmental commented 4 years ago

Hi there, I have Nuxt js website, with October backend and want to integrate shopaholic into it. Wanted to understand if the shop and it's events could be accessed as an API for JavaScript powered frontends ? Any alternative suggestions ?

kharanenka commented 4 years ago

Hi! Plugins do not have api from out of the box. But you can add api routes in your custom plugin with using Item and Collection classes.

We plan to add GraphQL api to plugins within 2 months.

Nvironmental commented 4 years ago

Hi there, thank you for your swift response. Eagerly waiting the graphql support. How do I create orders from api ?

kharanenka commented 4 years ago

MakeOrder component uses plugins/lovata/ordersshopaholic/classes/processor/OrderProcessor.php class. You can call methods of OrderProcessor class in your API

Nvironmental commented 4 years ago

Hi @kharanenka ,

Thank you for your suggestion. Is there a support for Digital/Virtual Products and Custom Payment Gateway (RazorPay)

kharanenka commented 4 years ago

Hi! Yes, we have plugin Subscriptions for Shopaholic for Digital/Virtual Products. We doesn't have ready-made plugin for RazorPay, but you can add it.

lautsevich commented 4 years ago

@Nvironmental, let me correct @kharanenka. There's no Digital/Downloadable products plugin for Shopaholic at the moment. As Andrey mentioned, you can use the Subscriptions plugin in some form. But we plan to develop a separate fully functional plugin for this need. Check this issue #62.

rebaz88 commented 3 years ago

Hello,

Does it support it now?

Thanks

lautsevich commented 3 years ago

@rebaz88, no such functionality has been added to Shopaholic.

rebaz88 commented 3 years ago

It will be really great if it is added as a paid plugin.