Product & category display

  • Posts: 8
  • Thank you received: 0
4 years 2 months ago #314716

-- url of the page with the problem -- : ekoposeleniesemigorie.in.ua/nasha-produk...oduct-details-bottom
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.3.12
-- Browser(s) name and version -- : Google Chrome 79.0.3945.117

Hello
I could not find a solution for the next two questions:
1) How to remove the symbol at the end of short product description


2) How to display the names of tabs in correct language for multilanguage site


Thank you

Attachments:

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

  • Posts: 4491
  • Thank you received: 609
  • MODERATOR
4 years 2 months ago #314717

Hello,

1. You have an issue with a special character, unfortunatelly the only solution is modify the code in your view, here, product/show_tabular, let's follow me step by step :
- From your Main HikaShop Configuration => Display dropdown => Views
- Use the 3 dropdown filters with : product / Your Template / Front end
- Find your view show_tabular and open it
- Around line 73, you have this :

if(!empty($this->element->product_description)) {
			$resume = substr(strip_tags(preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->element->product_description)),0,300);
			if (!empty($this->element->product_description) && strlen($this->element->product_description)>300)
				$resume .= " ...<a href='#hikashop_show_tabular_description'>".JText::_('READ_MORE')."</a>";
			echo JHTML::_('content.prepare',$resume);
		}
Replace the "substr" for have this :
if(!empty($this->element->product_description)) {
			$resume = mb_substr(strip_tags(preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->element->product_description)),0,300);
			if (!empty($this->element->product_description) && strlen($this->element->product_description)>300)
				$resume .= " ...<a href='#hikashop_show_tabular_description'>".JText::_('READ_MORE')."</a>";
			echo JHTML::_('content.prepare',$resume);
		}
Here , more details about this technical issue.

2. Before going more far on this subject, you can process a test like try with a default template, like Protostar
=> If that solve your issue, that mean that your template override some part of HikaShop elements (that I guess was translated)
Your solution is to contact your template creator support.

Hope this will help you to solve your issue.
Regards

Last edit: 4 years 2 months ago by Philip.
The following user(s) said Thank You: Kate_Protopopova

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

  • Posts: 8
  • Thank you received: 0
4 years 2 months ago #314754

Thank you for quick reply.
The problem is solved.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum