J'ai un eshop sur Joomla 2.5.18 et Virtue Mart 2.5 Je voudrais ajouter Facebook boutons de code dans la page de mes produits. J'ai le code à partir des outils de développement Facebook:Ajouter des boutons de médias sociaux à Virtue Mart Joomla
<iframe src="https://www.facebook.com/plugins/share_button.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&layout=button_count&size=small&mobile_iframe=true&width=88&height=20&appId" width="88" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
J'espérais en modifiant le fichier:
public_html/components/com_virtuemart/vues/Productdetails/tmpl/default_manufacturer.php
Je pourrais ajouter un morceau de code qui apparaîtrait dans la page du produit sous les informations du fabricant, mais rien ne se passe.
<?php
/**
*
* Show the product details page
*
* @package \t VirtueMart
* @subpackage
* @author Max Milbers, Valerie Isaksen
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default_manufacturer.php 5409 2012-02-09 13:52:54Z alatak $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>
<div class="manufacturer">
<?php
$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component', FALSE);
$text = $this->product->mf_name;
/* Avoid JavaScript on PDF Output */
if (strtolower(JRequest::getWord('output')) == "pdf") {
\t echo JHTML::_('link', $link, $text);
} else {
\t ?>
<span class="bold"><?php echo "123" ?><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a>
<?PHP } ?>
</div>
J'ai étudié le sujet et il semble y avoir des plugins pour faire le travail comme celui-ci qui ne fonctionne pas unfortunatelly
ou ils sont payés téléchargements et le projet est à faible budget.