Jump to content

[SOLVED] this->error on Category page


Prestashop Guru
 Share

Recommended Posts

Hi,

I've a problem with the error function.

if i use $this->error[]= Tools::displayerror(.....) on product page i see the fancybox popup (CORRECT).

But, if i use $this->error[]= Tools::displayerror(.....) on category page i see a message from browser with the error(WRONG.

I use $this->error[] on processChangeProductIncart().

How i can see the fancybox error on the Category page?

Thanks,

Best regards.

 

Roberto

Edited by bart46 (see edit history)

Share this post


Link to post
Share on other sites

Quickly comparing the files, there is a line that explicitly adds the fancybox jquery plugin to the product controller:

 

(File controllers/adminAdminProductsController.php):

    $this->addJqueryPlugin(array('autocomplete', 'fancybox', 'typewatch'));
 
Maybe try to add something similar to the Categories controller and see if that is sufficient:
(File controllers/admin/AdmnCategoriesController.php)
 
 
My 2 cents,
pascal
  • Like 1

Share this post


Link to post
Share on other sites

Hi Bart,

sorry, got somehow the impression you were talking about back office. Didn't see you talking about the add to cart  :wacko:

 

Glad you found out!

 

Happy selling,

pascal.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More