Vqmod coding not working

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeVqmod coding not working

This topic has been marked as not resolved.

Hi,

Can you pls help with the attached vqmod cod not working with Shoppica its codded for default theme. pls help on that.

Thanks

<!-- modify language -->
  <file name="catalog/language/english/english.php">
    <operation>
      <search index="1" position="after"><![CDATA[<?php]]></search>
      <add><![CDATA[$_['text_quicklook']                  = 'Quick Look';
              $_['tab_detail']                      = 'Infomation';
              $_['text_viewfull']                   = 'Product Details';]]></add>
    </operation>
  </file>
  <!-- end modify language -->
  <!-- add script to header -->
  <file name="catalog/controller/common/header.php">
    <operation>
      <search index="1" position="after"><![CDATA[$this->data['title'] = $this->document->getTitle();]]></search>
      <add><![CDATA[$this->document->addScript('catalog/view/theme/default/loginpopup/popup.js');
    $this->document->addStyle('catalog/view/theme/default/loginpopup/popup.css');]]></add>
    </operation>
  </file>
  <!-- end add script -->
  
  <!-- modify categories template -->
  <file name="catalog/view/theme/shoppica/template/product/category.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  <!-- end modify categories template -->
  
  <!-- modify search template -->
  <file name="catalog/view/theme/shoppica/template/product/search.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  <!-- end modify search template -->
  
  <!-- modify special template -->
  <file name="catalog/view/theme/shoppica/template/product/special.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  <!-- end modify special template -->
  
  <!-- modify brand template -->
  <file name="catalog/view/theme/shoppica/template/product/manufacturer_info.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  <!-- end modify brand template -->
  
  <!-- modify product related template -->
  <file name="catalog/view/theme/shoppica/template/product/product.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  <!-- end modify product related template -->
  
  <!-- modify module -->
  <file name="catalog/view/theme/shoppica/template/module/bestseller.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  
  <file name="catalog/view/theme/shoppica/template/module/featured.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  
  <file name="catalog/view/theme/shoppica/template/module/latest.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  
  <file name="catalog/view/theme/shoppica/template/module/special.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>
  <!-- end modify module template -->
</modification>

  • This reply was modified 4255 days ago by  sumankhan.
September 10, 2012 at 3:49 pm #13372

It is not working because it searches for items that are not present or are modified in the shoppica templates.

For example:

  <file name="catalog/view/theme/shoppica/template/module/featured.tpl">
    <operation>
      <search index="1" skip="true" position="replace"><![CDATA[<a href="<?php echo $product['href']; ?>">]]></search>
      <add><![CDATA[<a rel="quicklook" onmouseover="$(this).children('.quicklook').show();" onmouseout="$(this).children('.quicklook').hide();" href="<?php echo $product['href']; ?>"><input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?>" /><div class="quicklook"><div class="btnquicklook" onclick="opQuicklook(<?php echo $product['product_id']; ?>);return false;"><?php echo $this->language->get('text_quicklook');?></div></div>]]></add>
    </operation>
  </file>

the catalog/view/theme/shoppica/template/module/featured.tpl is not the same as the default opencart one. In Shoppica 1 it is split in two templates – featured_column.tpl and featured_content.tpl. You have to modify your vqmod according to these changes.

Regards,
ThemeBurn team

September 11, 2012 at 4:16 pm #13393
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.