mirror of
https://github.com/myronblair/tomsjavajive
synced 2026-06-30 17:50:32 -05:00
Use product name as-is for merchant feed title
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -34,8 +34,7 @@ foreach ($products as $p) {
|
|||||||
$grindNote = $p['category'] === 'Bean'
|
$grindNote = $p['category'] === 'Bean'
|
||||||
? 'Available as whole bean so you can grind fresh for maximum flavor.'
|
? 'Available as whole bean so you can grind fresh for maximum flavor.'
|
||||||
: 'Pre-ground to a versatile medium grind, ready to brew right out of the bag.';
|
: 'Pre-ground to a versatile medium grind, ready to brew right out of the bag.';
|
||||||
$nameSuffix = stripos($p['name'], 'coffee') !== false ? '' : ' ' . $categoryLabel . ' Coffee';
|
$title = htmlspecialchars($p['name']);
|
||||||
$title = htmlspecialchars($p['name'] . $nameSuffix);
|
|
||||||
$rawDesc = $p['description'] ?? '';
|
$rawDesc = $p['description'] ?? '';
|
||||||
if (!empty($rawDesc)) {
|
if (!empty($rawDesc)) {
|
||||||
$desc = htmlspecialchars(
|
$desc = htmlspecialchars(
|
||||||
|
|||||||
Reference in New Issue
Block a user