Jump to content

alejcak

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Location
    Australia
  • Activity
    Developer

alejcak's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Stabman and I are working on a project together and are having trouble passing the information from {$smarty.post.customGB} ***customGB is an array**** to be displayed in the order(displayed on the email template). We are up for any suggestions I have attached a few images to explain our problem. The prestashop 5-step-cart is where we are trying to get this working. I have used the {$smarty.post|print_r} to view the information passed. cart-step-2.jpg - has the text field where the information from [messages] is placed.(address step in cart) cart-step-3.jpg - the information from customGB is from the checkbox form.[messages] was passed to the next step(highlighted in yellow).(carrier step in cart) cart-step-3 select.jpg - when you select the checkbox, only those values are passed through into the customGB array.(carrier step in cart) cart-step-4.jpg - customGB array info has been passed.(highlighted in yellow)(payment step in cart) is it possible to attach the information(from smarty.post.customGB) to the [message], so that it will be displayed on the order email. We are up for any suggestions/solutions Any help will be much appreciated.
  2. Thanks for that. It wasn't exactly what I was after but it will be useful. I found exactly what I wanted(see below) {foreach $smarty.post.customGB as $gb} {$gb}<br/> {/foreach}
  3. 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??
  4. Hi, I am having trouble getting the information from a form that I created to display on the order. I have a variant of the shopping cart summary included in shipping where each item has a checkbox. I need to know how to pass this information (whenever a box is checked for a particular item) into order confirmation. Thanks
  5. I've got the same problem - as soon as I add the JS, the site goes blank. Any one know how to fix this?
×
×
  • Create New...