Global variable in product slider products.tpl

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeGlobal variable in product slider products.tpl

This topic has been marked as not resolved.

Hello,
still trying to customize the product slider, but it’s a little bit difficult
i don’t know how i can retrieve the variable localisation that i could use but can’t achieve to that.. or an attribute of the product…

Also for some reason global variable can’t be access from the products.tpl template that handle the slider ?

any ideas how i can achieve that ?

thanks …

March 31, 2014 at 8:14 pm #31302

Ok i found the answer

in tb_themes/shoppica2/catalog/model/productsModel.php

i added “p.location,” in the $sql request

and ‘location’ => $row['location'],
in the $product = array {

that’s working.. if it can help someone to customise the slider..

have fun

April 1, 2014 at 11:52 am #31308

But still i can not retrieve the global variable language that i created in

catalog/controller/common/header.php :
$GLOBALS["currentUseLang"] = $this->language->get(‘code’);

or finding a way to get a text like that
$this->data['text_intro'] = $this->language->get(‘text_intro’);

wher can i find the file to modify ???

thanks for your help §!!!

April 1, 2014 at 12:14 pm #31310

Hi,

We’ve explained how to create a global language variable here:

http://support.themeburn.com/topic/add-custom-translation-ready-text

Hope this is what you are looking for :)

BR,
ThemeBurn team

April 5, 2014 at 1:57 pm #31371
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.