Post by eskeytee » Sun Jul 15, 2012 9:28 am

I have installed open cart V. 1.5.3.1 with theme 9responsive_green.
the site URL is: http://www.thingsworld.net/cat/

After choosing an item and going to shopping cart, I want to disable the below portion.
"What would you like to do next?

Choose if you have a discount code or reward points you want to use or would like to estimate your delivery cost.
Use Coupon Code
Use Gift Voucher"


I also want to remove/disable the following from the checkout section.
"New Customer

Checkout Options:
Register Account

By creating an account you will be able to shop faster, be up to date on an order's status, and keep track of the orders you have previously made.


Please help.

Newbie

Posts

Joined
Sun Jul 15, 2012 8:55 am

Post by Avvici » Mon Jul 16, 2012 8:13 pm

Open cart.tpl and find this line:

Code: Select all

<h2><?php echo $text_next; ?></h2>
  <div class="content">
    <p><?php echo $text_next_choice; ?></p>
    <table class="radio">
      <?php if ($coupon_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'coupon') { ?>
          <input type="radio" name="next" value="coupon" id="use_coupon" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="coupon" id="use_coupon" />
          <?php } ?></td>
        <td><label for="use_coupon"><?php echo $text_use_coupon; ?></label></td>
      </tr>
      <?php } ?>
      <?php if ($voucher_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'voucher') { ?>
          <input type="radio" name="next" value="voucher" id="use_voucher" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="voucher" id="use_voucher" />
          <?php } ?></td>
        <td><label for="use_voucher"><?php echo $text_use_voucher; ?></label></td>
      </tr>
      <?php } ?>
      <?php if ($reward_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'reward') { ?>
          <input type="radio" name="next" value="reward" id="use_reward" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="reward" id="use_reward" />
          <?php } ?></td>
        <td><label for="use_reward"><?php echo $text_use_reward; ?></label></td>
      </tr>
      <?php } ?>
      <?php if ($shipping_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'shipping') { ?>
          <input type="radio" name="next" value="shipping" id="shipping_estimate" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="shipping" id="shipping_estimate" />
          <?php } ?></td>
        <td><label for="shipping_estimate"><?php echo $text_shipping_estimate; ?></label></td>
      </tr>
      <?php } ?>
    </table>
  </div>
Replace it with this:

Code: Select all

 <div style="display:none;">
  <h2><?php echo $text_next; ?></h2>
  <div class="content">
    <p><?php echo $text_next_choice; ?></p>
    <table class="radio">
      <?php if ($coupon_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'coupon') { ?>
          <input type="radio" name="next" value="coupon" id="use_coupon" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="coupon" id="use_coupon" />
          <?php } ?></td>
        <td><label for="use_coupon"><?php echo $text_use_coupon; ?></label></td>
      </tr>
      <?php } ?>
      <?php if ($voucher_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'voucher') { ?>
          <input type="radio" name="next" value="voucher" id="use_voucher" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="voucher" id="use_voucher" />
          <?php } ?></td>
        <td><label for="use_voucher"><?php echo $text_use_voucher; ?></label></td>
      </tr>
      <?php } ?>
      <?php if ($reward_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'reward') { ?>
          <input type="radio" name="next" value="reward" id="use_reward" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="reward" id="use_reward" />
          <?php } ?></td>
        <td><label for="use_reward"><?php echo $text_use_reward; ?></label></td>
      </tr>
      <?php } ?>
      <?php if ($shipping_status) { ?>
      <tr class="highlight">
        <td><?php if ($next == 'shipping') { ?>
          <input type="radio" name="next" value="shipping" id="shipping_estimate" checked="checked" />
          <?php } else { ?>
          <input type="radio" name="next" value="shipping" id="shipping_estimate" />
          <?php } ?></td>
        <td><label for="shipping_estimate"><?php echo $text_shipping_estimate; ?></label></td>
      </tr>
      <?php } ?>
    </table>
  </div>
  </div>

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by jacksonkarlm » Thu Aug 30, 2012 7:40 am

very helpful thanks

Newbie

Posts

Joined
Wed Aug 22, 2012 9:49 am

Post by blue_razorz » Mon Dec 17, 2012 12:48 pm

Really2 works for me.
Thanks a lot.
Works on opencart verion 1.5.3.1
Cheers.

Newbie

Posts

Joined
Sat Jul 14, 2012 3:14 pm

Post by tanbeen » Sat Feb 09, 2013 2:06 pm

@avvici: Thank U so much, Its' realy great. Is it work for 1.5.5 too?

Newbie

Posts

Joined
Wed Feb 06, 2013 5:24 pm

Post by mukul127 » Wed Feb 26, 2014 11:43 am

where i will get cart.tpl in opencart...plz guide me

Newbie

Posts

Joined
Mon Feb 24, 2014 3:41 pm

Post by yismail » Sat Jun 06, 2015 11:41 pm

Dear All

I have simple solution

go to admin area

Go To Extensions

Then Order Totals

Then Disable Coupon
Then Disable Shipping
and disable any un required options
Regards
Yasser

Newbie

Posts

Joined
Sat Jun 06, 2015 11:37 pm

Post by zigzag253 » Sat Sep 19, 2015 9:49 pm

Dear Yismail,

A great big thank you for that. It made my day.

Kind regards,

Francis

Newbie

Posts

Joined
Tue Jan 22, 2013 7:52 am

Post by robertoliver » Sun Sep 20, 2015 8:03 pm

Awesome!!

Thanks

Newbie

Posts

Joined
Sun Sep 20, 2015 4:30 pm

Post by nbexiga » Wed May 11, 2016 12:20 am

HI

and how can i change the order to "User Coupon Code" be the last option to use... below the "estimate shipping & Taxes"

because i have a free shipping offer and if the clients insert them before the calculate shipping they must enter the coupon again..


many thanks

Newbie

Posts

Joined
Fri Apr 08, 2016 8:36 pm

Post by SolutionArchitects » Fri Jul 28, 2017 6:42 pm

nbexiga wrote:
Wed May 11, 2016 12:20 am
and how can i change the order to "User Coupon Code" be the last option to use... below the "estimate shipping & Taxes"
I had to do this for a client. I've had to edit the '\catalog\view\theme\default\template\checkout\cart.tpl' file, there's a loop that echo's the different modules under that "What would you like to do next?" heading. Since there's no way to modify the sort order without editing the controller as well, I chose to manually echo each module in the sequence I need by calling the module by it's index. OpenCart loads all controllers and I think the ordering is due to the alphabetic sequence e.g. "Coupon" is loaded before "Shipping" because C is before S.

From this

Code: Select all

<?php if ($modules) { ?>
      <h2><?php echo $text_next; ?></h2>
      <p><?php echo $text_next_choice; ?></p>
      <div class="panel-group" id="accordion">
        <?php foreach ($modules as $module) { ?>
        <?php echo $module; ?>
        <?php } ?>
      </div>
      <?php } ?>
To this

Code: Select all

      <?php if ($modules) { ?>
      <h2><?php echo $text_next; ?></h2>
      <p><?php echo $text_next_choice; ?></p>
      <div class="panel-group" id="accordion">
	<?php //foreach ($modules as $module) { ?>
        <?php echo $modules[1]; //shipping ?>
        <?php echo $modules[0]; //coupon?>
        <?php echo $modules[2]; //voucher?>
        <?php //} ?>
      </div>
There's probably a better way to do this but it works for what I need to achieve


Posts

Joined
Fri Jul 28, 2017 6:34 pm
Who is online

Users browsing this forum: No registered users and 143 guests