Jump to content
Sign in to follow this  
reach100

Discount Coupons for Version 2.3.1

Recommended Posts

Hi there,

what is the best add-on to use for Discount coupons?

I have recently installed version 2.3.1 and I am unable to get any of the listed add-ons working, no matter how careful Install each one. I always end up with some kind of error in the admin area or the checkout pages.

Can someone please offer a suggestion?

Thanks you.

Edited by reach100

Share this post


Link to post
Share on other sites

Rich,

 

It will take some time for the contributions to be updated to work with v2.3.1 and then, not all will be available.

 

 

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

Ok, let me rephrase. There is currently no FREE contribution available for v2.3.1 posted on the osCommerce forum.

 

 

 

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

Burt,

 

I fully understand but wanted to clarify for the OP.

 

 

 

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

Hi there,

i post it today a modified version of the Discount Coupon Codes 3.34 to work with osCommerce 2.3.1.

 

All credits are due to the original author.

Regards,

Costel

roshop.ablog.ro

Share this post


Link to post
Share on other sites

Hi there,

i post it today a modified version of the Discount Coupon Codes 3.34 to work with osCommerce 2.3.1.

 

All credits are due to the original author.

Regards,

Costel

roshop.ablog.ro

 

FYI: Looks like download link is broken.

Share this post


Link to post
Share on other sites

FYI: Looks like download link is broken.

 

I found the downloads and the module looks great. HOWEVER, there is a file missing from the downloads: includes/functions/coupons.php. I checked all three downloads there, just in case. If you could re-upload with that file included I would REALLY appreciate it! I have it installed right now just waiting for that file.

Share this post


Link to post
Share on other sites

Hi Jim,

The only coupon.php file exist in admin/includes/functions. In the catalog/includes/functions/ don't need these file. Read the install.html file.

Costel

roshop.ablog.ro

Share this post


Link to post
Share on other sites

Hi Kris,the download link working now.

Costel

 

Sorry ... misread the error; my mistake. Package is fine and download link works

Edited by Jan Zonjee

Share this post


Link to post
Share on other sites

I figured rather than start a new discount code topic I'd just ask in this one . . I have osc 2.2 MR2, which addon would be best? I just want to be able to give folks a coupon code they can enter at checkout, if I can set it to be used once per customer that'd be nice but if not it's no biggie.

Share this post


Link to post
Share on other sites

Hi Rob,

 

This thread is support for this contribution:

 

http://addons.oscommerce.com/info/4269

 

 

There have been many updates posted on that contribution but the one I would suggest using is v3.34 by xinxi and then apply the patch for the orders.php right above it.

 

You should also consider the age of your store and when to update to a newer version (it is MS2 not MR2)

 

 

 

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

Thanks Chris!

 

That did the trick! I tried the patch, but it didn't work, switched it back to the original 3.34 mod code and it seems to work fine for me.

Share this post


Link to post
Share on other sites

Im having a problem with the install it seems, something isn't right, in the instructions it tells me the following:

 

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 

 

However, in my checkout_payment.php it goes like this, so I don't know where exactly to add it (basically there is no ending <?php like the instructions say):

 

<h2><?php echo TABLE_HEADING_COMMENTS; ?></h2>

 <div class="contentText">
   <?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?>
 </div>

 <div class="contentText">
   <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
     <div id="coProgressBar" style="height: 5px;"></div>

     <table border="0" width="100%" cellspacing="0" cellpadding="2">
       <tr>
         <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
         <td align="center" width="33%" class="chec

 

Any ideas/tips? Thank You!

 

btw im using the Discount Coupon Codes 3.34 for osc 2.31 from My linkhttp://addons.oscommerce.com/info/4269

Share this post


Link to post
Share on other sites

Pat,

 

 

 

It works with PayPal Standard, IPN and Pro. However, it will NOT work with Express because Express bypasses the Checkout Process.

 

 

 

 

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

Pat,

 

 

 

It works with PayPal Standard, IPN and Pro. However, it will NOT work with Express because Express bypasses the Checkout Process.

 

 

 

 

Chris

 

Really? I was up for a good 6-7 hours yesterday trying to find a solution, or something that works with PayPal and osCommerce 2.3.1, but wasn't able to find anything. Would you possibly be so kind and explain/show me where I can get this IPN and how to implement it? I do need it for 2.3.1.

 

Thank You so much!

Share this post


Link to post
Share on other sites

Really? I was up for a good 6-7 hours yesterday trying to find a solution, or something that works with PayPal and osCommerce 2.3.1, but wasn't able to find anything. Would you possibly be so kind and explain/show me where I can get this IPN and how to implement it? I do need it for 2.3.1.

 

Thank You so much!

 

I'd be grateful also Chris :) Mine is all working just not showing up in pay pal..

Share this post


Link to post
Share on other sites

I add Discount Code for osCommerce 2.3.1 in my store and now I need help with tax. This add-on counts discount form taxless price but total tax of purhase is still from original price:

 

Now it counts:

Product price with tax: 25.00 €

(tax 13%, price without tax 22,12 €)

Dicount 10%: 2.21 € (from taxless price)

Total tax 13%: 2.88 € (from full price product)

 

 

It should be:

Product price with tax: 25,00 €

Discount 10% = 2,50 €

(New price with tax = 22,50 €)

Total tax 13% (from new price) = 2,59 €

 

Can anybody help me with this? It might that I have to change code to ot_tax.php but I don't know what I have to write.

Share this post


Link to post
Share on other sites

I add Discount Code for osCommerce 2.3.1 in my store and now I need help with tax. This add-on counts discount form taxless price but total tax of purhase is still from original price:

 

Now it counts:

Product price with tax: 25.00 €

(tax 13%, price without tax 22,12 €)

Dicount 10%: 2.21 € (from taxless price)

Total tax 13%: 2.88 € (from full price product)

 

 

It should be:

Product price with tax: 25,00 €

Discount 10% = 2,50 €

(New price with tax = 22,50 €)

Total tax 13% (from new price) = 2,59 €

 

Can anybody help me with this? It might that I have to change code to ot_tax.php but I don't know what I have to write.

 

 

Now I get total tax right but how I can get discount sum with tax?

Share this post


Link to post
Share on other sites

This code is incorrect for V2.3.1

 

FIND on line 327:
	$shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
	$this->info['subtotal'] += $shown_price;
REPLACE with this code:
	//kgt - discount coupons
	if( is_object( $this->coupon ) ) {
	  $applied_discount = 0;
	  $discount = $this->coupon->calculate_discount( $this->products[$index], $valid_products_count );
	  if( $discount['applied_discount'] > 0 ) $valid_products_count++;
	  $shown_price = $this->coupon->calculate_shown_price( $discount, $this->products[$index] );
	  $this->info['subtotal'] += $shown_price['shown_price'];
	  $shown_price = $shown_price['actual_shown_price'];
	} else {
	  $shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
	  $this->info['subtotal'] += $shown_price;
	}
	/**************
	$shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
	$this->info['subtotal'] += $shown_price;
	**************/

 

The code in my includes/classes/order.php looks like this:

 

$shown_price = $currencies->calculate_price($this->products[$index]['final_price'], $this->products[$index]['tax'], $this->products[$index]['qty']);
	$this->info['subtotal'] += $shown_price;

 

Can someone assist?

 

Thank you.

Edited by birdrockdesigns

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  

×