posted on March 30, 2010 01:36:12 PM new
I would like to give the customer the ability to see what my quantity on hand is before they buy. Can this field be shown in the item details on the customer view?
Or is there a back-end way of pulling it out of the database using code that I can insert in the description?
The customer end needs to have much more flexibility on what is shown and what is hidden.
[ edited by pezlife on Mar 30, 2010 01:38 PM ]
When you try to add more to your cart than is available in inventory the storefront will say: "We are sorry, there are not enough items in stock to fill the quantity requested."
At this time there is no preference or setting that you can use to opt/out out of that would show your inventory levels to anyone viewing your storefront.
It's possible there is something you can tweak in your own custom code which we will ask the engineers about on your behalf and post back when we have more information .
posted on March 30, 2010 02:04:00 PM new
That would be a wonderful addition to the available options, including being able to add your custom fields (to be visible by the customer) that you set up in your preferences. Sometimes, this information is designed for customer consumption.
Example: If a person sells shirts and they create a spreadsheet based on the CSV template that is provided and they add their own customer fields and two of those customer fields are 'size' and 'color.' Entering the size and color into the spreadsheet it easy and if it was able to transfer directly to the customer (as the 'title' and 'price' does), it would mean less work for the store owner. Also, if there was reusable code for store owners to be able to pull the field from the table in the database to be used in custom HTML in the description area, that would be really useful, too.
To add this information into your item detail page, you should edit the 'content/item.html' file and to add {iteminfo:/Storefront/ItemsInfo/Items/Item/QtyAvailable} where you want to display it.
You will want to use:
<notag
rst:content="{iteminfo:/Storefront/ItemsInfo/Items/Item/QtyAvailable}"/>
for this.
For the items page, you would edit the 'content/category.html' and add {item1:/QtyAvailable}, {item2:/QtyAvailable}, {item3:/QtyAvailable}, etc., depending on the template being used.