Jump to content

[Solved]smarty post array


alejcak

Recommended Posts

Hi,

I am new to all this and I am having a fair bit of trouble getting the information out of my Smarty post array.

 

I have Prestashop v1.48 installed and I'm trying to get the information form this form that I created.

 

<tr id="product_{$product.id_product}_{$product.id_product_attribute}" class="{if $smarty.foreach.productLoop.last}last_item{elseif $smarty.foreach.productLoop.first}first_item{/if}{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}alternate_item{/if} cart_item">
<td class="cart_checkbox">
 <input type="checkbox" name="customGB[]" formmethod="post" value="{$product.name}" />
</td>
<td class="cart_product">
 <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" {if isset($smallSize)}width="{$smallSize.width}" height="{$smallSize.height}" {/if} /></a>
</td>
</tr>

 

I can call back the information in another page but only 1 at a time by the following code

{$smarty.post.customGB[0]}

 

Any ideas on how to call back all the variables inside the array??

Edited by alejcak (see edit history)
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...