Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Move Amazon Payments Button?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-07-2017, 01:27 AM
 
Stormer Stormer is offline
 

Member
  
Join Date: May 2016
Posts: 15
 

Default Move Amazon Payments Button?

Hello,

How do I move the Amazon Payments button? It's appearing in the top right-hand corner of my template and I'd like it to appear under the payment methods (which seems more logical).

Thank you.
__________________
X-Cart 5.3
Reply With Quote
  #2  
Old 06-07-2017, 01:48 AM
 
Stormer Stormer is offline
 

Member
  
Join Date: May 2016
Posts: 15
 

Default Re: Move Amazon Payments Button?

Quote:
Originally Posted by Stormer
Hello,

How do I move the Amazon Payments button? It's appearing in the top right-hand corner of my template and I'd like it to appear under the payment methods (which seems more logical).

Thank you.

I did it by dropping the following code:

Code:
{% if this.isPayWithAmazonActive() %} <div id="payWithAmazonDiv_co_btn" class="pay-with-amazon-button"></div> {% endif %}

in "mytheme/customer/checkout/steps/shipping/parts/paymentMethodsList.twig"
__________________
X-Cart 5.3
Reply With Quote
  #3  
Old 06-15-2017, 01:04 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Move Amazon Payments Button?

This template is displayed by \XLite\Module\Amazon\PayWithAmazon\View\CheckoutBu tton widget.

Replacing the template file through a custom theme will work, but a better solution would be decorating the widget class from a custom module and making its isVisible() method always return FALSE - this will hide the whole widget, not just the HTML part.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:23 AM.

   

 
X-Cart forums © 2001-2020