Possible to use Page Source or Inspect to locate items out of stock on ecommerce website


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.

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&nbsp;&pound;76.00 </span></div> 
			<div class="productTxtCls listprice-02 "><span>Then&nbsp;&pound;68.40 </span></div>
			<div class="productTxtCls" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        			<span class="price_now">Now&nbsp;
	        			<span class="price_now" itemprop="price">&pound;64.60</span>
				<link itemprop="availability" href="http://schema.org/OutOfStock" />
			<link itemprop="itemCondition" href="http://schema.org/NewCondition" />
		<!-- R6.1a - Warranty, if there is no price display OOS message -->

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"
 	 	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;amp; aftershave",
		loggedInUsers: "R",
		containerclass: "psp-sfl-button",
		childSku: "",
		childSkuStockLevel: "",
		deliveryOption: "",
		styleNumber: "",
		label: ""
1 Like

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. smile

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 :anguished:

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. :eek:


I don’t know what posts I posted are still visible.

If its the schema mark up you are interested in, you could try Google’s Structured Data Testing Tool:-


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?


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.