Change social plugin of hikashop?

  • Posts: 6
  • Thank you received: 0
8 years 1 week ago #271047

hi
I want to plug my beautiful for social networks. I mean is the following plugins.
extensions.joomla.org/extensions/extensi...ial-share/jssocials/
How can I make it to additional Hikashop products?

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 week ago #271069

Hi,

You mean that you want to have that extension display on the HikaShop product page ?
You could add its {jssocials} tag in the show_default view file of HikaShop view the menu Display>Views and it should work from what I can read in their description.

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

  • Posts: 6
  • Thank you received: 0
8 years 1 week ago #271133

thank you for reply.
Do you mean line 28 of the path above and below is the code?

$this->setLayout('show_block_social');

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 week ago #271135

Yes. You need to add it between the ?> and the <?php tags though. If you add it just before or after the line $this->setLayout('show_block_social'); it won't work unless you add it like that:
echo '{jssocials}';

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

  • Posts: 6
  • Thank you received: 0
8 years 1 week ago #271222

hi
thank you for reply;

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

I put in the code where you said. But the site does not display.

thanks a lot.

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 week ago #271233

You have added $$ in your code and that's invalid.

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

  • Posts: 6
  • Thank you received: 0
8 years 1 week ago #271302

hi
I've modified this code still is not displayed on the product page.

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

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 1 week ago #271304

Hello,

I'm afraid that " $ " is not a valid PHP either.
If you take a little look at the Nicolas message, he gave you the entire solution:
www.hikashop.com/forum/product-category-...hikashop.html#271135
So why are you adding that extra (invalid) code in the view ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
8 years 1 week ago #271337

hi
please See the following code:
How do I correct it?

thank you very much.

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

Last edit: 8 years 1 week ago by Jerome. Reason: removing useless full code view ; please do not post FULL CODE of the views.

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 week ago #271355

Hi,

That code is now correct.
What is the issue you have now ?

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

  • Posts: 6
  • Thank you received: 0
8 years 1 week ago #271442

hi
Jssocials plugin installed and active.
Hikashop Social plugins have been disabled.
You said that my code but also a social networking button on Product Page can not be displayed.

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 week ago #271456

Hi,

Where did I say that ?
I was asking what problem you now have with that modification ? Or maybe it works and it's ok ?
Can you provide more information on the problem you have if you still have one ?

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

Time to create page: 0.071 seconds
Powered by Kunena Forum