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

Add credit card images to STRIPE

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 01-20-2016, 01:56 PM
 
mdemuysere mdemuysere is offline
 

Member
  
Join Date: Jul 2015
Posts: 11
 

Default Add credit card images to STRIPE

Is there a way to add credit card images like the paypal image w/ mastercard, visa , etc. to the checkout screen under stripe.


Currently I edited it in sorting/descriptions to say Credit Card, and then mastercard visa etc underneath, but this looks very unprofessional.


Thanks!
__________________
Xcart 5.2.10
Reply With Quote
  #2  
Old 01-20-2016, 11:43 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Add credit card images to STRIPE

You can add the logos via custom CSS.

Go to the Look & Feel -> Custom CSS page, tick "Use custom css" and add the following code:
Code:
/* Credit card logos */ ul.payments li:nth-child(1) .payment-title:after { content: ' '; display: block; width: 100%; height: 24px; background: url(http://www.kingsleypress.com/images/companies/1/PMccpaymentIcons.png) no-repeat left bottom; background-size: contain; }
, where:
- replace "1" in the "nth-child(1)" with the actual number of Stripe among other available payment methods;
- upload your "credit card icons" image to the server and put its URL into the "background: url()" line (don't use the code as is because it loads the image from a 3rd-party website - they may be not happy with you doing this!)
__________________
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

The following user thanks qualiteam for this useful post:
Chris Hetzler (01-23-2018)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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 02:01 AM.

   

 
X-Cart forums © 2001-2020