Using product_type taxonomy in the product collection routes #79
-
Hello! I'm trying to match my current URL structure exactly for SEO purposes and having issues. Basically for product there’s a Here’s an example from a product:
here’s the blueprint snippet for the product collection:
Current live URL: I'm trying to replicate with this URL: I tried various things like changing the product collection URL in the CP but it always gives me the 404. And I also tried mounting the collection on the shop page. I checked out the docs page and it mentioned it might not work to use shopify taxonomies on the frontend but it didnt go into specifics. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I got it! The routes for products looks like this Now I'm onto the next problem to solve 🤣... Getting types to use an URL like this: |
Beta Was this translation helpful? Give feedback.
-
Thanks for figuring that one out. Your next problem should be as simple
as mapping product_type to your own product _category taxonomy.
SHOPIFY_TAXONOMY_TYPE="product_category"
Mike Martin Designs
***@***.*** ***@***.***>
0413 780 407 <tel:0413780407>
On August 16, 2021, GitHub ***@***.***> wrote:
I got it! The routes for products looks like this route:
'shop/{{type:0}}/{{slug}}'
Now I'm onto the next problem to solve 🤣... Getting types to use an
URL like this:product-category/headwear/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/jackabox/statamic-
shopify/discussions/79#discussioncomment-1187405>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AADFEA6OSMEOXFQ6BJM2WSTT5AI3BANCNFSM5CERR7QQ>.
|
Beta Was this translation helpful? Give feedback.
-
All Statamic taxonomies will automatically get a route of
/taxonomy_name/{term} when you have a view template in
/views/taxonomy_name/show.
On August 16, 2021, GitHub ***@***.***> wrote:
Is this preferred to adding a route to the default taxonomy tag that
came via shopify? (default was tag but I do prefer product_tag)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/jackabox/statamic-
shopify/discussions/79#discussioncomment-1187493>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AADFEA76B37LXGEALBDTAM3T5AOOTANCNFSM5CERR7QQ>.
|
Beta Was this translation helpful? Give feedback.
-
There isn’t anyway to customise taxonomy routes at the moment.
On August 16, 2021, GitHub ***@***.***> wrote:
Yeah, but is there a way to change the taxonomy route manually? Like
can I use taxonomy tag with a route of product-category? I'm guessing
thats not possible and I'll just have to change the taxonomy name.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/jackabox/statamic-
shopify/discussions/79#discussioncomment-1187540>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AADFEA6BHCNCKEGOKCMYX73T5ARTTANCNFSM5CERR7QQ>.
|
Beta Was this translation helpful? Give feedback.
I got it! The routes for products looks like this
route: 'shop/{{type:0}}/{{slug}}'
Now I'm onto the next problem to solve 🤣... Getting types to use an URL like this:
product-category/headwear/