| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Pop up for CVV2 definition - need help | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to make a popup page that describes where to find the CVV2 code on one's credit card. However, I'm having trouble because I can't put the <script></script> html in the page header without the template deleting itself.
Can anyone suggest a way to create a simple popup page? I'm using the latest version 3.5.x Thanks! |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Enclose them in {literal} tags.. such as:
Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() I tried that but it still didn't work. Probably because I suck at writing javascript. I'll keep trying.
Thanks! |
|||||||
#4
|
|||||||
|
|||||||
![]() How would you just add the text to the page. without it being any kind of popup?
I'd be happy if it was just noted below the field. |
|||||||
#5
|
|||||||
|
|||||||
![]() thanks!
I just ended up adding a page describing where to find the CVV2 that opens in a new window. |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Ah...an easy one. All curly braces in your script must be enclosed in smarty {literal} tags to keep smarty from mistaking the javascript braces as smarty template tags. I usually just enclose the whole script in literal tags unless I need to substitute smarty variables into the actual javascript. So it would look like this in your template.
Code:
Code:
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|