VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: thomking on April 27, 2008, 02:25:49 AM

Title: Credit Card Type: Not Showing Up???
Post by: thomking on April 27, 2008, 02:25:49 AM
I just upgraded to the VM 1.1 (stable) there is still a Java/Ajax issue of looping but, now Credit Card Type is not showing up and it is not allowing transactions to be completed... it give the error message: Error: Credit Card Type not found.
Title: Re: Credit Card Type: Not Showing Up???
Post by: jenkinhill on April 27, 2008, 12:04:31 PM
Which version of Joomla and which payment method is giving the error?
Title: Re: Credit Card Type: Not Showing Up???
Post by: Brian on April 30, 2008, 16:24:58 PM
Quote from: thomking on April 27, 2008, 02:25:49 AM
I just upgraded to the VM 1.1 (stable) there is still a Java/Ajax issue of looping but, now Credit Card Type is not showing up and it is not allowing transactions to be completed... it give the error message: Error: Credit Card Type not found.
I've got the same error after upgrading to 1.1.  Using Joomla 1.0.15.  Any ideas?
Title: Re: Credit Card Type: Not Showing Up???
Post by: Jim McFarland on May 03, 2008, 00:35:55 AM
I'll give the same response that I posted to another forum question.

I cannot make any guarantees, but since this will only take 30 seconds you should give it a try.

Near the very top of your main index.php file, just after the <head> statement try adding the following statement:

   <?php mosShowHead(); ?>

It might be a little bit hard to read on the screen, so to clarify let me state that sandwiched in between the word Head and the semicolon are an open and close parentheses (it's not the number zero and it's not the letter "O").

It would look something like this:

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
        <?php mosShowHead(); ?>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
             ...
             ...
             ...

Hope this works for you.
Title: Re: Credit Card Type: Not Showing Up???
Post by: ezflyeruk on May 03, 2008, 17:52:59 PM
Solution here..

http://forum.virtuemart.net/index.php?topic=39515.0

Ez
Title: Re: Credit Card Type: Not Showing Up???
Post by: Allen Booth on May 05, 2008, 14:42:33 PM
I am having the same problem with the same workaround as someone else mentioned in this thread.

I'm using Joomla 1.5 and Virtuemart 1.1.0 (stable)

My Payment Method Type is Credit Card (Payment class name = ps_payment; accepted credit card type = Visa).

THE PROBLEM:

In Virtuemart Configuration, when I set User Registration Type to "No Account Creation" then when I enter credit card information and move the confirmation page I always get the alert "Credit Card Type Not Found."

This problem goes away if I set User Registration Type to any other value.

However, the ability to set user registration to "No Account Creation" would be extremely welcome.

I'm hoping someone can provide a patch.
Title: Re: Credit Card Type: Not Showing Up???
Post by: beardydanz on June 21, 2008, 06:57:06 AM
Yes I'm having the same problem- just wondering if anyone else has seen this and found a solution? Any help much appreciated.

Joomla/1.5.3, VM/1.1.0 stable, shared host with PHP/5.2.5, OpenSSL/0.9.8b, Firefox/2.0.0.14 (same error with IE tho'):

If I don't make the customer register (normal or silent mode), and the customer chooses not to register (optional mode), the pull-down box for cc type is not displayed at checkout step 4. Happens in test & live modes- debug mode shows no error codes up to this point, but you cannot progress to the order confirmation page as the cc type is not found. Everything works fine if the user is registered.

Thx, beardydanz
Title: Re: Credit Card Type: Not Showing Up???
Post by: mknz on July 11, 2008, 16:30:12 PM
Yeah!  Any solution to this...seems pretty lame.
I've seen people hard coding dropdowns...but I can't even get that to work on Authorize.net
Any ideas out there?
Title: Re: Credit Card Type: Not Showing Up???
Post by: brett.hooker on January 13, 2009, 03:08:45 AM
We fixed this on JM 1.0+ and VM 1.1.2 by letting the mainframe class know that there is a script to be added to the page.

This was done by:
1) Edit joomla_home/administrator/components/com_virtuemart/classes/ps_creditcard.php

2) Find function creditcard_lists( &$db_cc ) {   (line 261 in my file)

3) Add this line immediately after the function declaration (this allows the function to access the mainframe variable)
      global $mainframe;

4) Add one more line, after line 274 (   $db_cc->reset();  )
      $mainframe->addCustomHeadTag( '<script src="'.SECUREURL.'/includes/js/joomla.javascript.js" type="text/javascript"></script>' );

This line tells the mainframe handler to load the required javascript file to handle the changeDynaList() method.
Title: Re: Credit Card Type: Not Showing Up???
Post by: aravot on January 14, 2009, 22:23:31 PM
For solution see http://forum.virtuemart.net/index.php?topic=39515.msg161555#msg161555
Title: Re: Credit Card Type: Not Showing Up???
Post by: Sunglasses-Joe on December 20, 2010, 19:49:16 PM
I have been having this problem, ???
The drop down menu to choose credit card type did not appear at all.

After a long search and lots of investigating I worked out that if i Disable the PLUGIN System - JCH_Optimize , the drop down menu starts working !  ;D

Hope this helps someone,

Thanks

Joe
Title: Re: Credit Card Type: Not Showing Up???
Post by: IPN on October 19, 2011, 18:16:31 PM
Sunglasses-Joe

I've been looking for a result to this question for at least 3 hours.  Your solution WORKED! :)

Thanks.