Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v:2.0:templates [2017/06/14 15:50] – [Other Common Customizations] marija | v:2.0:templates [2025/06/03 21:44] (current) – [Minor Styling Customizations] foxybrett | ||
---|---|---|---|
Line 35: | Line 35: | ||
* Adding a Terms of Service (TOS) checkbox and link. | * Adding a Terms of Service (TOS) checkbox and link. | ||
* Newsletter opt-in checkbox. | * Newsletter opt-in checkbox. | ||
- | * Color settings to control the major color styles on the cart, checkout and receipt. | + | * Color settings to control the major color styles on the cart, checkout and receipt. To change the color of all your buttons, take a look at [[v: |
* Product option hiding. You can hide product options or your own custom product options using the '' | * Product option hiding. You can hide product options or your own custom product options using the '' | ||
- | * Customize what credit | + | * Customize |
- | * Credit card security code requirements. (Required, optional, etc.) | + | * Credit card security code requirements. (Required, optional, etc.) [[v: |
* Change what billing checkout fields are required and displayed. (Don't collect the address info if you aren't shipping. Require a phone field. Etc.) Note: If you have shippable products present in the cart, the complete shipping address is always require. | * Change what billing checkout fields are required and displayed. (Don't collect the address info if you aren't shipping. Require a phone field. Etc.) Note: If you have shippable products present in the cart, the complete shipping address is always require. | ||
* Add custom content (HTML, JS) to your templates, for custom styles, tracking codes or custom fields on your checkout. | * Add custom content (HTML, JS) to your templates, for custom styles, tracking codes or custom fields on your checkout. | ||
* Enable debug logging to your browsers console. | * Enable debug logging to your browsers console. | ||
- | * Shipping and billing country/ | + | * Shipping and billing country/ |
+ | ==== Minor Language Customizations ==== | ||
+ | |||
+ | Much of the language of the Foxy cart, checkout, and receipt can be modified in the TEMPLATES [[https:// | ||
==== Minor Styling Customizations ==== | ==== Minor Styling Customizations ==== | ||
Using the custom code template setting, it's now possible to add CSS and javascript to your templates //without needing to modify the templates themselves// | Using the custom code template setting, it's now possible to add CSS and javascript to your templates //without needing to modify the templates themselves// | ||
- | You can customize your styling | + | You can customize your styling |
< | < | ||
Line 70: | Line 73: | ||
* [[https:// | * [[https:// | ||
- | If you want to really customize, read on! | + | |
+ | ==== Customising the SVG Icons ==== | ||
+ | |||
+ | Within the cart and checkout there are a few instances of SVG icons that are used for things like arrows and padlocks. Styling these elements are a little different than above, as you need to target the source element of the icon and alter it using '' | ||
+ | |||
+ | <code css> | ||
+ | /* Used within continue shopping button on full-page cart/ | ||
+ | #fc .fa-angle-double-left, | ||
+ | #fc .fc-cancel-continue-shopping svg { | ||
+ | fill: #666; | ||
+ | } | ||
+ | /* Used within continue shopping button on sidecart */ | ||
+ | #fc .fa-caret-left, | ||
+ | #fc .fc-sidecart-only-fixed .fc-fixed-button-left svg { | ||
+ | fill: #FFF; | ||
+ | } | ||
+ | /* Used within top proceed to checkout button on sidecart */ | ||
+ | #fc .fa-caret-right, | ||
+ | [data-fc-sidecart] #fc .fa-caret-right, | ||
+ | #fc .fc-sidecart-only-fixed .fc-fixed-button-right svg { | ||
+ | fill: #888; | ||
+ | } | ||
+ | /* Used within bottom proceed to checkout button on sidecart and credit card field on tablet/ | ||
+ | #fc .fa-lock, | ||
+ | #fc-cart .fc-action--checkout--button svg, | ||
+ | #fc .fc-checkout__section--payment svg.fc-svg-icon--lock { | ||
+ | fill: #C1DB9B; | ||
+ | } | ||
+ | /* Used within payments section on full-size checkout */ | ||
+ | #fc .fa-lock-large, | ||
+ | #fc .fc-checkout__section--payment svg# | ||
+ | fill: #EEE; | ||
+ | } | ||
+ | /* Used within remove coupon option */ | ||
+ | #fc .fa-times-circle, | ||
+ | #fc .fc-transaction__discounts .fc-action--close svg { | ||
+ | fill: #666; | ||
+ | } | ||
+ | /* Used within shipping fields on sidecart */ | ||
+ | #fc .fa-truck, | ||
+ | #fc .fc-address-entry svg { | ||
+ | fill: #999; | ||
+ | } | ||
+ | /* Used within tax fields on sidecart */ | ||
+ | #fc .fa-bank, | ||
+ | #fc .fc-address-entry svg { | ||
+ | fill: #999; | ||
+ | } | ||
+ | /* Used within address validation modal */ | ||
+ | #fc .fa-map-marker { | ||
+ | fill: #999; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Use any of the applicable CSS rules above, altering the fill color code to customise as needed. | ||
+ | |||
+ | |||
+ | ==== Common responsive CSS media queries ==== | ||
+ | |||
+ | If you are adding custom styles, you may have a need to apply different styles based on the viewport the user is using. The following are the common media queries we utilise in our default styles to match into similar break points as us. You would just need to use the specific queries here based on your specific style requirements: | ||
+ | |||
+ | <code css> | ||
+ | @media (max-width: 480px) { | ||
+ | |||
+ | } | ||
+ | @media (min-width: 768px) { | ||
+ | |||
+ | } | ||
+ | @media (min-width: 768px) and (max-width: 991px) { | ||
+ | |||
+ | } | ||
+ | @media (min-width: 992px) { | ||
+ | |||
+ | } | ||
+ | @media (min-width: 992px) and (max-width: 1199px) { | ||
+ | |||
+ | } | ||
+ | @media (min-width: 1200px) { | ||
+ | |||
+ | } | ||
+ | </ |