Jump to content

Recommended Posts

  • Replies 387
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Module PrestaCenter XML Export Free Prestashop Module PrestaCenter XML Export Free is used to create XML feeds and export products from a shop to price comparison services like Google Shopping, Kelk

Yes, this is correct - if you don't write the third value, then the out of stock products should not be exported. But it depends on general setting: in the BO select menu Preferences > Products, at

Hello,   How can we generate the xml feed?There is no option of Generate within the module itself once it is installed.Please kindly help us with thesame and mail us with documentation of the same m

Hi, I test and generate xml, but description contais á and xml is bad

 

How can I transform á to á?

 

Regards

 

Where can I put html_entity_decode to solve this issue

 

Regards

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Hi is there any way to export subcategories too? Module works fine but it export only main categories..

So if some product is in subcategory, I want to show only subcateogory, no main category in XML.

 

Example:

Category

- Subcategory 

- - Subcategory

 

- Subcategory 

- - Subcategory

 

- Subcategory 

- - Subcategory

- - Subcategory

- - Subcategory

 

Category

Edited by RoyalMedia (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hi prestaCS,

 

I am currently testing the free version, but i dont know if this will work for me.

 

The following fields need to be in my template:

- Title

- Description (long)

- price with VAT

- Delivery time

- Deeplink (link to product page of my site)

- Image

- Category (this one is tricky, I need to add the parent category + current category. For example if this is the category tree: Home>electronics>tablets>ipad , then I need the feed to show: tablets>ipad

-shipping cost

-product id

 

Also need automated update every night (cron job) but that should be no problem with the paid version

 

Let me know if this template is possible with your feed.

Share this post


Link to post
Share on other sites
  • 1 month later...

hi prestacs,

 

how can i change the tag <PRODUCTS> (that before <PRODUCT>) as global tag for all products and not for each product

 

for example from this

  <products> 
       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 
   </products>

    <products> 
       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 
   </products>

to this template

  <products> 

       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 

       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 

   </products>

thanks

Edited by gantz37 (see edit history)

Share this post


Link to post
Share on other sites

hi prestacs,

 

how can i change the tag <PRODUCTS> (that before <PRODUCT>) as global tag for all products and not for each product

 

for example from this

  <products> 
       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 
   </products>

    <products> 
       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 
   </products>

to this template

  <products> 

       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 

       <product> 
            <name>name</name>
           <image>img url</image> 
           <price>10</price>
       </product> 

   </products>

thanks

 

anyone can help? :ph34r::rolleyes:

Share this post


Link to post
Share on other sites
<?xml version="1.0" encoding="UTF-8" ?>
<SINCRO_DETAILS>
<COUNTRY>106</COUNTRY>
<PRODUCTS ps_block="product">
<PRODUCT>
<PRODUCT_ID>{reference}</PRODUCT_ID>
<TITLE><![CDATA[{name}]]></TITLE>
<DESCRIPTION><![CDATA[{name}<br />Prodotto acquistabile presso {url}]]></DESCRIPTION>
<SECTOR>180799</SECTOR>
<PRICE>{price_local}</PRICE>
<SHIPPING>72</SHIPPING>
<MINIMUM>1</MINIMUM>
<UNIT_TYPE>10</UNIT_TYPE>
<PHOTOS>
<PHOTO>{img_url}</PHOTO>
</PHOTOS>
</PRODUCT>
</PRODUCTS>
</SINCRO_DETAILS>

i  use prestacenter xml export pro,  and i need export xml feed for solostocks.it

Share this post


Link to post
Share on other sites
<?xml version="1.0" encoding="UTF-8" ?>
<SINCRO_DETAILS>
<COUNTRY>106</COUNTRY>
<PRODUCTS ps_block="product">
<PRODUCT>
<PRODUCT_ID>{reference}</PRODUCT_ID>
<TITLE><![CDATA[{name}]]></TITLE>
<DESCRIPTION><![CDATA[{name}<br />Prodotto acquistabile presso {url}]]></DESCRIPTION>
<SECTOR>180799</SECTOR>
<PRICE>{price_local}</PRICE>
<SHIPPING>72</SHIPPING>
<MINIMUM>1</MINIMUM>
<UNIT_TYPE>10</UNIT_TYPE>
<PHOTOS>
<PHOTO>{img_url}</PHOTO>
</PHOTOS>
</PRODUCT>
</PRODUCTS>
</SINCRO_DETAILS>

i  use prestacenter xml export pro,  and i need export xml feed for solostocks.it

 

no solution?

Share this post


Link to post
Share on other sites

no solution?

 

You need use <PRODUCT ps_block="product">, but in the module is bug (if block="product" is nested within another tag). We working to correction this bug - only for Pro and Multi versions.

 

Your question is about paid module Pro. We will notify about the upgrade within a week in here:

https://www.prestashop.com/forums/topic/315357-prestacenter-xml-export-feeds-for-price-comparison-services/page-6?hl=+xml%20+export%20+pro

Please repeat your contribution in this topic.

Share this post


Link to post
Share on other sites

You need use <PRODUCT ps_block="product">, but in the module is bug (if block="product" is nested within another tag). We working to correction this bug - only for Pro and Multi versions.

 

Your question is about paid module Pro. We will notify about the upgrade within a week in here:

https://www.prestashop.com/forums/topic/315357-prestacenter-xml-export-feeds-for-price-comparison-services/page-6?hl=+xml%20+export%20+pro

Please repeat your contribution in this topic.

thanks

Share this post


Link to post
Share on other sites
  • 4 weeks later...

i installed the latest module, but it has yet created an xml feed. does not give me an option to generate the feed. when i click on create xml, it says nothing has been selected, when it is, fustrating. every module i've purchased or gotten from prestashop has gotten a bug. i don't understand why programmers would release modules with serious bugs.....Screenshot%20from%202015-05-19%20100246_

Edited by coolnerdllc (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

I wanted to know if we can specify following in the free version:

 

1. {supplier_reference} for mpn tag

2. google requires following tag for shipping rate. how we can use generate this tag. The tags should be variable and generated as per shop's shipping settings.

<g:delivery>
   <g:country>GB</g:country>
   <g:service>Royal Mail</g:service>
   <g:price>4.12 GBP</g:price>
</g:delivery>

3. I am using <CDATA[[{description}]> for description tag. This field is html. How can we preserve html formatting. We want to ensure description is sent to google in properly formatting such as paragraphs and list being intact.

Edited by bhav27 (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Is this possible to add any if statement within the template? 

For example, i am working on a template that looks like the following code: 

The products i want to be listed are only the ones who use color attribute.

So what i am looking for is a way to add an if statement before <product ps_block="variant"> .

Any ideas?

<?xml version="1.0" encoding="utf-8"?>
<date>{date_feed}</date>
<SHOPITEM ps_block="product">
<product>
<id>{id}</id>
<id_comb>{id_combination}</id_comb>
<name><![CDATA[{name}]]></name>
<link>{url}</link>
<image>{img_url}</image>
<category><![CDATA[{categories}]]></category>
<price_with_vat>{price_vat}</price_with_vat>
<manufacturer>{manufacturer}</manufacturer>
<instock>{availability:"Y, N"}</instock>
<availability>{availability_text}</availability>
</product>
<product ps_block="variant">
<id>{id_combination}</id>
<name>{name:CDATA} {attrib: "χρώμα"}</name>
<link>{url}</link>
<image>{img_url}</image>
<category><![CDATA[{categories}]]></category>
<price_with_vat>{price_vat}</price_with_vat>
<manufacturer>{manufacturer}</manufacturer>
<instock>{availability:"Y, N"}</instock>
<availability>{availability_text}</availability>
<color>{attrib: "color"}</color>

</product> </SHOPITEM> </SHOP>

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hello,

 

How can we generate the xml feed?There is no option of Generate within the module itself once it is installed.Please kindly help us with thesame and mail us with documentation of the same module which we have downloaded from http://www.prestacs.cz/en/modules/18-module-prestacenter-xml-export-free.html.

Our Prestashop version is 1.6.0.,14.

 

 

Regards,

Supriyo G,

1stbuy

  • Like 1

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi

 

When I am generating XML using this module, the products with combinations are appearing as single product. Even though the product has a combination of 2 products for 3 kg and 15kg, it is being shown as single product in the XML. Please help

 

Free version of the module does not export product combinations. This is only possible in the paid Pro version.

Share this post


Link to post
Share on other sites

Hi,

I've got 2 questions - is it possible to export wholesale price?

How to make the module work? I've installed it, enabled but after typing http://mywebsite.pl/xml/general-pl-pln.xml I got 404

thanks

 

1. Wholesale prices can be exported only in the Pro version.

2. Check "xml" folder via FTP, if directory contains file general-pl-pln.xml.

Share this post


Link to post
Share on other sites

1. Wholesale prices can be exported only in the Pro version.

2. Check "xml" folder via FTP, if directory contains file general-pl-pln.xml.

Where can i buy pro version?

The folder contains only 3 files: index.php, download.php and one more I don't remember right now. Should I do simething after installation?

Share this post


Link to post
Share on other sites

Will buy pro version for sure but first i need to make the free one work.
Any thoughts how to do it?

 

Within module I've got:

general-pl-pln.xml 	0000-00-00 00:00:00 	0 B 	Polski (Polish) 	PLN 

So I'm guessing the file is not being created. I would really like to buy the pro version.

Edited by letrof (see edit history)

Share this post


Link to post
Share on other sites

After upgrading to version 1.6.1 the module does not allow change in feeds, I activated the debug and appeared the following error

 

Fatal error: Call to a member function executeS() on a non-object in /home/torne146/public_html/loja2/modules/prestacenterxmlexportfree/classes/PcXmlFreeService.php on line 77

 

Does anyone own or developer can help us?

Share this post


Link to post
Share on other sites

Hi, First thanks for great module it really helps.

I have one problem with price_vat export field.

 

It must be with comma betwen decimals.

 

I use parameter: {price_vat: ","}

 

but nothing has changed. 

 

 

 

Thanks

Share this post


Link to post
Share on other sites

After upgrading to version 1.6.1 the module does not allow change in feeds, I activated the debug and appeared the following error

 

Fatal error: Call to a member function executeS() on a non-object in /home/torne146/public_html/loja2/modules/prestacenterxmlexportfree/classes/PcXmlFreeService.php on line 77

 

Does anyone own or developer can help us?

 

Sorry, but the module does not work correctly in version 1.6.1 PrestaShop. It is not possible add or edit a feed in the Back Office. In this version has been modified code PrestaShop to display a list of files.

Next week we upgrade the Pro version for PS 1.6.1. Free version will be updated later.

 

Share this post


Link to post
Share on other sites

Hi, First thanks for great module it really helps.

I have one problem with price_vat export field.

 

It must be with comma betwen decimals.

 

I use parameter: {price_vat: ","}

 

but nothing has changed. 

 

 

 

Thanks

 

It is possible only in Prestacenter  XML Pro version.

Share this post


Link to post
Share on other sites

 

Thanks for answers.

 

I use this version: 

 

 current PrestaShop version 1.5.6.2

 

Is there some code to edit for comma instead point for field price_vat

 

 

It is not possible because the Free and Pro versions of module have different codes. Pro version is newer and has many additional features.

Share this post


Link to post
Share on other sites

I have a problem that someone else have already mentioned.

 

Editing the feeds causes me this problem ->

Parse error: syntax error, unexpected 'if' (T_IF) in X:xxx\xxx\PcXmlFreeTemplate.php on line 227

I know the error is that the code tries to put everything into the feed1product function instead of having header and footer as normal.

 

That error happens if i try to add fields like these 

<?xml version="1.0" encoding="utf-8" ?>
<SHOP>
  <test> <--- THIS CAUSES ERROR
  <SHOPITEM ps_block="product">
    <PRODUCT>{name}</PRODUCT>
    <PRODUCT_ID>{id}</PRODUCT_ID>
    <DESCRIPTION_SHORT>{description_short}</DESCRIPTION_SHORT>
    <DESCRIPTION>{description}</DESCRIPTION>
    <REFERENCE>{reference}</REFERENCE>
    <EAN>{ean}</EAN>
    <CATEGORYTEXT>{categories}</CATEGORYTEXT>
    <URL>{url}</URL>
    <IMGURL>{img_url}</IMGURL>
    <MANUFACTURER>{manufacturer}</MANUFACTURER>
    <PRICE_VAT>{price_vat}</PRICE_VAT>
    <ITEM_TYPE>{condition: "new,bazaar,bazaar"}</ITEM_TYPE>
    <DELIVERY>{days}</DELIVERY>
    <AVAILABILITY>{availability: "in stock, available for order, out of stock"}</AVAILABILITY>
  </SHOPITEM>
  </test> <---- THIS CAUSES ERROR
</SHOP>

Example how the template would work ->

<?xml version="1.0" encoding="utf-8" ?>
<SHOP>
  <test>xxx</test> <--- WOULD WORK
  <SHOPITEM ps_block="product">
    <PRODUCT>{name}</PRODUCT>
    <PRODUCT_ID>{id}</PRODUCT_ID>
    <DESCRIPTION_SHORT>{description_short}</DESCRIPTION_SHORT>
    <DESCRIPTION>{description}</DESCRIPTION>
    <REFERENCE>{reference}</REFERENCE>
    <EAN>{ean}</EAN>
    <CATEGORYTEXT>{categories}</CATEGORYTEXT>
    <URL>{url}</URL>
    <IMGURL>{img_url}</IMGURL>
    <MANUFACTURER>{manufacturer}</MANUFACTURER>
    <PRICE_VAT>{price_vat}</PRICE_VAT>
    <ITEM_TYPE>{condition: "new,bazaar,bazaar"}</ITEM_TYPE>
    <DELIVERY>{days}</DELIVERY>
    <AVAILABILITY>{availability: "in stock, available for order, out of stock"}</AVAILABILITY>
  </SHOPITEM>

</SHOP>

So is there a way to avoid this error and do what i've been trying to do.

Share this post


Link to post
Share on other sites

Can someone of users using this module write my a step by step installation to make this one work?

Do I need to do something after installation?

I have installed it, the module created xml directory, but it doesn't contain any xml file so I am wondering is there something else I should do?

I really like to use it.

Share this post


Link to post
Share on other sites

It is possible only in Prestacenter  XML Pro version.

PrestaCS.cz, on 04 Mar 2014 - 12:26 PM, said:snapback.png

New version of module PrestaCenter XML Export Free 1.1.0.1

- new date and time fields

- in the price can be used comma (or another symbol) as a decimal separator instead of dot

- corrected XML file for Google Merchant

 

?

 

In the Pro and Multi version of the module is many new functions, including feature export.

New versions of Pro and Multi release tomorrow ...

Share this post


Link to post
Share on other sites

Let me know the exact version and link of the module which has these features and I will go ahead and make the payment.

I have bought the pro version. The MRP of the products in variants is not appearing from the second variants. Only the discounted price is appearing. Plz help. I am sending this XML to Junglee and it is unable to import the variants.

Share this post


Link to post
Share on other sites

Let me know the exact version and link of the module which has these features and I will go ahead and make the payment.

I have bought the pro version. In the xml that is being generated for the google, only the discounted price is appearing and not the final retail price. Please help. Need this on priority.

Share this post


Link to post
Share on other sites

I have bought the pro version. In the xml that is being generated for the google, only the discounted price is appearing and not the final retail price. Please help. Need this on priority.

 

You can use variable <g:price>{base_price_vat_iso}</g:price>, more info about prices see in module help and in the general feed.

Share this post


Link to post
Share on other sites

<g:price>{base_price_vat_iso}</g:price> That is appearing is the price of the product after applying discount. It is the discounted price. I want the MRP of the product also in the xml that is being generated for google. Please help.

 

Also let me know where the module help is available.

Share this post


Link to post
Share on other sites

What about the paied one???

 

PrestaCenter XML Export Pro 2.0.2.2 compatible with PrestaShop 1.6.1.x is also available. Follow topic for paid module versions Pro and Multi:

https://www.prestashop.com/forums/topic/315357-prestacenter-xml-export-feeds-for-price-comparison-services/page-7?do=findComment&comment=2133601

Edited by PrestaCS.cz (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

Is there a way when a product has attrributes to hide(do not list) the default version of the product thats without an attribute option? 

 

This possibility does not exist in the free version. Free version does not work with attributes (attributes are supported only in the Pro and Multi version).

Share this post


Link to post
Share on other sites

This possibility does not exist in the free version. Free version does not work with attributes (attributes are supported only in the Pro and Multi version).

I have the pro version.. but the problem is still the same.. can we hide the default product version with no attribute option?

Share this post


Link to post
Share on other sites
  • 2 months later...
  • 2 months later...
  • 3 weeks later...

Hello,

 

I have setup up the module PrestaCenter XML Export Pro v2.1.2  in my website.

Now I need to add a field for password in the feed options.

And also need to add shipping cost and trade customer product prices in the feed.

How can i implement this on the website.

Do I need to modify database or just the files?

 

Share this post


Link to post
Share on other sites

Hello,

 

I have setup up the module PrestaCenter XML Export Pro v2.1.2  in my website.

Now I need to add a field for password in the feed options.

And also need to add shipping cost and trade customer product prices in the feed.

How can i implement this on the website.

Do I need to modify database or just the files?

anybody?

Share this post


Link to post
Share on other sites

anybody?

 

Thread for PrestaCenter XML Export Pro and PrestaCenter XML Export Multi is here:

https://www.prestashop.com/forums/topic/315357-prestacenter-xml-export-feeds-for-price-comparison-services/

 

You can add tag for password and shipping cost only as a constant values.

Sample:

<password>MyPassword</password>
<shipping>5.25</shipping>

Share this post


Link to post
Share on other sites
  • 2 weeks later...

 

 

Hello,

first thanks for this module.

i aded some code for all product images export.

module is already export only one image. i try edit export all product images.

like this.

$img_all = Db::getInstance()->ExecuteS('
            SELECT `id_image`, `id_product`
            FROM '._DB_PREFIX_.'image
            WHERE id_product = "'.$row['id_product'].'"
        ');
		
if ($this->exportInfo['rewrite'] == 1) {
  $tmp['url'][$row['id_lang']] = $this->context->link->getProductLink($product, null, null, $row['ean13'], $row['id_lang'], null, 0, true);
  
                  
	$imgNr = 1;
	foreach ($img_all as $all_img) {
          $image_info['id_image'] = $all_img['id_image'];
          $image_info['id_product'] = $row['id_product'];
          $tmp['img_url'][$row['id_lang']] .= '<img-'.$imgNr.'>'.$this->context->link->getImageLink($row['link_rewrite'], $image_info['id_image'], $this->exportInfo['imgType']) .'</img-'.$imgNr.'>';
                        $imgNr++;
                    }

this code works for all product images export.

but module delete my <img1><img2>.. tags.

 

whis file deleting tags ?

 

thanks for this module and help

regards..

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hello,

 

I just installed the free version to check if it works with my comparison websites.

But my categorytext stays empty. I don't see any categories at all.

Do I have to standard values? Right now it is     <CATEGORYTEXT>{categories}</CATEGORYTEXT>

 

Thank you

Share this post


Link to post
Share on other sites

Hello,

 

I just installed the free version to check if it works with my comparison websites.

But my categorytext stays empty. I don't see any categories at all.

Do I have to standard values? Right now it is     <CATEGORYTEXT>{categories}</CATEGORYTEXT>

 

Thank you

 

You must have set the default category (which is exported) for each product.

Share this post


Link to post
Share on other sites

You must have set the default category (which is exported) for each product.

Yes all my products are like Home - Table & Dinnerware - Plates

When I set <CATEGORYTEXT>{categories: "Home"}</CATEGORYTEXT> It doesn't say Home in the xml field

Share this post


Link to post
Share on other sites

Yes all my products are like Home - Table & Dinnerware - Plates

When I set <CATEGORYTEXT>{categories: "Home"}</CATEGORYTEXT> It doesn't say Home in the xml field

 

 

I do not understand your categories setting, but if you want to export category "Home" (for all products), you must set:

<CATEGORYTEXT>Home</CATEGORYTEXT> 

or set  in BO category "Home" for some product as default and leave default settings for XML template:

<CATEGORYTEXT>{categories}</CATEGORYTEXT>

Share this post


Link to post
Share on other sites
  • 1 month later...

Is there any chance that you could add handling regular expressions to the paid-for module? What I am thinking of is to be able to set regular expressions per field I want to export so that I can filter out parts of the strings exported.

 

Is your code protected with e.g. IonCube? If not, do the license allow our own modifications in case you do not implement handling of regular expressions?

 

If you do decide to implement handling of regular expressions, when can we expect this to be ready? I am willing to be a beta tester.

Share this post


Link to post
Share on other sites
  • 2 months later...

I have tried the module and are trying to make it work nice with Google Merchant Center, however I have experienced some trouble I hope someone can shed some light on?

 

1. Im getting this error:

"error on line 16 at column 156: Entity 'aring' not defined."

Om not really sure why I get that?

 

2. Im told that I should enter google product category as well in the exported excel file. Is there any way to add this to the exported xml file?

 

3. I dont have any EAN  number for my products, and google says I need to export the XML with the column "identifier exist" added and the value false in it on all products. Is that possible with this module also?

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello,


 


Is there a way to include all products photos?


The feed only exports 1 image, but for product we sell we have more than 1 image.


 


We use PrestaCenter XML Export Multi v2.1.3


Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hello to everyone,

 

I need help,

i create this for my feed :

<?xml version='1.0' encoding='UTF-8'?>
<SHOP>
  <SHOPITEM ps_block="product">
<manufacturer>{manufacturer}</manufacturer>
<name>{name}</name>
<product_url>{url}</product_url>
<price>{price_vat}</price>
<image_urle>{img_url}</image_urle>
<category>{categories: ">"}</category>
<description>{description}{description_short} </description>
<identifier>{reference}</identifier>
  </SHOPITEM>
</SHOP>

But i want to not create the dublicate product.

 

For example: I have 12000 products in my site (365 products is dublicate reference).

Is posible to not create this 365 product?

 

Tnks for help.

Have nice day!

 

Share this post


Link to post
Share on other sites

 

Hello to everyone,

 

I need help,

i create this for my feed :

<?xml version='1.0' encoding='UTF-8'?>
<SHOP>
  <SHOPITEM ps_block="product">
<manufacturer>{manufacturer}</manufacturer>
<name>{name}</name>
<product_url>{url}</product_url>
<price>{price_vat}</price>
<image_urle>{img_url}</image_urle>
<category>{categories: ">"}</category>
<description>{description}{description_short} </description>
<identifier>{reference}</identifier>
  </SHOPITEM>
</SHOP>

But i want to not create the dublicate product.

 

For example: I have 12000 products in my site (365 products is dublicate reference).

Is posible to not create this 365 product?

 

Tnks for help.

Have nice day!

 

 

No it is impossible.

Share this post


Link to post
Share on other sites

Hello Again,

 

I have a little problem,

 

I need to add in feed a new "code" 

 

The existing code generate name categories:

{categories}

but I want the code generate my id category, ex:

https://www.xxxxxxxx.ro/1031-xxxxx-xxxx

i wish to understand what i want.

 

Have nice day.

Tnks.

 

This feature is available only in the Pro module version: Module PrestaCenter XML Export Pro.

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Hello

I create this template

<?xml version="1.0" encoding="UTF-8"?>
<mysite.com>
	<created_at>{date_feed}</created_at>
	<products>
		<product ps_block="product">
			<id>{id}</id>
			<name>![CDATA[{name}]]</name>
			<link>![CDATA[{url}]]</link>
			<image>![CDATA[{img_url}]]</image>
			<category>![CDATA[{categories}]]</category>
			<price>![CDATA[{price_vat}]]</price>
			<manufacturer>![CDATA[{manufacturer}]]</manufacturer>       			
		</product>
	</products>
</mysite.com>

and am getting this error in apache log file when i try to create the xml

PHP Parse error:  syntax error, unexpected 'if' (T_IF) in /var/www/html/mysite/modules/prestacenterxmlexportfree/templates/PcXmlFreeTemplate.php on line 304, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP Stack trace:, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   1. {main}() /var/www/html/mysite/admin666/index.php:0, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   2. DispatcherCore->dispatch() /var/www/html/mysite/admin666/index.php:58, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   3. ControllerCore->run() /var/www/html/mysite/classes/Dispatcher.php:367, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   4. PcXmlFreeController->postProcess() /var/www/html/mysite/classes/controller/Controller.php:178, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   5. AdminControllerCore->postProcess() /var/www/html/mysite/modules/prestacenterxmlexportfree/controllers/admin/PcXmlFreeController.php:108, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   6. PcXmlFreeController->processBulkExport() /var/www/html/mysite/classes/controller/AdminController.php:917, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   7. PrestaCenterXmlExportFree->createExportFiles() /var/www/html/mysite/modules/prestacenterxmlexportfree/controllers/admin/PcXmlFreeController.php:718, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   8. PrestaCenterXmlExportFree->initExport() /var/www/html/mysite/modules/prestacenterxmlexportfree/prestacenterxmlexportfree.php:635, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2
PHP   9. PrestaCenterXmlExportFree->openFiles() /var/www/html/mysite/modules/prestacenterxmlexportfree/prestacenterxmlexportfree.php:514, referer: http://mysite.com/admin666/index.php?controller=PcXmlFree&token=806d42e22dd227a18ffda3c4efee72f2

if i remove the <products> and </products> (lines 4 and 14) is working perfectly

<?xml version="1.0" encoding="UTF-8"?>
<mysite.com>
	<created_at>{date_feed}</created_at>
		<product ps_block="product">
			<id>{id}</id>
			<name>![CDATA[{name}]]</name>
			<link>![CDATA[{url}]]</link>
			<image>![CDATA[{img_url}]]</image>
			<category>![CDATA[{categories}]]</category>
			<price>![CDATA[{price_vat}]]</price>
			<manufacturer>![CDATA[{manufacturer}]]</manufacturer>       			
		</product>
</mysite.com>

the specifications of the feed needs to have the <products> and </products> .

what can i do to solve this?

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 5 weeks later...
  • 2 weeks later...

Hello,

Good job on the plugin.

 

Is there a possibility to get images in the feed without the Watermark? 

We use a default watermark functionality and we would like to have images without it in the feed.

 

Thank you,

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 months later...
  • 1 month later...
  • 3 weeks later...

Module has problem when `ps_block="product"` is the root parent of the parent

<?xml version="1.0" encoding="UTF-8"?>
<SINCRO_DETAILS>
    <COUNTRY>164</COUNTRY>
    <PRODUCTS>
        <PRODUCT ps_block="product">  <-- THIS!
            <PRODUCT_ID>{id}</PRODUCT_ID>
            <TITLE>{name:CDATA}</TITLE>
            <DESCRIPTION>{description_short:CDATA}</DESCRIPTION>
            <SECTOR>{assigned_category}</SECTOR>
            <PRICE>{wholesale_price}</PRICE>
            <SHIPPING>24</SHIPPING>
            <MINIMUM>5</MINIMUM>
            <UNIT_TYPE>9</UNIT_TYPE>
            <PHOTOS>
                <PHOTO>{img_url}</PHOTO>
            </PHOTOS>
        </PRODUCT>
    </PRODUCTS>
</SINCRO_DETAILS>

that generate server problem 500 when creating xml, because 

public function feed5header(array $product = array()) 
	{ 
		$this->currentId = '5';
		$output = '';
		$output .= '<?xml version="1.0" encoding="utf-8" ?><SINCRO_DETAILS><PRODUCTS>'
		if (!isset($productWithoutVariants) && (!isset($product['name'][$this->feedVars['id_lang']]) || $product['name'][$this->feedVars['id_lang']] === '')) { throw new PcXmlMultiExportException; }
		$product['assigned_category'] = $this->generatorRestrictCategories(97, $product['assigned_category'], array('HTML'=>false,'CDATA'=>false,));.'<PRODUCT>'
		. ($product['id'] !== '' ? '<PROD....

---> IS IN function feed5header NOT IN FUNCTION 

public function feed5product(array $product = array()) 
	{ 
		$this->currentId = '5';
		$output = '';
		$output .= ''."\n"; 
		return $output; 
	} 

I have v.2.1.3

Edited by paplo22 (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 year later...

Hello, i am using the following code to create a sitemap of product images but the url that is generated is http and not with https, is there an easy way to fix this?
 

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url ps_block="product">
       <image:image>
        <image:loc>{img_url}</image:loc>
       </image:image>
       </url>
</urlset> 

 

Share this post


Link to post
Share on other sites
  • 4 months later...
  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now