Jump to content

Assign result of a list in smarty variable


Serial

Recommended Posts

Hi,

 

I have a list field in my order-carrier.tpl :

<select name="choix_magasin" id="choixmag">
  <option value="0" selected>--</option>
   {foreach $stores as $store}
  <option value="{$store.id_store}">{$store.city}</option>
   {/foreach}
</select>

I want to assign the result of this list (simply the choice of the customer) in a smarty variable.

 

How it's possible ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...