Change the appearance of the categories page with template with external plugin shortcode

edited December 2023 in WooCommerce

I want to change the appearance of each category on my site and I'm trying to insert a shortcode of an external plugin, but it does not show the number of the selected quantity of a product. Is there a way to do this? Otherwise, when the Shop element is added from the theme itself, it works, but from an external plugin the numbers are not displayed. Here is the link to the problem:


Working page with external plugin on original page. I want this to happen in the above mentioned problem as well :

https://preparatko.com/za-bebeta/

Comments

  • Hi,

    If you want to customize each category, you can use our templates.

    See the following video tutorial:

    https://support.muffingroup.com/video-tutorials/how-to-create-custom-template-for-the-shop/


    Best regards

  • Yes, but I want to add a quick search engine only in the category I'm in and your theme doesn't offer that. I want to build something that is convenient for the customer and gives them the following options: quick search for a product in the same category, a dropdown menu with all subcategories.

    And have it all work as one without having to reload the page - just like this thing in my link here: https://preparatko.com/za-bebeta/


    I have currently found a solution by redirecting the category page to another created by me using the code:

    function custom_category_template_redirect() {

      if ( is_product_category() ) {

        $category = get_queried_object();


        if ( $category->term_id == 263 ) {

          $redirect_page_id = 140; 

          wp_redirect( get_permalink( $redirect_page_id ) );

          exit();

        }

      }

    }

    add_action( 'template_redirect', 'custom_category_template_redirect' )

    but I don't think it's a good idea to do that.

    Please if there is an option or to add a quick search engine in a given category please tell me how to do it or you can include these tasks in a future updates of your theme.

  • We do not have such an option built into our theme, and unfortunately, I cannot recommend any workaround for that.

    If you would like to see this feature in future updates, please let us know on the following topic:

    https://forum.muffingroup.com/betheme/discussion/113/your-suggestions-for-future-updates#latest


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.