I have created the project using
mvn archetype:generate -DgroupId=com.mycompany -DartifactId=myecommerce-app -Dversion=1.0.0-SNAPSHOT -DpackageName=com.mycompany.ecommerce -DinteractiveMode=false -DarchetypeGroupId=org.broadleafcommerce -DarchetypeArtifactId=ecommerce-archetype -DarchetypeVersion=1.6.0-GA
Initially the store contains two sample products item1 &item2. I was able to create new mycompany products from the admin section. I am showing the product url using
<c:url var="itemUrl" value="/${product.defaultCategory.generatedUrl}">
<c:param name="productId" value="${product.id}"/>
</c:url>
The product id is showing only for the item1 & 2 (eg: http://localhost:8088/mycompany/store/c ... roductId=2), the other products don't have the product id (eg: http://localhost:8088/mycompany/?productId=). From the source code i found that the product sku details are taken from the entity blc_product_sku_xref and it doesn't contains the mappings for new mycompany products also it has the mappings for item1 & 2.
There is no insertion is take place in the entity blc_product_sku_xref upon product creation, at the same time blc_product_sku is updated properly. Let me know whether i am thinking in the right direction or not. How can i get the product id in the url using the above code.
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.