It's looking like the CSS for PayPal Commerce isn't quite matching up to Colossus. Do I need to modify the CSS or the template or both?
Announcement
Collapse
No announcement yet.
PayPal Commerce CSS for Colossus
Collapse
X
-
PayPal Commerce CSS for Colossus
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
Originally posted by lesliekirk View PostIt's looking like the CSS for PayPal Commerce isn't quite matching up to Colossus. Do I need to modify the CSS or the template or both?
Code:div#paypalcp-cc-name.paypalcp-cc-field.paypalcp-cc-name-field, div#paypalcp-cc-number.paypalcp-cc-field.paypalcp-cc-number-field, div#paypalcp-cc-exp.paypalcp-cc-field.paypalcp-cc-exp-field, div#paypalcp-cc-cvv.paypalcp-cc-field.paypalcp-cc-cvv-field { display: block; width: 100%; height: calc(3.5em - 2px); margin-bottom: 0.25em; padding: 0; position: relative; background-color: #fff; border: 1px solid #c0c0c0; border-radius: 0.125em; } #payment-fields label { width: 100%; max-width: 33%; margin-right: 0; } div#paypalcp-cc-name.paypalcp-cc-field.paypalcp-cc-name-field input { display: inline-block; width: 100%; height: 100%; max-width: none; border: 0 none; box-sizing: border-box; -moz-appearance: none; -webkit-appearance: none; appearance: none; }
N54L3E.pngLeslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
-
Hi Leslie,
You are correct, the CSS does need to be modified to fit the look and feel of any non-Shadows based site or if the Shadows based site is highly customized.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Hey Leslie, I've added this to Colossus. Here's a copy of the css. It did take some tweaking.
Code:#payment-fields .paypalcp-cc-name-field, #payment-fields .paypalcp-cc-number-field, #payment-fields .paypalcp-cc-exp-field, #payment-fields .paypalcp-cc-cvv-field { display: block; width: 100%; height: calc(3.5em - 2px); margin-bottom: 0.25em; padding: 0; position: relative; background-color: #fff; border: 1px solid #c0c0c0; border-radius: 0.125em; } #payment-fields label { width: 100%; max-width: 33%; margin-right: 0; } #payment-fields .paypalcp-cc-name-field input { display: inline-block; width: 100%; height: 100%; max-width: none; border: 0 none; box-sizing: border-box; -moz-appearance: none; -webkit-appearance: none; appearance: none; } .t-payment-form .c-form-input--cvv { max-width: none; } .t-payment-form .t-data-cvv { margin-left: 0.5rem; }
Ron Frigon
Jedi Webmaster Obi-Ron Kenobi
Comment
-
Thanks, Ron. I had already tried that first (it wasn't what I needed). I don't think my page has the ID payment-fields - I did discover it looks to have 3 that I've been working with.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Originally posted by Matt Zimmermann View PostHi Leslie,
You are correct, the CSS does need to be modified to fit the look and feel of any non-Shadows based site or if the Shadows based site is highly customized.
I'm stuck on converting a couple of the classes and still have the look & feel from the screenshot I included.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Hi Leslie,
I do not have a demo site using Colossus with PayPal Commerce. Maybe someone in the community has a live site they can share here.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Originally posted by Matt Zimmermann View PostHi Leslie,
I do not have a demo site using Colossus with PayPal Commerce. Maybe someone in the community has a live site they can share here.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
So here's what I did. I set up a branch and installed Shadows 2.0, removed the demo categories, and worked with the OPAY screen. The CSS that installed with PayPal Commerce wasn't quite up to snuff. Here's what I used
Code:#payment-fields .paypalcp-cc-exp-field, #payment-fields .paypalcp-cc-cvv-field, #payment-fields .paypalcp-cc-number-field, #payment-fields .paypalcp-cc-name-field { display: block; width: 100%; height: calc(3.5em - 2px); margin-bottom: 0.25em; padding: 0; position: relative; background-color: #fff; border: 1px solid #c0c0c0; border-radius: 0.125em; } #payment-fields label { width: 100%; max-width: 33%; margin-right: 0; } #payment-fields .paypalcp-cc-name-field input { display: inline-block; width: 100%; height: 100%; max-width: none; border: 0 none; box-sizing: border-box; -moz-appearance: none; -webkit-appearance: none; appearance: none; }
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
I'm close, really close but the CVV info message doesn't work. I'm getting a drop-down message saying One or more fields are invalid.
cuMwaz.png
FWIW, the dev branch (Shadows 2.0) works as expected.
Attached FilesLeslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Hi Leslie,
Make sure the button for the "What's This?" has the attribute type="button"Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Originally posted by Matt Zimmermann View PostHi Leslie,
Make sure the button for the "What's This?" has the attribute type="button"
Code:<button class="c-button c-button--small c-button--clear u-bg-transparent x-messages--info" data-mini-modal data-mini-modal-type="inline" data-mini-modal-content="data-cvv" title="Card Security Code Information">What's This? <span class="u-icon-question"></span></button>
Code:<button class="c-button c-button--small c-button--clear u-bg-transparent x-messages--info" data-mini-modal data-mini-modal-type="inline" data-mini-modal-content="data-cvv" title="Card Security Code Information" type="button">What's This? <span class="u-icon-question"></span></button>
Now nothing happens...
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Hi Leslie,
This may be related to a similar issue that was discovered in Shadows [https://github.com/mivaecommerce/rea...dows/issues/73]. Try updating your OPAY Page Template with the following [https://gist.github.com/influxweb/73...8c08a530bcf46e] and make the CSS adjustment mentioned in the Shadows link.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Originally posted by Matt Zimmermann View PostHi Leslie,
This may be related to a similar issue that was discovered in Shadows [https://github.com/mivaecommerce/rea...dows/issues/73]. Try updating your OPAY Page Template with the following [https://gist.github.com/influxweb/73...8c08a530bcf46e] and make the CSS adjustment mentioned in the Shadows link.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Matt Zimmermann I had to tweak the <ul> for the CSS that both Ron & I have had to use.
Code:<mvt:else> <ul id="payment-fields" class="c-form-list o-layout u-grids-1 u-text-bold u-text-uppercase t-payment-form t-&mvt:global:payment_module_class;"> <mvt:foreach array="payment:fields" iterator="field">
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment