Author Topic: Credit Card Type not found  (Read 49335 times)

Brian

  • Beginner
  • *
  • Posts: 22
    • brian.baligad.name
Re: Credit Card Type not found
« Reply #15 on: October 24, 2008, 08:36:53 am »
has this problem been reported on the bug tracker?  I would check myself but it appears not to be loading atm (for me at least).

the_little_lebowski

  • Beginner
  • *
  • Posts: 8
Re: Credit Card Type not found
« Reply #16 on: November 03, 2008, 17:34:25 pm »
jeez it seems that no one really answers any questions on these boards.
if you're using joomla 1.5.x the solution is a very easy one liner.
in the following file,
/components/com_virtuemart/themes/default/templates/checkou/list_payment_methods.tpl.php
add the following line anywhere after the comments,
Code: [Select]
JHTML::script('joomla.javascript.js','includes/js/');

Many many thx, searaig! I was just about to get rid of Virtuemart because of this, then your post came along.
So this solution worked just fine with J! 1.5.6 and VM 1.1.2

This is a serious bug (the second one I had to fight with) they really need to fix in one of the next patches.

I suggest marking this thread as solved?

jeffhoneyager

  • Jr. Member
  • **
  • Posts: 54
  • Matt. 11:28
    • Expert Web Professionals
  • VirtueMart Version: 2.0.20b
Re: Credit Card Type not found
« Reply #17 on: December 02, 2008, 00:48:22 am »
What about 1.0.15 with VM 1.1.2?

Peace & Joy,
Jeff Honeyager
...using VirtueMart since 2006
http://jeff.honeyager.com

zizani

  • Beginner
  • *
  • Posts: 2
Re: Credit Card Type not found
« Reply #18 on: December 23, 2008, 06:29:56 am »
Thanks. The bug is fixed with

 global $vm_mainframe;
 $vm_mainframe->addScript( 'includes/js/joomla.javascript.js' );

in J1.5.8 VM1.1.2


dontflinch

  • Jr. Member
  • **
  • Posts: 152
Re: Credit Card Type not found
« Reply #19 on: January 05, 2009, 07:32:58 am »
> Thanks. The bug is fixed with
>
> global $vm_mainframe;
> $vm_mainframe->addScript( 'includes/js/joomla.javascript.js' );
>
> in J1.5.8 VM1.1.2


could you please be more specific?  i.e.  where do I place that in what file to fix this? 
I am using 1.5.8  1.1.2 and I have been messing with this for hours. 


I am no coder or I am sure I would look at what is called in the registered user file that isn't called here, as that seems to be the only difference.  If this fixes it though I will be happy. (besides the other half dozen or so issues I am having, lol).

thanks

brett.hooker

  • Beginner
  • *
  • Posts: 14
Re: Credit Card Type not found
« Reply #20 on: January 13, 2009, 03:08:21 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.

dontflinch

  • Jr. Member
  • **
  • Posts: 152
Re: Credit Card Type not found
« Reply #21 on: January 13, 2009, 08:52:23 am »
thanks brett for the reply.


I have made my ps_creditcard changes to look like this, hoping to have followed your instruction:



Code: [Select]


