| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to add CVV2 help link and description? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I noticed that the new versions of x-cart, 4.0 and higher have the CVV2 code help link with the description included in their cart program.
I have been wanting to intergrate this into my version 3.5.8 and I was wondering if anyone would have the code from the 4.0 version that will work within the 3.5 versions. I'm sure a lot of other people would find lots of use of this as well who are using the older versions. Thanks in advance! ![]()
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#2
|
|||||||
|
|||||||
![]() Quote:
Look at register_ccinfo.tpl Around line 80 you will see something like this: Code:
Change to: Code:
Create a file in the root called ccInfo and an htm or html page named cvv.htm and add your description, pics, info etc. If the folder name is changed or the page name is changed remember to change this in the url. Also remember to change the domain name to yours in the url. Hope this helps. I posted this as an answer in here somewhere prior, but not sure where it is. ![]()
__________________
vs 4.1.12 |
|||||||
#3
|
|||||||
|
|||||||
![]() Hi Mark,
Thanks a lot for your reply. I would like to basically copy exactly how the newer versions of x-cart have it set up with the little question mark icon to click on and the images already in place on the pop-up window that they have. Here is the link to the pop-up on their demo. https://www.x-cart.com/demo/popup_info.php?action=CVV2 Is there a way that I can copy the exact look of the new one into my 3.5.8 cart? Thanks again!
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
You should have access to this in your file download area. I see no problems doing this, you will just need to create the new labels in your languages area to have correct text where required in the tpl files. You will need to add the pop up link w/pic from register_ccinfo.tpl and then have the skin1/main/popup_help_link.tpl as well as the inages used in the pop up which can be found in the images file. Should be a piece of cake.
__________________
vs 4.1.12 |
|||||||
#5
|
|||||||
|
|||||||
![]() Thanks for the great advice Mark! I have it all working except for the popup. When I click on it, the writing and the CC pics are not there inside the popup.
So far I changed out my register_ccinfo.tpl code with the new one, and saved the skin1/main/popup_help_link.tpl into the correct directory. Uploaded the quesitons mark image from 4.11 as well. I also added the label lbl_popup_help. What am I missing here to get the info to show up inside the popup? Thanks once again!
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
This may sound lame, but you copied the text seen in the demo into the new label didn't you? And added the CC pics as well?
__________________
vs 4.1.12 |
|||||||
#7
|
|||||||
|
|||||||
![]() DO'OH! lol No I didn't. I didn't know where to copy that part. Wasn't sure what the label would be called that goes in the popup? I uploaded the images to the images folder, but they aren't showing up in the popup. Do I need to do something else with them besides upload them? I can post the coding for all of what I have done if you need it. Thanks a lot Mark.
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#8
|
|||||||
|
|||||||
![]() Here is the coding for anyone else who wants to do this mod, and also to help find out what I am missing. This is what I have done so far.
Changed this code in register_ccinfo.tpl: Code:
Change to: Code:
Added skin1/main/popup_help_link.tpl which looks like this: Code:
Next I added lng_lbl_popup to the languages area, and then I uploaded question_button.gif into /images.
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#9
|
|||||||
|
|||||||
![]() I logged into the admin for the 4.11 demo and found the that they have a txt_what_is_cvv2 in languages with the CVV2 description so I have added that too. I think I am missing one more file or something that brings up the txt language and the images since neither is still showing.
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#10
|
|||||||
|
|||||||
![]() Quote:
This is the code from the new version of the register_ccinfo.tpl we are speaking of. Code:
Now the tidbit of info we are adding here is: Code:
Now this is the popup_help_link.tpl: Code:
lbl_popup_help description and value is: Code:
You will need to copy over the popup_info.php into your xcart/include folder. You will need to copy over the skin1/help/popup_info.tpl It makes a reference to the skin1_admin.css, if you do not have this, it refers to your skin1.css. Ensure you have dialog_message.tpl in skin1 Ensure you have skin1/main/error_page_not_found.tpl Add lbl_close_window (self explanitory) Copy over close.gif And you will need the skin1/help/hlp_cvv2.tpl Take a look into some of these files and see if there is another image you may need or another label. This should get you well underway to the CVV2 pop world though. Hope this helps, if there is something else, I will try to look into it for you, otherwise follow the yellow brick road to success! ![]()
__________________
vs 4.1.12 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|