Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter benpace

    (@benpace)

    Hey Sergio – thanks for the speedy reply, and understanding the problem.
    I understand why wordpress/woocommerce has issues retrieving products in multiple categories, it has to display one, and as the data that is stored in the basket does not contain the category or the path that was used to access, it grabs the first assigned category in the database.
    My solution will be to look at YOAST and set the primary category in these instances, and failing that I will have to recreate the basket, and write a bespoke code which when you click on Add to Basket, it stores not just the product ID but also the full URL.
    Then use this URL link on the basket page, to link to the product. I believe that this will resolve the problem for me. Once again, thank you!

    Thread Starter benpace

    (@benpace)

    Many thanks for coming back so quickly on this and understanding the issue.
    I have created some custom code to rebuild the URL for the product archive page.
    This seems to have worked – but I have had to handcraft the breadcrumbs now as these are based on the permalink.

Viewing 2 replies - 1 through 2 (of 2 total)