mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
fix image & url path
This commit is contained in:
parent
a07aa6ae8e
commit
76a4fa6b70
@ -70,13 +70,19 @@ class ControllerExportIntarocrm extends Controller {
|
|||||||
$e->appendChild($this->dd->createElement('price', $offer['price']));
|
$e->appendChild($this->dd->createElement('price', $offer['price']));
|
||||||
|
|
||||||
if ($offer['image']) {
|
if ($offer['image']) {
|
||||||
$image = $this->model_tool_image->resize($offer['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height'));
|
$e->appendChild(
|
||||||
} else {
|
$this->dd->createElement(
|
||||||
$image = false;
|
'picture',
|
||||||
|
$this->model_tool_image->resize($offer['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height'))
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$e->appendChild($this->dd->createElement('picture', $image));
|
$e->appendChild($this->dd->createElement('url'))->appendChild(
|
||||||
$e->appendChild($this->dd->createElement('url'))->appendChild($this->dd->createTextNode(HTTP_SERVER . 'order-now/'));
|
$this->dd->createTextNode(
|
||||||
|
$this->url->link('product/product&product_id=' . $offer['product_id'])
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$sku = $this->dd->createElement('param');
|
$sku = $this->dd->createElement('param');
|
||||||
$sku->setAttribute('name', 'article');
|
$sku->setAttribute('name', 'article');
|
||||||
|
Loading…
Reference in New Issue
Block a user