Files
Gordon HeydonandJeremy 6e35588f49 [#127] Add product availability tracking with stock status matching
Add availability field to URLs for tracking product stock status (in stock, pre-order, back order, special order, out of stock, discontinued). Includes configurable match rules per store with exact match and regex support, priority-based matching, and a default status fallback. Out-of-stock products can now be added with price set to 0. Added The Tech Geeks store with availability detection and seeded Ubiquiti products.
2026-03-27 13:52:51 +11:00

26 lines
834 B
PHP
Executable File

<html>
<head>
@if (isset($title) && $title !== 'invalid')
<meta property="og:title" content="{{ $title }}">
@elseif (!isset($title))
<meta property="og:title" content="Example product">
@endif
@if (isset($image) && $image !== 'invalid')
<meta property="og:image" content="{{ $image }}">
@elseif (!isset($image))
<meta property="og:image" content="https://place-hold.it/300">
@endif
@if (isset($price) && $price !== 'invalid')
<meta property="og:price:amount" content="{{ $price }}">
@elseif (!isset($price))
<meta property="og:price:amount" content="$15.00">
@endif
</head>
<body>
<p>This page is used for test responses</p>
@if (!empty($availability))
<span class="availability">{{ $availability }}</span>
@endif
</body>
</html>