Cart summary compacted

sumary

The default template allows visualization of purchase summary compactly in a single page. This visualization can be compacted even more making a few changes

The first in this file

\themes\default-bootstrap\order-opc.tpl

Replaces the code with this

{if $opc}
{assign var="back_order_page" value="order-opc.php"}
{else}
{assign var="back_order_page" value="order.php"}
{/if}

{if $PS_CATALOG_MODE}
{capture name=path}{l s='Your shopping cart'}{/capture}
<h2 id="cart_title">{l s='Your shopping cart'}</h2>
<p class="alert alert-warning">{l s='Your new order was not accepted.'}</p>
{else}
{if $productNumber}
<!-- Shopping Cart -->
{include file="$tpl_dir./shopping-cart.tpl"}
<!-- End Shopping Cart -->
{if $is_logged AND !$is_guest}
<div class="row">
<div class="col-xs-12 col-sm-4">
{include file="$tpl_dir./order-address.tpl"}
</div>
{else}
<div class="row">
<div class="col-xs-12 col-sm-4">
<!-- Create account / Guest account / Login block -->
{include file="$tpl_dir./order-opc-new-account.tpl"}
<!-- END Create account / Guest account / Login block -->
</div>

 
In this file

\themes\default-bootstrap\order-address.tpl

Change this. Line 39 aprox

<div class="addresses clearfix">
<div class="row">
<div class="col-xs-12 col-sm-6">

with this

<div class="addresses clearfix">
<div class="row">
<div class="col-xs-12 col-sm-12">

And this. Line 78 aprox

</div> <!-- end row -->
<div class="row">
<div class="col-xs-12 col-sm-6"{if $cart->isVirtualCart()} style="display:none;"{/if}>
<ul class="address item box" id="address_delivery">
</ul>
</div>
<div class="col-xs-12 col-sm-6">
<ul class="address alternate_item{if $cart->isVirtualCart()} full_width{/if} box" id="address_invoice">
</ul>
</div>
</div> <!-- end row -->

With this

</div> <!-- end row -->
<div class="row">
<div class="col-xs-12 col-sm-12"{if $cart->isVirtualCart()} style="display:none;"{/if}>
<ul class="address item box" id="address_delivery">
</ul>
</div>
<div class="col-xs-12 col-sm-12">
<ul class="address alternate_item{if $cart->isVirtualCart()} full_width{/if} box" id="address_invoice">
</ul>
</div>
</div> <!-- end row -->

Then in this files

/themes/default-bootstrap/modules/bankwire/views/templates/hook/payment.tpl
/themes/default-bootstrap/modules/cashondelivery/views/templates/hook/payment.tpl
/modules/paypal/views/templates/hook/express_checkout_payment.tpl

change this part

<div class="col-xs-12 col-md-6">

with this

<div class="col-xs-12 col-md-12">

 

The result

 

 

Download files

 

 

Posted on 01/02/2015 in Prestashop

Share the Story

About the Author

Response (1)

  1. penguinmall
    25/02/2015 at 7:05 am · Responder

    Thank you. Good program.
    I have a question. Prestashop 1.6.0.9

    Lgoin Error.

    “TECHNICAL ERROR: unable to send login informations Details: Error thrown: [object Object] Text status: error”

    Have a good day.

Leave a reply

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Back to Top