We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e522a2c commit 8225738Copy full SHA for 8225738
src/components/Cart/CartContents.component.tsx
@@ -90,7 +90,14 @@ const CartContents = () => {
90
</div>
91
<div className="flex-grow ml-4">
92
<h2 className="text-lg font-semibold">{item.product.node.name}</h2>
93
- <p className="text-gray-600">{item.product.node.price}</p>
+ {/* Display the price if available, otherwise show a placeholder */}
94
+ <p className="text-gray-600">
95
+ {item.product.node.priceHtml ? (
96
+ <span dangerouslySetInnerHTML={{ __html: item.product.node.priceHtml }} />
97
+ ) : (
98
+ 'Price not available'
99
+ )}
100
+ </p>
101
102
<div className="flex items-center">
103
<input
0 commit comments