cancel
Showing results for 
Search instead for 
Did you mean: 

2211 Overriding OCC a controller using the Extension

0 Kudos
924

what if I override one request like createCart by creating a new class (PepeCartsController) inside my brand new occ extension from yocc template using the @RequestMappingOverride and inside this method I use stuff that is inside BaseCommerceController and BaseController.

I've tried to extend BaseCommerceController like they do in CartsController and I received the following errors

Accepted Solutions (1)

Accepted Solutions (1)

adambadura
Participant

You can't access de.hybris.platform.commercewebservices.core.v2.controller.BaseCommerceController from outside of the commercewebservices because it resides in /commercewebservices/web.

You need to follow these instructions.

stefanweis
Participant
0 Kudos

How would this work with The DataMapper and DTO field level mapping from XYZData to XYZWsDTO when I dont have acces to that from my custom xyzocc extension?

Answers (0)