-
Work Notes: Building a Contractor Buddy for Contract Truckers – Part 4
[x] 51cxt8 – Work on the UI for the scheduling. [ ] 852vsm – Quickbooks plugin to tie Trucking Buddy with Quickbooks. [ ] 95fs – I need to make dev url and prod url. [ ] 418fs – Backup, import and export receipt information ideally in a way which can be imported by Quickbooks.…
-
Building an Upload Component for uploadthing
I guess I just have to figure out how to post to imageUploader from, ‘src/server/uploadthing.ts’. I am going to try to get rid of the generate component block logic and import each manually. Okay, I rewrote the component to: This is the only example I found which I can fanaggle it. A list of components…
-
Lesson: Accessing v2 API of WooCommerce from different roles.
Only administrators can access the v2 api of WooCommerce, instead of wasting your time to try to get a custom role to do this just use a php call and pipe in the values via an enqueue_script and a localize_script.
-
Work Notes: Adding Custom Meta data to the Cart, WooCommerce Blocks, .js
This is how you add custom meta data to a cart in WooCommerce using JavaScript(React). The php: The React: Now we have to add it to the post meta so that we know what order the product has. I am fascinated by this line: I may use $order->update_post_meta, as seen here but for now I’m…
-
Work Notes: Setting up OTA updates for WordPress plugins
So I have to have the plugin on my server, here is the link to the zip which is publicly available. (https://ec.wp2mag.com/ec-plus-fundraiser/zips/ec-plus-fundraiser.zip) The official* docs on this topic. … I like this testing functionality to check if a php function is being fired in relation to the page:
-
Article: Don’t use saveEntityRecord for saving user meta within WordPress Gutenberg
I am trying to get something like this working: I tried to use saveEntityRecord for changing user meta and it didn’t work. In order to change user meta you have to register_meta in php with show in rest set to true. Then, use a POST request to post to the endpoint with the body of…
-
Guide: How I structure my WP Gutenberg & WC Blocks project
The build process is reliant upon the editorScript param within the block.json Then it runs the checkoutRegisterBlock and registerBlockType. Whats in the build folder are blocks. I always prepend it with checkout-block- to know the naming scheme and how the block is shown differently. I’ve yet to add the slot fill on the editor side…
-
Work notes: Building a ‘Barebones’ theme for better cURL output
I had this problem in another post: “Seeing what’s in the checkout page, I need to work hard to get that checkout page as small as plausible to make it easier for me to consume. There’s so much boilerplate/cruft that I’m probably going to have to make a “clean space” to put the outputs I…
-
Work Notes: EC Refactor 2 – Part 2
I also have to make a demo site but I don’t feel like making a WordPress site for this so I’ll probably end up making a SPA for the checkout and edit checkout page to demonstrate functionality. y5397: Script for walk through video Step 1: Get the plugin on your computer and upload it to…
-
Work Notes: Using local storage to share state between Gutenberg Blocks.
I managed to have it work but it’s not updating from the original value unless I delete the Local Storage value. I still need to get it working where a useEffect can change the value within Local Storage. I wanted to try a new solution because I wanted to share the results of an http…