• Resolved Technoh

    (@technoh)


    Hello,

    I started using and customizing your eCommerce Product Catalog a few weeks ago. I am trying to change the title provided in the product listing and also adapt the product listing itself. I have copied the file product-listing.php from the templates/full directory to my theme’s directory/implecode but nothing I put in the file is used.

    Note that the file product-page-inside.php worked very well. I made my changes, uploaded the file and everything was there. But nothing works for product-listing.php. Even if I remove everything in the file just put a simple echo or error_log statement, nothing changes. I even tried to delete the /plugins/ecommerce-product-catalog/templates/full/product-listing.php file but nothing changed. Why is this file not used? Where is the template that is actually used to display the product listing?

    Please assist.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ndre

    (@ndre)

    Hi @technoh,

    The product-listing.php works only in advanced mode (Catalog Settings > Layout mode – this setting shows up only when the [show_product_catalog] shortcode desn’t exist on the main catalog listing page).

    To change the title you can go to Catalog Settings > Front-end labels.

    What else would you like to customize?

    Thread Starter Technoh

    (@technoh)

    Hi @ndre,

    Thanks for the quick reply. I am looking to remove the h2 element, recreate the filter section so that it becomes sticky (when scrolling down) and possibly add elements in each product on the grid.

    Removing the text in Catalog Settings -> Front-end Labels did remove the h2 subtitle so that’s done. How would I go about recreating the filters bar since it’s created in functions.php? Also, how would I go about creating a new design for each product while keeping the same grid? (I use modern)

    Thanks again!

    Plugin Author ndre

    (@ndre)

    To remove the default filters bar you can use the following code:

    remove_action( 'before_product_list', 'show_product_sort_bar', 10, 2 );

    and add your own:

    add_action( 'before_product_list', 'my_show_product_sort_bar', 10, 2 );
    
    function my_show_product_sort_bar() {
    //your code
    }

    To customize the grid element you should use the template file located in templates/template-parts/product-listing/modern-grid.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Template file product-listing does not work’ is closed to new replies.