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

Ticket #23537 - Product Buy Block Undefined stock message

When the product page opens the stock messages shows correctly but if you choose any other attribute (color or size) then you get “undefined” messege.

DEMO site https://fashion.designart.lt/nederdele/1638-3499-hor-nederdel-i-a-facon.html#/41-storrelse-xs/555-grizas-g_17_sort

Attachments:

Comments

Fred 11 Jul 2022, 11:14

Did you change something there? Because I don’t see the issue

Vidmantas Dapkus 11 Jul 2022, 12:38

I’t still there. Say https://fashion.designart.lt/bukser/1135-3409-brede-horbukser.html#/717-farve-klassisk_rod/721-storrelse-s_104_cm, please try several times to select different colors.

Fred 14 Jul 2022, 13:03

Do you have some additional cache?
I have fixed the file

/public_html/themes/alysum/templates/catalog/_partials/miniatures/product.tpl

but nothing is changed in the product page.
The fix has been tested out on other customers and out local server and definitely works.

Vidmantas Dapkus 18 Jul 2022, 08:32

Is not working, as I am testing on any browser and when I change attribute (size or color) the message gets as UNDEFINED.

By the way, same problem is on the live site people-fashion.dk, so, it happened after updating Prestashop to 1.7.8.6 and the live site has old Asylum theme version (v5).

Vidmantas Dapkus 18 Jul 2022, 08:33

And regarding cache, no, I do not use any additional cache.

Even, I deleted everything inside var/cache but, I get same UNDIFINED message no matter what browser or computer I use.

Even, I used you file from Demo on LIVE site and it partially solves the problems, as when you change the attribute there is no ANY message, I mean, the “In Stock” message disappears at all.

Vidmantas Dapkus 18 Jul 2022, 08:58

And it does not change nor color nor size, it always stays on same attribute.

You can see it on LIVE site too https://people-fashion.dk/tunikaer/1591-3095-silke-bambus-tunika.html#/2-storrelse-m/590-grizas-g_173_orange

Fred 18 Jul 2022, 11:45

The issue has been fixed. Please test to confirm the change

Vidmantas Dapkus 18 Jul 2022, 12:09

Yes, I can. confirm, that the problem on LIVE site is solved. Please let me know the changes you did as I will apply it on DEMO site.

Fred 18 Jul 2022, 12:14

The only updated file is

/themes/alysum/templates/catalog/_partials/miniatures/product.tpl
Vidmantas Dapkus 18 Jul 2022, 12:26

I changed it for Demo site and it works too. Thank you, solved.

Fred 18 Jul 2022, 12:27

You are welcome!