Jump to content
ndiaga

[Free Module] Favorite Products for 1.7

Recommended Posts

Display a page featuring the customer 's favorite products.

ns_favoriteproducts.zip

Display a page featuring the customer 's favorite products  for  1.7  .

This  module is not  compatible 1.6  yet.

 

You can get the pro version with more features :   Favorite Products Pro  for  1.7 

 

Edited by ndiaga (see edit history)
  • Thanks 1

Share this post


Link to post
Share on other sites
2 minutes ago, Mercader Virtual said:

Nice. I'll try it.

Yes very  nice.

Share this post


Link to post
Share on other sites
2 hours ago, TCHOUPI said:

Salut merci pour le partage.!

You  are welcom.

Share this post


Link to post
Share on other sites

oh my bad the module is disabled to download for unlogged users, i created the account and link is enabled. Thanks for quick anwser and have a nice day :)

Share this post


Link to post
Share on other sites
29 minutes ago, SzubiX said:

oh my bad the module is disabled to download for unlogged users, i created the account and link is enabled. Thanks for quick anwser and have a nice day :)

Ok, I see.

Welcom to the  community.

Have  a nice  day.

Share this post


Link to post
Share on other sites

i, have installed module in prestashop 1.7, but i see this all empty not possible config it. 

I have try to see with different browser but nothing....

Cattura.JPG

Share this post


Link to post
Share on other sites
1 hour ago, rb10 said:

i, have installed module in prestashop 1.7, but i see this all empty not possible config it. 

I have try to see with different browser but nothing....

Cattura.JPG

this  is not related  to the module, it's a banner  add that to my website...

go to any  product details page in your front  end  and  you will see  add to favorite  button.

Share this post


Link to post
Share on other sites

Hi Dear,

this module does not work on PS 1.7.5.

I got this error:

Got error 'PHP message: PHP Fatal error:  Uncaught Error: Class 'ns_favoriteproductsactionsModuleFrontController' not found

Thanks.

BR

Share this post


Link to post
Share on other sites
17 minutes ago, giovanni.four said:

Hi Dear,

this module does not work on PS 1.7.5.

I got this error:

Got error 'PHP message: PHP Fatal error:  Uncaught Error: Class 'ns_favoriteproductsactionsModuleFrontController' not found

Thanks.

BR

Do youn know  how  to read php  code?

Sometime  based on servers  the  zip  delete all  empty lines and  that can cause this error.

 

Edited by ndiaga (see edit history)

Share this post


Link to post
Share on other sites
On 10/31/2019 at 1:39 PM, giovanni.four said:

Hi Dear,

thanks for your answer.

I use vim editor in linux to edit but I only installed module from BO without editing  file.

Thanks.

Hi,

Are  you still having  that error?

Share this post


Link to post
Share on other sites

Hello,

Thank you for the module. I've been using it for a while on my web site. But I noticed a problem and I could not solve it. 

If you have product combinations and keep selecting one and other at the same page, add to favorites displays multiplied. If you select different combination 8 time, then the number of displayed "add to fav" button is 8 :) 

I've recorded and uploaded a video for you just to understand better.

 

Thanks 

 

Edited by santaisdead
wordings (see edit history)

Share this post


Link to post
Share on other sites
1 hour ago, santaisdead said:

Hello,

Thank you for the module. I've been using it for a while on my web site. But I noticed a problem and I could not solve it. 

If you have product combinations and keep selecting one and other at the same page, add to favorites displays multiplied. If you select different combination 8 time, then the number of displayed "add to fav" button is 8 :) 

I've recorded and uploaded a video for you just to understand better.

 

Thanks 

 

 

The  video  is  not showing  any  data...

The  favorite  product  is based  on  product   not  on product combinations.

 

Share this post


Link to post
Share on other sites

HI.

I installed th module. I see de button to add a product, but when I click it and then I go to the footer for see the list, it is always empty. What am i doing wrong?

 

Thanks

Share this post


Link to post
Share on other sites
14 hours ago, Gorka Sanz said:

HI.

I installed th module. I see de button to add a product, but when I click it and then I go to the footer for see the list, it is always empty. What am i doing wrong?

 

Thanks

 

Hi,

You  did  nothing wrong, it's how the  module works.

You can view  the  product  in MyAccount  >  My  favorites 

Share this post


Link to post
Share on other sites
1 hour ago, Gorka Sanz said:

image.thumb.png.4277a2a66e1f69ebc69a6cb6ae24ec09.png

I always see the favorite products empty...

Did  you  add any  product  to the  list of favorites?

Where  you loggin when  adding them?

 

Share this post


Link to post
Share on other sites

hello

I install the module but I do not get the add to favorites button, the same is because I am using a different template, but in my account it does appear

why?

660614866_Sinttulo.thumb.png.d2b504422cab08070498fd83f8d46470.png

789844631_Sinttulo2.thumb.png.0b6a7c774da4680556e67f24a8934d8b.png

Share this post


Link to post
Share on other sites
1 hour ago, fernandovegag said:

hello

I install the module but I do not get the add to favorites button, the same is because I am using a different template, but in my account it does appear

why?

660614866_Sinttulo.thumb.png.d2b504422cab08070498fd83f8d46470.png

789844631_Sinttulo2.thumb.png.0b6a7c774da4680556e67f24a8934d8b.png

Hi,

Add to  favorites  should  be in product details  page.

Yes, maybe  your theme  does  not use  that hook.

Share this post


Link to post
Share on other sites
On 11/6/2019 at 6:46 PM, santaisdead said:

Hello,

Thank you for the module. I've been using it for a while on my web site. But I noticed a problem and I could not solve it. 

If you have product combinations and keep selecting one and other at the same page, add to favorites displays multiplied. If you select different combination 8 time, then the number of displayed "add to fav" button is 8 :) 

I've recorded and uploaded a video for you just to understand better.

 

Thanks 

 

 

Hi, thank you for this module.

 

I'm facing the same issue than above: when it comes to change a product combination, add / remove to wishlist button is multiplied and displayed as many times as I clicked on a combination button until I reload the page. 

I know this module isn't for product combinations and I'm fine with that. 

I just want customers to add product to their wishlist no matter the combination.

 

Is there any way to fix that, and avoid multiple button displays ?

PrestaShop 1.7.6.2

Here is a screenshot after I clicked 8 times alternately on the colors white and black:

 

screenshot.png.636e41116e8e865eaeee400cefda18a9.png

Thank you.

Edited by Canti (see edit history)

Share this post


Link to post
Share on other sites
3 minutes ago, Canti said:

Hi, thank you for this module.

 

I'm facing the same issue than above: when it comes to change a product combination, add / remove to wishlist button is multiplied and displayed as many times as I clicked on a combination button until I reload the page. 

I know this module isn't for product combinations and I'm fine with that. 

I just want customers to add product to their wishlist no matter the combination.

 

Is there any way to fix that, and avoid multiple button displays ?

PrestaShop 1.7.6.2

Here is a screenshot after I clicked 8 times alternately on the colors white and black:

 

screenshot.png.636e41116e8e865eaeee400cefda18a9.png

Thank you.

Hi,

This  is because of the multiple  combinations  but we have fix that in the Pro  Version of this module   : Favorite Products Pro

 

Share this post


Link to post
Share on other sites

Prestashop 1.7.6.2

Got error when click remove button in http://*****.com/ns_favoriteproducts/account

Fatal error: Uncaught Error: Class 'ns_favoriteproductsactionsModuleFrontController' not found in /var/www/html/site/classes/controller/Controller.php:219 Stack trace: #0 /var/www/html/site/classes/Dispatcher.php(507): ControllerCore::getController('ns_favoriteprod...') #1 /var/www/html/site/index.php(28): DispatcherCore->dispatch() #2 {main} thrown in /var/www/html/site/classes/controller/Controller.php on line 219

Share this post


Link to post
Share on other sites
6 minutes ago, Demias said:

Prestashop 1.7.6.2

Got error when click remove button in http://*****.com/ns_favoriteproducts/account

Fatal error: Uncaught Error: Class 'ns_favoriteproductsactionsModuleFrontController' not found in /var/www/html/site/classes/controller/Controller.php:219 Stack trace: #0 /var/www/html/site/classes/Dispatcher.php(507): ControllerCore::getController('ns_favoriteprod...') #1 /var/www/html/site/index.php(28): DispatcherCore->dispatch() #2 {main} thrown in /var/www/html/site/classes/controller/Controller.php on line 219

Where from  the front end?

Can you share your website url?

Share this post


Link to post
Share on other sites

Where from  the front end? - in My Account link...

Can you share your website url? - sorry, on local staging :(

Share this post


Link to post
Share on other sites
1 minute ago, Demias said:

Where from  the front end? - in My Account link...

Can you share your website url? - sorry, on local staging :(

Open  the  module  controllers  files to  see if the line are not broken  by the zip.

If  you have  all the code in a single  line  that should be the  problem.

 

Share this post


Link to post
Share on other sites
9 minutes ago, Demias said:

No, all ok: FTYpL0q.png

The  problem is  this  :  ns_favoriteproductsactionsModuleFrontController       it  should be  this  :   Ns_favoriteproductsActionsModuleFrontController   .

Or  change  ns_favoriteproductsActionsModuleFrontController    to    ns_favoriteproductsactionsModuleFrontController

Share this post


Link to post
Share on other sites

Oh, thx! And there:

 

require_once($this->module->getLocalPath().'classes/FavoriteProduct.php');

 

change to

 

require_once($this->module->getLocalPath().'classes/NsFavoriteProduct.php');

Share this post


Link to post
Share on other sites
7 minutes ago, Demias said:

Oh, thx! And there:

 

require_once($this->module->getLocalPath().'classes/FavoriteProduct.php');

 

change to

 

require_once($this->module->getLocalPath().'classes/NsFavoriteProduct.php');

Yes, in the begining  I was using  FavoriteProduct.php   but  since  other modules can use the same name I decided to change it to  NsFavoriteProduct.php  to differenciate.

I may  forget  those lines  .

Thanks.

Edited by ndiaga (see edit history)

Share this post


Link to post
Share on other sites

hi, how i can add button add to favorite in product details page ?

Share this post


Link to post
Share on other sites
Just now, rb10 said:

Where i can find this on page product?

Look  after  the  image  thumbnails.

Share this post


Link to post
Share on other sites

there isnt...

inside which file i can add this ?

Share this post


Link to post
Share on other sites
4 minutes ago, rb10 said:

there isnt...

inside which file i can add this ?

Look  in the  file  :  ns_favoriteproducts/views/templates/hook/favoriteproducts-extra.tpl

You have  the  code in there.

Share this post


Link to post
Share on other sites

can i add this code on product details page .tpl ?

Share this post


Link to post
Share on other sites
1 minute ago, rb10 said:

can i add this code on product details page .tpl ?

No,  you  can't  it  won't  work.

This  is  already  called  in product details  page  by  a hook.

Maybe  your  theme  don't  just  support  that  hook.   Are  you using  the  default  classic theme?

Share this post


Link to post
Share on other sites

no not use default theme, for this i wanna know how to add this to my theme

Share this post


Link to post
Share on other sites
1 minute ago, rb10 said:

no not use default theme, for this i wanna know how to add this to my theme

As  I said   it will not  work.

Variables  are  difinded  from  the  module kook   not   from  the  product controller.

Share this post


Link to post
Share on other sites

ok thanks! Do u think there is a way for add it ?

Share this post


Link to post
Share on other sites
15 hours ago, rb10 said:

ok thanks! Do u think there is a way for add it ?

We  build  modules  to  avoid  editing  core  files.

Editing  core files is  not  a good  practice .

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.


×
×
  • Create New...

Important Information

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