Post by d77 » Fri Sep 14, 2007 11:13 am

couple questions about payment.

i find this code in checkout_payment.tpl


  " id="" CHECKED />

  " id="" />


this would indicate to me that there may be a way to set a particular payment method as the default, and have it automatically checked. i cannot, however, figure out where the default payment method gets set in the admin??

another question about payment methods. when i go to check out, one of the payment methods is listed as "Paypal". I would like to change this text to be something else which indicates that the user can also pay by credit card without requiring an actual paypal account... maybe "Paypal or Credit Card"... something like that. But changing the name of the paypal type does not seem to get reflected here?

User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am

Post by mvanwitsen » Wed Oct 17, 2007 5:37 am

Hi there,

I also was looking how to set your default currency, and I found it! You need to log in to your MySQL Database and go to the table 'setting'. On page 3 or setting id 4214 you'll see the standard currency set. Change that to EUR or USD or whatever and voilà the default payment is set.

Ok, I know it's not the way you aspect but it works! Please be careful when you change settings in the database. Mostly changes can't be undone!

PS Sorry for my bad english I'm from the Netherlands ;D ;D

Newbie

Posts

Joined
Wed Oct 17, 2007 2:09 am

Post by luvz2drv » Wed Oct 17, 2007 11:15 am

why not just change it in the admin?

luvz2drv


Post by gasolina » Fri Jan 18, 2008 10:29 pm

The default currency can be set from via Admin->Configuration->Settings in the tab named "Local"

Newbie

Posts

Joined
Fri Jan 18, 2008 2:45 pm
Location - Romania

Post by bruce » Sat Jan 19, 2008 10:09 am

You may well have discovered this for yourself by now but in response to your original questions...

The default you see in the code comes from the last value chosen in the current session.
There is nowhere in admin to set this.
The title for paypal is in the language file paypal.php

cheers

Bruce

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by fogma » Tue Sep 02, 2008 5:55 am

Slightly hacky method of solving this (default is stored in the code, rather than anywhere nice), however here goes....

In catalog\controller\checkout_payment.php change:

Code: Select all

$view->set('default', $session->get('payment_method'));
to

Code: Select all

    if ($session->get('payment_method') == "")
    {
      $view->set('default', 'paypal');
    }
    else
    {
      $view->set('default', $session->get('payment_method'));
    }
Obviously the default then becomes 'paypal'. If you want to choose a different default, then set this to the id of the radio button you want selected by default.

Same method applies for setting a default shipping method (in checkout_shipping.php).

Gary

New member

Posts

Joined
Wed Aug 13, 2008 4:16 am

Post by frame » Mon Dec 08, 2008 12:14 am

The default payment method works fine. Thank you!
I tried to change the checkout_shipping.php, inserted the following code but it doesn't work:

Code: Select all

if ($session->get('shipping_method') == "")
    {
      $view->set('default', 'zone');
    }
    else
    {
      $view->set('default', $session->get('shipping_method'));
    }
Could somebody tell me, what's wrong?
thanks

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by Qphoria » Mon Dec 08, 2008 12:56 am

because there are more than one zone. Look at the source code of your shipping page and you will likely see:
zone_2

so try that

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by frame » Mon Dec 08, 2008 2:26 am

Works!
Thank you again!

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm
Who is online

Users browsing this forum: No registered users and 4 guests