VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Lockerbie on April 18, 2023, 17:48:00 PM

Title: SKU in Google results, not visible in webshop?
Post by: Lockerbie on April 18, 2023, 17:48:00 PM
Hello all,

One of my clients uses the sku-numbers in the back-end, but these are not visible in the front-end of the webshop.

In the Custom Filters module, this is all set and the sku-numbers are searchable for visitors.
But now the client wants the sku-numbers to show in Google results, even though these are not visible in the front-end of the webshop.
Is this possible, and how do I do this? Or perhaps what extension can we use for this?
Thanks in advance.

Joomla 4.2.9 / VirtueMart 4.0.12 / Custom Filters 2.14.1 / Custom Fields for All 4.4.1
Title: Re: SKU in Google results, not visible in webshop?
Post by: GJC Web Design on April 19, 2023, 14:27:26 PM
should already be there is u are using \templates\your_template\html\com_virtuemart\sublayouts\snippets.php
Title: Re: SKU in Google results, not visible in webshop?
Post by: Lockerbie on April 19, 2023, 14:59:09 PM
Thanks GJC,

This file wasn't present in the used template, nor in the default template.
Do I have to adjust anything in the original file (components/com_virtuemart/sublayouts/snippets.php) before putting it in the template override?
Title: Re: SKU in Google results, not visible in webshop?
Post by: Jörgen on April 19, 2023, 16:59:05 PM
The template file is an override, it does not work like a cascaded style sheet.

Yes, You must copy the whole file and modify it if you want to use it.

Jörgen @ Kreativ Fotografi
Title: Re: SKU in Google results, not visible in webshop?
Post by: Lockerbie on April 20, 2023, 11:15:40 AM
Thanks Jörgen,

Yes, I know, but the question was more like if there were adjustments necessary.
I see it's working, but I'll have to look into it a bit further to see how to improve it for the results, if possible.