Skip to content

Commit

Permalink
Show regular price if on sale
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Feb 16, 2021
1 parent 6259948 commit 03b2dc6
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 291 deletions.
5 changes: 2 additions & 3 deletions components/Product/SingleProduct.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState, useEffect } from 'react';
import AddToCartButton from 'components/Cart/AddToCartButton.component';
import LoadingSpinner from 'components/LoadingSpinner/LoadingSpinner.component';

import WOO_CONFIG from 'utils/config/nextConfig';
import WOO_CONFIG from 'utils/config/nextConfig';

/**
* Shows a single product with an Add To Cart button.
Expand Down Expand Up @@ -58,7 +58,6 @@ const SingleProduct = ({ product }) => {
src={WOO_CONFIG.PLACEHOLDER_LARGE_IMAGE_URL}
/>
)}

<div className="ml-8">
<p className="text-3xl font-bold text-left">{name}</p>
<br />
Expand Down Expand Up @@ -110,7 +109,7 @@ const SingleProduct = ({ product }) => {
)}
<div className="pt-1 mt-2">
{
// Display default AddToCart button if we dont have variations. If we do, send the variationId to AddToCart button
// Display default AddToCart button if we do not have variations. If we do, send the variationId to AddToCart button
}
{product.variations ? (
<AddToCartButton product={selectedVariation} />
Expand Down
Loading

0 comments on commit 03b2dc6

Please sign in to comment.