Jump to content

compare products paid Module blok not showing


Recommended Posts

Hello,

 

I have a paid module called: Group Features and Compare Products v1.5

The 'Group Feature' works good, but the compare function doesn't.

Placing the compare buttons was no problem.

When I click the yellow button "Vergelijken" on product list page, or "Add to compare" on the product page, nothing happens. The standard compare function works normal.

The weird thing is that I had it work yesterday for a moment but i think when i saved the Module Live Edit It went wrong.

I have tried several things like re-edit the templates and compare to my backup files, I didn't find anything wrong. 

 

The next step for me was to use the debug function in Google Chrome. When i click to a compare button the following error cums up:

  1. POST http://www.in2sound.nl/index.php?fc=module&module=featurecategories&controller=compare 500 (Internal Server Error) bb920c477650a8348096a1fde8e5b4f0.js:2

 

I have minor knowledge when it comes to prestashop files. But I have absolutely no knowledge of debugging when there is no filename mentioned  in the debug window.

Who can help me solve this problem?

An other problem I encounter is that the 'Live Edit' give's me a 404 error.

My site: www.in2sound.nl 

 

Thanks in advance,

 

René Kuenen

Link to comment
Share on other sites

Thanx,
 
When I turn on error reporting and follow the link I'll get these errors:

Notice: Undefined index: HOOK_HEADER in .../cache/smarty/compile/95/ae/fa/95ae...4ca9.file.layout.tpl.php on line 31
Notice: Trying to get property of non-object in .../cache/smarty/compile/95/ae/fa/95ae...4ca9.file.layout.tpl.php on line 31
In2Sound Notice: Undefined index: HOOK_TOP in .../cache/smarty/compile/ed/1e/a4/ed1e...4ae8.file.header.tpl.php on line 166
Notice: Trying to get property of non-object in .../cache/smarty/compile/ed/1e/a4/ed1e...4ae8.file.header.tpl.php on line 166 
Notice: Undefined index: HOOK_LEFT_COLUMN in .../cache/smarty/compile/ed/1e/a4/ed1e...4ae8.file.header.tpl.php on line 174
Notice: Trying to get property of non-object in .../cache/smarty/compile/ed/1e/a4/ed1e...4ae8.file.header.tpl.php on line 174 
Notice: Undefined index: HOOK_RIGHT_COLUMN in .../cache/smarty/compile/85/3f/44/853f...afb7.file.footer.tpl.php on line 37
Notice: Trying to get property of non-object in .../cache/smarty/compile/85/3f/44/853f...afb7.file.footer.tpl.php on line 37

Next step I did was look into the files and specific lines. Unfortunately i didn't help me a lot. These are the lines where the errors are:

layout.tpl.php line 31:
<?php if (!empty($_smarty_tpl->tpl_vars['display_header']->value)){?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('HOOK_HEADER'=>$_smarty_tpl->tpl_vars['HOOK_HEADER']->value), 0);?>

header.tpl.php line 166:
<?php echo $_smarty_tpl->tpl_vars['HOOK_TOP']->value;?>

header.tpl.php line 174:
<?php echo $_smarty_tpl->tpl_vars['HOOK_LEFT_COLUMN']->value;?>

footer.tpl.php line 37:
<?php echo $_smarty_tpl->tpl_vars['HOOK_RIGHT_COLUMN']->value;?> 

Can you help me to the next step?

Link to comment
Share on other sites

I don't know what you mean with that question.

I use not the default theme module, but it is based on the default theme.

 

What I did is modified the defines.inc.php file to go in debug mode. Line 28, set false to true. In my (Chrome) browser shows the error lines in the browser when I click the 'Vergelijk' button.

 

Now I know that it's not the way you meant it in your first post. I discovered just 10 min ago what you meant and did it right away. Unfortunately nothing came up by hitting the 'Vergelijk' button. On other pages u popup appears and give detailed debug information.

 

To add some extra information:

The way it should work is that when I click the 'Vergelijk' button on the left side a block appears that shows the products that the costumer want to compare.

Link to comment
Share on other sites

I have found the piece of code that will be triggered. maybe it is of some use.

<a class="exclusive" style="margin-top:0.5em" name="446" onclick="event.preventDefault();
var productId = $(this).attr('name');
$.ajax({
type: 'POST',
url: baseDir +
'index.php?fc=module&module=featurecategories&controller=compare',
async: true,
cache: false,
data: 'action=add&productId='+productId,
success: function(jsonData,textStatus,jqXHR)
{
$('#fc_comparison').empty().html(jsonData);
$('#fc_comparison').css('display', 'block');
$('html, body').animate({
scrollTop: $('#fc_comparison').offset().top-100}, 1000);
}
});
return false;">Vergelijken</a>
Link to comment
Share on other sites

featurecategories - this is not default module

i don't know this addon because it's not default,

 

i suppose that other forum members also don't know this addon, this is why no replies here.

have you tried to contact with module developer? 

Link to comment
Share on other sites

It's not a default module indeed.

I thought that maybe there was a common way to approach this problem and where to look if an error like this comes up alt-oath this is not an default module.  

 

No, I had no contact with the developer for this problem. I shall ask it to the developer.

 

Thanks for your support so far.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...