• Resolved cexilia

    (@cexilia)


    I need to implement two different templates of this type:
    One for the product page itself, and another one for the company’s product page
    (I need to put different sidebars on each)

    The one for the product itself is working great, but I don´t know how to make the changes to make it work for the other case
    how can I do it?
    I cannot find any solution, please help

    thanks on advance

    https://wordpress.org/plugins/ecommerce-product-catalog/

Viewing 1 replies (of 1 total)
  • Plugin Author ndre

    (@ndre)

    Hi,

    Did you try the Product Manufacturers extension? It allows to enable the manufacturers sidebar (it’s new feature available in the newest version).

    If you prefer using the product categories for manufacturers you can modify your product-adder.php to show different sidebar depending on the category displayed (it requires some PHP knowledge):

    if (get_queried_object_id() == 5) {
    get_sidebar('x');
    } else {
    get_sidebar('y');
    }

    5 is category id
    x and y are sidebar IDs

Viewing 1 replies (of 1 total)

The topic ‘product-adder.php’ is closed to new replies.