Hi Phillip,
Any idea about the below mentioned error:
SkuImpl - Inventory was attempted to be invoked on a Sku, but there is no byte code weaving hooked up in order to determine the correct quantity available. If you would like to enable the quantity enable field, hook up the quantityAvailable field via the QuantityAvailableSkuTemplate or override the getQuantityAvailable() method in a SkuImpl subclass. Returning null to indicate that quantity available is unset
I can see in the "org.broadleafcommerce.core.catalog.domain" package, there is a file named as "QuantityAvailableSkuTemplate.java" which contain the following code:
Code: Select all
@Embeddable
public class QuantityAvailableSkuTemplate {
@Column(name = "QUANTITY_AVAILABLE")
@AdminPresentation(friendlyName = "SkuImpl_Sku_QuantityAvailable",
order = 1010,
tab = ProductImpl.Presentation.Tab.Name.Inventory,
tabOrder = ProductImpl.Presentation.Tab.Order.Inventory,
group = ProductImpl.Presentation.Group.Name.Inventory,
groupOrder = ProductImpl.Presentation.Group.Order.Inventory)
protected Integer quantityAvailable = 0;
public Integer getQuantityAvailable() {
return quantityAvailable;
}
public void setQuantityAvailable(Integer quantityAvailable) {
this.quantityAvailable = quantityAvailable;
}
}
Do i need to change anything here?