Google Product Export problem and fix/hack

10.09.2019 14:37
#1
groggi42
Joomshopping forum user no avatar
Name: Groggi42
28.06.2011
Posts: 11
Quote
Google Product Export problem and fix/hack

Hi,

I am running a multilanguage site and using the Google Product Export. All works well, except that the links to the product page are always to the default language (English). The rest is in the correct selected language. Setting the "SEF URL lanuage prefix" only screws up the links completely by prefixing the language tag (e.g. "/de/") to the already existing /en/.
I found a hack/fix by changing line 549 of googleproductexport.php from:

$url0 = "index.php?option=com_jshopping&controller=product&task=view&category_id=".$prod->category_id."&product_id=".$prod->product_id."&Itemid=".$Itemid;

to

$url0 = "index.php?option=com_jshopping&controller=product&lang=".$ie_params['language']."&task=view&category_id=".$prod->category_id."&product_id=".$prod->product_id."&Itemid=".$Itemid;

Best regards,
Ralph


Joomla: 3.9.11
JoomShopping: 4.18.3
PHP: 7.2.21-1+ubuntu18.04.1+deb.sury.org+1
MySQL: 5.5.5-10.1.41-MariaDB-0ubuntu0.18.04.1
 
14.09.2019 10:08
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25916
Quote
Aw: Google Product Export problem and fix/hack

Addon Google export 4.6.10

Field: URL lanuage

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.