Author Topic: Related Products: canonical category id for each?  (Read 293 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 429
Related Products: canonical category id for each?
« on: April 12, 2021, 13:23:35 pm »
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1129
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Related Products: canonical category id for each?
« Reply #1 on: April 12, 2021, 14:05:34 pm »
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 from products, orders and database table
Virtuemart Email Manager - customs email templates

EvanGR

  • Jr. Member
  • **
  • Posts: 429
Re: Related Products: canonical category id for each?
« Reply #2 on: April 12, 2021, 14:37:13 pm »
You misunderstood me :)

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

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1129
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Related Products: canonical category id for each?
« Reply #3 on: April 12, 2021, 15:15:11 pm »
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 from products, orders and database table
Virtuemart Email Manager - customs email templates

elestudiodeandres

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Related Products: canonical category id for each?
« Reply #4 on: May 09, 2021, 07:57:14 am »
I can't insert a canonical category ID for each category, anyone?

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1129
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Related Products: canonical category id for each?
« Reply #5 on: May 09, 2021, 09:25:45 am »
Quote
I 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 from products, orders and database table
Virtuemart Email Manager - customs email templates