• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 12.07.19, 10:12
  • Opened by: Gabriela Luca
  • Closed by: Fred
  • Closed on: 02.12.19, 22:08
  • Reason: Closed
  • Comment: Glad to help!

Ticket #15073 - Broken Add to cart button

Hello!
Im using Alysum theme in tandem with Combinations Tab Pro for detailed combinations tab.
On Prestashop classic theme the Combinations Tab Pro works like a charm, whenever i activate Alysum theme the Add to cart button gives error when is pressed “Product cannot be found”.
Sometimes the Combinations Tab Pro dissapear completly.
Add to cart button have some code text displayed in frontend, like “refresh_add_to_cart” I reactivated your account as superadmin.
Thanks in advance, have a nice day!

Comments

Marek 14 Jul 2019, 21:34

Please give me direct link where I could see the issue

Gabriela Luca 15 Jul 2019, 07:25

https://pictus.ro/produse/29-69-art-creation-acril-200ml-azo-yellow-lemon.html#/32-culoare-azo_yellow_lemon Scroll down, you will see the combinations and at the end you will see add to cart.

Marek 15 Jul 2019, 10:37

Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your server through FTP

Gabriela Luca 15 Jul 2019, 14:30

Done!

Marek 16 Jul 2019, 14:20

Could you please ask module developer to help us. Maybe he can suggest something, maybe there are some specific requirements?

Gabriela Luca 22 Jul 2019, 19:21

Hello!
For now i managed to tweak some stuff but i stll have problems:
1. Add to cart still show some weird text.
2. When i enable Amp theme for mobile and tablets i cant see Combinations tab pro in the footer (when accessed on mobile), when i switch to classic theme or i disable Amp, the combinations tab is there (when accessed on mobile).
Thanks in advance, have a nice day!

Gabriela Luca 22 Jul 2019, 19:23
Marek 22 Jul 2019, 22:15

1. Where I can see it?
2. Yes, because AMP is not compatible with third-party modules, each module has to be “ampified”

Gabriela Luca 22 Jul 2019, 22:21

In the above link, scroll down and you will see all color combinations with add to cart for each combo,
instead of “Adauga in cos” wich is Add to cart in romanian language, you will see “Add_circle Adauga in cos” Have any documentation about how to ampify this module?

Marek 23 Jul 2019, 08:15

try following CSS:

.ct_submit > i {display:none}

There is full AMP documentation https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/

Gabriela Luca 23 Jul 2019, 18:33

Hello, add to cart button issue is fixed, thanks.
The only issue that remains for now is:
Combinations Tab, which is an addon that displays color combinations in a tab under product, with possibility to add to cart, individually, each color (https://pictus.ro/acrilice/23-131-art-creation-acrilic-75ml.html#/26-culoare-titanium_white) scroll down a bit and you will se the table.
On classic theme this is working flawlessly. As soon as i activate Alyssum (without Amp) whenever some client adds to cart some color from the tab,
automatically opens the cart content instead of ajax popup which have the option to continue shopping and remain on same product.
This is a key element for us, because if a client needs to go back and search again for product after each color selected is getting annoyed.
This Combinations Tab module have some settings in the backoffice for switching Ajax cart on and off.
Behaviour with Ajax cart activated: Table doesent appear at all or if table appears, when you try to add to cart something from table you get the message “out of stock” Behaviour with Ajax cart deactivated: Table allways appear and you are able to add products to cart without the “out of stock” message but when you add to cart from table
you are redirected to Cart page and no Ajax popup with the option to continue shopping.
I created a ticket on Combinations Tab and they respoded that is not an issue with their addon, is with my theme.
Indeed, on classic theme everything works as expected.
I hope we manage to fix this, the theme and the addons bundle are awesome.

Marek 24 Jul 2019, 12:02

I see an error in the product comments module. try to disable it for a while

Gabriela Luca 24 Jul 2019, 12:51

I deactivate both comments modules, Prestashop native and Facebook bundle from you, no change.
I left Ajax cart enabled for you, to be able to see the error when you try to add combinations to cart.

Marek 24 Jul 2019, 12:55

Now when I click Add to cart I see a popup messages, is that correct?

Gabriela Luca 24 Jul 2019, 16:13

Access https://pictus.ro/ro/acrilice/23-131-art-creation-acrilic-75ml.html#/26-culoare-titanium_white Scroll down to color combinations and add to cart from that tab.
You will get the following message: “Impossible to add the product to the cart Produsul nu a fost gasit,Acest produs () nu mai este disponibil.” Which is false, the product is available. This only happens if i activate Ajax cart in Combinations Tab module.
Somehow your theme interfear with Combinations tab, because if i use classic theme everything works.
If helps you in any way we can use Skype and ill explain live whats the problem, activate and deactivate options so you can see the behaviour.

Marek 24 Jul 2019, 23:27

I see the problem. Hope to find a solution asap

Marek 26 Jul 2019, 14:16

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

Gabriela Luca 26 Jul 2019, 14:38

Hello!
You are the man!
Thanks alot!
Ticket closed!

Gabriela Luca 09 Nov 2019, 19:14

after update the same problem is back, check my response from 24 Jul 2019, 17:13, i get same behaviour now

Marek 09 Nov 2019, 19:14

do you have a backup?

Gabriela Luca 10 Nov 2019, 17:47

The last usable backup doesent include the product with 145 combinations that i added.
Not an option.

Marek 10 Nov 2019, 17:48

do you have a backup??

Gabriela Luca 10 Nov 2019, 17:51

https://pictus.ro/pictura/6743-gama-de-culori-ulei-rembrandt-artists-40ml.html on this page you can see the combinations table, scroll down.
I attached a text file with the errors from Debug mode.

Marek 10 Nov 2019, 17:55

Yes, I see.
But have you a backup what you have to do before an update?

Gabriela Luca 10 Nov 2019, 17:59

Wrong message, the above.
I tested on classic theme and is same behaviour.
Let them work on it.
Dont close the ticket yet, pls.

Marek 10 Nov 2019, 18:00

ok