ecommerce:toward_a_woocommerce_store
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ecommerce:toward_a_woocommerce_store [2021/10/20 23:32] – [Theme] mithat | ecommerce:toward_a_woocommerce_store [2021/10/30 00:48] (current) – [Stripe] mithat | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Theme ===== | ===== Theme ===== | ||
- | To get the presentation I wanted with the [[https:// | + | To get the presentation I wanted with the [[https:// |
* Change the brand typogrpahy. | * Change the brand typogrpahy. | ||
Line 11: | Line 11: | ||
* Use a copyright notice that was better suited for purpose. | * Use a copyright notice that was better suited for purpose. | ||
- | This meant changing the [[Storefront child theme style.css]] and [[Storefront child theme functions.php]] files using the Theme Editor. | + | This meant changing the [[Storefront child theme style.css|style.css]] and [[Storefront child theme functions.php|functions.php]] files for the child theme using the Theme Editor. |
- | ==== style.css | + | ===== Plugins ===== |
- | <file css style.css> | + | I have the following plugins activated: |
- | /* | + | * [[https:// |
- | Theme Name: Mithat's Storefront Child | + | |
- | Theme URI: n/a | + | * [[https:// |
- | Description: Storefront modified by mfk. | + | * [[https:// |
- | Author: Automattic/mfk | + | * A WooCommerce checkout gateway. The checkout gateway I originally set up is being discontinued, |
- | Author URI: https://mithatkonar.com | + | * [[https:// |
- | Template: storefront | + | * [[https:// |
- | Version: 0.1.0 | + | * [[https://wordpress.org/ |
- | */ | + | * [[https:// |
+ | * [[https://wordpress.org/ | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
- | /* make the brand bigger. */ | + | This is a fair amount of surface that could become problematic (e.g., becomes abandonware, |
- | .site-branding | + | |
- | / | + | |
- | / | + | |
- | font-size: 1.6em; | + | |
- | letter-spacing: | + | |
- | line-height: | + | |
- | } | + | |
- | /* change bag icon to cart, from */ | + | ===== Payment Gateways ===== |
- | /* https:// | + | The following are some candidates. |
- | .site-header-cart .cart-contents: | + | |
- | .storefront-handheld-footer-bar ul li.cart > a:before { | + | |
- | content: " | + | |
- | } | + | |
- | /* remove homepage categories title. */ | + | ==== WooCommerce payments ==== |
- | .storefront-product-categories | + | |
+ | * [[https:// | ||
+ | * By WooCommerce. | ||
+ | * 2.9% + $0.30 USD per transaction for U.S. issued card. | ||
+ | * 3.5 stars on WordPress out of ~20 reviews. | ||
+ | * No rating on WooCommerce. | ||
- | </file> | + | ==== Stripe ==== |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * By WooCommerce. | ||
+ | * 2.9% + 30¢ per successful card charge (from [[https:// | ||
+ | * 3 stars on WordPress out of 100+ reviews. | ||
+ | * 3.2 stars on WooCommerce out of ~75 reviews. | ||
- | ==== functions.php | + | ==== Square |
- | Hack to get the copyright line to appear as I want. | + | * [[https://woocommerce.com/products/square/?quid=bf2c2dc2ae88c615ec79f71d416b028e|WooCommerce]] |
- | + | * [[https://wordpress.org/plugins/ | |
- | <file php functions.php> | + | * By WooCommerce. |
- | <?php | + | * 2.9% + 30¢ (from [[https://squareup.com/us/en/payments/our-fees|here]]). |
- | // Exit if accessed directly | + | * 1.5 stars on WordPress out of ~75 reviews. |
- | if ( !defined( ' | + | * No rating on WooCommerce. |
- | + | ||
- | // BEGIN ENQUEUE PARENT ACTION | + | |
- | // AUTO GENERATED - Do not modify or remove comment markers above or below: | + | |
- | + | ||
- | // END ENQUEUE PARENT ACTION | + | |
- | + | ||
- | /* | + | |
- | * MFK Storefront customizations | + | |
- | * Mithat Konar | + | |
- | */ | + | |
- | + | ||
- | /* Replace copyright info. */ | + | |
- | //storefront_credit is a " | + | |
- | function storefront_credit() { | + | |
- | | + | |
- | <div class=" | + | |
- | | + | |
- | </ | + | |
- | <?php | + | |
- | } | + | |
- | + | ||
- | /* Disable different address checked by default. | + | |
- | * From https://metorik.com/blog/change-woocommerce-ship-to-a-different-address-default | + | |
- | | + | |
- | */ | + | |
- | // | + | |
- | + | ||
- | /* Number of categories on homepage. */ | + | |
- | add_filter(' | + | |
- | function custom_storefront_category_per_page( $args ) { | + | |
- | $args[' | + | |
- | $args[' | + | |
- | | + | |
- | } | + | |
- | + | ||
- | /* Change titles of homepage sections */ | + | |
- | // Featured products | + | |
- | add_filter( ' | + | |
- | function custom_storefront_product_featured_title( $args ) { | + | |
- | $args[' | + | |
- | return $args; | + | |
- | } | + | |
- | + | ||
- | // Recent (new) products title | + | |
- | add_filter( ' | + | |
- | function custom_storefront_product_recent_products_title( $args ) { | + | |
- | $args[' | + | |
- | return $args; | + | |
- | } | + | |
- | + | ||
- | /* Fonts */ | + | |
- | // From http://www.fix-css.com/2016/09/remove-google-fonts-form-woo-storefront-theme/ | + | |
- | // Remove Google Font from Storefront theme | + | |
- | /* | + | |
- | function iggy_child_styles() { | + | |
- | wp_dequeue_style(' | + | |
- | add_filter( ' | + | |
- | wp_enqueue_style(' | + | |
- | } | + | |
- | add_action( ' | + | |
- | */ | + | |
- | + | ||
- | // If you just need to change Google font from default one, you may use the snippet taken from here. | + | |
- | /* | + | |
- | add_filter( ' | + | |
- | function my_font_families( $family ) { | + | |
- | //$family = []; // mfk to get rid of Source Sans Pro, which isn't gotten rid of anyway though it's not in HTML | + | |
- | $family[' | + | |
- | return $family; | + | |
- | } | + | |
- | */ | + | |
- | </ | + |
ecommerce/toward_a_woocommerce_store.1634772741.txt.gz · Last modified: 2021/10/20 23:32 by mithat