Jump to content

tomokaikuji

Recommended Posts

I would like to show cart summary in each order page such as order-address.tpl, order-carrier.tpl, order-payment.

I copy and paste the lines in shopping-cart.tpl

<div id=”order-detail-content” class=”table_block”>…</div>

If I change the number of quantity, the Total shipping appears but the Total voucher is still hidden in the order-address and order-carrier.

All the order pages hide Total shipping (Tax incl.) value in the summary unless I change the number of product. The order-address and order-carrier hide Total voucher (Tax incl). Also the following values are 0,00€

  • Total products (tax incl.):
  • Total (tax excl.):
  • Total tax:
  • Total (tax incl.):

  • Total Shipping (Tax incl): (hidden)
  • Total vouchers (Tax incl): (hidden)

How I can fix this??

Please help.

post-358496-0-69423700-1340700610_thumb.jpg

Link to comment
Share on other sites

  • 3 months later...
  • 7 months later...

Hello,

pretty old post but I solved by

1. including a summarized version of the shoppingcart template

/themes/mytheme/shopping-cart-summary.tpl in the payment template (each payment module)

2. adding some code in each payment module front controller.

 

For instance, Now I am adding(integrating) the following code to

modules/bankwire/controllers/front/payment.php

 

 

 $this->context->smarty->assign(array(
  'nbProducts' => $cart->nbProducts(),
  'products' => $cart->getProducts(),
  'cust_currency' => $cart->id_currency,
  'currencies' => $this->module->getCurrency((int)$cart->id_currency),
  'total' => $cart->getOrderTotal(true, Cart::BOTH),
  'total_price' => $cart->getOrderTotal(true, Cart::BOTH),
  'total_products_wt'=> $cart->getOrderTotal(true, Cart::ONLY_PRODUCTS),
  'total_discounts'=>$cart->getOrderTotal(true, Cart::ONLY_DISCOUNTS),
  'total_discounts_tax_exc'=>$cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS),
  'total_wrapping'=>$cart->getOrderTotal(true, Cart::ONLY_WRAPPING),
  'total_wrapping_tax_exc'=>$cart->getOrderTotal(false, Cart::ONLY_WRAPPING),
  'total_shipping_tax_exc'=>$cart->getOrderTotal(false, Cart::ONLY_SHIPPING),
  'total_shipping'=>$cart->getOrderTotal(tru, Cart::ONLY_SHIPPING),  
  'this_path' => $this->module->getPathUri(),
  'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/'
 ));

 

Maybe some more keys needed in your case, but I did'nt need them all.

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