Support » Plugin: Product Categories Designs for WooCommerce » Presale question – archive-product.php override

  • Resolved maxou82

    (@maxou82)


    Hi, just a presale question. Is it possible to use this plugin to replace the default product archives in woocommerce (categories and sub categories pages) ?
    Like adding the slider shortcode in the archive-product.php template file so every categories and subcategories on the site would display like a slider ?
    Thanks in advance for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thanks for reaching here.
    Yes, it’s possible but you need to add current category id in the shortcode ‘ids’ parameter and may be some customization need in the category page template.

    Thanks

    • This reply was modified 2 months, 1 week ago by Rafik.

    Dear @rafikwp , how to get auto id to shortcode display in category page ?
    I used this code bellow but not work ok

    <?php
        $cate = get_queried_object();
        $cateID = $cate->term_id;
        echo do_shortcode("[wpos_product_categories ids='$cateID']"); 
    ?>
    • This reply was modified 1 month, 1 week ago by webtrongoi.

    Hello,

    Thanks for the reaching.
    Please share your page URL so we can check it.

    Meanwhile, you can try this code

    $categories = get_the_category();
    $cateID = $categories[0]->cat_ID;
    echo do_shortcode("[wpos_product_categories ids='$cateID']"); 

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.