Support » Plugin: eCommerce Product Catalog Plugin for WordPress » Output customizations – category and product listing – hooks?

  • Resolved teamorange

    (@teamorange)


    We are continuing to test the plugin against some requirements we have to see if it will work for us and/or what customization we will need to make.

    We need to be able to do the following:

    1. A 2nd category image (one used in the listing of categories/subcategories and a different one for the category’s info displayed above above the product/subcategory listing)
    2. Output the short description for the products on the product listing
    3. Disable/remove the link on the products in the listing. We do not want links details pages. This was asked almost a year ago, but it was closed with no comment.

    We see the code in the files in templates/themes/folder where the actual HTML content is setup for each category and product. In order to not modify these files directly, are there hooks or a process to replace/override this setup or specifying our own template? We found the information about setting up the implecode folder in our theme and copying the categories-listing.php file into it in order to adjust the overall listings themselves, but that does not affect the individual item’s HTML setup.

    Any information would be appreciated.

    Thanks

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

    (@ndre)

    Hi @teamorange,

    1. It looks like this will require some custom coding to achieve
    2. The short description will be shown on product listing if you select Classic List in Catalog Settings > Catalog Design tab.
    3. Currently there is no out of the box way to modify the individual listing entry HTML. It will involve using the ‘ecommerce_catalog_templates’ filter to modify the existing template. Please see the example code to override the default modern grid template:

    add_filter('ecommerce_catalog_templates', 'my_ecommerce_catalog_template', 10, 3);
    
    function my_ecommerce_catalog_template($templates_array, $post, $selected_template) {
    $templates_array['default'] = my_default_template($post, $selected_template);
    return $templates_array;
    }

    As an addition you should create my_default_template function to define the expected HTML output.

    The easiest way to achieve what you are looking for is the Table View extension which will let you display any product data on the listing with or without a link to the product page using a simple checkbox settings.

    Thanks, that gave us a good starting point for most of what we need.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Output customizations – category and product listing – hooks?’ is closed to new replies.