- Posts: 17
- Thank you received: 0
hikashop social keeps breaking
13 years 3 months ago #110084
by menelik
hikashop social keeps breaking was created by menelik
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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 3 months ago - 13 years 3 months ago #110100
by Mohamed Thelji
Replied by Mohamed Thelji on topic hikashop social keeps breaking
Last edit: 13 years 3 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
13 years 3 months ago - 13 years 3 months ago #110538
by menelik
Replied by menelik on topic hikashop social keeps breaking
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:
this breaks the hikashop_social plugin but i don't understand why???
whereas if i remove the expression:
it's fine!
I'm trying to add a default message when a product description is missing. any ideas?
thanks
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:
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:
Code:
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: 13 years 3 months ago by menelik.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 3 months ago #110550
by Mohamed Thelji
Replied by Mohamed Thelji on topic hikashop social keeps breaking
And if you use this code :
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.
13 years 2 weeks ago #123370
by Flooder
Replied by Flooder on topic hikashop social keeps breaking
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 :
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
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 :
Code:
<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.
13 years 2 weeks ago #123382
by Eliot
Replied by Eliot on topic hikashop social keeps breaking
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.
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.
13 years 2 weeks ago #123388
by Flooder
Replied by Flooder on topic hikashop social keeps breaking
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.199 seconds