Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hello, this is a post for STS PLUS.

 

First of all I like to congratulate Rigadin for his GREAT work. This is "the contribution".

 

I am a noob in development so I have a problem:

How can I declare a new variable?

 

In Brian Gallagher's STS, I was able to create this variables/placeholders I wrote in sts_display_output.php:

$template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . '';

 

After that, I defined in a php language file:

define('ANY_STRING_FOR_MULTILANGUAGE', 'file_english.gif');

 

I have read completelly your "STS PLUS 4.doc" but I cannot find how can I define a custom variable/placeholder in "sts_user_code.php".

 

Can you give me a little example?

 

Thank you very much, Juan Carlos

Edited by pelopincho
Posted (edited)
Hello, this is a post for STS PLUS.

 

First of all I like to congratulate Rigadin for his GREAT work. This is "the contribution".

 

I am a noob in development so I have a problem:

How can I declare a new variable?

 

In Brian Gallagher's STS, I was able to create this variables/placeholders I wrote in sts_display_output.php:

$template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . '';

 

After that, I defined in a php language file:

define('ANY_STRING_FOR_MULTILANGUAGE', 'file_english.gif');

 

I have read completelly your "STS PLUS 4.doc" but I cannot find how can I define a custom variable/placeholder in "sts_user_code.php".

 

Can you give me a little example?

 

Thank you very much, Juan Carlos

 

Hi,

 

In sts_user_code.php, add this line:

$sts->template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . '';

 

In the same file you will also find an example about adding an infobox. This example was wrong before v4.0.6

 

- Rigadin

Edited by 241
Posted (edited)
Hi,

 

In sts_user_code.php, add this line:

$sts->template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . '';

 

In the same file you will also find an example about adding an infobox. This example was wrong before v4.0.6

 

- Rigadin

 

Hi, the example has worked OK for my store

maybe you can include this example that you give to me in the doc supplied with STS+. It is an idea and you can save on support with noobs like me.

 

Thank you and my GREATS CONGRATULATIONS again for your module,

 

Juan Carlos

Edited by 241

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...