Jump to content

Edit History

Romain Lalaut

Romain Lalaut

Hi there,

I also experienced the same issue. There is a bug in Prestashop (at least here with 1.6.1).

In classes/Customization.php :

    public function getWsCustomizedDataTextFields()
    {
        if (!$results = Db::getInstance()->executeS('
            SELECT id_customization_field, value
            FROM `'._DB_PREFIX_.'customization_field` cf
            LEFT JOIN `'._DB_PREFIX_.'customized_data` cd ON (cf.id_customization_field = cd.index)
            WHERE `id_product` = '.(int)$this->id_product.' 
            AND cd.id_customization = '.(int)$this->id.' /* HERE IS THE MISSING PART */
            AND cf.type = 1')) {
            return array();
        }
        return $results;
    }

If you use customized data images, you have to also fix getWsCustomizedDataImages

Romain Lalaut

Romain Lalaut

Hi there,

I also experienced the same issue. There is a bug in Prestashop (at least here with 1.6.1).

In classes/Customization.php :

    public function getWsCustomizedDataTextFields()
    {
        if (!$results = Db::getInstance()->executeS('
            SELECT id_customization_field, value
            FROM `'._DB_PREFIX_.'customization_field` cf
            LEFT JOIN `'._DB_PREFIX_.'customized_data` cd ON (cf.id_customization_field = cd.index)
            WHERE `id_product` = '.(int)$this->id_product.' 
            AND cd.id_customization = '.(int)$this->id.' /* HERE IS THE MISSING PART */
            AND cf.type = 1')) {
            return array();
        }
        return $results;
    }

If you use customized data images, you have to also fix getWsCustomizedDataImages

I hate you so much Prestashop...

×
×
  • Create New...