on 2020 Jun 18 3:16 PM
Hello Experts,
I have generated an extension using yocc template in Hybris 2005 (Spartacus edition). I have created custom 'CartsController' and have created a method similar to the one in CartsController (from commercewebservices extension) in order to override in. The override property in my local.extensions has been set as 'occ.rewrite.overlapping.paths.enabled=true".
When i try to access spartacus storefront and cart API, The custom code does not get trigger no matter what i do. The method in CartsController commercewebservices gets triggered each time. Could you please help me with a solution for this in order to override cart related APIs from commercewebservices?
PS : Could you also tell me which cart API in which extension gets invoked when i trigger the powertools /cart in spartacus? I see that /users/current/carts gets invoked but i cant seem to find where the control in the code goes to? Please advise
Request clarification before answering.
I assume you created a new addon based on yoccaddon. Did you run "ant addoninstall" for your custom occ extension?
e.g. ant addoninstall -Daddonnames="AddOnName1,AddOnName2"-DaddonStorefront.<storefrontTemplateName>="Storefront1,Storefront2"
For your other question, there should be CartsController under ycommercewebservices.
Let me know if if worked. If it does, don't forget to upvote and accept the answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The whole point of the yocc extension I assumed was that you do not need the addon anymore. Everything that used to be in the addon is now in de.hybris.platform.commercewebservices. The custom extension you create with the yocc template depends on commercewebservices.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.