News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

order_summary.tpl

Started by Geoffrey, June 14, 2017, 12:29:58 PM

Previous topic - Next topic

Geoffrey

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?

Basara

Hello, Geoffrey

Please separate your questions: one question = one topic


Geoffrey

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.

abolabo

You can get title inside TPL file via language class.
$this->language->get('heading title');
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Geoffrey

#4
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.




Forum Rules Code of conduct
AbanteCart.com 2010 -