on ‎2018 Aug 16 9:04 AM
Hi All, We are not able to see in stock quantity on PDP page. Below is the impex file code snippet: INSERT_UPDATE StockLevel;available;warehouse(code)[unique=true];inStockStatus(code);maxPreOrder;maxStockLevelHistoryCount;overSelling;preOrder;productCode[unique=true];reserved ;100;warehouse_c;forceInStock;0;-1;0;0;CCAP00001;0 Thanks!
Request clarification before answering.
Any other suggestion Please. Available stock quantity not coming.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Asif Bhai,
Just adding stock in stocklevel is not enough. We need to associate the stocklevel to the product. i am not sure which product catalog you are using. just update the catalog version variables and follow the script.
Correct the catalog version according to your application and After running the below script you pleas do the synchronization.
$productCatalog=powertoolsProductCatalog
$productCatalogName=Powertools Product Catalog
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
$vendor=powertools
INSERT_UPDATE StockLevel;productCode[unique=true];warehouse(code)[unique=true,default=default];available;inStockStatus(code);maxPreOrder[default=1];maxStockLevelHistoryCount[default=-1];overSelling[default=0];preOrder[default=0];reserved[default=0]
;CCAP00001;warehouse_c;1000;forceInStock
INSERT_UPDATE Product;code[unique=true];stockLevels(productCode,warehouse(code));vendors(code)[default=$vendor];$catalogVersion
;CCAP00001;CCAP00001:warehouse_c
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It comes based on stocklevel property of StockData.java and its coming empty. I chked the .tag file and also debug the code. stocklevel is empty. While in BO i can see available count. While for powertool storefront stock level value is cod displaying on PDP page. What could be the cause that quantity is there in BO while coming empty in frontend.? Stock statuc "Instock" & "out of stock" is refelecting based on my changes. Issue is only with quantity.
try changing forceInStock with 'notSpecified' and import the impex.
Let me know how you go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.