function creditcard_lists( &$db_cc ) {

global $mainframe;


$db = new ps_DB;

$db_cc->next_record();
// Build the Credit Card lists for each CreditCard Payment Method
$script = "<script language=\"javascript\" type=\"text/javascript\">\n";
$script .= "<!--\n";
$script .= "var originalOrder = '1';\n";
$script .= "var originalPos = '".$db_cc->f("payment_method_name")."';\n";
$script .= "var orders = new Array(); // array in the format [key,value,text]\n";
$i = 0;
$db_cc->reset();


$mainframe->addCustomHeadTag( '<script src="'.SECUREURL.'/includes/js/joomla.javascript.js" type="text/javascript"></script>' );


while( $db_cc->next_record() ) {





I still don't see a credit card choice, just a blank area where it should be. 

Can you please advise if I edited the file correctly per the 1.0 revision you refer to?  I am using 1.5.8 so maybe that won't work?

thank you very much for replying!

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10375
  • VirtueMart Version: 3+
Re: Credit Card Type not found
« Reply #22 on: February 04, 2009, 05:28:04 am »
I got the credit card types by adding this:
<script language="Javascript" type="text/javascript" src="/includes/js/joomla.javascript.js"></script>
on the first line of the components/com_virtuemart/themes/default/templates/checkou/list_payment_methods.tpl.phpfile! wooho!!!
I still can't get my transactions to process, but I think it's because the curl is not yet enabled on my site. At least the cc drop down is there (and it is on firefox too)
Cheryl
PS THANKS to you all who posted.




Thanks,

In my case, the card type did not disappear until i actually took the method out of test mode.


Pasted the code, and works like a charm

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

opwdecks

  • Jr. Member
  • **
  • Posts: 61
Re: Credit Card Type not found
« Reply #23 on: February 23, 2009, 15:30:24 pm »
This worked for me on:

joomla 1.5.9
VM 1.1.2
Scott Paul

lefcakis

  • Beginner
  • *
  • Posts: 15
Re: Credit Card Type not found
« Reply #24 on: March 12, 2009, 18:00:34 pm »
I don't have a
components/com_virtuemart/themes/default/templates/checkou/list_payment_methods.tpl.phpfile

no themes folder.  so how do you fix this issue in 1.1.3?

lefcakis

  • Beginner
  • *
  • Posts: 15
Re: Credit Card Type not found
« Reply #25 on: March 12, 2009, 18:14:51 pm »
sorry.  I got it fixed.  this solves the issue in 1.1.3 as well.

spycamman

  • Beginner
  • *
  • Posts: 4
    • SpyCamMan
Re: Credit Card Type not found
« Reply #26 on: March 28, 2009, 15:18:58 pm »
This worked for me as well vm 1.1.2 joomla 1.5.8

Thanks a million
www.spycamman.com
SpyCamMan

richm

  • Jr. Member
  • **
  • Posts: 52
Re: Credit Card Type not found
« Reply #27 on: April 25, 2009, 17:17:12 pm »
None of these fixed my J1.5.10 V1.1.3 install using the Rockettheme Mynxx template.  The demo on the rockettheme site has the same problem, and is setup as no account creation.

Mark J

  • Beginner
  • *
  • Posts: 16
Re: Credit Card Type not found
« Reply #28 on: May 05, 2009, 00:49:28 am »
None of these fixed my J1.5.10 V1.1.3 install using the Rockettheme Mynxx template.  The demo on the rockettheme site has the same problem, and is setup as no account creation.

I have the same setup and configuration and the same issue. None of the listed fixes worked for me.


Any other suggestions?

Thanks

dontflinch

  • Jr. Member
  • **
  • Posts: 152
Re: Credit Card Type not found
« Reply #29 on: May 05, 2009, 02:24:05 am »
I was just coming back to check on this again too.  I am still using 1.5.8   1.1.2.

I do not for the life of me understand why the month and year drop down appear but not this.  I have changed the registration from none to silent and still no drop down.  I have tried at least half a dozen fixes and NOTHING.  I have even offered to pay a bit for a fix.
http://forum.virtuemart.net/index.php?topic=39515.msg163822#msg163822

I have tried:
http://forum.virtuemart.net/index.php?topic=40477.msg128419#msg128419
http://forum.virtuemart.net/index.php?topic=40477.msg133196#msg133196
http://forum.virtuemart.net/index.php?topic=40477.msg142219#msg142219
http://forum.virtuemart.net/index.php?topic=40477.msg159271#msg159271
http://forum.virtuemart.net/index.php?topic=40477.msg161331#msg161331
http://forum.virtuemart.net/index.php?topic=39515.msg124634#msg124634
http://forum.virtuemart.net/index.php?topic=39515.msg161330#msg161330
http://forum.virtuemart.net/index.php?topic=39515.msg164325#msg164325

as well as a few other things I just dreamt up.

Also, this is also discussed on another thread.  Would be nice if they were merged, though unlikely.
http://forum.virtuemart.net/index.php?topic=39515.0
http://forum.virtuemart.net/index.php?topic=40477.0



I can't even find a bug forum to post this in...?


anybody out there?


here is a screenshot of the missing dropdown list:


                                                       click for larger image.