Jump to content

Acess to one customData field

Recommended Posts



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}
	{l s='Text #'}{$textField@index+1}
{/if}: {$textField.value}

$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

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
  • Create New...

Important Information

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