Author Topic: How to add structured data?  (Read 607 times)

Sadicer

  • Beginner
  • *
  • Posts: 35
How to add structured data?
« on: August 29, 2019, 17:07:30 pm »
How do you insert structured data into product pages? I have seen that I cannot add the JSON-LD code in the product description code view

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9198
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: How to add structured data?
« Reply #1 on: August 29, 2019, 20:10:35 pm »
It is already there in the standard templates

components\com_virtuemart\sublayouts\snippets.php
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

Sadicer

  • Beginner
  • *
  • Posts: 35
Re: How to add structured data?
« Reply #2 on: September 01, 2019, 22:01:45 pm »
it's true, but this tool https://search.google.com › structured-data › testing-tool does not detect the code from my site https://www.sadiceramiche.altervista.org/  :-\

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9198
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: How to add structured data?
« Reply #3 on: September 01, 2019, 22:19:26 pm »
because it isn't there

add the sublayout correctly in your template -- check the std template to see how

if ($this->product->prices['salesPrice'] > 0) {
   echo shopFunctionsF::renderVmSubLayout('snippets',array('product'=>$this->product, 'currency'=>$this->currency, 'showRating'=>$this->showRating));
}
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

Sadicer

  • Beginner
  • *
  • Posts: 35
Re: How to add structured data?
« Reply #4 on: September 02, 2019, 22:26:43 pm »
what does "std" mean? I didn't understand what you mean, don't use short words, please, I'm not very good with English

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9198
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: How to add structured data?
« Reply #5 on: September 02, 2019, 22:34:07 pm »
standard - core - native
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

Sadicer

  • Beginner
  • *
  • Posts: 35
Re: How to add structured data?
« Reply #6 on: September 04, 2019, 09:50:03 am »
ok.  can you explain how can I add the code?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9198
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: How to add structured data?
« Reply #7 on: September 04, 2019, 12:57:24 pm »
It is explained above ... compare the stock template to yours!
If u can't then ask your template builder why they have not incl. snippets
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

Sadicer

  • Beginner
  • *
  • Posts: 35
Re: How to add structured data?
« Reply #8 on: November 05, 2019, 14:52:35 pm »
thanks i solved. actually it was all settled, as you wrote, thanks.