mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
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.
26 lines
834 B
PHP
Executable File
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>
|