• Resolved remyrem

    (@remyrem)


    I created links on my site that combine multiple categories into one. For instance, I made a link to search for “domestic wine” and combined the real categories of “domestic white wine” and “domestic red wine” by making the “domestic wine” link look like mysite.com/product-category/domestic-white-wine,domestic-red-wine/.

    It was successfully pulling up products from both categories.

    But after installing the WooCommerce Product Search extension, those URL’s no longer work. They will only end up displaying the first category mentioned in the URL. So in my example, it will only show “domestic white wine”, even if it’s trailed by several other real categories.

    I need to use the URL approach instead of adding/changing the categories because the products are being downloaded and mapped to woocommerce every 15 minutes from our store’s database and wordpress will create duplicate categories any time it doesn’t see the category structure the exact same way that the imported items expect to.

    Any help figuring out how I can continue to use “,” in the URL to display multiple categories while also still using the WooCommerce Product Search extension would be appreciated. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    I’m not sure what “WooCommerce Product Search” extension you are using, so I can’t comment on it’s functionality. You would need to contact that developer directly for help with that plugin.

    As a work around for the scenario you mentioned, instead of passing categories in the URL, you could make a product shortcode page. Using product shortcodes you can make a page that would dynamically display all the products that you specify with your shortcode. In your case, the shortcode would contain multiple product categories. This way, every time the page loads, it pulls in all the products from the appropriate categories. This would also allow you to make short, easier to remember URLs, such as mysite.com/domestic

    You can have a look at product shortcodes here:

    https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-13

    Thread Starter remyrem

    (@remyrem)

    I could kiss you!
    [product_category category=”1,2,3″] works great!

    Thread Starter remyrem

    (@remyrem)

    Dang. Turned on the product search plugin. And same problem.

    It populates products from only the first category.

    It’s the “woocommerce product search” from the woocommerce store. Although it looks like it’s made by an “itthinx”. So I need to follow up with them?

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    @remyrem – if you purchased the plugin from our extension marketplace on https://www.woocommerce.com, please open up a support interaction with our team.

    We are able to offer a much deeper level of support than we do here on the free user forums:

    https://woocommerce.com/my-account/create-a-ticket/

    Please make sure to select the proper plugin when opening your support ticket. Also please include a link to this forum thread so that our team can catch up on what issues you’ve encountered.

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce Product Search Breaking my Multiple Category URL’s’ is closed to new replies.