- Priority: 0
- Status: Waiting on customer
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 18.03.23, 14:35
- Opened by: Nyeső Csabáné
Ticket #24425 - Ajax kosár probléma.
Hi!
Next problem:
If I put a product in the cart (Default_1.jpg), the ajax cart page (Default_2.jpg) pops up. Then, if I click the continue shopping button or click next to the window (it doesn’t matter), the product window will return. The problem is that half a different product comes in. “Default_error_1.jpg”. Here you can see that the friendly URL does not match either, the reference number of this faulty product is written next to the reference number of the basic product. At the bottom of the product details, the same situation (Default_error_2.jpg). Here you can also see that the product quantity has also changed. If I initiate the order directly on the main page, there is no error (a. Only on the product page. If I turn off the cache, I go through the order process (No_cache_1.jpg, No_cache_2.jpg) then this product no longer appears, but the The reference number is written here twice in a row, although the reference number of the given product is written twice here (No_cache_error_1.jpg, No_cache_error_2.jpg). If I turn off this product, which is constantly displayed, reference number: MB-273-S, I turn the cache back on -t, then an “undefined” error appears when the product is available (Disabled_product_error.jpg). In these cases, the error was so much compared to the original product.tpl file that I added the reference number. If I restore the original tpl file -t, this product still appears (reference number: MB-273-S), but the reference number is no longer written twice at the bottom of the product details, but it still shows an incorrect value (tpl_restored_error.jpg). That was the modification what the product.t I wrote in pl:
{block name=’product_reference’}
<div class="product-reference"> <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
<span itemprop="sku">{$product.reference_to_display}</span>
</div>
{/block}
My question would be:
Why do you keep displaying this product (reference number: MB-273-S)?
Why do you display the reference number twice?
I add the number in the tpl only to the upper part, but it also appears twice in the product description.
Same error with turning off the friendly URL.
I have also manually deleted everything from the cache (var/dev), but this error always comes back.
Thanks!
Comments
I would add so many additions that now another product appears. It is not limited to a given product. Now the product with reference ID UM-UC009 is displayed.
Hi, Nyeső Csabáné.
Please update credentials in your profile https://support.promokit.eu/myprofile to access to your FTP Server
Hi!
I fixed the ftp access last time when you indicated that you could not log in. I tested it with an ftp client and also from a browser, it works.
I also tried the product page with elementor theme, it is also wrong. I set it back to default native theme.
Thanks!
Sorry for long waiting.
But I still don’t have access → https://take.ms/JNs9A
I have tried FTP/SFTP, secure/insecure, but nothing works
Hello! I don’t know what the problem could be, Firefox - Chrome - MS internet explorer, Total Commander Ftp, FlashFXP, I can see it normally with all of them. Ctrtl+C Ctrl+V I copy data from promokit.eu, from my own account. I’m copying it this way to make sure the data is correct. I can log into the FTP right away without any errors. I also checked it on my phone (Android) and it’s fine there too. Are you not using a Proxy Server? No network rules set?
Attachments:
I looked at the problem again. There are no permissions set on FTP, full permissions are set. If I see correctly, you are trying sftp (port 22). I think you should try port 21 with simple ftp. As far as I can see, this error occurred with FileZilla (fzSftp). Others have had similar problems with filezilla: https://serverfault.com/questions/598392/ftp-550-permission-denied
If there is still a problem, I will give you another FTP login.
I still see an error “Permission denied”
I have tried all available options, but the error message is still the same.
Hi! I transferred the data to the main FTP. I don’t know what else to do. A configuration file for CoreFTP (Windows) or Cyberduck (Mac) can also be downloaded from the server. I can give it to you if needed. I don’t know what your problem is, I’ve already checked it on a linux and it’s fine from there too.
In my account data, I transferred the login data to the main FTP, try it.
Sorry, but still the same → https://take.ms/T5bJf
I suppose you have some geo blocking on your server side
Hi!
You were right. I looked it up on the website of the hosting provider. IP ranges are banned. I can enable it on the Cpanel interface. I did that. I wrote back the data in my own account to the other FTP. Try it already. In addition, there is a setting on the provider’s page regarding FileZilla: https://ugyfeladmin.tarhely.eu/index.php/knowledgebase/153/FileZilla-FTP-beallitasa.html
Not sure if the setting is right, but try it and report back, please. If it’s not good, I’ll fix it.
Yes, I can connect now.
Trying to figure out what’s wrong and provide a solution
OK, I’ll wait, Thanks!
1. “Why do you keep displaying this product” - Sorry, but I couldn’t reproduce the issue. I disabled the product and it is no longer visible on the front page. → https://take.ms/zqbeA
2. We don’t need to display reference code twice. It can be removed from the file
It really doesn’t show up. I thought you did something. What could be wrong? Cache kernel error? You wrote that the reference number does not have to appear twice. I need to remove the code. But where? It is in two places: Next to the product (I wrote this there) and in the product details. My problem is not that it is there in these two places, but that it is written twice in a row. Why is that? This error still exists. It only appears twice when you click the continue shopping button. It appears well by default. It only appears twice after continuing shopping. (one after the other, in a row)
Attachments:
I added this next to the product:
{block name=’product_reference’}
{/block}
This will run once more, running on the continue shopping button.
“I need to remove the code. But where?” - in this file
/themes/alysum/templates/catalog/_partials/product-details.tpl
I just did that for you and now the issue is fixed.
Thanks! it works like this. That’s right, it disappeared from the product details. No problem. It’s enough if it’s up there.
I still have one small problem (I’ll open a ticket for it if necessary), why is there a loading circle in the pictures? Randomly. The image is loaded, but the loading circle is there. Especially with the manufacturer’s pictures. I have already regenerated all thumbnails as well.
The error occurred again! I know why you didn’t get the error. Appears when favorites are added. The products are selected from among the favorites. I noticed now. Please check it out.
Sorry but I don’t see the issue, it works correctly for me https://take.ms/ydA6E
This is not the problem. With which the ticket was started. I wrote that if you click on the continue shopping button, an image of a different product will appear. You wrote that you did not have this problem. I didn’t get this error either. Then the error appeared again. I realized that this only occurs when there are products in the favorites. You add a few products to your favorites - you open a product (the error only occurs on the product page) - put the product in the cart - the ajax cart window appears - click on the continue shopping button - you are returned to the product page - and here is the error: a product that is in your favorites. Not all data changes. Image, Order ID will change. I just tried, now it doesn’t come up again. I’m at a loss now. Check it out if you can.
Please give me a link to a product which I could test out
At first I thought it was a specific product causing the problem. I found out yesterday that any product can cause it. Add any product to your favorites. I tried with several products yesterday, the error occurred. There is no specific product. Now I don’t get the error again. Incredible. Now presta cache is enabled. I would use litespeed cache. It is now turned off. So that litespeed does not cause the problem. This is only caused by presta cahe.
Try it with any product. Add more products to your favorites. Choose a product that is not in your favorites. Go to the product page. Add to cart, then tap the button to continue shopping.
I have tried this one https://take.ms/tO7Rs but everything works correctly
Ok, that’s good for me now. Incredible. I hope it doesn’t happen again.
However, there is another important problem. Do I need to open a ticket? The problem: litespeed! If it is turned on, if you add a product to the cart on the product page, the cart counter will change. e.g.: the cart counter is at 3, you go back to the main page, the cart counter returns to the initial value. If it was on 0, then from 3 to 0. If the cart counter on the main page was 1, and then you open a product page and increase the cart counter there, then you go back to the main page and it immediately resets to the initial value. If you go back to the product page, it changes immediately. The cache works separately for the main page. This works well with the classic prestashop theme. Can you help me with this? Litespeed is now disabled.
Same error with favorites.
I turned litespeed back on.
The error appears immediately.
1. I know where the problem with images is. But you may have it already fixed. I just wanted to to be sure that everything works fine. But ok, let me know if you will see that error again.
2. We have tried to install lite speed server to our server, but unfortunately we didn’t make it work correctly. so I’m not sure I can help you with that
Litespeed is now active. It works fine for me, only the counters are wrong. I already looked elsewhere (litespeed forum), they tested it with the classic theme, that’s fine, I’ll talk to the theme’s developer. If you could help, that would be great. You can test it here. This can happen to others. You can see your own code better. More and more people will use litespeed cache in the future. Maybe you’ll notice something.
Ok, I’ll try to check that out tomorrow in the evening