BigCommerce: how can I set up CategoryProductListing

I am trying to customize a product in the CategoryContent panel in BigCommerce. I want to change the markup for each product in the list, but the markup for the entire product list falls into the uneditable blob: %% GLOBAL_CategoryProductListing %% (I get really tired of these immutable GLOBAL variables).

Is there any way around this so that I can put my own markup for each product on the list. I am also reluctant to reconstruct the product list using the API, but I'm not sure how I can access the API from the BigCommerce store. Is it possible?

+4
source share
2 answers

I was able to identify Snippets / CategoryProductsItem.html as a file containing markup for individual items in a category list.

Hope this saves someone when I need to find the file.

+15
source

Snippets / CategoryProductsItem.html is the snippet used for grid category files. If you are using a list view, this is the Snippets / CategoryProductsItemList.html file.

This file is a list of all li products. It acts as a template that iterates over all the %% GLOBAL_CategoryProductListing %% information for this category. To add a function to the ProductList li category, add it to the fragment, and it will be applied to each element.

Hope this helps.

+5
source

Source: https://habr.com/ru/post/1502661/


All Articles