oc-shopaholic-plugin icon indicating copy to clipboard operation
oc-shopaholic-plugin copied to clipboard

Accessing shop via API

Open Nvironmental opened this issue 4 years ago • 9 comments

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 ?

Nvironmental avatar May 10 '20 06:05 Nvironmental

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.

kharanenka avatar May 10 '20 07:05 kharanenka

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

Nvironmental avatar May 10 '20 08:05 Nvironmental

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

kharanenka avatar May 10 '20 09:05 kharanenka

Hi @kharanenka ,

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

Nvironmental avatar May 13 '20 11:05 Nvironmental

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.

kharanenka avatar May 13 '20 12:05 kharanenka

@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.

lautsevich avatar May 13 '20 13:05 lautsevich

Hello,

Does it support it now?

Thanks

rebaz88 avatar Oct 11 '21 13:10 rebaz88

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

lautsevich avatar Oct 12 '21 07:10 lautsevich

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

rebaz88 avatar Oct 12 '21 07:10 rebaz88