Closed jcm236 closed 2 months ago
The code for the product category layout overrides the collection to page.collection if it exists. But page.collection means the page has to be in the same collection as the product. Ref: Variables
Please can you try updating the _config.yml to use version v1.0.4 in the remote theme as this was only added recently. I will work on updating the docs to state this.
Could you please provide an example product category page with a collection override?
I have updated the version of the theme to 1.0.4
I will open a PR to merge it
If this is merged, which version of the theme will I have to update to?
Hi. Please use 1.0.4. You don't need to edit the theme files, just add the name of your collection to the category page. Please see the documentation here.
https://www.csrhymes.com/bulma-clean-theme/docs/products/category-page/#customising-the-collection
Thank You! It works now.
I have a website here: repo In the
_config.yml
file I have set software to be a collection and set the collection variable inplugins.md
to software. But the build fails if I do this. If I add products as a collection in the config file but keep collection as software in plugin.md, the build is successful. How do I override the default collection for products?