Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: Adjusting display social icons in product detail.

Adjusting display social icons in product detail. 8 years 3 months ago #13603

Hello,

how to move the display social icons in the product detail?

Sincerely Milan
Attachments:
The administrator has disabled public write access.

Adjusting display social icons in product detail. 8 years 3 months ago #13611

Hi Jana,

What you are saying is a 100% custom modifications (because you want to change how the things look) and unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.

But i can guide you on this to let you do this customization by yourself.

1-Open the product details' PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/flexv2.php
FYI: There are 2 layouts: default and flexv2. Make your modifications only on the file that you are currently using.

2- find the lines to generate those social icons; which are these:
 <?php if ($params->get('sharebutton_facebook') || $params->get('sharebutton_twitter') || $params->get('sharebutton_pinterest') || $params->get('sharebutton_google') || $params->get('sharebutton_addthis') || $params->get('sharebutton_facebook_like')) { ?>
    <div class="FlexibleProductDetailShareWindow">
      <?php if ($params->get('sharebutton_facebook') || $params->get('sharebutton_twitter') || $params->get('sharebutton_pinterest') || $params->get('sharebutton_google') || $params->get('sharebutton_addthis')) {	?>
      <div class="floatleft FlexibleShareItemLeft"> 
        <!-- AddThis Button BEGIN -->
        <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
          <?php if ($params->get('sharebutton_facebook')) { ?>
          <a class="addthis_button_facebook"></a>
          <?php } ?>
          <?php if ($params->get('sharebutton_twitter')) { ?>
          <a class="addthis_button_twitter"></a>
          <?php } ?>
          <?php if ($params->get('sharebutton_pinterest')) { ?>
          <a class="addthis_button_pinterest_share"></a>
          <?php } ?>
          <?php if ($params->get('sharebutton_google')) { ?>
          <a class="addthis_button_google_plusone_share"></a>
          <?php } ?>
          <?php if ($params->get('sharebutton_addthis')) { ?>
          <a class="addthis_button_compact"></a>
          <?php } ?>
        </div>
        <!-- AddThis Button END --> 
      </div>
      <?php } ?>
      <?php if ($params->get('sharebutton_facebook_like')) { ?>
      <div class="floatleft FlexibleShareItemMiddle">
        <div style="width:220px; overflow:hidden !important;"> 
          <!-- FACEBOOK LIKE Button (HTML5) BEGIN --> 
          <!--  <div href="<?php print $current_url = 'http://' .$_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI']; ?>" class="fb-like" data-width="220" data-show-faces="true" data-send="true"></div> -->
          <div class="fb-like" data-width="220" data-show-faces="false" data-send="false"></div>
          <!-- FACEBOOK LIKE Button (HTML5) END --> 
        </div>
      </div>
      <?php } ?>
      <?php // Ask a question about this product
		if (VmConfig::get('ask_question', 1) == 1 and ($params->get('productdetails_ask_link'))) {  ?>
      <div class="floatleft FlexibleAskQuestionElement"> <a class="ProductDetailsAskQuestion <?php  if (!($parameter == "quicklook")) { ?>flexibleModal<?php } ?>" href="<?php echo $url ?>"  ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a> </div>
      <?php } ?>
    </div>
    <?php } ?>

3- Move those lines to where you like on the page.

Regards.
The administrator has disabled public write access.

Adjusting display social icons in product detail. 8 years 3 months ago #13637

Super,

succeeded, thank you ...

Last request: which can be translated into Czech > Facebook Like Sign Up to see what your friends like.

Sincerely Puchon
The administrator has disabled public write access.

Adjusting display social icons in product detail. 8 years 3 months ago #13649

Hi,

If you were using the latest CleanMart version, then this translation should be automatic. Open the product details PHP file, and find this line:
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";

and replace it with this:
  js.src = "//connect.facebook.net/<?php $lang = JFactory::getLanguage();echo $lang->getTag(); // this prints the Joomla's current language unicode?>/all.js#xfbml=1";

So, depends on your Joomla's current language, the Facebook SDK will also be translated. For more info about Facebook SDK, see this page: developers.facebook.com/docs/javascript/quickstart/v2.5

Regards.
The administrator has disabled public write access.
Time to create page: 0.179 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo