Jump to content
Sign in to follow this  
abbott75

Discount Coupon Codes in 2.3.3

Recommended Posts

I posted this in the main DCC thread, but it seems like a ghost town in there...

 

Trying to install on 2.3.3

 

I have it all working, however I had to fiddle with this step:

OPEN catalog/checkout_payment.php
FIND on line 269:
 <h2><?php echo TABLE_HEADING_COMMENTS; ?></h2>
<div class="contentText">
<?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?>
</div>
<?php
ADD this code after:
/* kgt - discount coupons */
if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) {
?>
<h2><?php echo TABLE_HEADING_COUPON; ?></h2>
<div class="contentText">
</div>

 <div class="contentText">
 <?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"', $coupon); ?>
</div>

<?php
}
/* end kgt - discount coupons */

 

In 2.3.3, the last <?php isn't there. I removed the ?> and <?php from the code to add, and the contribution appears to work, however on checkout_payment.php I can see the code "//* kgt - discount coupons */ if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) { ?>" and "} //* end kgt - discount coupons */"

 

Would I be ok to remove that line and the comments, or will my world implode??

 

Thanks

Share this post


Link to post
Share on other sites

@@abbott75

 

So, dont include the following comments:

 

ADD this code after:

/* kgt - discount coupons */

 

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

@@DunWeb

Thanks. Removing the comments did nothing. I removed the line of code that was showing, and the contrib seems to work, I might just leave it now. There will be plenty more testing before going live so I'm sure I'll find any errors before going live.

 

Cheers!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×