News:

Looking for documentation? Take a look on our wiki

Main Menu

Prices in virtuemart, on google images change !!!!!

Started by michybetti1085, May 15, 2020, 16:26:40 PM

Previous topic - Next topic

michybetti1085

Hi I have a problem on my father's site ... who uses virtuemart for sale ... in practice the prices read by google images are absurd, I explain

this is the link of the Zepparda product

https://www.calzolerialarapida.it/zeppe-donna/zeppe-donna-in-sughero-alte.html

however if you search zepparda on google images, the product appears with the price transformed into 1.100.928,00€ absurd thing !!!! as well as false !!!

This screenshoot

https://www.calzolerialarapida.it/help.jpg

Who knows what this problem can depend on? I don't know how to solve it I ask for help thanks

GJC Web Design

view-source:https://www.calzolerialarapida.it/zeppe-donna/zeppe-donna-in-sughero-alte.html

around line 680

  "offers": {
    "@type": "Offer",
    "priceCurrency": "EUR",
    "availability": "OutofStock",
    "price": "110.0928",
    "url": "https://www.calzolerialarapida.it/zeppe-donna/zeppe-donna-in-sughero-alte.html",
    "itemCondition": "NewCondition"
  }

find the code that is producing the structured data and have something like

<?php echo number_format($this->product->prices['salesPrice'],2); ?> so 2 decimal places

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

michybetti1085

Thanks a lot, I've been looking for 2 days but I can't find a similar string in the com_virtuemart folder files do you have any idea where I can find it?

GJC Web Design

\components\com_virtuemart\sublayouts\snippets.php or in the over ride version of that file
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

michybetti1085

ook thanks in the snippet file this code

<?php } ?>
  "offers": {
    "@type": "Offer",
    "priceCurrency": "<?php echo $currency->_vendorCurrency_code_3; ?>",
    "availability": "<?php echo $stockog; ?>",
    "price": "<?php echo $product->prices['salesPrice']; ?>",
    "url": "<?php  echo $canonicalUrl; ?>",


So I should change this line 131 to

   "price": "<?php echo $product->prices['salesPrice'],2; ?>",

GJC Web Design

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