Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Product Visibility

74 views
Skip to first unread message

Ekta Singh

unread,
Sep 8, 2017, 7:11:59 AM9/8/17
to YesCart - pure eCommerce, platform with open source
Hello,
When I assign category to my product it adds '0' before the category name and product is not cisible. Although my indexing works and it shows following lines. I am clue less about this.


INFO: Clearing cache before indexing ... full
INFO: Indexing stared

INFO: Product indexing completed. Last traceable product count:
YCCLUSTER.YES0: 1 ... finished

INFO: SKU indexing completed. Last traceable SKU count:
YCCLUSTER.YES0: 1 ... finished

INFO: Indexing completed (11s)
INFO: Cache is cleared after indexing ... full


Kindly direct me
Thanks

Ekta Singh

unread,
Sep 11, 2017, 3:28:23 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hello,
When I assign category to my product it adds '0' before the category name and product is not visible.
There is no error in the console. Kindly hint me about this.

Thanks in advance!

Yes Cart

unread,
Sep 11, 2017, 4:08:23 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hi

'0' is not added, it is a separate field in product-category relationship, called "rank", so there is nothing wrong with that. 
Just to be consistent with the answer (but it will not solve your issue): this field is not part of UI, but you can set it via custom import. have a look at the https://github.com/inspire-software/yes-cart/blob/master/manager/jam/src/main/webapp/WEB-INF/import-descriptor/productcategorynames.xml you will see it is the 3rd column in CSV if you import.

