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.
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.
Open cart.tpl and find this line:
Replace it with this:
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>
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>
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
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
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 } ?>
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>
Who is online
Users browsing this forum: No registered users and 143 guests