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?
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?
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

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


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
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
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:
to
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
In catalog\controller\checkout_payment.php change:
Code: Select all
$view->set('default', $session->get('payment_method'));
Code: Select all
if ($session->get('payment_method') == "")
{
$view->set('default', 'paypal');
}
else
{
$view->set('default', $session->get('payment_method'));
}
Same method applies for setting a default shipping method (in checkout_shipping.php).
Gary
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:
Could somebody tell me, what's wrong?
thanks
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'));
}
thanks
Who is online
Users browsing this forum: No registered users and 4 guests