occhialinet Posted February 12, 2020 Share Posted February 12, 2020 Salve a tuti, ho un piccolo problema… sul mio sito ecommerce fatto con presta ovviamente, ho creato un gruppo al quale fare vedere i prezzi ….. tutti gli altri gruppi hanno i prezzi nascosti….il problema è che se vado su google alla sessione immagini e scrivo il nome dell articolo, automaticamente google sotto l'immagine fa spuntare il prezzo destinato al rivenditori…. qualcuno saprebbe aiutarmi?? grazie Link to comment Share on other sites More sharing options...
ThemeBooster.com Posted February 24, 2020 Share Posted February 24, 2020 Ciao. Visualizzando l'output di una tua pagina prodotto, il relativo prezzo è esplicitato in 2 parti. Nella sezione <head>: <meta property="og:type" content="product"> <meta property="og:url" content="https://www.occhialinet.it/it/home/480-2847-demo-enzo-25.html"> <meta property="og:title" content="EK250-Giallo"> <meta property="og:site_name" content="Occhialinet.it"> <meta property="og:description" content=""> <meta property="og:image" content="https://www.occhialinet.it/4497-large_default/demo-enzo-25.jpg"> <meta property="product:pretax_price:amount" content="6"> <meta property="product:pretax_price:currency" content="EUR"> <meta property="product:price:amount" content="6"> <meta property="product:price:currency" content="EUR"> Nel contenuto della pagina prodotto, tab Dettagli del prodotto: <div class="tab-pane " id="product-details" data-product="{"id_shop_default":"1","id_manufacturer":"6","id_supplier":"0","reference":"EK250-Giallo","is_virtual":"0","delivery_in_stock":"","delivery_out_stock":"","id_category_default":"2","on_sale":"0","online_only":"0","ecotax":0,"minimal_quantity":"1","low_stock_threshold":null,"low_stock_alert":"0","price":"6,00\u00a0\u20ac","unity":"","unit_price_ratio":"0.000000","additional_shipping_cost":"0.00","customizable":"0","text_fields":"0","uploadable_files":"0","redirect_type":"301-category","id_type_redirected":"0","available_for_order":"1","available_date":null,"show_condition":"0","condition":"new","show_price":"1","indexed":"1","visibility":"both","cache_default_attribute":"2847","advanced_stock_management":"0","date_add":"2019-10-16 15:19:45","date_upd":"2019-10-16 15:22:35","pack_stock_type":"3","meta_description":"","meta_keywords":"","meta_title":"","link_rewrite":"demo-enzo-25","name":"EK250-Giallo","description":"<p style=\"background-color:transparent;color:#777777;font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:23px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;white-space:normal;word-spacing:0px;padding:0px;margin:0px;border:0px none #777777;\"><strong style=\"font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;line-height:23px;vertical-align:baseline;padding:0px;margin:0px;border:0px none #777777;\">Modello:\u00a0<\/strong>EK250<\/p>\n<p style=\"background-color:transparent;color:#777777;font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:23px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;white-space:normal;word-spacing:0px;padding:0px;margin:0px;border:0px none #777777;\"><strong style=\"font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;line-height:23px;vertical-align:baseline;padding:0px;margin:0px;border:0px none #777777;\">Materiale: <\/strong>Plastica<\/p>\n<p style=\"background-color:transparent;color:#777777;font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:23px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;white-space:normal;word-spacing:0px;padding:0px;margin:0px;border:0px none #777777;\"><strong style=\"font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;line-height:23px;vertical-align:baseline;padding:0px;margin:0px;border:0px none #777777;\">D.I.:<\/strong>\u00a061 mm.<\/p>\n<p style=\"background-color:transparent;color:#777777;font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:23px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;white-space:normal;word-spacing:0px;padding:0px;margin:0px;border:0px none #777777;\"><strong style=\"font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;line-height:23px;vertical-align:baseline;padding:0px;margin:0px;border:0px none #777777;\">Aste flex: <\/strong>Si<\/p>\n<p style=\"background-color:transparent;color:#777777;font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:23px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;white-space:normal;word-spacing:0px;padding:0px;margin:0px;border:0px none #777777;\"><strong style=\"font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;line-height:23px;vertical-align:baseline;padding:0px;margin:0px;border:0px none #777777;\">Altro: <\/strong>Astuccio rigido in omaggio<\/p>\n<p style=\"background-color:transparent;color:#777777;font-family:Ubuntu, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:23px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;white-space:normal;word-spacing:0px;padding:0px;margin:0px;border:0px none #777777;\"><\/p>\n<p><\/p>","description_short":"","available_now":"","available_later":"","id":480,"id_product":480,"out_of_stock":2,"new":0,"id_product_attribute":2847,"quantity_wanted":1,"extraContent":[],"allow_oosp":0,"category":"home","category_name":"Home","link":"https:\/\/www.occhialinet.it\/it\/home\/480-demo-enzo-25.html","attribute_price":0,"price_tax_exc":6,"price_without_reduction":6,"reduction":0,"specific_prices":[],"quantity":1000,"quantity_all_versions":10100,"id_image":"it-default","features":[],"attachments":[],"virtual":0,"pack":0,"packItems":[],"nopackprice":0,"customization_required":false,"attributes":{"12":{"id_attribute":"64","id_attribute_group":"12","name":"+1.00","group":"Gradazione","reference":"","ean13":"","isbn":"","upc":""}},"rate":4,"tax_name":"IVA IT 4%","ecotax_rate":0,"unit_price":"","customizations":{"fields":[]},"id_customization":0,"is_customizable":false,"show_quantities":false,"quantity_label":"Articoli","quantity_discounts":[],"customer_group_discount":0,"images":[{"bySize":{"small_default":{"url":"https:\/\/www.occhialinet.it\/4497-small_default\/demo-enzo-25.jpg","width":98,"height":98},"cart_default":{"url":"https:\/\/www.occhialinet.it\/4497-cart_default\/demo-enzo-25.jpg","width":125,"height":125},"medium_default":{"url":"https:\/\/www.occhialinet.it\/4497-medium_default\/demo-enzo-25.jpg","width":452,"height":452},"home_default":{"url":"https:\/\/www.occhialinet.it\/4497-home_default\/demo-enzo-25.jpg","width":500,"height":500},"large_default":{"url":"https:\/\/www.occhialinet.it\/4497-large_default\/demo-enzo-25.jpg","width":1200,"height":1200}},"small":{"url":"https:\/\/www.occhialinet.it\/4497-small_default\/demo-enzo-25.jpg","width":98,"height":98},"medium":{"url":"https:\/\/www.occhialinet.it\/4497-medium_default\/demo-enzo-25.jpg","width":452,"height":452},"large":{"url":"https:\/\/www.occhialinet.it\/4497-large_default\/demo-enzo-25.jpg","width":1200,"height":1200},"legend":"","cover":"1","id_image":"4497","position":"1","associatedVariants":[]}],"cover":{"bySize":{"small_default":{"url":"https:\/\/www.occhialinet.it\/4497-small_default\/demo-enzo-25.jpg","width":98,"height":98},"cart_default":{"url":"https:\/\/www.occhialinet.it\/4497-cart_default\/demo-enzo-25.jpg","width":125,"height":125},"medium_default":{"url":"https:\/\/www.occhialinet.it\/4497-medium_default\/demo-enzo-25.jpg","width":452,"height":452},"home_default":{"url":"https:\/\/www.occhialinet.it\/4497-home_default\/demo-enzo-25.jpg","width":500,"height":500},"large_default":{"url":"https:\/\/www.occhialinet.it\/4497-large_default\/demo-enzo-25.jpg","width":1200,"height":1200}},"small":{"url":"https:\/\/www.occhialinet.it\/4497-small_default\/demo-enzo-25.jpg","width":98,"height":98},"medium":{"url":"https:\/\/www.occhialinet.it\/4497-medium_default\/demo-enzo-25.jpg","width":452,"height":452},"large":{"url":"https:\/\/www.occhialinet.it\/4497-large_default\/demo-enzo-25.jpg","width":1200,"height":1200},"legend":"","cover":"1","id_image":"4497","position":"1","associatedVariants":[]},"has_discount":false,"discount_type":null,"discount_percentage":null,"discount_percentage_absolute":null,"discount_amount":null,"discount_amount_to_display":null,"price_amount":6,"unit_price_full":"","show_availability":false,"availability_message":null,"availability_date":null,"availability":null}" role="tabpanel" > Se sei su Prestashop 1.7: Per la parte <head> potresti editare il file product.tpl (/themes/il tuo tema oppure classic/templates/catalog/). Codice originario: {block name='head' append} <meta property="og:type" content="product"> <meta property="og:url" content="{$urls.current_url}"> <meta property="og:title" content="{$page.meta.title}"> <meta property="og:site_name" content="{$shop.name}"> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:image" content="{$product.cover.large.url}"> <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> {if isset($product.weight) && ($product.weight != 0)} <meta property="product:weight:value" content="{$product.weight}"> <meta property="product:weight:units" content="{$product.weight_unit}"> {/if} {/block} Codice modificato: {block name='head' append} <meta property="og:type" content="product"> <meta property="og:url" content="{$urls.current_url}"> <meta property="og:title" content="{$page.meta.title}"> <meta property="og:site_name" content="{$shop.name}"> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:image" content="{$product.cover.large.url}"> {if $customer.is_logged } <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> {/if} {if isset($product.weight) && ($product.weight != 0)} <meta property="product:weight:value" content="{$product.weight}"> <meta property="product:weight:units" content="{$product.weight_unit}"> {/if} {/block} Oppure potresti pensare di eliminare del tutto i riferimenti al prezzo. Per la parte riguardante il tab "Dettagli del prodotto", dovresti modificare il file product-details.tpl (/themes/il tuo tema oppure classic/templates/catalog/_partials/) agendo su questa porzione di codice: <div class="tab-pane fade{if !$product.description} in active{/if}" id="product-details" data-product="{$product.embedded_attributes|json_encode}" role="tabpanel" > data-product="{$product.embedded_attributes|json_encode}" è la parte che ingloba anche il prezzo. Saluti. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now