Jump to content

Prices do not update when I choose combinations!


MyFitNutrition

Recommended Posts

Hi,

I'm having a problem with my website. i prezzi dei mii prodotti no si aggiornano quando si scelgono combines it.

I saw a link qui per test: https://www.myfitnutrition.es/inicio/23-85-namedsport-super-100-whey-proteina.html

I state that the configurations are configured well because from mobile with AMP theme everything works well!

 

Prestashop: 1.7.6.8

PHP: 7.1.33

 

Thanks 

1930798308_Prod2kg.thumb.png.62e110f5160db0e300873c573b14c137.png1576991377_Prod908.thumb.png.f026e73c54232564061b2d2db8158be0.png

 

Edited by MyFitNutrition (see edit history)
Link to comment
Share on other sites

No, you can only see the error in the XHR request

Quote

[PrestaShopDatabaseException]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY pac.id_product_attribute ' at line 8<br /><br /><pre> SELECT pac.`id_product_attribute` FROM `ps7k_product_attribute_combination` pac INNER JOIN `ps7k_product_attribute` pa ON pa.id_product_attribute = pac.id_product_attribute WHERE pa.id_product = 21 AND pac.id_attribute IN () GROUP BY pac.id_product_attribute HAVING COUNT(pa.id_product) = 0 LIMIT 1</pre>
at line 769 in file classes/db/Db.php

Means there is something wrong with the SQL query. I think the attribute IDs are missing somehow. Thats hard to analyze further

  • Sad 1
Link to comment
Share on other sites

1 hour ago, JBW said:

No, you can only see the error in the XHR request

Means there is something wrong with the SQL query. I think the attribute IDs are missing somehow. Thats hard to analyze further

I'm here, Can you guide me by specifying the steps in:

1:

2:

3 ... etc

I'm sorry but I'm not an expert in this.1780835395_Schermata2020-11-10alle11_39_52.thumb.png.4b3bcaeb2c013926984302b2caed18b6.png

line 769 in file classes/db/Db.php640074417_Schermata2020-11-10alle12_08_14.thumb.png.bceabffb6bc4b498a8823d2fe39fa2c9.png

 

Edited by MyFitNutrition
Update (see edit history)
Link to comment
Share on other sites

UPDATE: 

I fixed the error 500 via this guide, https://github.com/PrestaShopCorp/ps_mbo/releases/tag/v2.0.1 

but now I have another error in the log:

ERROR13:11:03appData from PrestaShop Addons is invalid, and cannot fallback on cache.

and I noticed that I can't load combinations into the product anymore or even generate them again!

 

Can anyone help me with this?
I go crazy 🥺

Link to comment
Share on other sites

39 minutes ago, JBW said:

Again, look for 500 errors in the XHR request in your browser console

I solved the problem, you can try here.

https://www.myfitnutrition.es/productos/-23--138-namedsport-super-100-whey-.html#/48-tamano-2kg/53-sabor-tiramisu 

The 500 error was due to configuration of the core.js.map file
while the combinations did not update prices due to a conflict with the viewedprodcut plugin.

but i need that module, does anyone know how I can solve this or a module to use instead of this ??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...