Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BigCommerce: How can I customize CategoryProductListing

Tags:

bigcommerce

I'm trying to customize a product in the CategoryContent panel in BigCommerce. I want to change the markup for each product in the listing, but the markup for the entire product list is trapped in an uneditable blob :%%GLOBAL_CategoryProductListing%% (I'm getting really tired of these unchangable GLOBAL variables).

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

like image 594
Lounge9 Avatar asked Dec 01 '22 03:12

Lounge9


2 Answers

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

I hope this saves someone the time it took me to find the file.

like image 78
Lounge9 Avatar answered Jan 05 '23 08:01

Lounge9


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

This file represents each product listing li. It acts as a template which loops through all the %%GLOBAL_CategoryProductListing%% information for this category. To add a feature to the category ProductList li add it to the Snippet, and it will be applied to each item.

Hope this helps.

like image 22
thannes Avatar answered Jan 05 '23 08:01

thannes