質問 > 管理機能 > [Eigo] How to display product stocks in /admin/product page? |
管理機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
allen28 |
投稿日時: 2018/7/26 16:10
対応状況: −−−
|
新米 登録日: 2018/7/26 居住地: 投稿: 2 |
[Eigo] How to display product stocks in /admin/product page? Hi,
First of all I'm sorry for asking in English, I know that Eccube is a Japanese framework. I just started using Eccube and I'm trying to display the # of Product Stocks in /admin/product page but it's not showing. The code that I use to display is {{ Product.class.stock }} Here's my code:
Thank you in advance for the help! |
468 |
投稿日時: 2018/7/27 0:25
対応状況: −−−
|
神 登録日: 2008/10/26 居住地: 投稿: 3217 |
Re: [Eigo] How to display product stocks in /admin/product page? Hi,
Methods for getting stocks are getStockMin() or getStockMax(). So twig code is {{Product.stock_min}} {{Product.stock_max}}
|
allen28 |
投稿日時: 2018/7/27 10:06
対応状況: −−−
|
新米 登録日: 2018/7/26 居住地: 投稿: 2 |
Re: [Eigo] How to display product stocks in /admin/product page? Hello,
Thank you so much for the help! I tried to use the codes that you gave: {{Product.stock_min}} {{Product.stock_max}} and it worked! However, in case I decided to add new columns in my Product table in the future. For example: I would like to add imported_from field. How can I make it display in the /admin/product page ? Do you have a documentation for this? I can't find the documentation for {{Product.stock_min}} and {{Product.stock_max}} either on https://doc.ec-cube.net/ I'm sorry for the many questions. |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |