drdiesel Posted Sunday at 05:06 PM Share Posted Sunday at 05:06 PM Hello everyone, if you need to correct the output on the stock page, then you need to make edits in stock.bundle.js. I needed to add a "product type" column, I implemented it like this: ",n("td",[t._v(t.product.combination_id > 0 ? "Kombinationer" : "Enkelt")]),n("td",[t._v(t.product.stock_location)])". I hope it will be useful to someone Link to comment Share on other sites More sharing options...
JBW Posted Monday at 08:09 AM Share Posted Monday at 08:09 AM I looked into the same, unfortunately there seem no proper way to extend stock grids at the moment. Modification of stock.bundle.js won't be upgrade safe https://github.com/PrestaShop/PrestaShop/discussions/39359 Link to comment Share on other sites More sharing options...
drdiesel Posted Monday at 08:48 AM Author Share Posted Monday at 08:48 AM Yes, I agree. This is a temporary solution. Another option is to create a package.json file, edit the *.vue files in Backoffice/themes/new-theme/js/app/pages/stock/components/overview/product-line.vue, and recompile npm. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now