Hi,
I'm new to broadleaf commerce. Currently I'm setting up my development environment using oracle database.
I was creating a product in admin, and if not mistaken, this will create a record in BLC_SKU as well.
I manage to display this product, as well as get its defaultSku.
However, i encountered a problem when add to cart, it always hit with error, The requested skuId of " + sku.getId() + " is no longer active.
I debug the code and found out that, the checking in the isActive() under skuImpl.java is false. This is due to hasDefaultSku() is returning false.
protected boolean hasDefaultSku() {
return (product != null && product.getDefaultSku() != null && !getId().equals(product.getDefaultSku().getId()));
}
This part in the SkuImpl.java, all product here is null. When I check database, BLC_PRODUCT_SKU_XREF do not have any record available. This issue solve when I manually add a recrod into this table. M
May I know why record is not created by default int BLC_PRODUCT_SKU_XREF when create Product? Is this is the behaviour or is there anything i miss out?
Thanks
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.