• Priority: 0
  • Status: Closed
  • Theme: Venedor
  • Assigned To: Fred
  • Private: No
  • Open Date: 14.09.20, 23:03
  • Opened by: Joan Puts
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason:

Ticket #19137 - Cannot add to basket

If i want to add an article to the basket. I’;; get an popup with

Attachments:

noarticleinbasket.png (121.3 KiB)

Comments

Fred 15 Sep 2020, 10:53

Hi, Joan Puts.
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office and FTP

Joan Puts 19 Sep 2020, 15:12

Hi Fred,
I filled in the fields in my profile

Fred 21 Sep 2020, 13:05

the website link seems wrong http://93.190.137.206/~admin/

Joan Puts 21 Sep 2020, 23:28

Now it works.

Fred 22 Sep 2020, 11:07

Add to cart works for me https://take.ms/MJo2m how to reproduce the issue?

Joan Puts 22 Sep 2020, 21:51

Strange. It doesn’t when i try it. Is it maybe an language issue. See the printscreen I attached

Attachments:

Naamloos.png (133.5 KiB)
Fred 23 Sep 2020, 11:03

Are you logged in in the store or not?

Joan Puts 23 Sep 2020, 11:15

No, i’m not logged in in the store. Why, I have set in the ordersetting that checkout as guest is enabled. Or am i wrong with that conclusion

Fred 23 Sep 2020, 11:16

I don’t say you have to be logged in, I’m trying to find out what’s wrong. I just tried and Add to cart works correctly for me.

Joan Puts 23 Sep 2020, 11:28

Wich browser do you use. I always use Firefox. Could that be a clue.

Fred 23 Sep 2020, 11:35

I just tried in Firefox and it also works fine https://take.ms/0bRWe8

Joan Puts 23 Sep 2020, 11:44

That’s very strange. I’ve tried it in Edge and worked fine, but not in Firefox.

Fred 23 Sep 2020, 11:49

we are working on that, hope to find what’s wrong as soon as possible

Joan Puts 23 Sep 2020, 11:52

I’ve tried it on my mobile phone with google and id didn’t work. So there is something not right. Is there something with the ajax.js or cart.php

Joan Puts 12 Oct 2020, 11:16

problem stil not resolved.

Fred 12 Oct 2020, 11:22

I see. Trying to figure out what’s wrong

Fred 12 Oct 2020, 11:41

1. You seems have some cache enabled (I can’t find where is it) https://take.ms/rMVv9 - please disable it
2. You server is incredibly slow I highly suggest you to configure it somehow or change to another one

Joan Puts 12 Oct 2020, 14:15

I have memcached in php loaded. Is that the problem.
In the attached files you can see my configuration.

Must i do something in the prestashop configuration to disable cache functions?

What i found out is that if i click on the quickview i can add it to the basket, but if i click on the picture and then click on “add to basket”it doesnt’n functioning.

Attachments:

psinfo1.png (154 KiB)
psinfo2.png (142.6 KiB)
Fred 13 Oct 2020, 11:52

Your configuration looks correctly but for site in production. We need to edit theme’s/module’s files that’s why any cache should be disabled

Joan Puts 14 Oct 2020, 11:02

Did you get already figured out what the problem is.

Joan Puts 14 Oct 2020, 11:38

I have disabled all cache, but this cache message is still there. In the attached file i sent you, you can see that it has something to do with the product condition.

<meta itemprop="itemCondition" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['condition'], ENT_QUOTES, 'UTF-8');?>

” />

Attachments:

9ce956a17dd4b9cd517a0a4592415... (9.6 KiB)
Fred 14 Oct 2020, 11:56

please try now, I just fixed the file /public_html/themes/venedor/templates/catalog/_partials/miniatures/micro-product.tpl

Joan Puts 14 Oct 2020, 12:54

Here I sent you a small video of what i mean

Attachments:

iquisine.avi (376.1 KiB)
Joan Puts 14 Oct 2020, 12:55

I don’t get the error with the cache anymore → as reply of your answer

Fred 14 Oct 2020, 13:34

There is definitely cache issue, or wrong server credentials, please check out my screenshot https://take.ms/64udj

I have removed all content from the file but still see the same issue in the website

Joan Puts 14 Oct 2020, 14:19

Should i disable opcache in php?

Fred 14 Oct 2020, 14:23

Yes, Please try it disable while you are in development stage

Joan Puts 14 Oct 2020, 15:42

I diabled opcache PHP

Fred 15 Oct 2020, 13:43

it doesn’t helped.
The file is empty but I still see an errors caused by that file. It’s possible in two ways
1. Cache issue
2. The path to file or server credentials are wrong

Joan Puts 19 Oct 2020, 13:51

I have another webshop allsupllies.eu running on the same server and creditials. And that site doesn’t have those problems.
But Iquisine.nl is running live and that is really an issue. So please let me know exaclty what to do.

Fred 19 Oct 2020, 20:16

