Author Topic: Prices in virtuemart, on google images change !!!!!  (Read 1747 times)

michybetti1085

  • Beginner
  • *
  • Posts: 19
  • A beginner
Prices in virtuemart, on google images change !!!!!
« on: May 15, 2020, 16:26:40 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Prices in virtuemart, on google images change !!!!!
« Reply #1 on: May 16, 2020, 00:46:15 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michybetti1085

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Prices in virtuemart, on google images change !!!!!
« Reply #2 on: May 17, 2020, 23:29:56 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Prices in virtuemart, on google images change !!!!!
« Reply #3 on: May 18, 2020, 00:09:32 am »
\components\com_virtuemart\sublayouts\snippets.php or in the over ride version of that file
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michybetti1085

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Prices in virtuemart, on google images change !!!!!
« Reply #4 on: May 18, 2020, 00:18:43 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Prices in virtuemart, on google images change !!!!!
« Reply #5 on: May 18, 2020, 14:02:08 pm »
I can only say "perhaps" -  suck and see -- test with the https://search.google.com/structured-data/testing-tool
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation