Is it possible to pass a defined language variable to javascript

And if so where would I define it?

You would define it in a tpl file of your choice depending on where you want the

```

Ta



So if I want the same variable to be available in a template as normal and also in some javascript would I have to define it twice.



It is for a language variable to be displayed with the in stock - yes/no mod but with product options also which is when the javascript is called.



Is it not possible to define this once as a language variable within cs-cart back end



```php
{$lang.order}


```

Will appear as

```php
Order
Order
```

2. Not sure what you're asking because I don't use options or "in stock - yes/no"

3. Once you define the language variable in admin, any changes to it will be reflected where called with:

```php
{$lang.variable_name}
```

Thats great Matt - it doesn’t mean much - at the moment - but it will have given the start point that I needed to then look at it without drifting around in a random way.