News:

Support the VirtueMart project and become a member

Main Menu

Adding code to productpage

Started by Olive, April 22, 2021, 14:07:34 PM

Previous topic - Next topic

Olive

I am wondering where to add a yotpo review code to the productpage?

I guess it must be here...
components/com_virtuemart/views/productdetails

But the code must be on EACH different productpage

<div class="yotpo yotpo-main-widget"
data-product-id="SKU/Product_ID"
data-price="Product Price"
data-currency="Price Currency"
data-name="Product Title"
data-url="The url of your product page"
data-image-url="The product image url">
</div>


Where do i find these productpages?

I use joomla 3.9.26
VM 3.8.8


pinochico

I am wondering after every post there too :)

You are talking about rich snippets?
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

GJC Web Design

u have to obtain them programmatically from the $this->product object
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

Olive

For the rich snippets indeed.
And to show the stars and reviews on the product page.

Studio 42

Check in JOOMLA/components/com_virtuemart/sublayouts/snippets.php

pinochico

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