Skip to content

Commit

Permalink
Fix d1m007#116 - Max size of <g:title> should be 150 characters inste…
Browse files Browse the repository at this point in the history
…ad of 70
  • Loading branch information
ericballetbaz committed Dec 19, 2024
1 parent 2a19715 commit c81fcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gshoppingflux/gshoppingflux.php
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,7 @@ private function getItemXML($product, $lang, $id_curr, $id_shop, $combination =
$title_crop .= ' ' . $product['size'];
}

if (Tools::strlen($product['name']) > $title_limit) {
if (Tools::strlen($title_crop) > $title_limit) {
$title_crop = Tools::substr($title_crop, 0, $title_limit - 1);
$title_crop = Tools::substr($title_crop, 0, strrpos($title_crop, ' '));
}
Expand Down

0 comments on commit c81fcc1

Please sign in to comment.