Post by fakhricker » Wed Jan 27, 2016 11:41 am

How to hide Country and zones on payment addess in order info
i just found this in admin/view/template/sale/order_info.tpl

Code: Select all

<div class="panel-body">
        <table class="table table-bordered">
              <td style="width: 50%;" class="text-left"><?php echo $text_payment_address; ?></td>
              <?php if ($shipping_method) { ?>
              <td style="width: 50%;" class="text-left"><?php echo $text_shipping_address; ?>
                <?php } ?></td>
              <td class="text-left"><?php echo $payment_address; ?></td>
              <?php if ($shipping_method) { ?>
              <td class="text-left"><?php echo $shipping_address; ?></td>
              <?php } ?>
where i know more details for this code

Code: Select all

<?php echo $payment_address; ?>
because i want hide country and zones



Sun Jan 10, 2016 11:26 pm

Post by villagedefrance » Wed Jan 27, 2016 4:46 pm

<?php echo $payment_address; ?> and <?php echo $shipping_address; ?> are strings that contains the complete address. They cannot be split easily to remove only Country and Region.

Since, I guess, you still want to show the Street address, you are stuck.

Unless somebody else knows better, I can't see a solution to this. Sorry.

OpenCart custom solutions @

User avatar
Active Member


Wed Oct 13, 2010 10:35 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 14 guests