Support for Discount Coupons by Burt
#21
Posted 20 March 2009 - 08:18 PM
Does this make sense? I hope it does..
The PDF idea is great, but if you can get the IDs working similar to that of a coupon, but instead of the coupon only working on the one single purchase, if the value of the "coupon" (in this case the gift vouch) is not met, there is a balance for them to come back and use the same code or ID to finish off the balance on their next purchase. THIS is the way my logic tells me it should be done.. similar to a coupon code.. BUT it would need to maintain a balance if it wasnt used all in one shot.
I hope this all makes sense.
Road Map to oscommerce File Structure
DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!
HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you
Proud Memeber of the CODE BREAKERS CLUB!!
#22
Posted 24 March 2009 - 05:19 AM
If at first you don't succeed, try, try again.
#24
Posted 24 March 2009 - 05:22 PM
Do you have time to do an install on this site for us? By the way, how are you?
-Rebecca
burt, on Mar 24 2009, 03:15 AM, said:
Is that the one that doesn't need to go through the checkout procedure?
If at first you don't succeed, try, try again.
#25
Posted 24 March 2009 - 05:52 PM
You probably need to include the coupon class in the express.php file, and mess about with the IPN file in /ext/ as well. basically, you need to add in the coupon bits from checkout_process to the IPN. And be sure the coupon class is in the other file so the order_totals are updated.
I'm not familiar with Brians version...
#26
Posted 25 March 2009 - 07:17 PM
Fatal error: Cannot instantiate non-existent class: ot_discount_coupon in /home/danicasb/public_html/admin/modules.php on line 95
me so code stupid not sure what to do any help appreciated
#27
Posted 25 March 2009 - 07:37 PM
Road Map to oscommerce File Structure
DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!
HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you
Proud Memeber of the CODE BREAKERS CLUB!!
#31
Posted 26 March 2009 - 05:03 PM
The coupon I created is for multiple customer use.
Thanks
Rache
EDIT - may be having a senior moment here but I've rolled out all your files, however when I go to MODULES - ORDER TOTAL, the coupons module is listed there but the INSTALL button is visible for this module. To enable the coupons do I need to install it, as I thought by modifying all the files, I had "installed" the module?
I know that your README file says
Quote
when it is used - and so that it shows up on invoices!
Do this at:
admin > modules > order total
Here, you will see a new entry entitled "Coupons". Guess what? That's what we need to show in the orders...I usually set it to show right underneath the
"shipping" entry.
But you have not actually said what to do. I'm nervous about clicking the install button in case I break my entire website
Edited by Fuzzbutt.co.uk, 26 March 2009 - 05:16 PM.
Ghostbuster "Dr Smith"
#32
Posted 26 March 2009 - 05:55 PM
Easy as 123 - firstly, amend all your existing order totals so that instead of having sort order 1,2,3,4 it is instead 10,20,30,40 etc. Then [install] the coupon order_total module, and give it a sort order of 15
Done.
#33
Posted 27 March 2009 - 06:36 AM
Ghostbuster "Dr Smith"
#34
Posted 27 March 2009 - 03:39 PM
burt, on Feb 3 2009, 12:26 PM, said:
Download Link: http://www.oscommerce.com/community/contributions,5743
Hello. First let me say I am not a website building genius.. I installed your Addon wich looks to be just what I need, but I have a problem..When I reach the instruction to go to Admin tool/Customers/click coupon...there isnt a coupon option there...any ideas to help a mentally challenged storeowner?
#35
Posted 27 March 2009 - 03:47 PM
Road Map to oscommerce File Structure
DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!
HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you
Proud Memeber of the CODE BREAKERS CLUB!!
#36
Posted 27 March 2009 - 04:30 PM
Quote
/*
$Id: customers.php,v 1.16 2003/07/09 01:18:53 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2002 osCommerce
Released under the GNU General Public License
*/
?>
<!-- customers //-->
<tr>
<td>
<?php
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_CUSTOMERS,
'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'));
if ($selected_box == 'customers') {
$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br />'.
'<a href="' . tep_href_link(FILENAME_COUPONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TOOLS_COUPONS . '</a>');
}
$box = new box;
echo $box->menuBox($heading, $contents);
?>
</td>
</tr>
<!-- customers_eof //-->
Edited by Fuzzbutt.co.uk, 27 March 2009 - 04:31 PM.
Ghostbuster "Dr Smith"
#37
Posted 27 March 2009 - 05:22 PM
Fuzzbutt.co.uk, on Mar 27 2009, 04:30 PM, said:
#39
Posted 27 March 2009 - 09:38 PM
burt, on Feb 3 2009, 12:26 PM, said:
Download Link: http://www.oscommerce.com/community/contributions,5743
I made my first coupon..
then in a dummy order i entered the ocupon code, but it didnt take anythign off..any ideas?
#40
Posted 27 March 2009 - 10:37 PM
Fuzzbutt.co.uk, on Mar 26 2009, 05:03 PM, said:
The coupon I created is for multiple customer use.
Thanks
Rache
burt said:
Easy as 123 - firstly, amend all your existing order totals so that instead of having sort order 1,2,3,4 it is instead 10,20,30,40 etc. Then [install] the coupon order_total module, and give it a sort order of 15
Done.
Edited by Fuzzbutt.co.uk, 27 March 2009 - 10:38 PM.
Ghostbuster "Dr Smith"









