function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Edward chanEdward chan 

No change are applied to the figures

Hi,
I did do the change below in Store Front specfically for 'Wee Jet' below
http://dl.dropbox.com/u/40211031/t5.jpg

 

But after the change in Store Front, I really see no change to the 'Total inventory' below for Wee Jet. Why?
http://dl.dropbox.com/u/40211031/t6.png

 

Many Thanks & Best Regards,
Edward Chan

AdrianCCAdrianCC

Hi,

 

Check your update action to see if it correctly sets the Quantity for the product.

 

Are you using a standard controller or a custom one? Can you post here the page and controller code?

 

Ty,

Adrian 

Edward chanEdward chan
Hi,
Here is the page I can see
<apex:page standardStylesheets="false" showHeader="false" sidebar="false"
controller="StoreFront" >
<apex:stylesheet value="{!URLFOR($Resource.styles, 'styles.css')}"/>
<h1>Store Front</h1>
<apex:form >
<apex:outputPanel id="msg">{!message}</apex:outputPanel>
<apex:dataTable value="{!products}" var="pitem" rowClasses="odd,even">
<apex:column headerValue="Product">
<apex:outputText value="{!pitem.merchandise.name}"/>
</apex:column>
<apex:column headerValue="Price">
<apex:outputText value="{!pitem.merchandise.Price__c}"/>
</apex:column>
<apex:column headerValue="#Items">
<apex:inputText value="{!pitem.count}"/>
</apex:column>
</apex:dataTable>
<br />
<apex:commandButton action="{!shop}" reRender="msg" value="Buy" />
</apex:form>
<apex:outputPanel id="msg">{!message}</apex:outputPanel>
</apex:page>

for the relevant page below

http://dl.dropbox.com/u/40211031/t417.png