Jump to content

prestomel

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • First Name
    mel
  • Last Name
    mel

prestomel's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Anybody fix this....the problem is in the standard.tpl file OF THE PAYPALUSA MODULE If no discounts it shows products and summary but when a discount or voucher is added the code only arrays item1 and total... so I guess that just said forget it which is bad because when customers get to Paypal they cant see complete order summary on the paypal page. THIS ALSO DOES NOT WORK IN PRESTASHOP 1.6.1 THREE YEARS LATER. NOTICE THE CODE AFTER THE ELSE STATEMENT {if $paypal_usa_total_discounts == 0} {foreach from=$cart->getProducts() item=paypal_usa_product name="paypal_usa_products"} <input type="hidden" name="item_name_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.name|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.price|string_format:"%.2f"}" /> <input type="hidden" name="quantity_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.quantity|intval}" /> {/foreach} {assign var="paypal_usa_total_shipping" value=$cart->getOrderTotal(true, Cart::ONLY_SHIPPING)} {if $paypal_usa_total_shipping} <input type="hidden" name="item_name_{$smarty.foreach.paypal_usa_products.index+2|escape:'htmlall':'UTF-8'}" value="{l s='Shipping' mod='paypalusa'}" /> <input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+2|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_total_shipping|floatval}" /> <input type="hidden" name="quantity_{$smarty.foreach.paypal_usa_products.index+2|escape:'htmlall':'UTF-8'}" value="1"> {/if} {else} <input type="hidden" name="item_name_1" value="{l s="Your order" mod="paypalusa"}" /> <input type="hidden" name="amount_1" value="{$cart->getOrderTotal(!$show_taxes)|floatval}" /> {/if}
×
×
  • Create New...