Category: Uncategorized

  • Notes: Webpack in WordPress Gutenberg

    I am currently having issues where I cannot get webpack to work and I get this error. The only remedy I’ve found is move @wordpress/scripts from devDependencies to dependencies. Also, move other webpack related things from devDependencies to dependencies and that should clear up the errors. Why this is? I do not know yet.

  • Article: Dealing with code block

    Whenever. You have like a day where you want to have off, or you have just like a day where you’re not feeling it. It might just be code block. And then whenever I have code block, I drink some beer, then my code block goes away, and then I’m mysteriously fix all my problems…

  • Work Log: Using WC Blocks Slot Fills for Shipping Information – Part 1

    This project is contingent upon being able to have the information being added into the REST API post which creates the $order object. If I can get it there then it’ll be sent to the admin part of WordPress which will then be able to be viewed by the client. I know that when I…

  • Documenting: Modifying The WooCommerce-Blocks checkout process. Part 2

    For the checkout process I am trying to figure out where the shipping information is held locally. “Sets shipping address locally, as opposed to updateCustomerData which sends it to the server.” I can’t figure out how to preserve the Redux log to see the event occurirng when the button is pressed so I guess I’m…

  • Documenting: Making Attribute Filter work on Category Page – Part 2

    In the prior post, I made the point that it would be easier to use the rendering method All Products was using and then modify it with React on re-render as it is going to need pagination. Not to mention, that there could be possible 100’s of products with a certain attribute and I don’t…

  • Documenting: Making Attribute Filter work on Category Page – Part 1

    This video is useful for editing the category page. Okay, so I found out that hasFilterableProducts. The has_filterable_products is in php files, with the file AllProducts.php. If I want similar logic to occur on the Categories I need to to has_filterable_product to ProductCategories.php in a way that AllProducts.php is. I realized getSettingWithCoercion is related to…

  • Comprehensive Process of attribute-filter of WooCommerce Blocks.

    Okay the main thing is attributeTerms. Which is declared as results from a useCollection hooks call as: attributeTerms is then an object which is iterated upon. Then that object is the initial load then it is refreshed based on DOM events. … For the showing of the count: ….. I think, that the block for…

  • Documentation: Woocommerce-Blocks Filters Blocks

    useCollection: Appears to be a base hook. Which appears to be coming from this file. Described as a hook for wiring up a component to a collection route. “Queries are performed using useCollection hooks” useQueryStateByContext: A custom hook that exposes the current query state and a setter for the query state store for the given…

  • Documenting: Reverse Engineering Kemet

    So I need to load up what the website looks like before the addition and see what was added exactly. I am viewing the GitHub repo which I forked and making observations of it. “Enable Sticky Header” functionality < commit 6 It looks like the commit for ‘mobile logo’ is the main scaffold to add…

  • Guides: How I Document

    Whenever I am searching and I cannot find the answer I am looking for, I then that same query into my Documenting article. Such as “Make Menu full-width with Full Site Editing”. I then go through the process of documenting me doing that. Sometimes when I’m working on code and in the zone I don’t…