- Priority: 0
- Status: Queued
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 27.10.24, 01:57
- Opened by: Thomas Ullrich
Ticket #25820 - Wishlist AMP not working
Hi Fred,
sorry to bother you again with an AMP issue, as I know the new version is coming up. But I have no clue how long this will take and I had to go live with the new 8.1.5 version of our store. The old shop was running out of webspace. Therefore the major things should be working properly. (Be aware: prestashop.musterheld.de is the ‘live’ version now)
I know my customers like to use the wishlist. It works properly in desktop version, but it is not functional at all in AMP. (being logged in) You click on the heart, it shows a little reaction but there is nothing added to the wishlist. Please try yourself (with Smartphone). See screen attached.
Yours
Thomas
BTW: I have a request for a customization. I would be interested to add the function, that customers get a ‘back-in-stock’ email when items on their wishlist are ‘back-in-stock’ because of new deliveries or because of a customer return. Would this be an easy or complicated add on?
Yours
Thomas
Comments
Hi, Thomas.
The issue has been fixed. Updated file is
works like a charm. thank you.
if you can make me an offer for the back-in-stock email alert feature (to be added to the wishlist), let me know.
Please remind me what's wrong with email alert?
Adding items to wishlist works fine. But the wishlist itself in AMP looks strange - it is cutted in the middle. Please have a look at the scree attached. Any idea why this is the case?
Re mail alert: I am looking for an easy way to inform customers, when their favourite (sold out) item is getting back into stock. There are many addons on the market giving you the option to leave your email below sold out items, but these addons do not work in AMP version. As the wishlist exists in AMP, I thought we can just use the wishlist and add a mail alert. Therefore I asked you whether this feature could be added: a mail alert for items on the wishlist, which get back in stock. However, I just fround out a native prestashop module called 'Mail Alerts' does the trick as well. See screenshot 2. This button below a sold out item 'Wenn lieferbar, bitte benachrichtigen' (means: 'if back in stock, please inform')works well. It adds the item to a list and wenn coming back to stiock, the customer is informed. But this button does not show up (below sold out items) in AMP version. Do I have to add a hook to make it visible?
Attachments:
Another thing. Since youupdated the 'ajaxProduct.php' we have a strange button (saying 'favourite border') in our category view product list in desktop view. See screenshot attached. Just open any category in desktop view to see yourself. How can I get rid of that?
Attachments:
that is not related to my fix. Just disable "Wishlist" module (not Favorites)
Yes, Mail Alerts module should work on AMP. But I can't find a product where to check that. Can you gibe me a link?
I sorted the categories 'in stock' first. Just scroll to the end or filter the categories by 'not in stock/nicht verfügbar '.
Direkt Link to an example
https://prestashop.musterheld.de/mobile/product/352924-white-stuff-sebby-mini-leather-sling-bag
that is not related to my fix. Just disable "Wishlist" module (not Favorites)
Oh, you're right. Solved.
But what should be there when you select that filter, because as I can see both pages AMP and desktop shows the same, am I wrong?
https://mega.nz/file/xVIADZAT#YpI30g2j6hBwVjYaRLCK43JqbT2r2hsuEdLcpyG-Pvg
Now I don't know what you mean. The filter 'nicht verfügbar' (click on 'anwenden') shows you sold out items, i.e. itmes, where the button for a back in stock mail alert should be visible. But it isn't.
Maybe I misread your message. So the problem is with mail alerts module, not with labels as I thought before.
Have you tried to reset Mail Alerts module?
No. I did not. Will try and let you know.
Reset did not help. The mail-alert activation button is shown in desktop version, but not in mobile AMP product detail page. Maybe a hook is missing?
See yourself:
Sams sold out style in
Desktop Version (see screen attached as well)
https://prestashop.musterheld.de/alle-bg-artikel/354422-90138-blutsgeschwister-maxi-hose-logo-easy-flared-in-color-phoenix-red-grs-4064769219499.html#/3844-size-s/5025-color-1073_phoenix_red
See button 'Wenn lieferbar, bitte benachrichtigen' at the end of page.
Same style in AMP (open with smartphone):
https://prestashop.musterheld.de/mobile/product/354422-blutsgeschwister-maxi-hose-logo-easy-flared-in-color-phoenix-red-grs
No button here…
Attachments:
Btw. The wishlist in AMP still not perfectly working. You can add items, but the list is not displayed correctly. If you have more than 2 items on der list, the items 3 and 4 are cutted and the rest cannot be seen. Screen is locked. No scrolling possible. Plus try yourself on Smartphone and put more than 4 items on your wishlist.
1. Please try now, the mail alert should be working
I don't see a change. Means there is still no mail alert button on product detail pages of sold out items in AMP pages on Smartphone. I cleared the Litespeed cache before. Is this a misunderstanding? On desktop version it always worked, but on AMP it is not shown.
But I see it there: https://mega.nz/file/xdY0lbiJ#Hx6y6_OcLG_uRL3cPKFrjXPEPSaQHOR-SEQUAaWmsz0
I see. Just double checked. It works, if you're logged out. But when I log in, it is only visible in the desktop version, not in AMP.
Ok, I need to verify that
I created a customer login for you with e-mail address support@promokit.eu. Password same as admin.
I don't see it at all, have you disabled it?
Nope. Have not disabled it. I just checked (on desktop) and it is there. Logged in and as guest. Layout for a guest is cutted somehow. S
See attached.
Attachments:
Ok, I see. There is only button, that's why I didn't understand that's mail alert
Yes, I see it. Need some time on fix
Just checked. You're on a good way. I see it in AMP version now.
It is only the guest version, though. Means, even if logged in I have to type in my email address. But this is much better than before, of course.
…and I just realized, that it is shown on every product page, means also on those which are not sold out.
I changed the condition to show the form to subscribe but I don't know which products to check
Okay, I just checked the status:
I can see it on sold out items when I am NOT logged in. I can NOT see it on sold out items when I am logged in.
IMPORTANT and URGENT:
I have an Error 500 on available (ie not sold out) products in when I click on product detail. This does not happen on items which are sold out. Just check yourself: go to any category and click on any item which is not sold out (in AMP, with Smartphone) » Error 500. It very likely has to do with the changes you have done, as I don't have an error on same products in desktop version. Please revert changes.
An example for a sold outitem: just search for Delilah in search field.
I switched off the AMP version for now in settings, as it causes Error 500 on all product detail screens. If you find the time to revert the changes you can switch it on again (Settings, Force AMP on Smartphone ON - See Screenshot attached).
Attachments:
Sorry for being late. It seems my fault, sorry. I'll try to figure our what's happened
Please test it now now. AMP seems to be working the same way as desktop
Hi Fred,
regarding mail alert: yes, depending on the fact whether you are logged it or not, it is showing the right button. if you are logged in, no e-mail is necessary. however, it does not depend on the stock situation, which is confusing. currently it is ALWAYS shown, which means, even if we have plenty of stock, the customer is asked whether he wants to be informed if the item gets back into stock. This is a contradiction, of course. The button, with e-mail form or not, should only show up if the item is sold out/out of stock, i.e. if quantity is 0.
regarding wishlist: If I try to put items to the wishlist in AMP, there is still a strange behaviour. Currently, if I click the heart (logged in), the heart button and the product picture disappears, some strings in the product description suddely shown the term 'null'. If I refresh the page (pull down)it all goes back to normal, picture is back and the text is normal as well, the heart button is back and red for being activated. If I open the wishlist, I can only see one item, the first one. Cannot scroll or flip pages or anything. If I log out and log in on desktop and go to the wishlist, the item which I added in AMP version are not on my wishlist. AMP favorites/wishlist is currently not working at all. Desktop version works well.
As I can see there is a condition
which means if product quantity is less then minimum required quantity for a product, which is 1 by default.
Can you please give me a link to the product page where I can see the issue?
Hi Fred,
regarding mail alert, pls open this link with smartphone:
https://prestashop.musterheld.de/mobile/356053-91841-white-stuff-belle-wide-leg-trouser-in-blkmlt-ws442342-5063390316859.html#/5407-farbe-blkmlt/5448-grosse-10_r
See the active button 'Benachrichtige mich, wenn wieder erhältlich'(means: pls inform me when back in stock) - I attached the screenshot 'Mail Alert'. There is two things wrong with this: first the item has stock, so this button should not be visible. Secondly I was not logged in, when I saw this, but this is the button for logged in customers, as there is no form to type in your e-mail. If you click the button, the reaction is: 'Ihre E-Mail Adresse ist ungültig'.(Your email is invalid) Thus, it is wrong in two ways.
regarding wishlist, pls try yourself to create a wishlist with your samrtphone. then, have a look at the list. doesn't work. but we can wait for the updated AMP version for this, maybe it works there.
actuall, the second screenshot is for showing you the starnge add-to-cart effect we have in AMP. Suddenly there is two 'null' strings on the screen and the picture is gone. Please try yourself and put any item into the cart. Can this be related to the work you've done? There is no such effect in desktop version.
Ok, I see. will try to fix it as soon as possible
Hi Fred, actually the wishlist is not really working and in addition we have complaints about a strange behaviour when adding items to the cart in AMP. I just tried myself. I wanted to file an order for two items. When I added the first one to the cart, I had the same effect which I described above when adding an item to the wishlist (strings 'null' and the picture is gone).
The cart I not stable as well, the tes get 'lost' - suddenly it is empty again. I had to add the items tree times to finalize the order.
So please revert back the changes you have done as it seems it causes severe problems to the 'add to cart' procedure.
Yours
Thomas
Strange. What changes do you mean which I need to revert? Because I don't really remember what I changed there
My mistake, I mixed up the wishlist issue and mail alert issue in this thread.
But let's take it this way:
Pls open our shop prestashop.musterheld.de on your smartphone and go to any product detail. Click on add to cart and see what's happening. You will have the word "null" replacing the reference number and replacing the 'to add' quantity. And the picture of the article disappears. Exactly the same is happening when you add an item to the wishlist. When we started this thread, it was impossible to add an item to wishlist in AMP. The you changed something and told me it is working now. And yes, you can add items to the AMP wishlist now. But it has this strange side effect as described above. Exactly the same side effect do we have when adding something to the cart, therefore I resumed the problems with our 'add to cart' procedure are related to the changes you have done to make the 'add to wishlist' possible.
Hope you got me - it is a bit complicated.
Yes, I see that. working on a fix
Please try now. It works more or less stable, but that's really not easy to maintain that old code. In the new module version a lot of code was removed and amp controllers just inherit behaviour of original prestashop controllers.
I am sorry, but no. It is not working yet. I tried 10 times with diverse products. When I click 'add to cart' it says 'success' and there is no 'null's string and the picture is still there - so it looks good on fist sight. But the number of articles in the cart has not changed - and the article is not in the cart yet. When I click on the cart to see if the article is in there it suddenly appears, so it seems the script is interrupted until I open the cart. When I close the cart and return tp product detail, the same happens again - picture is gone and two 'null'strings are in places where they do not belong.
But this wasn't the case right from the start. I did not have a cart problem when we started this thread - I had a problem with the wishlist, which did not work. The wishlist (favorites) still does not work, but in addition there is this cart problem now.
Do you have an option to restore that previous working state?
No. I don't. Snapshots and backups are not more than 7 days old. And if, at all, I would have to know exactly which files to restore. Cannot restore the whole system, as it is live and taking orders. You have no clue what you have changed?