BV Commerce Forum
»
BV Commerce Support
»
Development
»
Add "Quantity for Sale" to product page
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
Any way to add "Quantity Available for Sale" to our product page? We have Product Choices (Group A and B) and would like to display the "For Sale" amount from inventory page.
How do I do that? I'm not a programmer so will need step by step directions.
Bob Noble
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hi Bob, I have actually been working on this for a while now. Initially it is easy to do, but there are limitations when you include product modifiers, inventory, and combining displays. Could you tell me if any of your products have modifiers, and if you would want to display the inventory for each?
Thanks! Everett |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
Everett: The trivial solutions always take forever and the difficult ones can be solved in a min. I think Murphy said that. No. I'm just using Product Choices with Product Inputs for the items I keep inventory track. Although I could where others could use it to show how many small grey T-Shirts are left for sale. If you go to our site www.laurastamm.net and order a clinic, you will see (for most of them) we have 2 groups available. Since most of the phone calls I receive ask me "Do you still have room in Group A?" I figured if I could put the inventory on the product page, it may reduce some of those calls. I currently have is it set up as a drop down list but now that I think about it, it might work better with the inventory displayed if I used radio buttons. Thanks working this for me. Bob Noble
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hey Bob, Could you tell me how you have your inventory for the products configured? One problem that I have encountered involves bizarre behavior when the inventory is set to "remove from store". If you do not configure you inventory this way, my modification may work until we have a permanent solution. Thanks, Everett |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
Everett: We set our inventory to show as Out of Stock, Do not Allow Orders. Our customers need to be able to come back and check dates and times etc even if the clinic is filled. So the inventory should still show even if it is zero.
But I do suspect there may be some spooky things going on with inventory that may or may not be connected to some problems with the offers. On rare occasion, my inventory gets screwed up (turned off) and I ask the question, is it a bug or did I screw up something. I usually decide it was me because I can't reproduce it. However, if you're working with SP2 beta most of the offer problems should be fixed.
Bob Noble
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hi Bob, I have attached two files to this post. Create a new folder in your SiteRoot\BVModules\ProductTemplates\ folder named "InventoryTest". Copy these files there. Edit one of your products to use the "InventoryTest" display template. Let me know if your inventory is displayed correctly. Thanks, Everett P.S. - I have just uploaded updated files to this post that support Product Choices and different Inventory configurations. As always, please test before deploying any changes! I appreciate any feedback. Thanks! File Attachment(s): Product.aspx.vb (8kb) downloaded 311 time(s).You cannot view/download attachments. Try to login or register. |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
I updated the Product.aspx file to grab the style for the "qty" class instead of the "yousave" class.
Everett |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
Everett:
This works really good. I just found this today. Sorry I didn't get to it earlier.
It puts the "Available Quantity" just above purchase "Qty" right above the Check Out buttons. And the "Available Quantity" displays as "0" until you select an appropriate product choice (as it should). I also like that they are not in bold.
I tested it on our T-Shirts (different colors, different sizes) and it works there too.
Only suggestion I have is: Can you do it for the BV4 layout as well? We like having the menu in the left column (we have bread crumbs turned off so the info from our restricted access pages doesn't show) and mostly like the "Email this Page" and "Print this Page" buttons. Or is this like starting a whole new project? (I tried some cut and paste and that obviously didn't work!)
Thanks Everett.
Bob Noble
|
|
|
|
Rank: Member
Joined: 3/25/2006(UTC) Posts: 111
|
Everett: Are the Product.aspx and the product.aspx.vb files you had posted going to be included in SP2 when it comes out next week? Thanks, Bob
|
|
|
|
Rank: Member
Joined: 5/22/2004(UTC) Posts: 64
|
Ant thoughts? I tried it, but this is what I get:
<H1>Server Error in '/gocyan' Application. <HR width="100%" color=silver SIZE=1> </H1> <H2>Compilation Error </H2> [color=#ffffcc>
[tr ][td ][/tr][tr ]<TD><CODE> Line 89: Line 90: ' Image [color=red>Line][/color]Line 92: Line 93: ' Cross Sell</PRE>[/code][/td][/tr]</TABLE> <FONT face=Verdana>Source File: c:\inetpub\wwwroot\Go Cyan\BVModules\ProductTemplates\Inventory Test\Product.aspx.vb Line: 91</FONT>
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hey Dan.
Open "c:\inetpub\wwwroot\Go Cyan\BVModules\ProductTemplates\Inventory Test\Product.aspx.vb" and comment the following line:
Me.ProductMainImage.ImageUrl = Me.LocalProduct.ImageFileMedium |
|
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
Yeh. I tried it again after upgrade to SP2.
I did you fix Nick and now it is crashing on line 104. Same error.
Bob Noble
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hey Bob. Can you take a SS of the error? |
|
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Hi Bob,
We have an in-house customization that is a user control that allows you to add HTML to your product page and uses BVC style [[]] field delimiters for Inventory Data.
Allows, 3 separate messages to be displayed both on stock status, In Stock, Out of Stock, and Low Stock, with the level needed for Low Stock to be displayed being able to be set.
HTML is defined globally in the admin section (under plugins) and can be overriden on a product by product basis.
If you are interested, you can contact us at info [at] caplinkbdc [dot] com |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hi Bob, Here are updated templates that show the available quantity for the product. Download them and install the files into new folders. Don't overwrite any existing templates, at least not until you have verified that these work properly. And there is a 2004 template in there for you as well. Thanks, Everett File Attachment(s): ProductTemplates.zip (10kb) downloaded 154 time(s).You cannot view/download attachments. Try to login or register. |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
Awesome!!
Thanks Everett
Both of them work great.
Bob Noble
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.