hikashop social keeps breaking

  • Posts: 17
  • Thank you received: 0
10 years 10 months ago #110084

Hi,

You've probably seen this before but i was unable to find the thread (if there is on). The hikashop social plugin broke last week, i upgraded hikashop, it started working, i updated some products and modified some css and now its broken again!! the ancher {hikashop_social} is not being replaced. please advise.

Thank you

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #110100

Hi,

I think that reading that thread will probably help you :).

Last edit: 10 years 10 months ago by Mohamed Thelji.

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

  • Posts: 17
  • Thank you received: 0
10 years 10 months ago #110538

Hi Mohammed,

Thanks for that. Unfortunately the suggestions in that thread did not solve my problem however i did find the problem. in show_default.php i added the following code:

if($this->element->product_description){
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
}else{
echo '<p>Sorry, we\'re still in the middle of writing up this description, but we wo\'nt be long, so be sure to check back soon. Thanks</p>';
}

this breaks the hikashop_social plugin but i don't understand why???

whereas if i remove the expression:
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));

it's fine!

I'm trying to add a default message when a product description is missing. any ideas?

thanks

Last edit: 10 years 10 months ago by menelik.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #110550

And if you use this code :

if($this->element->product_description){
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
}else{
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','','<p>Sorry, we\'re still in the middle of writing up this description, but we won\'t be long, so be sure to check back soon. Thanks</p>'));
}

The following user(s) said Thank You: menelik

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

  • Posts: 263
  • Thank you received: 11
10 years 8 months ago #123370

Bonjour à tous,
Sur ce même sujet, j'ai vraiment un problème.

QUelqu'un pourrait m'expliquer pourquoi le plugin hikashop_social ne semble plus fonctionner aussitôt que j'efface ces lignes de mon fichier show_tabular.php :

<div id="hikashop_product_description_main_mini" class="hikashop_product_description_main_mini">
		<?php
		$resume = substr(strip_tags(preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->element->product_description)),0,300);
		$resume .= "...<a href='#description'>".JText::_('READ_MORE')."</a>";
		echo JHTML::_('content.prepare',$resume);
		?>
	</div>


Aussitôt que j'efface ces lignes, je vois plutôt {hikashop_social} écrit sur ma page.

Je ne vois pas trop le rapport entre les deux.

Merci

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

  • Posts: 2334
  • Thank you received: 403
10 years 8 months ago #123382

Bonjour,

En effet les deux ne semblent avoir aucun lien.
Il ne me semble pas que la div soit utilisé mais vous pouvez toujours essayer de laisser les balises div sans le contenu.

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

  • Posts: 263
  • Thank you received: 11
10 years 8 months ago #123388

Je ne pense plus que ce soit ça le problème. Je démarre un nouveau post.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum