aktualizacja rozmiaru pliku google-merchant_id-1.xml oraz poprawki w klasach Convertor i Creator

This commit is contained in:
2024-11-05 22:30:44 +01:00
parent b2dc56f52c
commit a0b0b538bd
34 changed files with 3 additions and 4 deletions

View File

@@ -98,7 +98,7 @@
},
"google-merchant_id-1.xml": {
"type": "-",
"size": 18184009,
"size": 17872793,
"lmtime": 0,
"modified": true
},

View File

@@ -80,7 +80,7 @@ class Convertor
if (!in_array(Configuration::get('PS_HOME_CATEGORY'), $product_category))
{
//$product_category[] = Configuration::get('PS_HOME_CATEGORY');
$product_category[] = Configuration::get('PS_HOME_CATEGORY');
}
if (!$product_category)
@@ -192,7 +192,7 @@ class Convertor
$this->creator->addImageToProduct($original_product['cover'], $product->id, true);
}
if ($original_product['feature'] and $original_product['feature_value'])
if ( isset( $original_product['feature'] ) and isset( $original_product['feature_value'] ) )
{
$original_product['features'] = array(
array(

View File

@@ -100,7 +100,6 @@ class Creator
public function addImageToProduct($url, $id, $is_cover = false){
if (!empty($url)) {
$url = str_replace(' ', '%20', $url);
$image = new Image();
$image->id_product = (int)$id;
$image->position = Image::getHighestPosition($id) + 1;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.