Post by marius-ciclistu » Sat Oct 15, 2016 4:10 pm

Hello, Can anyone help me with a php line? I have this extension in opencart 1.5.4 and I saw that if I open a tab with my website and select a language, the same language is displayed in the rss feed.
I thought that if I could copy the latest_products_rss file in latest_products_rss_en.php and edit it to consist of the same ideea as the language div has in the opencart site, maybe I could do 2 feeds, one for each language. (english is not the default language for my website).

The code from the opencart is :

<img src="image/flags/gb.png" alt="English" title="English" onclick="$('input[name=\'language_code\']').attr('value', 'en'); $(this).parent().parent().submit();">
</div>

I don't know how to write a line in php that simulates the onclick action.

I tried :

$language='en';
$language_code='en';

but it does not work.

Thank you.

PS. the extension link is http://www.opencart.com/index.php?route ... on_id=4595

New member

Posts

Joined
Sat Nov 24, 2012 6:22 am
Who is online

Users browsing this forum: No registered users and 12 guests