Hello
I am very new to HTML and coding and would very much like some help from you experts.
On an ecommerce website, is there is an easy way to see stock levels of all items on sale? could I use the page source or inspect to locate which products are in and out of stock?
For example, at this link https://www.debenhams.com/beauty/perfume-aftershave?ps=max in the view source page I can see there are 3 instances where href=“http://schema.org/OutOfStock ” comes up however I can’t see whcich products these relate to.
Any help would be appreciated.
Thanks
Hannah
If you look at the first occurrence of that on the page:
<div class="price" id="WC_ProductThumbnailDisplayJSPF_159467000599_div_3">
<!-- BEGIN CatalogEntryPriceDisplay.jspf-->
<div class="productTxtCls listprice-01 "><span>Was £76.00 </span></div>
<div class="productTxtCls listprice-02 "><span>Then £68.40 </span></div>
<div class="productTxtCls" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span class="price_now">Now
<span class="price_now" itemprop="price">£64.60</span>
</span>
<link itemprop="availability" href="http://schema.org/OutOfStock" />
<link itemprop="itemCondition" href="http://schema.org/NewCondition" />
</div>
<!-- R6.1a - Warranty, if there is no price display OOS message -->
</p></div>
you’ll see the id of the containing div has a code number in it:
<div class="price" id="WC_ProductThumbnailDisplayJSPF_159467000599_div_3">
Now if you look at the section above, you’ll find a matching code number, and the product information is there.
<div id="SFLProductList_div_1_159467000599" class="save-for-later-button-container">
<div data-dojo-type="ibm/widget/SFLButton"
data-dojo-props='
serviceURL: "/wcs/resources/store/10701/interestitem/catentrys",
catentryId: "30984024",
name: "BLEU DE CHANEL Parfum Spray 50ml",
deptCode: null,
parentSku: "159467000599",
brand: "CHANEL",
country: "GB",
currency: "GBP",
lang: "en",
tagNavigation: "Beauty|Perfume &amp; aftershave",
loggedInUsers: "R",
containerclass: "psp-sfl-button",
childSku: "",
childSkuStockLevel: "",
deliveryOption: "",
styleNumber: "",
label: ""
'></div>
</div>
1 Like
SamA74
July 27, 2018, 11:21am
6
Most Ecommerce systems have an Admin panel where you can manage your inventory stock levels.
I’m guessing the OP isn’t working for Debenhams, but is just looking for help in interpreting their code.
I got scared. I didn’t know what to say. On my phone it took over 58 seconds to load, even checking the source code. Maybe my phone is messing up.
I couldn’t pull up any of the source code you posted. I’m walking away from this one
I don’t think this is the OP’s website, @brianfrank . Debenhams, for its sins, is a national department store in the UK, and they need a lot of work on their website.
2 Likes
I don’t know what posts I posted are still visible.
SamA74
July 27, 2018, 12:01pm
11
If its the schema mark up you are interested in, you could try Google’s Structured Data Testing Tool:-
2 Likes
Thanks for all your replies!
@SamA74 the google structured data tool looks like it could be very useful. Is there any way of transferring this data to an excel spreadsheet or do a search for the outofstock items?
Thanks
Hannah
system
Closed
October 26, 2018, 7:18pm
13
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.