Thanks man! It works perfectly!comprido wrote:In your theme header.tpl:
In controller/common/header.php, just after: $this->data['name'] = $this->config->get('config_name'); :Code: Select all
<!-- mod og:image para FB --> <?php if ($thumb || $images) { ?> <meta property="og:image" content="<?php echo $thumb; ?>"> <?php } else { ?> <meta property="og:image" content="<?php echo $logo; ?>"> <?php } ?> <!-- mod og:image para FB -->
This code fix the problem for me.Code: Select all
if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $this->load->model('catalog/product'); $product_info = $this->model_catalog_product->getProduct($product_id); $this->data['product_info'] = $product_info; if ($product_info['image']) { $this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height')); } else { $this->data['thumb'] = ''; } $this->data['images'] = array();
SixTrips.com <- My OC store :)
I am having a similar issue with trying to share blog posts using the Facebook Share button, using Journal2 theme on 1.5.6.4 opencart installation.
I tried the code given in this thread but saw no change.
When I try to share a product, it does show the image, but no product name or info.
When trying to share a blog post it just shows text 'share.es' and shows website name only.
Has anyone experienced this or solved it in 1.5.6.4 willing to share how? :-)
Many thanks!
I tried the code given in this thread but saw no change.
When I try to share a product, it does show the image, but no product name or info.
When trying to share a blog post it just shows text 'share.es' and shows website name only.
Has anyone experienced this or solved it in 1.5.6.4 willing to share how? :-)
Many thanks!
Hello,
is there way to make this fix working in Opencart 2.0.2.0, default theme, no vQmod. I have the problem with wrong image shown in facebook, when a product is shared from product page. Always store logo is shown instead product image.
is there way to make this fix working in Opencart 2.0.2.0, default theme, no vQmod. I have the problem with wrong image shown in facebook, when a product is shared from product page. Always store logo is shown instead product image.
comprido wrote:In your theme header.tpl:
In controller/common/header.php, just after: $this->data['name'] = $this->config->get('config_name'); :Code: Select all
<!-- mod og:image para FB --> <?php if ($thumb || $images) { ?> <meta property="og:image" content="<?php echo $thumb; ?>"> <?php } else { ?> <meta property="og:image" content="<?php echo $logo; ?>"> <?php } ?> <!-- mod og:image para FB -->
This code fix the problem for me.Code: Select all
if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $this->load->model('catalog/product'); $product_info = $this->model_catalog_product->getProduct($product_id); $this->data['product_info'] = $product_info; if ($product_info['image']) { $this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height')); } else { $this->data['thumb'] = ''; } $this->data['images'] = array();
Simply use this OCMod here: http://www.opencart.com/index.php?route ... n_id=25537
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Hi,
I think I managed to solve the problem of sharing pictures on Facebook!
I tried everything I found on forums and all the plugins and nothing gave results.
The problem is solved on HOSTING. cPanel - security - hotlink protection - Allow direct requests. And that's it
Maybe someone still be useful...
Sorry my Englesh is not native
I think I managed to solve the problem of sharing pictures on Facebook!
I tried everything I found on forums and all the plugins and nothing gave results.
The problem is solved on HOSTING. cPanel - security - hotlink protection - Allow direct requests. And that's it
Maybe someone still be useful...
Sorry my Englesh is not native
Here is working solution for the sharing on Facebook:
SEO Facebook Open Graph Tags
SEO Facebook Open Graph Tags
Suppliers Module - XML, CSV, XLS Product Feed Import and Update
Rich Snippets | Facebook Open Graph Meta Tags | WebP Images
Hi, I have installed your extension and there is surely an improvement in facebook sharing but in many products I find that og:description tags remains empty <meta property="og:description" content="" > and the description displayed below the shared image is picked up from the footer portion of my store, I don't know how it picks up that information only and that too consistently for products where this problem occurs.agatha65 wrote:Here is working solution for the sharing on Facebook:
SEO Facebook Open Graph Tags
Please kindly have a look at my store, I have PM'd the store link to you.
Thank you for the excellent extension and also you time.
Regards,
Sun Systems
Industrial Electronics and Instrumentation
Who is online
Users browsing this forum: No registered users and 16 guests