Display social media icons below product

  • Posts: 52
  • Thank you received: 2
12 years 2 months ago #64909

I cannot see how to display social media icons below the product description as illustrated in the Documentation here:

www.hikashop.com/en/support/documentatio...social-networks.html

See image.

Instead all I can see in the Social media Plugin is how to display icons LEFT or RIGHT.

Please can you tell me how to display below the description?

Thanks - Ken :)

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #64911

Hi Ken,

I think that you'll find your answer there :

If you want to move it around, you can edit the file show of the view product via the menu Display->Views and move the {hikashop_social} tag.

Hope this will help you.

Last edit: 12 years 2 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
12 years 2 months ago #64916

Thanks for the quick reply.

HHowever, have justs visited Display | Views and selected Pruduct show.php file.

When I copied the contents to a wordpad file to search for hikashop_social I could not find the text.

Am I looking in the wrong file?

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
12 years 2 months ago #64919

OK - sorted now.

I found the {hikashop_social} tag here:

Display | Views and selected Product show_default.php file

I cut the following and placed after description:

<?php
$pluginsClass = hikashop_get('class.plugins');
$plugin = $pluginsClass->getByName('content', 'hikashopsocial');
if (@ $plugin->published || @ $plugin->enabled) {
echo '{hikashop_social}';
}
?>

Thanks for the pointer - Ken :)

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
12 years 2 months ago #64922

Oops, not so quick!

I have made the change successfully - see before.

However, now when I select

Hikashop Social Networks Plugin

from Configuration | Plugins screen

I cannot see the plugin listed when the Joomla! Plugins screen opens in a new tab.

Any explanation for this?

I am sure I was changing the settings of this screen earlier!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
12 years 2 months ago #65043

That should directly open the options screen of the plugin.
In any case, you can also edit the plugin via the joomla plugins manager.

Please Log in or Create an account to join the conversation.

  • Posts: 158
  • Thank you received: 5
9 years 6 months ago #202467

Hmm, I'm also trying to move the social icons below the intro product information / image as below but I am having problems locating the {hikashop_social} tag in either show.php or show_default.php

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 6 months ago #202468

HI,

Since then, we moved it in the show_block_social view file.
So you would have to remove it from there and put it instead in the show_default where you want it.

Please Log in or Create an account to join the conversation.

  • Posts: 158
  • Thank you received: 5
9 years 6 months ago #202553

OK, so I tried to move it as you suggested but no matter what I do it doesn't seem to make any difference?

I noticed there is a section already in show_default for the social icons but even deleting this section still results in them being displayed??

<?php
$this->setLayout('show_block_social');
echo $this->loadTemplate();
?>

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 6 months ago #202557

Hello,
Did you edited the "show_default" file of the "product" view of the front-end template that you are currently using?

Please Log in or Create an account to join the conversation.

  • Posts: 158
  • Thank you received: 5
9 years 6 months ago #202692

OK, I figured it out. I had to edit the show_tabular.php file.

So now I can move it but it is still not aligning correctly as it appears on 2 lines?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 6 months ago #202700

It's just a matter of settings and CSS I guess.
We would need a link to the page in order to analyze the situation to tell you more precisely.

Please Log in or Create an account to join the conversation.

  • Posts: 158
  • Thank you received: 5
9 years 6 months ago #202914

Thanks, I've sent an email to support with the URL as this is on a pre-production domain.

Note that I'm using the show_tabular format for the product page.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 6 months ago #202915

Hi,

You can add such CSS so that it displays on one line:
.fb_iframe_widget span{ width: 250px !important; }

The following user(s) said Thank You: serbofleconcepts

Please Log in or Create an account to join the conversation.

  • Posts: 65
  • Thank you received: 4
8 years 7 months ago #236642

Hello everyone,

I managed to add the social icons to hikashop product page by adding the {hikashop_social} to quantity.php file. By any chance is there a way to change the social icon images. I want something like this, Can I add custom images? joxi.ru/1A5Qv5OsKO6QDA

Last edit: 8 years 7 months ago by dilum_tharaka.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
8 years 7 months ago #236665

Hi,

You can potentially change the image under "media\com_hikashop\images\icons"

The following user(s) said Thank You: dilum_tharaka

Please Log in or Create an account to join the conversation.

  • Posts: 65
  • Thank you received: 4
8 years 7 months ago #236791

Hello Xavier,
I tried changing the images, but they are not showing up. (I'm using the hikahop social plugin). I just need to add a simple image like this. joxi.ru/1A5Qv5OsKO6QDA

here is the site link: mausfish.com/shop-online/velvet-mouse

Last edit: 8 years 7 months ago by dilum_tharaka.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
8 years 7 months ago #236829

Hi,

After checking the code, we are using the Twitter and Facebook API, so the displayed button are generated by Twitter and Facebook. We are not able to change the images.

The following user(s) said Thank You: dilum_tharaka

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds
Powered by Kunena Forum