What's New
Tagged: color, incompatibility, locked, product page, seo prestashop module, size
- AuthorPosts
Hi,
I have Prestashop 1.7.2.4. and the last version of Panda Theme. When I select one size in combo field or I click in color in the product page, the system lock the size combo or in case of color the system waits indefinitely. This behaviour happens in all products that I have in website. For instance:
http://www.zapaline.com/en/clarks-womens-flat-shoes-silian-paz#/134-size-55/143-color-aubergine
Best regards.
I’va contacted with Prestashop developer of module SEO performance, and he told me that:
Hola Albert,
I’m afraid the problem is coming from your theme.
I made a test by disabling SEO Performance for a minute and the page content is not refreshed as it is supposed to be. It’s a problem for you, or it will be.
You will notice it the day you will have combinaisons with different prices. Sometimes, for the same product, the color X is more expensive than color Y, or the size. PrestaShop should refresh the content of the page (not the whole browser tab) to update the data (price, quantity, descriptions, image etc). SEO Performance is tring to do that, but your theme is in the way.I invite you to contact the theme developer and ask him to fix his work. The theme.js file inside themes/panda/assets/js/ is flawed.
Ask him to install a new prestashop and to look at the ajax requests sent when you change combinaison. Those requests are missing in his theme.Anyway, we understand you are in a bizarre situation. SEO Performance is the module currently not working because of the theme. But shop appears to be fine without SEO Performance, but in reality, it’s not.
Please feel free to let us know what you prefer.Saludos,
Kamel
Servicio de atención al cliente – PrestaShop AddonsHi,
First the theme has no problems when changing attributes, I improved the process to make it better. The theme would work perfect fine if you disable that module, which approves the theme has no problems. Itegrating is needed to make that module work with Panda theme.
On the contrary prestashop and other themes should do improvements, because of strange behaviors would occur, if you click Add to cart button right after changing attributes. You can reproduce that problem on prestashop’s official demo site, I will send you a video via a private message to let you know what I am talking about.
Where did you get hte SEO Performance module? Why do you need the module?
Regards,
JonnyI see, thank you Jonny.
I’ve bought this module to Prestashop directly, is an official module developed by Prestashop. I
wanted an official module just to avoid this issues. The main goal of this module was clean the url’s in order to delete id’s of categories, products and CMS pages.I’m keeping conversation with prestashop developers, the main answer from Prestashop is following:
The current problem you have is that the theme has a file named theme.js which is different from the theme.js PrestaShop created.
The behavior on the product page isn’t normal. But as I’ve explained in a previous message, you will have issues the day you will have a product with X combinaisons, and 1 of them having a different price.They are telling to me that the theme.js included in the Panda theme is different that Prestashop created. Do we have any fix for this?. Or What solution I have with all of this?. Currently my site is not operable, the customer can’t select appropiate color or size, therefore they can’t buy!.
Finally, What SEO module that it can delete id’s of URL’s would you recommend me?.
Kind regards
I’ve tried to copy the theme.js included in /web/themes/classic/assets/js to Panda theme in /themes/panda/assets/js/ directory, and the result has been that the issue is fixed, therefore, it seems that the Prestashop developers are right.
I need to fix this urgently. My shop is inoperative due to this issue.
I’m waiting your answer.
Kind regards
Hi,
We did a lot modification to the theme.js file, you can not the default one to instead of it.
Two solutions:
1. Send us your FTP and back office login information so we can see if it’s possible to make the module to be compatible with Panda theme.2. Use Advanced URL module or other modules mentioned here https://www.sunnytoo.com/forums/topic/module-compatibility instead.
Regards,
JonnySince you don’t answer me, I have investigated a little bit more and I give you the following gift.
The last days the official Prestashop module developer and me, we have been talking about this issue in your theme, and we have detected if you use a javascript beautifier on the file theme.js that the issue is located at lines 7911 and 7912. The “prop disabled” on product-variants.
t(), (0, a.default)("body").on("change", ".product-variants [data-product-attribute]", function() { (0, a.default)(".product-variants [data-product-attribute]").prop("disabled", "disabled"),
The developer guess taht you developed the theme on an old version of PrestaShop 1.7, or you made that modification yourself.
If the parameter are not disabled, the request would be complete and it would be better.I hope this time I receive an answer from you with the fix for this issue.
Hi,
That’s neither a problem of Panda theme nor a problem of the SEO performance.
This is what happens after changing combinations without using the SEO performance module.
1. PrestaShop’s native action posts data of the selected combination to get new data.
2. Panda theme adds disabled attributes to form fields to make them un-clickable.
No problems at all.This is what happens after changing combinations with the SEO performance module installed.
1. The module removes prestashop’s native action, no data would be posted here.
2. Panda theme adds disabled attributes to form fields.
3. The module posts data of the selected combination to get new data. The problem is that because of Panda theme added disabled attributes form fields in the 2 step, so the module can not get data of the selected combination here, so combinations can not be changed.Two solutions:
1. Edit the theme.js to do not added Disabled attributes to form fields.
2. Edit the seoperf_product_front.js file to make the module to post data of the selected combination even if they are disabled.Regards,
JonnyThanks for your answer.
According to your answer:
Edit the theme.js to do not added Disabled attributes to form fields.
Do you think that one of the options that I have is to update this line
(".product-variants [data-product-attribute]").prop("disabled", "disabled")
For this?:
(".product-variants [data-product-attribute]").prop("enabled", "enabled")
- AuthorPosts
You must be logged in to reply to this topic.