| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
At long last - edit Gift Certificate numbers and values from your admin panel | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() This nice little elegant mod will allow you to add value back to a Gift Certificate when necessary, or even change the code itself if you'd like to use a custom Gift Certificate code.
It's safe too because it requires entering "edit mode" before you can change any of these values, lessening the probability of an accidental edit. First, in /admin/giftcerts.php, BEFORE: Code:
Add (right after the else): Code:
In /skin1/modules/Gift_Certificates/gc_admin.tpl, after: Code:
Add: Code:
Find: Code:
And replace it with: Code:
Finally find: Code:
And replace it with: Code:
For appearances sake, I also prefer to change (on line 180): Code:
To: Code:
__________________
----------------- X-cart version 4.2.1 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Will this work for 4.1.18?
I know I wish I could hide Gift Certificates without deleting. I have to delete them because they create an un-managable looooonnnnnggg list. But I would rather be able to keep them so I have a record of Gift Certificates sent. It would also be nice to be able to sort by date added and add a visible note. Instead I have to make my note as the From field, so I know what it is for. Not very intiutive,. Anyone know of a mod that might have these features?
__________________
Mary Lee ------------------- Dinner and a Murder Mystery Games http://www.dinnerandamurder.com x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
This worked fine with 4.1. I don't think GC changed much from 4.1 to 4.2. |
|||||||||
#4
|
|||||||
|
|||||||
![]() Can anyone help make this work on 4.4? I tried, but the step requiring replacing this code does not exist in 4.4's /skin/common_files/modules/Gift_Certificates/gc_admin.tpl
Code:
|
|||||||
#5
|
|||||||||
|
|||||||||
![]() Currency changed in 4.4 so change:
Code:
Code:
|
|||||||||
|
#6
|
|||||||
|
|||||||
![]() Thanks! I made that change, but unfortunately I'm not seeing anywhere to actually edit a gift certificate. Where does the interface change to allow the editing?
|
|||||||
#7
|
|||||||||
|
|||||||||
![]() Looks like there should be a new Change link added to gc_admin.tpl
|
|||||||||
#8
|
|||||||
|
|||||||
![]() All right, I got this working on 4.4.3. All steps are the same as outlined in the OP, aside from these minor changes:
This file Code:
Is located in your site's skin directory, either Code:
or Code:
And this step: Code:
should read: Code:
The edit link appears in the Gift Certificate screen as shown in the attachment, and when clicked, changes the "GiftCert ID" and "Rem./Amount fields" into editable fields. One thing to note, is that the Amount field can not be changed to anything larger than the original value of the GC, but anything equal to or less is fine. |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Quote:
I can confirm this works on 4.5.5 (mostly because X-Cart never changed the gc_admin.tpl file from XC v4.4.4 to 4.5.5. My file still says [v8 (xcart_4_4_4), etc....] at the top)! ![]()
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
|
#10
|
|||||||
|
|||||||
![]() anyone on 4.6.x try it?
__________________
4.7.x xcart store Business 5.4xx |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|