Stock Level on a Category Page |
Post Reply |
Author | |||||||
avalight
Newbie Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 23-May-2012 at 12:38pm |
||||||
Hello
I am interested in displaying the units on hand for a non-apparel product on the category page. The information shows up on the product page, but the visitor must click through before they can see how many units are in our inventory. Perhaps this is a small tweak to the code, I don't know. Thoughts, anyone? Thanks curt |
|||||||
Curt
|
|||||||
Guests
Guest |
Post Options
Thanks(0)
|
||||||
Hi Curt,
This is easily doable ... I just haven't had a minute to respond with instruction on it today. Meanwhile, could you let us know what layout you're using for your category pages?
|
|||||||
avalight
Newbie Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
||||||
Hi Sean
Here is the category page i am putting this on: page link So I think that is horizontal. I think the code mod is in the pcShowProductH.asp, around line 33 I am using V4.5a Best Curt |
|||||||
Curt
|
|||||||
Guests
Guest |
Post Options
Thanks(0)
|
||||||
Hi Curt, I couldn't resist looking into this before I shut down tonight. Displaying the stock qty is a snap as the data is already there. You can simply place something like the following on any pcShowProduct*.asp page wherever you'd like it:
I would probably put this right above the "more info" and "buy" buttons. To limit this to only display for non-apparel products, you'll need to tweak some stock code. First, you'll need to add the field to the query generating the array of product data. Find:
Below that is the query you'll need to edit. In that query, find:
Add the new field so that part is now:
Now capture that from the product array to use later. Find:
Below that, add:
Now you can use this information on your display intelligently, so that the above display markup would be instead, like this:
I expect that should do what you're looking for.
|
|||||||
avalight
Newbie Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
||||||
Wow, thanks, I will check it out and let you know how it went.
Best Curt |
|||||||
Curt
|
|||||||
Guests
Guest |
Post Options
Thanks(0)
|
||||||
Hi Curt,
How'd it go? I do see a little syntax error in my directions above, though. This bit should be:
I hope that didn't throw you. This is so "doable" that I'd like to add it to the wiki once I know how it went for you.
< id="Siber_1" ="application/rf-chrome-plugin" style="left: 0px; top: 0px; width: 0px; height: 0px; : fixed; display: block; "> |
|||||||
avalight
Newbie Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
||||||
Hi Sean
I only used part of the code, as the products that I was showing were not apparel products and in a special category I created for Quick Ship Products. [code] <% if pIDCategory=35 then %> <p class="pcShowProductStock">Stock on Hand: <%=pStock%></p> <% end if %> [code] In your code, does the stock on hand show alongside each product option without having to click? Anyway, it was helpful to get this from you. Thanks Curt |
|||||||
Curt
|
|||||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |