s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Post Reply
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s07e01 - Wishlist / Faves

Post by ecartz »

In the 1.0.8.0 version, the link in the HTML is wishlist.php?products_id=4{1}2&action=wishlist_remove
In the old 1.0.8.5 version, the link was wishlist.php?products_id=4&action=wishlist_remove

This is different and the proximate cause of the problem. The ultimate cause is that the wishlist class was missing the following line:

Code: Select all

          $product->set('uprid', $product_id);
and the product listing was not using it.

I've updated the 1.0.8.5 release. You can incorporate it by just copying over the previous files. If you've modified any, you might have to redo your modifications in the new file.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: s07e01 - Wishlist / Faves

Post by radhavallabh »

ecartz wrote: Sat Feb 19, 2022 10:49 am In the 1.0.8.0 version, the link in the HTML is wishlist.php?products_id=4{1}2&action=wishlist_remove
In the old 1.0.8.5 version, the link was wishlist.php?products_id=4&action=wishlist_remove

This is different and the proximate cause of the problem. The ultimate cause is that the wishlist class was missing the following line:

Code: Select all

          $product->set('uprid', $product_id);
and the product listing was not using it.

I've updated the 1.0.8.5 release. You can incorporate it by just copying over the previous files. If you've modified any, you might have to redo your modifications in the new file.
Thank you so much dear!!
It works like a charm.

Thank you again for all the help.
Very Warm Regds./
radhavallabh
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: s07e01 - Wishlist / Faves

Post by 14Steve14 »

Bit of a silly question about this Wishlist addon.

How hard would it be to produce a module so there could be a button in the shpopping_cart.php page so a customer could remove all the items from the basket and add them into their wishlist instead?

Bit of history behind the question.
We are using the recover carts that @burt wrote a while ago on an older 1.7.0.11 version of Phoenix and wanted to add something into the recover carts email that says that if a customer has no intention of buying what is in their basket, they could transfer it all to their wishlist by clicking a button. We have customers use the cart as a wishlist and get upset when we delete their carts using the recover carts system.
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Preview of 1.0.8.20

Post by tessthepup »

@ecartz

Not sure if anyone has already mentioned this but when installing the wishlist navbar module it breaks the store with a white screen.

And this in the error log
[04-Dec-2022 17:38:50 Europe/London] PHP Fatal error: Uncaught Error: Call to a member function count_contents() on null in /home/..../public_html/includes/modules/navbar/templates/tpl_nb_wishlist.php:2
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Preview of 1.0.8.20

Post by ecartz »

tessthepup wrote: Sun Dec 04, 2022 5:45 pm the wishlist navbar module
Did you do the rest of the install steps from the Readme.md file? In particular:

Code: Select all

INSERT INTO hooks (hooks_site, hooks_group, hooks_action, hooks_code, hooks_class, hooks_method) VALUES ('shop', 'system', 'startApplication', '_99_flake', '', 'wishlist::ensure_session_wishlist');
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Preview of 1.0.8.20

Post by tessthepup »

ecartz wrote: Sun Dec 04, 2022 7:34 pm
tessthepup wrote: Sun Dec 04, 2022 5:45 pm the wishlist navbar module
Did you do the rest of the install steps from the Readme.md file? In particular:

Code: Select all

INSERT INTO hooks (hooks_site, hooks_group, hooks_action, hooks_code, hooks_class, hooks_method) VALUES ('shop', 'system', 'startApplication', '_99_flake', '', 'wishlist::ensure_session_wishlist');
@ecartz err no lol

I really need to stop working when tired :ugeek:
User avatar
Pierre_P
Contributor
Posts: 144
Joined: Fri Mar 12, 2021 5:06 am
Phoenix Version: v1.1.0.6
Has thanked: 21 times
Been thanked: 11 times

Re: s07e01 - Wishlist / Faves

Post by Pierre_P »

Thanks, seems all fine on latest 8.20 version

Just one question, the Faves list will grow in the database over time to a monster size unless we start deleting customers.
Is there a way we can set a limit in days retention on Faves?
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e01 - Wishlist / Faves

Post by burt »

Simplest way would be to make a hook for admin (so when you login) the wishlist system is accessed. Logic looks at customers_wishlist:customers_wishlist_date_added and deletes any items from both customers_wishlist and customers_wishlist_attributes that are over the number of days you decide on.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
Pierre_P
Contributor
Posts: 144
Joined: Fri Mar 12, 2021 5:06 am
Phoenix Version: v1.1.0.6
Has thanked: 21 times
Been thanked: 11 times

Re: s07e01 - Wishlist / Faves

Post by Pierre_P »

burt wrote: Wed May 31, 2023 8:23 am Simplest way would be to make a hook for admin (so when you login) the wishlist system is accessed. Logic looks at customers_wishlist:customers_wishlist_date_added and deletes any items from both customers_wishlist and customers_wishlist_attributes that are over the number of days you decide on.
Ok, maybe somethings up my side
I have done a hook for admin to clear old wishlist items > 60 days

Question: are wishlists only stored as sessions ??
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s07e01 - Wishlist / Faves

Post by ecartz »

Pierre_P wrote: Wed May 31, 2023 3:12 pm Question: are wishlists only stored as sessions ??
No. There're tables with the wishlist information (customers_wishlist and customers_wishlist_attributes). They are stored in the session like the shopping cart, with the database as backup.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply