News:

Support the VirtueMart project and become a member

Main Menu

Related Products: canonical category id for each?

Started by EvanGR, April 12, 2021, 13:23:35 PM

Previous topic - Next topic

EvanGR

Hello,

In the related products section (product details page), I want the following information for each product: canonical category id

And it would be nice to have: product id, canonical category name

I probably need to customize VM core file to include this data in each related. Anyone can point me to which file/code to look for?

Thanks

pinochico

Why?

JSitemap is not enough with standard core VM canonical category id?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

EvanGR

You misunderstood me :)

I want to customize the Related Products section (the section below the main product).

pinochico

product id, canonical category name

you can add in model related products (models is basic file for mysql select).
Of course, maybe this only load next basic model product, I don't know exactly now, because for related product we don't use core code, but we use modul VM product extended.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

pinochico

QuoteI want to customize the Related Products section (the section below the main product).

I think you have to edit:

components/com_virtuemart/sublayouts/customfield.php
components/com_virtuemart/sublayouts/customfields.php
components/com_virtuemart/sublayouts/related.php

or create override in your template.

Maybe you have to change next called core function (model product...)

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products