Jump to content

Why Prestashop's checkout template doesn't extend page.tpl?


speed-providing-uncl

Recommended Posts

Hi everyone,

 

In prestashop 1.7, the checkout template file `themes/classic/templates/checkout/checkout.tpl` uses its own html structure instead of extending `page.tpl`, like every other checkout pages (cart, order confirmation, etc). (See https://github.com/PrestaShop/PrestaShop/blob/1.7.2.x/themes/classic/templates/checkout/checkout.tpl)

Why is that? Is there any security flaw we should be aware of?

I've overriden checkout.tpl in my own theme `{extends file='page.tpl'}` and I want to make sure that everything's alright:

{extends file='page.tpl'}

{block name='content'}
  <section id="content">
    <div class="row">
      <div class="col-md-8">
        {block name='cart_summary'}
          {render file='checkout/checkout-process.tpl' ui=$checkout_process}
        {/block}
      </div>
      <div class="col-md-4">

        {block name='cart_summary'}
          {include file='checkout/_partials/cart-summary.tpl' cart = $cart}
        {/block}

        {hook h='displayReassurance'}
      </div>
    </div>
  </section>
{/block}

Thanks!

Florian

 

Original question was posted on stack overflow here: https://stackoverflow.com/questions/48968803/why-prestashops-checkout-template-doesnt-extend-page-tpl

Edited by Florian (see edit history)
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...