Jump to content


Photo

Can i add fb comments widget to cms page?


  • Please log in to reply
2 replies to this topic

#1 Ana

Ana

    Member

  • Members
  • PipPip
  • 12 posts

Posted 07 November 2017 - 02:23 PM

Hello. Just one question. Its possible to add facebook coment module to cms page? So i want do something like blog on cms page and want to add this like a coment section where i can answer on customers question. Sorry for english. I m slovak. Thanks for your soon answer



looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 9921 posts

Posted 07 November 2017 - 02:24 PM

hello,
By default it is not possible.
But there are some possibilities to display comments widget on cms page:
https://mypresta.eu/...o-cms-page.html

guide was based on prestashop 1.5, but it is still applicable even to v1.6.


free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


#3 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 9921 posts

Posted 07 November 2017 - 03:43 PM

you can add there if condition:

{if Tools::getValue('id_cms') == 10}
<div class="fb-comments" data-href="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}" data-numposts="5" data-colorscheme="light"></div>
{/if}

it checks the id of the cms page and displays it only if viewed cms page has id 10 (you can alter it to id of page where you want to show it)


free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png





IPB Skin By Virteq