• Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

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

Nyeső Csabáné 18 Mar 2023, 20:56

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.

Fred 19 Mar 2023, 09:48

Hi, Nyeső Csabáné.
Please update credentials in your profile https://support.promokit.eu/myprofile to access to your FTP Server

Nyeső Csabáné 19 Mar 2023, 20:11

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!

Fred 20 Mar 2023, 17:20

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

Nyeső Csabáné 20 Mar 2023, 21:22

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:

ftp_1.jpg (96.6 KiB)
ftp_2.jpg (120.6 KiB)
Nyeső Csabáné 21 Mar 2023, 08:50

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.

Fred 21 Mar 2023, 19:54

I still see an error “Permission denied”

Status:      	Retrieving directory listing...
Command: 	PWD
Response: 	550 PWD: Permission denied
Error:         	Failed to retrieve directory listing

I have tried all available options, but the error message is still the same.

Nyeső Csabáné 22 Mar 2023, 14:44

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.

Nyeső Csabáné 22 Mar 2023, 14:47

In my account data, I transferred the login data to the main FTP, try it.

Fred 22 Mar 2023, 20:30

Sorry, but still the same → https://take.ms/T5bJf

I suppose you have some geo blocking on your server side

Nyeső Csabáné 23 Mar 2023, 08:31

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.

Fred 23 Mar 2023, 20:01

Yes, I can connect now.
Trying to figure out what’s wrong and provide a solution

Nyeső Csabáné 24 Mar 2023, 07:18

OK, I’ll wait, Thanks!

Fred 25 Mar 2023, 22:06

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

/themes/alysum/templates/catalog/_partials/product-details.tpl
Nyeső Csabáné 25 Mar 2023, 22:37

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:

error1.jpg (176.4 KiB)
error2.jpg (124.4 KiB)
Nyeső Csabáné 25 Mar 2023, 22:42

I added this next to the product:

{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}

This will run once more, running on the continue shopping button.

Fred 26 Mar 2023, 10:59

“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.

Nyeső Csabáné 26 Mar 2023, 13:20

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.

Nyeső Csabáné 26 Mar 2023, 17:39

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.

Fred 27 Mar 2023, 18:09

Sorry but I don’t see the issue, it works correctly for me https://take.ms/ydA6E

Nyeső Csabáné 27 Mar 2023, 18:56

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.

Fred 27 Mar 2023, 19:05

Please give me a link to a product which I could test out

Nyeső Csabáné 27 Mar 2023, 19:55

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.

Nyeső Csabáné 27 Mar 2023, 19:57

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.

Fred 27 Mar 2023, 20:00

I have tried this one https://take.ms/tO7Rs but everything works correctly

Nyeső Csabáné 27 Mar 2023, 20:29

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.

Nyeső Csabáné 27 Mar 2023, 20:31

Same error with favorites.

Nyeső Csabáné 27 Mar 2023, 20:33

I turned litespeed back on.

Nyeső Csabáné 27 Mar 2023, 20:33

The error appears immediately.

Fred 27 Mar 2023, 20:34

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

Nyeső Csabáné 27 Mar 2023, 21:30

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.

Fred 27 Mar 2023, 23:10

Ok, I’ll try to check that out tomorrow in the evening

Fred 28 Mar 2023, 21:28

Is the Litespeed enabled now?
I tied to add few products to cart and the counter works correctly.
How to see the issue?

Nyeső Csabáné 29 Mar 2023, 20:17

Hi! Litespeed is on. It consists of two parts: Server + Prestashop client module. You can check the module in the module manager in prestashop. It can also be configured there. The error is still there. How does the error occur? You open a product page and add a product to the cart. There is now 1 product in the cart. Then you go back to the main page (e.g. click on the logo). Here the cart counter will be 0 (if it was 0 before you clicked on the product page). If the counter is at 3 on the main page, and then you go to a product page and add two products to the cart, the counter will be 5. Then you click on the main page again, then it switches to 3. You go back to the product, the counter is 5 again. The main page cache is not synchronized or updated.

Fred 30 Mar 2023, 22:22

Trying to figure out how to trigger lite speed cache clearing on cart update…

Fred 02 Apr 2023, 11:39

We spent a lot of time on that with no success. I think we need help of Litespeed community.
Can you create a thread or maybe support ticket about the issue?

Nyeső Csabáné 03 Apr 2023, 14:55

Then I will create a support ticket in the litespeed forum. Should I open a support ticket here as well? Or is it enough to talk about it here if necessary? What works: In the settings of the litespeed module, I set the “Home Page TTL” section to 86400 seconds to a minimum of 60 seconds, then it clears the cache every 60 seconds. Then the Home Page will be good. There is such a section: Flush Home Page When Order Placed. This is set to: Flush the home page when stock status or quantity is changed for specified products. That doesn’t work. Maybe this works with the Classic Theme, but not with Alysum, or maybe the problem is with the Elementor module itself.

Fred 03 Apr 2023, 19:26

You can keep writing here.
As for the cache we need to make LiteSpeed to flush it’s cache when any widget changed it’s content.

Fred 03 Apr 2023, 19:36

Please also note that native (CE) Cart widget doesn’t work too