AbanteCart Community

AbanteCart Development => Customization help => Topic started by: Geoffrey on June 14, 2017, 12:29:58 PM

Title: order_summary.tpl
Post by: Geoffrey 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?
Title: Re: order_summary.tpl
Post by: Basara on June 15, 2017, 02:22:04 AM
Hello, Geoffrey

Please separate your questions: one question = one topic

Title: Re: order_summary.tpl
Post by: Geoffrey 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.
Title: Re: order_summary.tpl
Post by: abolabo 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');
Title: Re: order_summary.tpl
Post by: Geoffrey 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.