Skip to main content

erreur action de masse

More
2 years 8 months ago #358231 by erickb
-- HikaShop version -- : 5.0.2

erreur

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '`` LIKE 'country_France__Metropolitan_74' OR zone_name_english `` LIKE 'count...' at line 1


quand j essaye de créer une action de masse


merci

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago - 2 years 8 months ago #358233 by nicolas
Replied by nicolas on topic erreur action de masse
Bonjour,

Merci pour votre retour.
Changez le code:
Code:
$key = str_replace($filter['type'],'',$this->massaction->getRequest($filter)); $nquery .= 'zone_name '.$key.' OR zone_name_english '.$key.' OR zone_namekey '.$key;
en:
Code:
$zonefilter = hikashop_copy($filter); $columns = array('zone_name', 'zone_name_english', 'zone_namekey'); $conditions = array(); foreach($columns as $column) { $zonefilter['type'] = $column; $conditions[] = $this->massaction->getRequest($zonefilter); } $nquery .= '('.implode(' OR ', $conditions).')';
dans le fichier plugins/hikashop/massaction_address/massaction_address.php et cela devrait corriger le problème.
Last edit: 2 years 8 months ago by nicolas.
The following user(s) said Thank You: erickb

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #358241 by erickb
Replied by erickb on topic erreur action de masse
merci

Please Log in or Create an account to join the conversation.

Time to create page: 0.148 seconds
Powered by Kunena Forum