Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FB Recommend button for products


gregy

Recommended Posts

Hi

 

I have search forum and found some instructions but i don't know if any of them is for product. I guess they are for recommend a site .. not specific product.

 

Any suggestions on how to add Recommend button on product_info.php?

 

Thank you!

Link to comment
Share on other sites

ADMIN-MODULES-SOCIAL BOOKMARKS...

 

 

ADMIN-MODULES-SOCIAL BOOKMARKS...

 

 

 

or simply do this:

 

INSTRUCTONS:

 

Copy the following and paste into CATALOG/product_info.php (around line 220)

 

--------------------------

 

<?php

 

$sbm_array = explode(';', MODULE_SOCIAL_BOOKMARKS_INSTALLED);

 

$social_bookmarks = array();

 

foreach ( $sbm_array as $sbm ) {

$class = substr($sbm, 0, strrpos($sbm, '.'));

 

if ( !class_exists($class) ) {

include(DIR_WS_LANGUAGES . $language . '/modules/social_bookmarks/' . $sbm);

include(DIR_WS_MODULES . 'social_bookmarks/' . $class . '.php');

}

 

$sb = new $class();

 

if ( $sb->isEnabled() ) {

$social_bookmarks[] = $sb->getOutput();

}

}

 

if ( !empty($social_bookmarks) ) {

$data = '<h3>' . implode( $social_bookmarks) . '</h3>';}

 

echo $data;

 

 

?>

 

 

------------------------

 

An online axample:

 

http://formabano.es/product_info.php?products_id=48

 

-----------------------

 

Files attached

 

----------------------

 

 

ENJOY!!!!!!

Link to comment
Share on other sites

huh .. got it working excpet image is not the right one .. in popup it gives me option to pick any of images from that site. I want product image :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...