Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add products to cart #1

Open
octapopa opened this issue Jun 23, 2021 · 7 comments
Open

Can't add products to cart #1

octapopa opened this issue Jun 23, 2021 · 7 comments

Comments

@octapopa
Copy link

Can you add products to cart if you don't have cookie in middleware?

I added in routes for api middleware, and it is work for me
"
\October\Rain\Cookie\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
"

How do you use it without this?

@alvaro-canepa
Copy link
Member

@octapopa This plugin is to use OC Shopaholic through restful api. I don't have docs yet.
For cart usage, you need planetadeleste/oc-apiordersshopaholic-plugin that is used for Orders Shopaholic plugin.

All apis plugin use /api/v1 route with throttle:120,1 and bindings middlewares.

@octapopa
Copy link
Author

oho, I had an older version of this plugin, before you split it 😄

@alvaro-canepa
Copy link
Member

Ups, sorry.

@alvaro-canepa
Copy link
Member

I start to write docs at this link
But doesn't have to much time to do that...

@octapopa
Copy link
Author

I want to help you to make the documentation, because I will use your plugins on some projects, and my frontend team need it .Great job 👍 with this plugins!

@alvaro-canepa
Copy link
Member

alvaro-canepa commented Jun 24, 2021

Thanks!
I have made apis for another OC plugins, like Rainlab.Location, Martin.Forms, etc... You can see all in my repos.

BTW: this is the docs repo.
And if your team works with VUEjs & vue-mc package, you can find extensions for like all api plugins on my repos (all starting with vue-mc-*).

@octapopa
Copy link
Author

We work just with vuejs for the moment, but in the feature, I think we will use vue-mc too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants