View Single Post
  #662  
Old 09-25-2014, 10:22 PM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Originally Posted by PhilJ
You'd need to hard code some HTML...

skin/reboot/customer/main/cart.tpl

Replace...
Code:
<h2{if $products eq ""} class="nomargintop"{/if}>{$lng.lbl_your_shopping_cart}</h2>
With...
Code:
{if $products ne ""} {if $config.General.checkout_module eq "Fast_Lane_Checkout"} <br> {capture name=dialog} <div class="row"> <div class="col-md-3 text-center"> <div class="checkout_current_step"> <h4><i class="fa fa-arrow-right" style="color:green"></i> <a href="cart.php">Your cart</a></h4> </div> </div> <div class="col-md-3 text-center"> <h4><a href="cart.php?mode=checkout">Personal Details</a></h4> </div> <div class="col-md-3 text-center"> <h4>Shipping &amp; Payment</h4> </div> <div class="col-md-3 text-center"> <h4>Place Order</h4> </div> </div> {/capture} {include file="customer/dialog.tpl" title=$lng.lbl_order content=$smarty.capture.dialog} {else} <h2{if $products eq ""} class="nomargintop"{/if}>{$lng.lbl_your_shopping_cart}</h2> {/if} {/if}


Probably not a great idea to do that, but if it's just for appearance reasons, you can use some simple jQuery...

skin/reboot/js/reboot.js

After...

Code:
$(document).ready(function() {

Insert...

Code:
$('.currency').each(function(){ $(this).html($(this).html().replace(".00","")); });

Thank you Phil for your code.It is working like a charm.Thank you very much.

Just only one question need to ask why you said "Probably not a great idea to do that".If we enable that what will be the issue?

Also some of the price contains 510.50 and 510.25 how to truncate it to 510 only?

Thanks,
xtech
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote