Customize Domain on Hybris site - sap-commerce-cloud

We have a application built on Hybris 2205 OCC along with Spartacus 4. The requirement is to customize the default site url ie from https://localhost:9002 to https://localhost:9002/mySite . Usually Hac gets loaded with https://localhost:9002 but with this requirement it should get loaded with https://localhost:9002/mySite & similarly
Backoffice https://localhost:9002/mySite/backoffice. We have tried with couple of changes at tomcat configuration but nothing seems to be working as files gets reloaded with ant clean. Kindly provide your valuable inputs and help us to resolve the issue.

Related

Liferay 7 Web Content Display - web content in Global site is not available

Recently none of the web content in the global site is showing up when selecting the web content in a web content display. Nor does the search find the particular web content I'm trying to use.
I assume it is an index issue, but I've reindexed everything I could think of that would be related - everything journal article related as well as document lib related - but nothing has worked. Restarting Liferay hasn't helped, nor has re-publishing the web content. Permissions are unchanged.
Any ideas? Can anyone tell me which indexing option should work?
Liferay 7 GA7
Thanks.

Hybris store creation

Hi I have done with initial setup of hybris and now I am seeing apparel store. Now could you please someone answer how should I proceed further to completely customize the apparel store site. I wanted to remove all the products and I wanted to add my own products and categories . Also where should I change the URL from apparelstore to my own customized URL?
You need to create your own accelerator module. There is a trail called "commerce trail" on the hybris wiki/help pages that helps you with the initial setup of a module.
I suggest to follow the help section about how to customize the accelerator (e.g: b2c accelerator customization). Generally speaking, you can use the ant modulegen command to generate the extensions for your very own accelerator.
For your own products/categories, you should provide them on impex files. The current data you're seeing is from the apparelstore extension that adds products, categories, site configuration & cms content for the apparel store. So in case you don't want that, you need to remove the apparelstore extension (or don't run projectdata for it) and then provide your own data. You can check that extension also and see how the data is created, to use it as a guide, but also the ant modulegen should generate some impex file templates that you can use. Look in hybris/bin/ext-data/apparelstore/resources/apparelstore/import.
Finally, for your urls, please check the CMSSite url parameters, this are the urls that 'activate' the site for the given request. Also search for properties like website.{siteid}.http= & website.{siteid}.https= that you also need to update for everything to work fine.

I am getting page not found on my hybris newly created b2b website using hybris cms cockpit

I have newly created a b2b accelerator website and included catalog, catalog version, category and products, personalization etc. when I am trying to live edit staged version adding home page into it then it is redirecting me to login prompt and if I login then the page not found message showing. I am new at hybris. I don't know what could be reason of prompting login while attempting to live edit. Even using smartedit editing also has the same manner.
I would be very grateful if anybody can help me regrading this issue. I didn't find any tutorial how to customize b2b accelerator website making configuration.
When you see a generic hybris "page not found message" the url you called will most probably not be registered in your storefront. When you open your cms site in hmc/backoffice there is an attribute called "URL pattern". This attribute holds a list of strings, which are regular expressions. Every request you fire against the storefront has to match at least one of those regular expressions. That way, you can have more than one site on one hybris server.
E.g. there are the sites electronics, apparel, powertools, all available on the same machine but using different urls: http://electronics.local:9001/, http://apparel.local:9001/ and so on.

Missing custom screen in Acumatica customization project

I’m experiencing an issue with customization projects in Acumatica 2017 R2 Build 17.203.0029.
Specifically, custom screens, while in my project XML, are not visible within the customization project browser nor can they be navigated to once published (which occurs without error). This only occurs on my staging server. Everything works fine in my local dev environment and even on a different instance of Acumatica. My local dev environment matches the staging server in every possible way (Acumatica version, other packages, etc.)
Older versions of the same customization project have been published before and did not exhibit this behavior. It’s only after I replaced the project with newer version of the same project that I encounter the missing custom screen issue.
As shown in the screenshot below, remnants of the custom screens are present in the Customized Screens window. And the ASPX files are present and shown in the Custom Files window.
Screenshot of missing custom screen data
When I compare the “Edit Project Items” objects between the staging the server and my local dev version, they appear the same.
It it possible that the internal customization or sitemap tables on the staging server have inconsistent data? Is there anyway to rebuild them?
The solution appears related to the users roles config. I had not assigned access rights to the custom forms. Doing so solved the issue. The custom screens are now accessible by direct URL and are shown in the customization project browser. Maybe this will help someone else.
I had this same issue when trying to Deploy the customization to another instance.
To fix it I had to go to the site manager and change the URL of the new page
from: "/Pages/SO/CustomName"
to: "~/Pages/SO/CustomName"

SAP Hybris - Avoid displaying Assisted Service Mode (ASM) on pages

Hybris 6.5
My project got an existing B2B storefront (say, sf1) and I created one more B2B storefront (say, sf2) from sf1, by
adding
'meta key="modulegen-name" ...' to sf1's extensioninfo.xml.
I made necessary changes for the new storefront and could access successfully on the browser. The only problem is,
Assisted Service Module (ASM) appears all the time on the top. I would like to show ASM only with query string URL access like ' ?asm=true' .
Is there any way to disable ASM and show it only on '?asm=true' URL access.
The existing storefront doesn't have ASM appearing and it shows only on '?asm=true' URL.
I'm new to Hybris and any help is appreciated.
As far as I know the ASM Module comes through an CMS Component to the site. So if you have 2 different content catalogs you could it handle on this way. Otherwise you have to implement some logic, that this component will only be shown if you set some URL property like '?asm=true'
BR

Resources