| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Viewable Coupons Codes for Customers | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Viewable Coupons Codes for Customers
My First "Mod" - if this already exists I apoligize.
As part of a marketing strategy I wanted to be able to let customers see what coupons the store had to offer. The catch was I need to be able to CHOOSE which ones I wanted them to see. I have created a mod that will allow you to assign if a coupons can be viewable or not at the time of creation. You then provide a link for the customer to view all the coupons that are available. I still have to check the expiration date as I only want to show them what is active and I still have to clean the code up. If anyone is interested let me know and I'll put together a "how to". I have all the files zipped up and if anyone would like to take a look at them and let me know if I have breached any security I would appreciate it. |
|||||||
#2
|
|||||||
|
|||||||
Does This Look 'Solid' ?
WORKS ON 3.4.4
Here is what I have and it seems to be working fine. It will only show your coupons to customers WHEN.... [1] They are marked as VIEWABLE when created [2] If they are ACTIVE [3] They have NOT expired I hope I have this documented well enough. If anyone see's any issues please let me know. 1 ####################### SQL DATABASE CHANGES Need to add new field at the end of the discount coupons table ####################### status_view` char(1) NOT NULL default 'N' 2 ####################### Add New text and label varibles in Language Library ####################### lbl_promotions txt_use_coupon 3 ####################### Create New Files ####################### Save below code as: skin1/customer/coupons.tpl Code:
Save below code as: customer/coupons.php Code:
4 ####################### Modify Existing Files ####################### TEMPLATE FILE: skin1/customer/home_main.tpl Place following code: Code:
TEMPLATE FILE: skin1/modules/Discount_Coupons/coupons.tpl REPLACE:: Code:
WITH:: Code:
PHP FILE: provider/coupons.php REPLACE:: Code:
WITH:: Code:
What I can't figure out is how to display the Category NAME intead of the category ID on the skin1/customer/coupons.tpl file |
|||||||
#3
|
|||||||||
|
|||||||||
Nice mod, this is type of mod is the perfect compliment to the "find customers who used coupon" search ability in our Marketing Manager xcart add on which lets you find customers who used the coupons, and email them with additional discount coupons and offer to use.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|