News:

Support the VirtueMart project and become a member

Main Menu

What variable is the canonical url of a product stored in?

Started by borro, November 28, 2015, 13:05:12 PM

Previous topic - Next topic

borro

Hello

Trying to embed OpenGraph protocol. Please tell me what php variable is the canonical url of a product stored in? I'm asking in sutiation of a productdetail view environment

Thank you.

VM 3.0.9
Wish you happiness!

borro

I've found that it stored at $this->product->canonical but it looks not humanreadable like, for example
index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=4877&virtuemart_category_id=59

What is the method to convert such value to one which is embeded in a <head> section of every product page?
Wish you happiness!

GJC Web Design

have a look in the views/view.html.php files
you will see how it is used there
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

borro

Wish you happiness!