Forum  Discuss AliComm...  Store UI: Theme...  Display remaining inventory?
Previous Previous
 
Next Next
New Post 2/13/2008 11:46 AM
Resolved
  Howard Landsman
44 posts
No Ranking


Display remaining inventory? 
Modified By Howard Landsman  on 2/18/2008 10:05:55 AM)

I can't find a setting or a control for this. I don't mind modifying template files if necessary... I just need to know what control to use in the ProductTemplate.ascx document, if that's how it has to be done.

Thanks!

 
New Post 2/14/2008 4:28 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Display remaining inventory? 

Please try the the following code snippet in that control:

            <div class="ProductInventory">
                <div class="ProductHead">
                    <asp:Label ID="lblQuantityForSaleHeader" runat="server" Text="Quantity For Sale:" /></div>
                <div class="ProductNormal">
                    <asp:Label ID="lblQuantityForSale" runat="server" Text='<%#CurrentProduct.Inventory.QuantityForSale.ToString())%>' />
                </div>
            </div>

Let me know how it goes.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 2/15/2008 8:16 AM
  Howard Landsman
44 posts
No Ranking


Re: Display remaining inventory? 

Not so hot, I'm afraid... it went like this:

! A critical error has occurred.

[path, etc.]/StandardProductTempalte.ascx (68): error CS1002: ; expected

 
New Post 2/16/2008 6:38 PM
  AliCommerce
1056 posts
1st Level Poster


Re: Display remaining inventory? 

try this:

            <div class="ProductInventory">
                <div class="ProductHead">
                    <asp:Label ID="lblQuantityForSaleHeader" runat="server" Text="Quantity For Sale:" /></div>
                <div class="ProductNormal">
                    <asp:Label ID="lblQuantityForSale" runat="server" Text='<%#CurrentProduct.Inventory.QuantityForSale.ToString()%>' />
                </div>
            </div> 

 


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 2/18/2008 9:05 AM
  Howard Landsman
44 posts
No Ranking


Re: Display remaining inventory? 

That's the one! Thanks a lot, Frank!

 
New Post 2/18/2008 1:13 PM
  AliCommerce
1056 posts
1st Level Poster


Re: Display remaining inventory? 
Modified By AliCommerce  on 2/18/2008 2:13:29 PM)

Happy to hear that worked.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 6/23/2008 10:14 AM
  Howard Landsman
44 posts
No Ranking


Re: Display remaining inventory? 

How would the code need to differ in order to display the remaining inventory for each item on the category page?

 
New Post 6/24/2008 1:01 AM
  AliCommerce
1056 posts
1st Level Poster


Re: Display remaining inventory? 

try this:                        

<asp:Label ID="lblQuantityForSale" runat="server" Text='<%#((Product) Container.DataItem).Inventory.QuantityForSale.ToString()%>' />


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 6/24/2008 5:39 AM
  Howard Landsman
44 posts
No Ranking


Re: Display remaining inventory? 

Worked like a charm, Frank. Thanks much.

 
Previous Previous
 
Next Next
  Forum  Discuss AliComm...  Store UI: Theme...  Display remaining inventory?
Copyright 2008 by CandoSuite Terms Of Use Privacy Statement