Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Payment Alert Popup - javascript code hack

    I'd like to have an Alert popup when the customer clicks any of the payment radio buttons.

    Basically, I want them to confirm that they really want this or that payment option.

    I've had a number of customers at first choose credit card, then their card gets declined, then they come back and select check/money order to complete their order, but then they'll write in saying that they had paid with their credit card. Yes, it really happens.

    So, I think having an Alert popup to confirm their payment choice would be a nice feature.

    The Alert should contain the name of the payment choice, obviously.

    Would anyone know how to hack this Alert popup in?

    Many thanks
    Last edited by DogTags; 1 Jun 2007 at 02:58 PM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Payment Alert Popup - javascript code hack

    In v1.3.7 and newer, there is a "methodSelect" function in the jscript_main.php file for the checkout_payment page.
    You could add your alert() notice to that function as a starting point.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. attribute alert popup for two distinct values
    By eranariel in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Dec 2011, 02:57 PM
  2. Quantity Pricing with Javascript Alert Box
    By purplemoon in forum Basic Configuration
    Replies: 0
    Last Post: 4 Apr 2007, 06:55 AM
  3. javascript popup for images?
    By bubblefizz in forum General Questions
    Replies: 13
    Last Post: 5 Nov 2006, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg