-
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…
-
Work Notes: Creating a custom WordPress API to interact frontend with the backend.
I would like to make a control panel of what components to render on the frontend but I can’t get the attributes on the frontend with the ease I would like. I should be able to post to the API in the editor using privileged credentials. And the API will be able to be viewed…
-
Work Notes: Creating a control panel for WooCommerce Blocks checkout blocks.
I need to focus on getting the children param because that’s where a bunch of attributes are going to be which I can’t normally access from the frontend without the children prop. Notice if you would like to know why the checkbox is rendered underneath the contact block it because of two things within the…
-
Article: Writing to Devs for Help on an issue.
I am trying to contribute to this project and I got all of the Twitter handles and some the emails of people who contributes often and I wrote to them and I only heard back from one person and they told me to make an create an issue on the repo. Although, making an issue…