Post by halbot » Fri Oct 06, 2017 7:56 pm

Hi, catalog\controller\extension\feed\catalog.php contains this code:

Code: Select all

						if ($product['mpn']) {
							$output .= '  <g:mpn><![CDATA[' . $product['mpn'] . ']]></g:mpn>' ;
						} else {
							$output .= '  <g:identifier_exists>false</g:identifier_exists>';
						}

						if ($product['upc']) {
							$output .= '  <g:upc>' . $product['upc'] . '</g:upc>';
						}

						if ($product['ean']) {
							$output .= '  <g:ean>' . $product['ean'] . '</g:ean>';
						}
Thus it adds identifier_exists>false to the feed unless MPN is set. However EAN, UPC, ISBN, JAN are all valid identifiers to Google. Therefore the code should only output identifier_exists>false if all of them are not set. Otherwise it tells Google that there is no identifier where there is one, and there are errors when google base imports the feed.

Newbie

Posts

Joined
Wed Sep 20, 2017 5:35 pm

Post by halbot » Sat Oct 07, 2017 4:28 pm

Also, it outputs the complete description, which may often be too long for google. It should use the meta_description field.

Newbie

Posts

Joined
Wed Sep 20, 2017 5:35 pm

Post by straightlight » Sun Oct 08, 2017 5:35 am

This issue should be addressed on Github.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 2 guests