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
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 […]
Private Work Notes: Making a Fundraiser with realtime functionality – Part 1
Alright, so how am I going to do this? I need to do the hardest parts first. I think I’ll use GPLv3 but not put it on GitHub or just make sure all rights are reserved. But the plan is to use GiveWP GitHub project and add the modifications I need and then redistribute it […]
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: EC Refactor 2 – Part 1
toDo: I still haven’t connected or checked the Extension Data fully. The results, the results of like order and like, what a relates to the custom fields of all of it on the extended checkout us. I still want that to be in the control panel and that be like, under, like orders. There will […]
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 […]