s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
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 »

I've been wondering about this Question @Pierre_P - would it not be a bit strange if customers have added things, for them to come back in the future to find they are gone (removed by shopowner) ?
I am not here to build for you.
I am here to build with you. Let's help each other.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
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 »

burt wrote: Thu Jun 01, 2023 12:40 pm I've been wondering about this Question @Pierre_P - would it not be a bit strange if customers have added things, for them to come back in the future to find they are gone (removed by shopowner) ?
Amazon agrees with you. I have wish-list items there that have been out of stock for something like twenty years.

Lowes agrees with Pierre. They delete my shopping cart every couple months. But they also allow people to email their shopping carts. So after I rebuilt the shopping cart they deleted, I emailed it to myself.

It seems to me that you had an add-on that would do that (email a shopping cart). Together those things might make a paid add-on. Regularly delete old items from the wish-list, emailing the customer the deleted items. So if they want, they can come back and buy the items without having to rediscover them.
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 »

I don't recall an "email cart" mod, but I do vaguely recall a "save cart" mod I did back in one of the old 28d things. I might dig it out and see if I can update it for modern Phoenix. Thanks Matt.
I am not here to build for you.
I am here to build with you. Let's help each other.
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 »

Phoenix version 1.9.0. PHp8

This may be my install but I had a customer contact me about items going missing from his wishlist.

When I added items into my wishlist all went well. I did notice that when an item is later marked as out of stock, the item was removed from the wishlist. I would have thought that the stock tick would change to a cross or something and the item would remain in the wishlist.

Can someone check on a version that is not one that has been updated to the latest 1.0.9.2 pro version and let me know whether theirs is working correctly.
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 »

14Steve14 wrote: Mon Jul 01, 2024 9:01 am Phoenix version 1.9.0. PHp8

This may be my install but I had a customer contact me about items going missing from his wishlist.

When I added items into my wishlist all went well. I did notice that when an item is later marked as out of stock, the item was removed from the wishlist. I would have thought that the stock tick would change to a cross or something and the item would remain in the wishlist.

Can someone check on a version that is not one that has been updated to the latest 1.0.9.2 pro version and let me know whether theirs is working correctly.
I haven't looked at this addon for a very long time. If I remember rightly;

Stock
Red X tick is for `stock level`, not `status`.
If > 0 green tick therefore available, else (zero or fewer so unavailable) red X

Status
Removes the product from the list entirely as the product is no longer available to buy, I probably coded it that way to save on time/effort of coding (put another way, the product is not showing at your shop, so should not show in any wishlist). I'm certain that piece of the logic could be recoded, but it might not be straightforward.
I am not here to build for you.
I am here to build with you. Let's help each other.
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 »

Thanks Gary.

At least its not me then.

It was just that a customer said that items keep being removed from their wishlist and he thought it was a place where he could store items ready for when he needed to buy them, and thought that if they went out of stock they would still remain in his list so he could buy them when they returned back into stock which seems logical.

I get that the tick is for stock, not status, but when there is no stock the item gets removed so it will not show a red cross if we have stock settings in the store that we have.
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 »

I think I understand what you're saying.

How this addon works, (assume here that the product has been added to one or more customers wishlist);

If product in "ON" status, the product will show in the wishlist, either with a green tick or a red x.
If product is "OFF" status, the product is removed from wishlist.

In general, in most Phoenix installations, Status of a Product determines if the product is to be shown to the customer (eg in menu system and on the product_info page), regardless of that products stock number. If Status is set to "OFF", the product is not shown to the customer, hence it should not be shown in the customers wishlist.

It's definitely likely that simply deleting the product from wishlists when product status is turned to off is not desired behaviour, that's how the addon appears to have been coded.

It might be fairly straightforward to simply have the product not appear (in wishlists) when Status is OFF, then reappear if status is turned back ON. Could also potentially have a message advising the customer that 1 or more products have been temporarily removed from Wishlist as they are not presently available, but that they will return to wishlist when available again.
I am not here to build for you.
I am here to build with you. Let's help each other.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by frankl »

While it will save attributes to wishlist, if none are selected it won't save to wishlist. Hence some work needed!
wishlist1.png
wishlist2.png
You do not have the required permissions to view the files attached to this post.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by frankl »

I don't know the code well enough to see where the check for required attributes is :(
Once I know that I can fix it.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by frankl »

This will work when a product has attributes

Code: Select all

    $('.btn-product-info.btn-buy').on('click', function(e) {
        $(':input[required]').on('focusout', function() {
            $(this).val() == '' && ($(this).focus());
        });
        var d = $('form[name="cart_quantity"]').serialize();
        do_cart(d);
        e.preventDefault();
    });


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