Unhandled Error!

Undefined variable: stock_status

Document shop:product
Document type CMS partial
Line 153
Exception class Cms_ExecutionException

Code Highlight

									</label>
								</div>
							<?php endforeach; ?>
						</div>
					<?php endif; ?>			
				<meta itemprop="availability" itemtype="http://schema.org/ItemAvailability" content="<?php	
					if ($stock_status == 1) {print 'http://schema.org/InStock';} else if ($stock_status == 2) {print 'http://schema.org/PreOrder';} else {print 'http://schema.org/OutOfStock';}
				?>" />				
			<meta itemprop="priceCurrency" content="GBP" />	
			<?php
			if ($product->om('is_on_sale', $posted_options))
			{
				?><meta itemprop="price" content="<?php print $product->om('sale_price', $posted_options);?>" /><?php
# Document Type
2 shop:product CMS partial
1 Product CMS page