Jump to content

Több érték hozzáadása egy jellemzőhöz


bulldozer
 Share

Recommended Posts

PrestaShop verziószám: 1.5.6.0

 

Legördülő lista helyett pipálgatós módszerrel vagy új legördülő listák létrehozásával szeretnék hozzáadni egy adott termékjellemzőhöz értékeket. Elegendő ehhez az admin****/themes/default/template/controllers/products/features.tpl fájl módosítása?

<td>{$available_feature.name}</td>
		<td>
		{if sizeof($available_feature.featureValues)}
			<select id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value"
				onchange="$('.custom_{$available_feature.id_feature}_').val('');">
				<option value="0">--- </option>
					{foreach from=$available_feature.featureValues item=value}
						<option value="{$value.id_feature_value}"{if $available_feature.current_item == $value.id_feature_value}selected="selected"{/if} >
							{$value.value|truncate:40} 
						</option>
					{/foreach}
	
			</select>

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More