I have just enabled Paypal Express and have the button displayed on the cart and checkout pages. However, paypal express is also listed as a payment option when you reach the checkout in the payment methods radio selection which kinda defeats the point of having the button displayed.
Is it possible to remove it?
I think this would be an amendment in the controller/checkout/payment_method.php file? just not 100% sure how I would implement it.
opencart 3.0.2.0
Why give customers less choice of what method to use?
It's been shown that more payment methods = more sales.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
What I am looking to achieve is removal of the duplicate listing as a payment option.
This is how it looks at the moment
Paymentsense
Paypal express checkout
Paypal
Bank transfer
Paypal express button
Doesnt make any sense to have it listed twice.
opencart 3.0.2.0
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Haha well, it can be the only way on rare occasions!
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
{% if payment_methods %}
<p>{{ text_payment_method }}</p>
{% for payment_method in payment_methods %}
<div class="radio">
<label>{% if payment_method.code == code or not code %}
{% set code = payment_method.code %}
<input type="radio" name="payment_method" value="{{ payment_method.code }}" checked="checked" />
{% else %}
<input type="radio" name="payment_method" value="{{ payment_method.code }}" />
{% endif %}
{{ payment_method.title }}
{% if payment_method.terms %}
({{ payment_method.terms }})
{% endif %} </label>
</div>
{% endfor %}
{% endif %}
Is the code in question. I am a Twig novice but looking at what you can do with it wouldn't something like
{% if payment_method.code == pp_express %}
<input type="hidden"...
So hiding the payment option from the radio list.
opencart 3.0.2.0
One way to find out ...
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I did manage to do this in my one-page checkout in the payment method by checking in the payment method routine for pp_express and then basically telling it to skip that and load the rest.
opencart 3.0.2.0
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Not sure what that would do to your quotes in cart though.
Code: Select all
if ($this->config->get('module_pp_button_status')) {
$status = false;
}
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 345 guests