if I would know what to do exactly.
Try to copy the file from your working store to this one
The file is /themes/venedor/templates/catalog/_partials/miniatures/micro-product.tpl

Joan Puts 19 Oct 2020, 21:04

Oké I did that. But I still get this error

1/1) ContextErrorException
Warning: htmlspecialchars() expects parameter 1 to be string, array given
in 9ce956a17dd4b9cd517a0a45924159ed7ca0dbeb_2.file.micro-product.tpl.php line 168

Line 168 of the file says
<meta itemprop=”itemCondition” content=”<?php echo htmlspecialchars($_smarty_tpl→tpl_vars[’product’]→value[’condition’], ENT_QUOTES, ‘UTF-8’);?>
” />

Fred 19 Oct 2020, 22:55

Try to empty that file at all to see does it works with empty file and make sure the changes you make are applied

Joan Puts 19 Oct 2020, 23:54

I’ve emtied the file and made sure it was empty. But with no result.

Fred 19 Oct 2020, 23:54

do you have the same error?

Joan Puts 19 Oct 2020, 23:56

Yes I become the same error. I now have put on the debug, so if you look on iquisine.nl you will see the whole error

Fred 19 Oct 2020, 23:57

That’s exactly what I wrote you earlier. How to provide a fix if the system don’t recognise modified file?

Joan Puts 20 Oct 2020, 00:04

Ok, maybe I’ve got this not right. You mean to empty the file in /var/cache/dev/smarty/compile/9c/e9/56. Or did you mean to empty the file in /themes/venedor/templates/catalog/_partials/miniatures/

Fred 20 Oct 2020, 00:06

no, you don’t have to edit cached files, it has no sense because such files will be regenerated automatically.
you have to edit theme’s file /themes/venedor/templates/catalog/_partials/miniatures/product.tpl

Joan Puts 20 Oct 2020, 00:13

ok, there i was wrong. one moment.

Joan Puts 20 Oct 2020, 00:16

Now the error is gone, but the problem is the same

Fred 20 Oct 2020, 11:12

I don’t understand how it’s possible.
The file is empty but I still see the error https://take.ms/CiS5V
Is the path correct to the theme? Is the credentials to access to your server are correct? All the cache must be disabled while we are trying to fix the issue.

Joan Puts 20 Oct 2020, 14:34

The path is correct. I installed the theme via prestashop. All cache is disabled.

Fred 20 Oct 2020, 15:07

but nothing changed when I edit the file, and you also tied that, what to do? I need to edit that file to provide a fix

Joan Puts 20 Oct 2020, 21:21

Could it be that something els caused the problem. Beacaus if you select an article, and scroll down you will see other problems.

Attachments:

product.png (222.5 KiB)
Fred 20 Oct 2020, 21:25

Do I have to check out this url? http://93.190.137.206/~admin/

Joan Puts 20 Oct 2020, 21:26

No just iquisine.nl

Fred 20 Oct 2020, 21:28

Ok, could you please also check out credentials provided in your profile and update them if it’s necessary

Joan Puts 20 Oct 2020, 21:45

I have update the creditials

Joan Puts 21 Oct 2020, 12:16

Did you already had time to look what the error caused.

Fred 21 Oct 2020, 12:39

Please be patient, we will reply to you as soon as possible https://take.ms/u0zQK

Fred 21 Oct 2020, 12:51

is the back office link correct? http://93.190.137.206/~admin/0pnfhtmm5n6r1h21

Joan Puts 21 Oct 2020, 14:53

https://www.iquisine.nl/admin324rilp2n But i saved it in my creditials

Fred 21 Oct 2020, 22:24

Add to cart seems works fine https://take.ms/zO4yl

Joan Puts 22 Oct 2020, 00:30

if you click on the picture and than add to basket doesn’t work. If you click on the magnifying glass and than add to basjket it works. So how did you add this article?

Fred 22 Oct 2020, 11:48

You server is incredible slow, I have to wait minutes every time I reload a page for a test.
Could you please fix that to let me try to fin a problem with the cart?

Joan Puts 22 Oct 2020, 23:09

I have upgrade the server with 16 GB ram

Memory Information
Total Memory 15.53 GB Free Memory 13.36 GB Available Memory 14.23 GB Total Swap Memory 7.63 GB Free Swap Memory 7.63 GB Cached Swap Memory 0 B v

Fred 23 Oct 2020, 12:09

now it works better, but you don’t need such expensive server. All our demo sites runs on 2Gb RAM and works pretty fast. That is a question of php/mysql configuration.
As for the issue there is something definitely wrong. The theme works fine by default. Could you please disable all third party module you have installed recently

Joan Puts 23 Oct 2020, 14:15

I disabled all third party modules, cleaned /var/cache and tried. But nothing has changed. The issue stays.

Fred 24 Oct 2020, 13:07

Please try now, it should work https://take.ms/o2p51

Joan Puts 24 Oct 2020, 14:13

Hi Fred, It works now. Great. What did cause the problem?

Fred 24 Oct 2020, 16:49

syntax error in the page template file