Your problem is something else, make sure:
1. the shop you are browsing has access to that category branch (JAM > Shops > "Your Shop" > Catalog Tab). The category must be "reachable", so it or its parent have to be assigned to shop (that is how you give a shop access to catalog)
2. product and its SKU is created/imported (SKU also must exist as this is the actual unit which is bought).
3. product has to be assigned to a category in the branch assigned to shop (you already said you assigned it to product, make sure category's branch is assigned to shop, see point 1)
4. product SKU must have price for that shop in correct currency (each shop has its own price list in specific currency, so make sure that price exists)
5 product SKU must have inventory record even if it is backorder/preorder and inventory record must exist in a fulfilment centre. This has to be like this as you can have multiple fulfilment centres and that affect the shipping and cart splitting mechanism (used by marketplaces and nationwide shops).
6. make sure that shop has access to this fulfilment centre, similar to catalog assignments (JAM > Shops > "Your Shop" > Fulfilment centres Tab).
7. (you already done this but for sake of completeness) reindexing (JAM > System > Search Indexes) must be run if you do global changes to products like imports, if you edit/create products in JAM single product reindex is run automatically. HOWEVER even if your index is up to date, there is also caching in storefront so some times it takes a little while for the product to appear is some searches (especially if you just refresh). Alternatively you could force cache evict from JAM > System > Cache Monitoring


Regards,
YC team

Ekta Singh

unread,
Sep 11, 2017, 6:21:10 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hello,
Thanks for some detailed explanation!

1. Well I have configured all the above steps but product is still not visible and no error it shows in console but to be more precise it shows something like "  2017-09-11 15:43:32.156  WARN FTQ:71 - Unable to get price filtered navigation for query: +productCategory.category:100100 +productInStockShopId:10 +productHasPriceShopId:10, request: FilteredNavigationRecordRequestImpl{facetName='brandFacet', field='brand', multiValue=false, rangeValue=false, rangeValues=null}
 "
2. I have only one user which is by default and everything is managed (including product creation) is managed by it only. Is this the reason ?

3. While creating products few things like (Search Index tab in product, Template tab, association) are not filled by me, just to minimise the complexity for the time, I don't think it is the reason.

Kindly direct me!


Thanks in advance!

On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 11, 2017, 7:08:03 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hi,

The instructions above is a comprehensive list and that should be enough to see products in storefront.

Just to confirm you do NOT need templates or associations or any other settings on the products - those are optional.

Regarding the warning - this comes from filtered navigation block and occurs when there is no data to display which should not be the case because you always have price and brand for the products.

What I would suggest is to load the demo data as per instructions: http://www.inspire-software.com/confluence/display/YC3J/Demo+Data+Import
This will give same products fully configured as on the demo shop. Then you could compare and see what is missing.

Just a hunch, please double-check that you have assigned fulfilment centre and have non zero stock in the inventory and also please double-check that you have price for that products in currency that you use when browsing (if you have multiple).

Last thing if you were changing configurations for currency in your shop, then remove cookies. Your inactive currency may be cached in shopping cart. Or alternatively delete all records from TSHOPPINGCARTSTATE to be sure.

Regards,
YC team

Ekta Singh

unread,
Sep 11, 2017, 8:03:37 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hi,I went through the Sample Data, but as I told you, the thing is that I am importing anything from anywhere but I have created everything (products, brands, pro-types ...etc )through my default user (ad...@yes-cart.com).
Though I cross checked it and I don't find any miss but I believe that there is one from my side.I am trying here .
And my CLUSTER looks like the file attached.
Kindly direct me.

Thankfully
Ekta



On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:
Screenshot_6.png

Yes Cart

unread,
Sep 11, 2017, 9:00:39 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hi Ekta,

It does not matter whether you import or enter data directly, what is important is to setup all the configurations correctly. The reason why I suggested to import demo product data is because it gives you good example on how to configure it such that you have typical configuration examples that work.

The user you use does not matter for the frontend. You can use any user in JAM as long as they have access to data that you need, so if you used super admin or admin it does not matter.

You must however have valid relationship between shop and categories and then categories to products to ensure that this shop can display them, then relationship between fulfilment centre to inventory record to purchasable SKU, so that you have products that can actually be sold, and then shop - price - SKU link so that there is a price to sell the products. These are essential for a product to appear on storefront.

One thing you could check (to eliminate the index issue) is go to product's SEO tab. In there you will see default URI path to products, something like /product/xxxx where xxx is internal product code. Try to go to details page directly and see what happens there. The path will be something like on demo shop:  http://demo.yes-cart.org/yes-shop/product/133

Regards,
YC team

Ekta Singh

unread,
Sep 11, 2017, 9:14:28 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hello Yes-Cart Team,
Now when I visit to the URI " http://localhost:8083/yes-shop/product/dummyProduct " it successfully shows my product details. It was quite pleasing to see this page after long.Thanks for this!
But what is the mistake I am making? Why I am not getting it via CATEGORY ?

Anyways thanks for the help.


Ekta

On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 11, 2017, 9:41:27 AM9/11/17
to YesCart - pure eCommerce, platform with open source
Hi,

This means everything is setup correctly in terms of data.

BUT there is something wrong with your search index. I.e. it is not built. By default the index is written to temporary directory on tomcat https://github.com/inspire-software/yes-cart/blob/master/env/maven/dev-idea/config-fs.properties so it is possible if you use standalone tomcat the ides is wiped off when it shuts down.

I would recommend you to set a fixed location for ft.config.api.indexBase and ft.config.sf.indexBase.

Also make sure that backdoor communication is valid. Simple check would be to go to System > Cache Monitoring and see if you have cache listings from YES[X] node - that is storefront. If you only see JAM caches then your backdoor WS URL is wrong and indexing will not work. 

The backdoor WS settings are in https://github.com/inspire-software/yes-cart/blob/master/env/maven/dev-idea/config-cluster.properties  Make sure that the URLs are correct and reachable.

To perform re-index, go to System > Search Index > click the blue button with multiple gadgets.

Regards,
YC team

Ekta Singh

unread,
Sep 12, 2017, 4:37:36 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hello,
I checked my Cache Monitoring and it shows YES[0] node - that is storefront.
My backdoor configuration is also correct i.e 8083/yes-shop/ for Storefront and 8081/yes-api/ for API.
When I checked my tomcat folder , itz temp folder only shows "export" and "luceneindex". there is no Archive or Import folder.
And I also didn't find any ft.config.api.indexBase and ft.config.sf.indexBase in my config-fs.properties.

Is anything missing ?

Thankfully

Ekta

On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 12, 2017, 5:34:36 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hi,

The instructions I gave are for 3.4.0 which is current master, you are probably on 3.3.0, so the setting is in https://github.com/inspire-software/yes-cart/blob/yc-3.3.0-bugfix/env/maven/dev/config-db-mysql.properties and it called "db.config.yes.hibernate.search.default.indexBase"

I am a bit suspicious about 8083. On 3.3.0 usually the storefront webapp is on 8080 and it is the one withFT index updates, all others have no FT updates, because only one web app can write to FT index (so it is master/slave setup). 

One last question - on the product details page do you see price and add to cart button?

Regards,
YC team

Ekta Singh

unread,
Sep 12, 2017, 6:03:18 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hello,
Yes I am using 3.3.0 version and my configurations are line 8082/yes-manager/ , 8083/yes-shop/ , 8081/yes-api/ and I changed my CHANNEL_URI according to my port configuration in my project.
Yes I saw the the price, discount provided and cart button.

Kindly guide me about my above problem (i.e search indexing)

Thanks in advance!


On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 12, 2017, 6:37:42 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hi,

If you see price and add to cart button the the product configurations are definitely correct.

So it is down to investigating the problem with the index.
Can you adjust the index path to a different location, so it is not in tomcat temp directory
Then perform reindex and run "./yc.sh luke" or "./yc.bat luke" if you are on Win to start luke. Then use luke to open the index and ensure that you have your product document there.

Above steps will allow you to verify that the product does really get indexed.
I must say that this feels like you have problem with full text index paths (i.e. your web app is looking at the wrong index). How do you run your web apps? Do you use Intellij IDEA? Or do you run it on standalone tomcats? Because if you have 2 actual Tomcats and and say your 8081 does the indexing and 8083 does not as could be suggested by your indexing log (I only see "YCCLUSTER.YES0: 1 ... finished") then your 8083 index may never be updated and be blank. The expectation is to have all nodes to have FT update if you use temp directory for indexes (effectively each web app has its own FT index), or second option is to have shared index (i.e. some shared location) and then only one app will have FT updates. This only applied to 3.3.0. (In 3.4.0 each app MUST have its own index).

Hope above makes some sense. 

Regards,
YC team

Ekta Singh

unread,
Sep 12, 2017, 7:04:27 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hello ,
I use IntelliJ IDEA and as I told you my configurations are like 8082/yes-manager , 8083/yes-shop/ , 8081/yes-api/ . And my YES0 is for Storefront and YES1 is for API which is missing.

Thanks
Ekta



On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 12, 2017, 7:18:26 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hi,

The setting you are highlighting in bold have nothing to do with indexes. You have been provided with detailed explanation of how it should work and that should give you a start for your investigation. You have customised your environment and hence we have no knowledge of what the actual problem is, could be anything. Most likely you have misconfigured something as we have a fully functional setup guide that was tested on Win/Mac/Linux.

If you really think there is an issue, then try to follow the installation guide precisely and then report the problem if it occurs. 

But so far you have been provided with many hints on what to check and where to check. At this point unless you try the suggestions that were provided and give us more information we have no further ideas. 

Regards,
YC team

Ekta Singh

unread,
Sep 12, 2017, 8:54:48 AM9/12/17
to YesCart - pure eCommerce, platform with open source
Hello,
Thank you for schooling me till now! It was really helpful !
Well as you mentioned the steps I (though didn't changed my indexing location) opened my tomcat service, just to verify my indexing as I am running through IntelliJ IDEA and after running the "luke" command it successfully shows my product descriptions.
I have little idea about FT Updates, so kindly guide me what should be my next step?

Thank You for your help!

Ekta

On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 13, 2017, 5:49:58 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hi,

We have hit a dead end here, so everything works but it does not show up still.

With the diagnosing that we have done and what you are saying is true it sounds impossible. If your product is purchasable (has price and button) on product details page it has to be included in the index. And if you checked that it is included in index with Luke then it has to show up on the category pages. Can you try a global search for your product using product code? Does it show up in search page?

Regards,
YC team

Ekta Singh

unread,
Sep 13, 2017, 5:57:49 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hello,
<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

above is my tomcat server configuration and in my previous message thread it worte my HTTP port for manager, shop, api. I enabled my indexing for SFW and disabled for rest of all nodes (in development as well as deployment wicket configuration).
Checking my indexing in the default temp folder it successfully shows the product description but thn too clicking on the category it shows (No items found matching your query).

Please help me out!

Thanks


On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Ekta Singh

unread,
Sep 13, 2017, 6:05:42 AM9/13/17
to YesCart - pure eCommerce, platform with open source

Hello,
sorry I didn't go through your just above msg.
I have attached my screenshot. This is how my product looks.

Thanks
On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:
Screenshot_9.png

Yes Cart

unread,
Sep 13, 2017, 6:08:19 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hi,

Can you try a global search [on storefront not luke] for your product using product code [kurti as on your screenshot]? Does it show up in search page?

Regards,
YC team

Ekta Singh

unread,
Sep 13, 2017, 6:37:41 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hello,
No sir, I tried and it is not showing in global search.
One more thing, when I try the deployment steps and write the command "npm start" it shows some error.
Kindly guide me!

Thanks

On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 13, 2017, 6:48:09 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hi,

So if it shows in global search then it is all working fine with the index.

Now do you have nested categories? E.g. something like Category 1 > Category 2 > Category 3 > Assigned to product? and then you want to see category when opening Category 1?

If that is the case then you probably misconfigured "Search in sub categories" flag in the Shop > Attributes tab. It has to be switched ON!

Regards,
YC team

Ekta Singh

unread,
Sep 13, 2017, 6:52:45 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hello,
Actually you read it wrong, I wrote that it is NOT showing in global search.


Thanks


On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 13, 2017, 7:06:08 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hi,

Then check that everything is up and running correctly:
- both JAM and SF apps are running and ONLY those 2
- perform reindexing from jam
- just in case go to JAM > System > Cache Monitoring > Clear all cache
- verify index with luke
- check storefront

If that fails, I would recommend a clean checkout from git with exact steps from the installation guide AND demo products import. Try the "hello world" and see it working on your machine.

If everything that was suggested before to you really works then it must work, if it does not then there some misconfiguration with the index (possibly your app is looking in the wrong directory and you are writing index to one place but reading it from a different one).

Regards,
YC team

Ekta Singh

unread,
Sep 13, 2017, 7:39:22 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hello,
Thank you for your help till now. It was really helpful.
One last thing My CLUSTER shows JAM and YES0 (SHOP) but not YES1 (API). Is it right ?

Thank you!


On Friday, September 8, 2017 at 4:41:59 PM UTC+5:30, Ekta Singh wrote:

Yes Cart

unread,
Sep 13, 2017, 7:50:20 AM9/13/17
to YesCart - pure eCommerce, platform with open source
Hi,

If your REST API is not running then this is correct. But your web app node YES0 which does the indexing is up (at least according to what you said and shown in logs) and that should be enough to create correct index and then display it.

Regards,
YC team

Ekta Singh

unread,
Sep 13, 2017, 9:04:11 AM9/13/17
to YesCart - pure eCommerce, platform with open source
What is the deployment process for having all the three configurations (manager, shop, api) in Intellij and running manager and api through Intellij ? Kindly share the document with me. ffdfsdfgsd
Because my npm start is not working.

Thankfully

Ekta

Yes Cart

unread,
Sep 13, 2017, 9:14:45 AM9/13/17
to YesCart - pure eCommerce, platform with open source

Ekta Singh

unread,
Sep 14, 2017, 2:02:14 PM9/14/17
to YesCart - pure eCommerce, platform with open source
Hello Team,
Today I reinstalled Yes-Cart, while reinstalling I checked derby, paymentBase and devIntellijIDEA as default profiles. After installing I build the project through "mvn clean install -pdevIntellijTDEA, derby, paymentBase". After this step I tried to run "npm start" reaching the JAM folder through command line but here after some time this command halts. Is this the problem my product indexing is not properly done and product (through category) not shown ??
When i try "luke" it shows only one product but I got two products.And my database is the old one(before reinstalling).

Kindly help me out!

Thank you

Yes Cart

unread,
Sep 14, 2017, 2:34:38 PM9/14/17
to YesCart - pure eCommerce, platform with open source
Hi,

npm is only needed when you are making changes in jam-jsclient. It does not halt is starts and then waits for when you make changes to src/main/typescript files. You do not need to run it just to use JAM. 

mvn clean install - does not change your database in any way, it just build the source code.

The problem with indexes is your configurations I think. All configurations for that would come from the configuration files in env/maven/dev-idea (because you are using "devIntellijIDEA" profile).

Also mvn install does not change your index, only re-indexing from JAM can change index. So unless you run it the index will not change. As for 
"luke" it shows only one product but I got two products
This could be because you added product in JAM when storefront was not running, so indexing would not happen, so you have 2 product in DB but index is still old has only one product. Run re-index.

Regards,
YC team

Ekta Singh

unread,
Sep 18, 2017, 12:16:31 AM9/18/17
to YesCart - pure eCommerce, platform with open source
Hello,
Thank you so much for helping me to this extent in solving my problem. Now my problem is all fixed.

Thanks
Ekta

Yes Cart

unread,
Sep 18, 2017, 6:32:45 AM9/18/17
to YesCart - pure eCommerce, platform with open source
Hi,

Could you share with the group what was the problem and how you managed to fix it? 

Regards,
YC team

Ekta Singh

unread,
Sep 21, 2017, 12:04:17 AM9/21/17
to YesCart - pure eCommerce, platform with open source
Hello,
Excuse me for the late reply.
Well my only problem was that my tomcat didn't own the permission to write otherwise my whole configuration was correct.

Once again thank you
Reply all
Reply to author
Forward
0 new messages