Jump to content

Edit History

floriqn

floriqn

Hello,

I'm trying to update the ps_product table and more precisely cache_has_attachements (set to 1 ) to display the attached document.

This function is in AdminImportController.php.

In my function in the php file  :

...
Db::getInstance()->execute('
        UPDATE `'._DB_PREFIX_.'product` 
        SET `cache_has_attachments` = 1
        ');
...

 

But it doesn't work.

It works when i write the command in MySQL :

UPDATE ps_product SET cache_has_attachments = 1

 

 

Someone would have any idea ?

PrestaShop : 1.7.6.5

 

floriqn

floriqn

Hello,

I'm trying to update the ps_product table and more precisely cache_has_attachements (set to 1 ) to display the attached document.

This function is in AdminImportController.php.

In my function in the php file  :

...
Db::getInstance()->execute('
        UPDATE `'._DB_PREFIX_.'product` 
        SET `cache_has_attachments` = 1
        ');
...

 

But it doesn't work.

It works when i write the command in MySQL :

UPDATE ps_product SET cache_has_attachments = 1

 

 

Someone would have any idea ?

PrestaShop : 1.7.6.5

 

×
×
  • Create New...