Home Forums WoodMart support forum Search results showing blog-style cards instead of product cards after custom pe

Search results showing blog-style cards instead of product cards after custom pe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #724205

    valentin.cioaba
    Participant

    Hello,

    On our WooCommerce store (WoodMart theme, version 8.5.5), we have set a Custom permalink base for products (WooCommerce > Settings > Advanced > Permalinks > Product permalinks > Custom base = “/produs/”), instead of the default “/product/”.

    Since making this change, our search results page (?s=keyword) displays products using the generic blog post card (showing publish date and excerpt) instead of the product card style we have configured for our shop (Theme Settings > Shop > Product archive > Products grid). This only happens on the search results page — the shop page and category archive pages display products correctly, using our configured product card style.

    We suspect this is because somewhere in the theme’s search results rendering logic, there is a hardcoded comparison against the literal string “product” to decide which card template to use, and this check fails because our custom permalink base changes the post_type query var to “produs”.

    Could you please point us to the exact file and function responsible for this comparison, so we can safely override it via a child theme, or let us know if there is a supported theme setting to fix this without custom code?

    Screenshot and example URL attached in the private content section below.

    Thank you for your help.

    #724212

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hello,

    Thank you for purchasing WoodMart and for reaching out.

    To troubleshoot this, please deactivate all plugins except the essential ones:
    – WoodMart Core
    – WooCommerce
    – WPBakery Page Builder or Elementor

    If the issue disappears, reactivate the others one by one to find the conflict.

    If it persists with everything else off, please share your admin credentials in the Private content field and confirm we may temporarily deactivate plugins and switch themes for testing (15 to 20 minutes). Please back up your site before granting access.

    Best regards,
    XTemos Studio

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