When custom description is present, do not display Amazon description.

This commit is contained in:
David Ball 2024-07-11 06:07:19 -04:00
parent 036a4371f8
commit bcaeea3e1e
2 changed files with 15 additions and 9 deletions

View File

@ -167,6 +167,8 @@ clarity and confidence in a variety of environments.
* Nitrogen purging and o-ring seals provide water and fogproof performance
* Rugged construction withstands recoil and impact
* Included GlassPak binocular harness for quick optic deployment in the field
The Crossfire HD binoculars bring HD optics, rugged performance and high end form-factor. Add in the included GlassPak binocular harness for quick optic deployment in the field and superior protection and comfort. The Crossfire HD truly is a rare find.
`.trim(),
productDetails: {
"title": "Vortex Optics Crossfire HD 10x42 Binoculars - HD Optical System, Tripod Adaptable, Rubber Armor, Waterproof, Fogproof, Shockproof, Included GlassPak - Unlimited, Unconditional Warranty",

View File

@ -56,15 +56,19 @@ const category = categories.find(c => c.id == product.categoryId)!;
<p>
<StarRating value={product?.productDetails?.reviewRating||0} max={5} overlayColor="#13151a" /> {product?.productDetails?.reviewCount} Reviews
</p>
{ product?.description && <div set:html={md.render(product?.description||'')}></div> }
{ !product?.description &&<ul role="list">
{product?.productDetails?.featureBullets?.map(featureBullet => (
<li>{featureBullet}</li>
))}
</ul> }
<p>
{product?.productDetails?.description && product?.productDetails?.description}
</p>
{ product?.description &&
<div set:html={md.render(product?.description||'')}></div>
}
{ !product?.description &&
<ul role="list">
{product?.productDetails?.featureBullets?.map(featureBullet => (
<li>{featureBullet}</li>
))}
</ul>
<p>
{product?.productDetails?.description && product?.productDetails?.description}
</p>
}
<a href={product?.amazonLink} class="btn btn-primary">{formatAsCurrency(product?.productDetails?.price||0)} On Amazon <span>&rarr;</span></a>
</div>
</div>