Jump to content

Acess to one customData field


Recommended Posts

Hi,

 

I’m trying to modify my shopping-cart.tpl but I’m having some issues with custom data.

 

I detected when customized datas is managed but Prestashop just make this: 

{foreach $custom_data as $textField}
{if $textField.name}
	{$textField.name}
{else}
	{l s='Text #'}{$textField@index+1}
{/if}: {$textField.value}
{/foreach}

$textField.value shows everything (image, text, price…) but I desire to access only to one field. I know it’s an array but I’m new to PS and the usual way I access to array doesn’t works ($textField[value]). How can I access just to the price?

 

Thanks in advance

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...