Author Topic: Variables List  (Read 4098 times)

Offline Marcinius

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Variables List
« on: October 22, 2017, 07:18:31 PM »
Where can I find variable listings? For example, when I'm looking at the .tpl files I see where it says echo $text_login or echo $text_welcome I'm trying to find a list of all of those. Can someone link it to me in the documentation or where I can find it in the admin panel?

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: Variables List
« Reply #1 on: October 23, 2017, 09:13:29 AM »
Go to your admin panel System->localization->language Definition   
Or you can directly search the word in search box which is at the  top of your admin panel

Offline Marcinius

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Variables List
« Reply #2 on: October 23, 2017, 03:38:01 PM »
I added one to the list however I couldn't pull it from a tpl. Do I need to reset cache?

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: Variables List
« Reply #3 on: October 23, 2017, 03:42:38 PM »
Yes, I suggest to clear cache after every database edit and also clear browser cache

Offline Marcinius

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Variables List
« Reply #4 on: October 23, 2017, 03:43:39 PM »
Sounds like a plan. I'll test it out and report back.

Offline Marcinius

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Variables List
« Reply #5 on: October 23, 2017, 03:52:48 PM »
When I put this <p>TEST <?php echo combine_pay_to ?></p> it just echos the entire thing and not the actual string..

Offline Marcinius

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Variables List
« Reply #6 on: October 23, 2017, 03:53:24 PM »
And this <p>TEST <?php echo $combine_pay_to ?></p> nothing appears

If I put any PHP in that section it doesn't work.. even tried putting $shipping_address_1

I'm on confirm.tpl
« Last Edit: October 23, 2017, 03:55:56 PM by Marcinius »

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: Variables List
« Reply #7 on: October 24, 2017, 09:28:32 AM »
You are missing ;(semi-colon)
try this:
<p>TEST <?php echo combine_pay_to; ?></p>

and make sure combine_pay_to has some text assigned to it

 

Powered by SMFPacks Social Login Mod