I’ve been coding a WP plugin for Calculating the square inch total volume for an order and send it via custom field to Shipstation: I uploaded it via SFTP to the sites files and it shows up on WP but when I click activate I get a fatal error: Fatal error: Uncaught Error: Call to a member function get_cart() on
Tag: plugins
Alternative to wp_update_post() in WordPress REST API
I’m a beginner and I’m trying to write a Wordpress Plugin in PHP to auto-update content on multiple pages. I managed to make it work, it updates correctly, however it breaks multiple page options (controlled by the theme). I believe it’s caused by the wp_update_post() function. I’m looking for the REST API equivalent of this, since it works successfully when
Display a custom message if there are more than 25 products in shopping cart (OpenCart)
I have an OpenCart online market for CD’s. I want when you add some products to the cart and go to the shopping cart page if you are buying more than (>=) 25 products(CD’s) to display message “Please contact us for Delivery Price of more than 25 CD’s.”. Is there some plugin that can use for it or some other
WordPress plugin approval standards: ## Calling file locations poorly
I’ve submitted a widget to Wordpress.org and received this guidance: The way your plugin is referencing other files is not going to work with all setups of WordPress. When you hardcode in paths like wp-content or your plugin folder name, or assume that everyone has WordPress in the root of their domain, you cause anyone using ‘Giving WordPress it’s own
Removing Hello Dolly Actually Breaks my WordPress Site
Well this is new to me, and quite confusing as my curious mind seeks for a resolution. Hello Dolly does NOT display as a plugin option in my list of plugins within the wordpress location. Within Cpanel in the plugins folder, “Hello” is the name of the plugin (folder) that exists. If I remove this folder, I then get a
How do I set custom product meta on a new product using WooCommerce Core?
I’m adding new products (car listings) to my WooCommerce shop in bulk in PHP. I’m looping through rows in a custom data table and adding them as WooCommerce products. I’m able to save each product and …
add_submenu_page in WordPress
When using the add_submenu_page to create a new submenu in WooCommerce, I get “Cannot modify header information – headers already sent”. The add_submenu_page is as follows: Changing that to the following removes the “Cannot modify header information – headers already sent” errors but fails to render callback function properly: The slp_settings_page callback function, in turn, renders an instance of WP_List_Table
How to extend Shopware 6 controller action
I am building a plugin for Shopware 6 and cannot seem to find any documentation as to how to extend an existing controller action. I found this How to add an Action to Account Controller in Shopware but it seems to refer to Shopware 5 and I am not sure I can use it that way in Shopware 6. The
Cannot Upload .GLB to WordPress Media Location
This is not a quick failure, I have spent a totally of 5 completely full days trying to figure this out. Initially I was limited by file size and then file type; in which I removed the Wordpress restrictions and am now “capable” of uploading my 177MB .glb file to Wordpress. However when doing so, I receive the following error:
Google Calendar API PHP | GOOGLE_APPLICATION_CREDENTIALS: file xxx.json does not exist
I’m pretty new at this but I’ve been trying to use the google calendar API to show upcoming events on a website I’m making. So far I’ve enabled the API and created a service account to access the …