Jump to content
Sign in to follow this  
Anjel

правки стилей модуля

Recommended Posts

Установила модуль Product Question Pro, на дефолтном шаблоне все нормально, на моем (pavfoodstore) , при нажатии на вкладку таба "вопрос-ответ" его содержимое поднимается вверх над табом. Подскажите где этот порядок расположения искать, чтобы опустить вниз под заголовки табов? файл vqmod этого модуля уже весь перепахала, ни чего не получается

<modification>
<id>ProductQuestionPro</id>
<version>3.1</version>
<author>
<file name="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="before" offset="1"><![CDATA[
<div id="tab-description" class="tab-content"><?php echo $description; ?></div>
]]></search>
<add><![CDATA[
  <a href="#tab-questions"><?php echo $tab_questions ?></a>
]]></add>
</operation>
 
<operation>
<search position="before"><![CDATA[
<?php if ($tags) { ?>
]]></search>
<add><![CDATA[
  <div id="tab-questions" class="tab-content"></div>
]]></add>
</operation>
 
<operation>
<search position="before"><![CDATA[
$('#button-review').bind('click', function() {
]]></search>
<add><![CDATA[
  $('#tab-questions').load('index.php?route=module/productquestion/getForm&product_id=<?php echo $product_id; ?>');
]]></add>
</operation>
</file>
 
<file name="catalog/controller/product/product.php">
<operation>
<search position="before"><![CDATA[
   $this->data['tab_related'] = $this->language->get('tab_related');
]]></search>
<add><![CDATA[
$this->load->model('module/productquestion');
$this->language->load('module/productquestion');
$this->data['tab_questions'] = sprintf($this->language->get('tab_questions'), $this->model_module_productquestion->getQuestionCount(
array(
'language_id' => $this->model_module_productquestion->getLangIdByCode($this->customer->session->data['language']),
'display' => 1,
'product_id' => $this->request->get['product_id']
)
));
 
$this->document->addScript('catalog/view/javascript/productquestion.js');
if (file_exists('catalog/view/theme/' . $this->config->get('config_template') . '/stylesheet/productquestion.css')) {
$this->document->addStyle('catalog/view/theme/' . $this->config->get('config_template') . '/stylesheet/productquestion.css');
} else {
$this->document->addStyle('catalog/view/theme/*/stylesheet/productquestion.css');
}
]]></add>
</operation>
</file>
 
<file name="catalog/view/theme/*/template/common/home.tpl">
<operation error="skip">
<search position="before" offset="3"><![CDATA[
<div class="statistic">
]]></search>
<add><![CDATA[
           <tr>
             <td><?php echo $pq_total_questions; ?></td>
             <td><?php echo $total_questions; ?></td>
           </tr>
           <tr>
             <td><?php echo $pq_total_questions_unanswered; ?></td>
             <td><?php echo $total_questions_unanswered; ?></td>
           </tr>
]]></add>
</operation>
</file>
 
<file name="catalog/controller/common/home.php">
<operation>
<search position="before"><![CDATA[
   $this->template = 'common/home.tpl';
]]></search>
<add><![CDATA[
$this->load->model('module/productquestion');
$this->language->load('module/productquestion');
$this->data['pq_total_questions'] = sprintf($this->language->get('pq_total_questions'), $this->url->link('module/productquestion', 'token=' . $this->session->data['token'], 'SSL'));
$this->data['pq_total_questions_unanswered'] = sprintf($this->language->get('pq_total_questions_unanswered'), $this->url->link('module/productquestion', 'token=' . $this->session->data['token'], 'SSL'));
 
$this->data['total_questions'] = $this->model_module_productquestion->getQuestionCount();
$this->data['total_questions_unanswered'] = $this->model_module_productquestion->getQuestionCount(array('unanswered' => 1));
]]></add>
</operation>
</file>
 
<file name="admin/controller/common/header.php">
<operation>
<search position="before" offset="2"><![CDATA[
   $this->template = 'common/header.tpl';
]]></search>
<add><![CDATA[
$this->language->load('module/productquestion');
$this->data['pq_questions'] = $this->language->get('pq_questions');
$this->data['pq_link_questions'] = $this->url->link('module/productquestion', 'token=' . $this->session->data['token'], 'SSL');
]]></add>
</operation>
</file>
 
<file name="admin/view/template/common/header.tpl">
<operation>
<search position="after"><![CDATA[
   <li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
]]></search>
<add><![CDATA[
<li><a href="<?php echo $pq_link_questions; ?>"><?php echo $pq_questions; ?></a></li>
]]></add>
</operation>
</file>

 

</modification>

 
в основные файлы лезть не хотелось бы
ocStore  1.5.5.1.2

post-684073-0-38657100-1448980805_thumb.jpg

Edited by Anjel

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • 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.