Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7662187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:44:13+00:00 2026-05-31T13:44:13+00:00

hi I am developing a module in oxid-esales . It use smarty templates. Now

  • 0

hi I am developing a module in oxid-esales. It use smarty templates. Now I want to get a particular array index. My code looks like

[{foreach from=$language item=lang}]
  <div id="stores">
   [{if !array_key_exists($lang->id,$language_array)}]
     <img src="[{$join_image}]" /> <input type="radio" name="sys_lang" id="sys_lang" />[{$lang->name}]
   [{else}]
    <img src="[{$join_image}]" /> [{$lang->name}] [{$language_array[$lang->id]}]
[{/if}]
 </div>
[{/foreach}]

But it is creating a fatal error of

Fatal error: Smarty error: [in froomerce_fconnect.tpl line 74]: syntax error: unrecognized tag: $language_array[$lang->id] (Smarty_Compiler.class.php, line 446) in D:\wamp\www\oxid_froomerce\core\smarty\Smarty.class.php on line 1093

I have searched and all where the proper syntax for getting variables in smary is only putting{} brackets. But the CMS oxid enforces me to use [{}] for variables.
Does any body how can I get the value of particular index of array like this

[{$language_array[$lang->id]}]

Regards,
Awais Qarni

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:44:14+00:00Added an answer on May 31, 2026 at 1:44 pm

    Try to change default smarty delimiters.
    For example:

    $smarty->left_delimiter = '[{';
    $smarty->right_delimiter = '}]';
    

    See http://www.smarty.net/docsv2/en/language.escaping.tpl

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a Linux driver loadable module and I have to use another device
I'm developing a Django app, and I'm trying to use Python's logging module for
I am developing an Apache module. During development I found it convenient to use
Is there a recommended way of developing a node module if I want to
I am developing a module which has a jQuery script with some AJAX code.
I'm developing a module with both a frontend and a backend. Until now everything
When developing a module (device driver, middleware, etc...) that will run in the kernel
iam developing a module in Drupal, which needs to have a locking machanism, When
I am developing a module in DNN 4.9 to import users. I need transaction
I'm developing a statistics module for my website that will help me measure conversion

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.