• Resolved MagineM

    (@maginem)


    Hi,
    I have a client using a theme that has quite a bit of customisation (XStore) with regards to the WooCommerce product pages etc.
    Problem is that a plugin they are using that creates a gift card product is not working properly as the template is being overridden by the theme.
    How can I make that specific product use the default WC templates instead?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers

    Thread Starter MagineM

    (@maginem)

    Hi,
    Thanks for the reply.
    It is a tricky scenario and unfortunately the custom development required is a bit above my skillset.

    I was hoping there would be a more straightforward solution by possibly just copying a template file across and assigning it to the specific product ID… but if that isn’t the case… ??

    Holding thumbs that somebody out there has a good easy solution ??

    • This reply was modified 3 years, 7 months ago by MagineM.
    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @maginem,

    It’s been a while since your reply here and you might have already found a solution. I am sharing some guidance in case if you haven’t found the solution yet.

    If the theme is overriding the default template, this means you will find a folder named woocommerce in your theme’s directory: wp-content/themes/yourtheme/woocommerce. Inside this folder, you will find all the templates that are being overridden by your theme. You can simply remove the template file that you don’t wish your theme to override.

    Thanks!

    Thread Starter MagineM

    (@maginem)

    Hi,
    Thanks for the feedback. I have not yet found a solution to the issue. Yes, the plugin does overwrite WC template files. I’ve already tried removing the template file, but this breaks the site. This is why I was hoping that there would be a way with code to assign a custom/specific template to a specific product/product type only.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @maginem ??

    At the moment, there’s no default option for that in WooCommerce, and setting that as the default would require quite a bit of additional coding. Please kindly note that this requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    If you do require more help with the actual coding, we’d recommend you hire a developer who can take a look at this, quote you for their services, and help you add this feature to your site. We’d recommend getting in touch with a web developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Cheers.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @maginem,

    I’m going to mark this as resolved. For further assistance please reach out to your theme’s developer or switch to a different theme if that’s an option.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Set template files to default for a specific product’ is closed to new replies.