Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

FB Recommend button for products


3 replies to this topic

#1 gregy

  • Community Member
  • 678 posts
  • Real Name:Gregor
  • Gender:Male
  • Location:Slovenia, Celje

Posted 26 July 2011, 10:20

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!

#2 gfasal

  • Community Member
  • 342 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 26 July 2011, 10:38

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!!!!!!
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/ CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups / ..Custom Admin Mods /

#3 gregy

  • Community Member
  • 678 posts
  • Real Name:Gregor
  • Gender:Male
  • Location:Slovenia, Celje

Posted 26 July 2011, 10:45

thanx .. files attached?

#4 gregy

  • Community Member
  • 678 posts
  • Real Name:Gregor
  • Gender:Male
  • Location:Slovenia, Celje

Posted 26 July 2011, 11:05

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 :)