Jump to content
freelancer

[Поддержка] Показать еще (showmore)

Recommended Posts

Отличный скрипт.

ocStore 1.5.5.1.2, работает без filterpro.

 

716071754___.png.5ea7a2b6cd8b4fe411379abae989b8ba.png

 

Но, с наличием "filterpro_v2.4.4(seo)_encoded", беЗполезен. При нажатии ничего не происходит.

Пытался адаптировать к фильтру, но ничего не вышло.

Фрагмент из xml файла:

  <file name="catalog/controller/module/filterpro.php">
    <operation>
      <search position="before"><![CDATA[
$this->document->addScript('catalog/view/javascript/jquery/jquery.total-storage.min.js');
      ]]></search>
      <add><![CDATA[
$this->document->addScript('catalog/view/javascript/showmore.js');			$this->document->addStyle('catalog/view/theme/default2/stylesheet/showmore.css');        
      ]]></add>
    </operation>
  </file>

Ещё пытался адаптировать под два языка, но так же ничего не получилось. Надпись не выводилась )

Делал правки в скрипте, и вносил изменения в контроллер:

var $cookie = function () {};
$(document).ready(function () {
    if ($('.pagination div.links b').next('a').length > 0) {
        $('.pagination').before('<div id="showmore" style="padding-bottom: 15px;"><a onclick="showmore()"><?php echo $text_showmore; ?></a></div>');
    }
  <file name="catalog/controller/product/category.php">
    <operation>
      <search position="before"><![CDATA[
$this->document->setDescription($category_info['meta_description']);
      ]]></search>
      <add><![CDATA[
$this->document->addScript('catalog/view/javascript/showmore.js');			$this->document->addStyle('catalog/view/theme/default2/stylesheet/showmore.css');        
      ]]></add>
    </operation>
		<operation>
			<search position="after"><![CDATA[$this->data['text_limit'] = $this->language->get('text_limit');]]></search>
			<add><![CDATA[
			$this->data['text_showmore'] = $this->language->get('text_showmore');
]]></add>
		</operation>	
  </file>

 

Может кто подскажет где подправить, что добавить? 

Буду очень признателен.

 

P.S. filterpro куплен на этом форуме.

фильтр_покупка.png

Edited by Zapuzin

Share this post


Link to post
Share on other sites

Попробовал перенести из "filterpro_v2.5.17.6b_encoded" в "filterpro_v2.4.4(seo)_encoded". Ничего не получилось.

 

Не судьба )

 

Edited by Zapuzin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.