Jump to content

product list on payment validation page


tonis

Recommended Posts

Hello

 

I want to display the list of products on payment confirmation pages of bankwire payment and cash on delivery.

 

To add in valitation.tpl {include file="$tpl_dir./shopping-cart.tpl"} does not displays them. It shows the table, but it is empty.

What else I need to add?

 

Thanks a lot for lelp

 

Presta 1.6.0.6

Edited by tonis (see edit history)
Link to comment
Share on other sites

Solved

 

for both payments I addet to the validation page the code

 

{include file="$tpl_dir./shopping-cart.tpl"}

 

for bankwire I addet to the controller 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.'/'
  ));

and for cah on delivery I addet to controller validation.php

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

...replace the similar lines of codes in the controllers.

 

Thanks for help community :P

Link to comment
Share on other sites

  • 4 months later...

Similiar way is with PayU

 

I added code in controlers/front/ payment.php:

$this->context->smarty->assign(array(
   'nbProducts' => $this->context->cart->nbProducts(),
   'products' => $this->context->cart->getProducts(),
   'cust_currency' => $this->context->cart->id_currency,
   'currencies' => $this->module->getCurrency((int)$cart->id_currency),
   'total' => $this->context->cart->getOrderTotal(true, Cart::BOTH),
   'total_price' => $this->context->cart->getOrderTotal(true, Cart::BOTH),
   'total_products_wt'=> $this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS),
   'total_discounts'=>$this->context->cart->getOrderTotal(true, Cart::ONLY_DISCOUNTS),
   'total_discounts_tax_exc'=>$this->context->cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS),
   'total_wrapping'=>$this->context->cart->getOrderTotal(true, Cart::ONLY_WRAPPING),
   'total_wrapping_tax_exc'=>$this->context->cart->getOrderTotal(false, Cart::ONLY_WRAPPING),
   'total_shipping_tax_exc'=>$this->context->cart->getOrderTotal(false, Cart::ONLY_SHIPPING),
   'total_shipping'=>$this->context->cart->getOrderTotal(tru, Cart::ONLY_SHIPPING)
		));
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...