Author Topic: order_summary.tpl  (Read 5083 times)

Offline Geoffrey

  • Full Member
  • ***
  • Posts: 153
  • Karma: +28/-3
    • View Profile
order_summary.tpl
« on: June 14, 2017, 12:29:58 PM »
This is line 3:
<h2 class="heading2"><span><?php echo $heading_title; ?></span></h2>

It doesn't do anything.  I don't have a title in the Order Summary block displayed on my page.  I would like to have a title "Order Summary".  What do i need to do?

Also same page: my site is free shipping, so I don't need Sub-Total displayed.

I see only one call for a Total title and Total text, but I also see line 27: <?php foreach ($totals as $total) { ?>
which I think is what opens the door to displaying both a Subtotal and Total. 

Is there a way to change this so that only the Total is called?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: order_summary.tpl
« Reply #1 on: June 15, 2017, 02:22:04 AM »
Hello, Geoffrey

Please separate your questions: one question = one topic


Offline Geoffrey

  • Full Member
  • ***
  • Posts: 153
  • Karma: +28/-3
    • View Profile
Re: order_summary.tpl
« Reply #2 on: June 15, 2017, 03:37:23 PM »
OK.  Sorry. 

The guest_step_1 and guest_step_2 pages both have an order summary on the right side of the page. 

The order_summary.tpl file has what appears to be a call for a title for these elements, on line 3:
<h2 class="heading2"><span><?php echo $heading_title; ?></span></h2>

But the title does not appear above those elements on either page. 

I think a title would look good there. 

Can you suggest a method for getting the title to display?

Thanks.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: order_summary.tpl
« Reply #3 on: June 16, 2017, 03:08:07 AM »
You can get title inside TPL file via language class.
Code: [Select]
$this->language->get('heading title');
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Geoffrey

  • Full Member
  • ***
  • Posts: 153
  • Karma: +28/-3
    • View Profile
Re: order_summary.tpl
« Reply #4 on: June 18, 2017, 03:41:16 PM »
Thanks for the suggestion. 

I got to looking at the guest_step tpl files that have code for a "Guest Checkout" title (which I commented out).
I compared the guest title code to the top lines of order_summary.tpl.  It was pretty easy to emulate the guest code in order_tpl, and also a little educational. 

I don't know php, but I'm starting to see some of the relationships & methods.

This is how I placed a small title above the sidewidt Order Summary, by editing order_tpl:

Delete line 3:
<h2 class="heading2">
        <span><?php echo $heading_title; ?></span>
</h2>

Replace with:
<h4 class="heading4">
   <span class="maintext"><?php echo $heading_title; ?></span>
</h4>

Thx.



« Last Edit: June 18, 2017, 03:43:25 PM by Geoffrey »

 

Powered by SMFPacks Social Login Mod