Hello Hybris experts, I made a new cms action following the wiki page(https://help.hybris.com/6.0.0/hcd/8aca1eb2866910149701ec3a51e79e17.html) But, I can not see the component (add to wishlist button) with following error.
org.apache.catalina.core.ApplicationDispatcher invoke 驥榊、ァ: 繧オ繝シ繝悶Ξ繝・ヨ DispatcherServlet 縺ョServlet.service()縺御セ句、悶r謚輔£縺セ縺励◆ javax.servlet.ServletException: JSP 繝輔ぃ繧、繝ォ "/WEB-INF/views/desktop/cms/wishlistaction.jsp" 縺瑚ヲ九▽縺九j縺セ縺帙s at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:417) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:384) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
WARN [hybrisHTTP28] [DefaultCMSComponentRendererRegistry] Error processing component tag. currentComponent [WishlistActionModel (8796191392828)] exception: JSP 繝輔ぃ繧、繝ォ "/WEB-INF/views/desktop/cms/wishlistaction.jsp" 縺瑚ヲ九▽縺九j縺セ縺帙s WARN [hybrisHTTP28] [CMSActionRestrictionEvaluator] parentComponent attribute was not passed in the cms:component tag restriction evaluation skipped for CMSActionRestriction
I have already made jsp file, and put it in /mystorefront/web/webroot/WEB-INF/views/desktop/cms/
Can somebody please help on this?
Please import the following ImpEx as it is and then import it again after replacing the text, 'Staged' with 'Online' in the ImpEx. Finally, go to product details page and please let me know if you are still not able to see the button
$contentCatalog=electronicsContentCatalog
$contentCatalogName=Electronics Content Catalog
$contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
# this relation is used by CMSActionRestriction, by adding ActionRestriction to your action
INSERT_UPDATE ApplicableCmsActionsTypeForCmsComponent;target(code)[unique=true];source(code)[unique=true];
;ProductAddToCartComponent;AddToWishlistAction;
# CMS Action Restrictions
INSERT_UPDATE CMSActionRestriction;$contentCV[unique=true];uid[unique=true];name;
;;ActionRestriction;A CMSAction restriction;
# CMS ProductAddToCart Components
INSERT_UPDATE ProductAddToCartComponent;$contentCV[unique=true];uid[unique=true];name;actions(&actionRef);&componentRef
;;AddToCart;Product Add To Cart;PickUpInStoreAction,AddToCartAction,ShareOnSocialNetworkAction,AddToWishlistAction;AddToCart
# Wishlist Action,
INSERT_UPDATE AddToWishlistAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
;;AddToWishlistAction;/wishlistaction/act;Wishlist Action;ActionRestriction;AddToWishlistAction
INSERT_UPDATE AddToCartAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
;;AddToCartAction;/cart/add;Product Add To Cction;ActionRestriction;AddToCartAction
# CMS PickUpInStoreAction Action
INSERT_UPDATE PickUpInStoreAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
;;PickUpInStoreAction;/store-pickup/{productCode}/pointOfServices;Pickup in Store Action;ActionRestriction;PickUpInStoreAction
# CMS ShareOnSocialNetwork Action
INSERT_UPDATE ShareOnSocialNetworkAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
;;ShareOnSocialNetworkAction;/;Share On Social Network Action;ActionRestriction;ShareOnSocialNetworkAction
Add a comment