Skip to content

Commit

Permalink
Merge pull request #303 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Update packages and routes
  • Loading branch information
w3bdesign authored Jan 7, 2021
2 parents acdb275 + 13f40d7 commit 22129d5
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 224 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Optional plugin:

The current release has been tested and is confirmed working with the following versions:

- WordPress version 5.5.3
- WordPress version 5.6.0
- WooCommerce version 4.8.0
- WP GraphQL version 1.0.3
- WP GraphQL version 1.0.5
- WooGraphQL version 0.6.1

2. For debugging and testing, install either:
Expand Down
14 changes: 11 additions & 3 deletions components/Product/IndexProducts.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ const IndexProducts = ({ products }) => {
key={uuidv4()}
className="flex flex-col p-6 md:w-1/2 xl:w-1/4"
>
<Link href="/produkt/[post]" as={`/produkt/${slug}?id=${databaseId}`}>
<Link
href={`/produkt/${encodeURIComponent(
slug
)}?id=${encodeURIComponent(databaseId)}`}
>
<a>
{image ? (
<img
Expand All @@ -49,7 +53,12 @@ const IndexProducts = ({ products }) => {
)}
</a>
</Link>
<Link href="/produkt/[post]" as={`/produkt/${slug}?id=${databaseId}`}>

<Link
href={`/produkt/${encodeURIComponent(
slug
)}?id=${encodeURIComponent(databaseId)}`}
>
<a>
<div className="flex justify-center pt-3">
<p className="font-bold text-center cursor-pointer">
Expand All @@ -58,7 +67,6 @@ const IndexProducts = ({ products }) => {
</div>
</a>
</Link>

{/* Display sale price when on sale */}
{onSale && (
<>
Expand Down
Loading

1 comment on commit 22129d5

@vercel
Copy link

@vercel vercel bot commented on 22129d5 Jan 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.