Skip to content

Commit 03b2dc6

Browse files
committed
Show regular price if on sale
1 parent 6259948 commit 03b2dc6

File tree

4 files changed

+69
-291
lines changed

4 files changed

+69
-291
lines changed

components/Product/SingleProduct.component.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useState, useEffect } from 'react';
33
import AddToCartButton from 'components/Cart/AddToCartButton.component';
44
import LoadingSpinner from 'components/LoadingSpinner/LoadingSpinner.component';
55

6-
import WOO_CONFIG from 'utils/config/nextConfig';
6+
import WOO_CONFIG from 'utils/config/nextConfig';
77

88
/**
99
* Shows a single product with an Add To Cart button.
@@ -58,7 +58,6 @@ const SingleProduct = ({ product }) => {
5858
src={WOO_CONFIG.PLACEHOLDER_LARGE_IMAGE_URL}
5959
/>
6060
)}
61-
6261
<div className="ml-8">
6362
<p className="text-3xl font-bold text-left">{name}</p>
6463
<br />
@@ -110,7 +109,7 @@ const SingleProduct = ({ product }) => {
110109
)}
111110
<div className="pt-1 mt-2">
112111
{
113-
// Display default AddToCart button if we dont have variations. If we do, send the variationId to AddToCart button
112+
// Display default AddToCart button if we do not have variations. If we do, send the variationId to AddToCart button
114113
}
115114
{product.variations ? (
116115
<AddToCartButton product={selectedVariation} />

0 commit comments

Comments
 (0)