Giter Site home page Giter Site logo

bobbingwide / sg-motorsport Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 496 KB

WordPress child theme of WooCommerce’s Storefront

Home Page: https://sgmotorsport.biz

License: GNU General Public License v3.0

PHP 73.81% CSS 26.19%
storefront-childtheme woocommerce-theme wordpress-child-theme

sg-motorsport's Introduction

Herb Miller

  • I'm planning on retiring when I reach State Pension Age.
  • I'm working on reducing unnecessary tasks.
  • I'm in the process of closing down WP-a2z - the domain names have already expired!

I'm still working on a number of WordPress related projects

  • oik-ai - my AI tool

  • But I've reduced the list of plugins and themes that I'm currently working on

WordPress Full Site Editing themes:

  • SB - Second Byte: Seriously Bonkers' experimental Full Site Editing theme.
  • Written - An experimental FSE theme to replace Genesis-hm
  • tt4ai - Child theme of Twenty Twenty-Four for writing about AI

WordPress plugins:

  • oik-bwtrace - Debug trace for WordPress - improvements for performance measurements
  • SB-Chart-block - A single block plugin to display Charts from CSV content.
  • Slog - An addon to my oik-bwtrace plugin to analyse daily trace summary reports and compare results.
  • SB-field-block - Field block to edit and display post meta data.
  • oik-unloader - WordPress Must Use plugin to unload unnecessary plugins on demand
  • gbcptedit - Gutenberg Custom Post Type edit
  • field-block-for-acf-pro - ACF Field block

Updated 21st June 2024

sg-motorsport's People

Contributors

bobbingwide avatar

Watchers

 avatar  avatar

sg-motorsport's Issues

Support co-existence of [bw_contact_form] with Easy WP SMTP

Requirement

Use [bw_contact_form] shortcode in conjunction with easy-wp-smtp.

Explanation

The Easy WP SMTP plugin overrides the from email address (and optionally name) with its own value.
This means that the email sent using [bw_contact_form] does not contain the form submitter's email address. Obviously this information is needed in order to construct a reply.

Solution

Include the following code in functions.php

add_filter( 'bw_email_message', 'sgm_bw_email_message', 11, 2 );
/**
 * Appends From email and contact name to the contact form message
 * 
 * Needed since easy-wp-smtp overrides the From email address.      
 * Since we're in the 'bw_email_message' filter we expect bw_replace_fields to be available.
 *  
 * @param string $message the email content
 * @param array $fields array of name value pairs
 * @return string updated message 
 */
function sgm_bw_email_message( $message, $fields ) {
	bw_trace2();
	$extra_bits = bw_replace_fields( "<br />From: %from%<br />Name: %contact%", $fields );
	$message .= $extra_bits;
	return $message;
}

Create new theme to replace Canvas

Canvas is being replaced by Storefront. We need to create a new child theme using Storefront as the template.

Requirements

  • Support shortcodes
  • Support checkout customisations - currently implemented using a plugin
  • Needs custom CSS for responsive styling of extension plugin components.
  • Needs custom CSS for styling on the iPhone 4S and other small devices

If required,

  • Support caching and optimisation plugins

Implement quantity field for home and shop page

We need to continue to support the ability to choose the quantity when adding to the cart from the home or shop page.

Current implementation

https://github.com/bobbingwide/woocommerce-thumbnail-input-quantities
doesn't actually work. It displays the quantity field but doesn't pass the value through.

Proposed solution

https://wordpress.org/plugins/quantity-field-on-shop-page-for-woocommerce
works. But

  • it produces Notices when WP_DEBUG true
  • it has more code than we need

So, rather than change it, we can just copy the relevant code to the child theme.

Since in the current implementation the add to cart functionality takes the user to the Shopping cart
we don't need any special AJAX logic to update the values or messages on the current page.
So all we need to do is to implement the logic for the filter 'woocommerce_loop_add_to_cart_link.

The wordpress.org plugin called quantity-field-on-shop-page-for-woocommerce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.