I created a new 'product catalog group' and named it: test1 Then i created a 'product catalog' in the 'product catalog group' (test1) and named it: test2 Lastly I created a category with the name test3 inside the 'product catalog' and added a product to that category.
Then I tried to run this: <xsl:copy-of select="CommerceLibrary:GetCategory('test2', 'Test category')" />
This is the output: The catalog 'test2' does not exist.
It works for the existing product catalog group named uCommerce which is included in the initial install. What am I doing wrong?
Did you assign a hostname to the new product catalog group? uCommerce will automatically select a catalog based on the hostname or if it can't find that use one which is marked default. If there are multiple product catalog groups set as "Default" it will use the first. This is probably what you're seeing.
Catalog does not exist
I created a new 'product catalog group' and named it: test1
Then i created a 'product catalog' in the 'product catalog group' (test1) and named it: test2
Lastly I created a category with the name test3 inside the 'product catalog' and added a product to that category.
Then I tried to run this:
<xsl:copy-of select="CommerceLibrary:GetCategory('test2', 'Test category')" />
This is the output:
The catalog 'test2' does not exist.
It works for the existing product catalog group named uCommerce which is included in the initial install. What am I doing wrong?
Did you assign a hostname to the new product catalog group? uCommerce will automatically select a catalog based on the hostname or if it can't find that use one which is marked default. If there are multiple product catalog groups set as "Default" it will use the first. This is probably what you're seeing.
is working on a reply...