Facebook for Virtuemart Questions

How can I set the Open Graph Image for the Flypage of Virtuemart?

When using JFBConnect to add Like buttons to your Virtuemart pages, you may notice that when a user Like's your products, a non-product image from the page may show in the user's wall. To fix this, you should use the Open Graph tags to let Facebook know what image should be used for wall posts. Adding the Open Graph tag can be done by modifying the flypage template file for the product page with the following code: 

Virtuemart 2:
{SCOpenGraph image=<?php echo IMAGEURL.'product/'.$productArray['product_thumb_image']; ?>}

For our testing with Virtuemart 2.x, we added the code above to the /components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php file. If you want to add a description for the preview, you can add a corresponding SCOpenGraph tag also.

Virtuemart 3:

For our testing with Virtuemart 3.x, we created a template override for /components/com_virtuemart/views/productdetails/tmpl/default.php to add the description tag.

<?php if (!empty($this->product->product_desc)) { ?>
{SCOpenGraph description=<?php echo $this->product->product_desc; ?>}
<?php } ?>

To add the image tag, we created a template override for /components/com_virtuemart/views/productdetails/tmpl/default_images.php, inside an existing block of code that defines $image.

if (!empty($this->product->images)) {
$image = $this->product->images[0];
{SCOpenGraph image=<?php echo JURI::root().$image->file_url;?>}
<div class="main-image">
<?php echo $image->displayMediaFull("",true,"rel='vm-additional-images'"); ?>
<div class="clear"></div>

Please note that the Open Graph easy-tags should be added just like normal HTML (outside of any PHP blocks). It can be added anywhere in the file, position does not matter. 

Social Stream
SourceCoast Joomla Social Extensions
Wednesday, 21 September 2016
Between August 3rd and 4th, the Joomla project put out 2 new releases for the 3.6 series and 3 blog posts explaining the changes and how to update. The rapid fire changes may be confusing, especially when reading through the announcement posts that talk about CSRF, PHP versions, security issues with different levels and other details. If you're unsure what to do, read on for a general overview of the updates and a step-by-step guide on how to update. https://lnkd.in/ejGeG9X
SourceCoast Joomla Social Extensions
Thursday, 15 September 2016
Joomla's caching system can be a huge benefit to your site, but can also cause a lot of headaches. The advantages are obvious: an overall better user experience, faster load times, less powerful server requirements and more. We're not going in-depth on the benefits here though. Read our blog post to learn about some of the pain-points that you should know about when trying to get Joomla's caching setup. https://lnkd.in/d_c_eaK
SourceCoast Joomla Social Extensions
Wednesday, 17 August 2016
Want a good explanation on what SSL is for, why you should enable it and how things have changed over the last few years? https://lnkd.in/euX2-z7
SourceCoast Joomla Social Extensions
Wednesday, 10 August 2016
With the launch of v2.0 of the Facebook Graph API over 2 years ago, a new review process was also implemented for all Facebook Applications. The review process is Facebook's way to verify that deeper integration features on your site are abiding by Facebook's Terms of Service. There's a lot to understand about the process and some of it may surprise you. Some JFBConnect features like posting to your Facebook Page usually don't even need to go through the review process. For the features that do need review, what's the process and how do you proceed? Read our blog post to find out. https://lnkd.in/eKbiwbb
SourceCoast Joomla Social Extensions
Wednesday, 03 August 2016
Using a Facebook Page Tab can be a great way to promote your site by showing content from your site within your Facebook Page. It's a powerful, yet simple, way to show a newsletter subscription form, product page or view of your blog on your Page. Well, it should be simple. Sometimes, it just doesn't work and, when it doesn't, it can be very hard to diagnose. We've worked with thousands of users to integrate Facebook with their website and want to let give out some easy pointers on where to look first. Read our blog post to find out more. https://lnkd.in/e6rmchw
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program