antonemery
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Manually set product to On Hold?Thanks so much! This worked great. Man, i really gotta learn more about the Woocommerce codebase and ecosystem.
Forum: Plugins
In reply to: [WooCommerce] Manually set product to On Hold?Sorry one more question, let me know if I should open a new issue. Your code above worked great in my custom plugin
So now what if I want to add a badge that is a div that says
On Hold
to each applicable product on the main/shop
page? Do I need to edit a template file, if so, which one? Or can that be done in a filter somehow in my custom plugin?Thanks!
Forum: Plugins
In reply to: [WooCommerce] Manually set product to On Hold?Thanks so much! I’ll give that a try
Forum: Plugins
In reply to: [WooCommerce] Woocommerce no longer auto sending Customer Invoice@anastas10s Thanks for the info. I did verify that the order processing template is enabled and the emails are not going to my spam/junk folder. Additionally, i disabled the plugin and did not receive an order receipt email.
I’m placing the order while logged into the site with my WP account. Could that make a difference?
thanks,
Anton Emery
Forum: Plugins
In reply to: [WooCommerce] Woocommerce no longer auto sending Customer InvoiceThanks @babylon1999, here is the system status.
### WordPress Environment ### WordPress address (URL): https://strumpdx.com Site address (URL): https://strumpdx.com WC Version: 7.0.0 REST API Version: ? 7.0.0 WC Blocks Version: ? 8.5.1 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: ? 6.0.2 - There is a newer version of WordPress available (6.0.3) WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.30 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 10000 cURL Version: 7.58.0 OpenSSL/1.1.1 SUHOSIN Installed: – MySQL Version: 5.7.39-42-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.0.0 WC Database Prefix: wp_ Total Database Size: 46.37MB Database Data Size: 34.34MB Database Index Size: 12.03MB wp_woocommerce_sessions: Data: 3.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.20MB + Index: 0.23MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 2.02MB + Index: 1.19MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 2.02MB + Index: 1.48MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.16MB + Index: 0.09MB + Engine InnoDB wp_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 5.02MB + Index: 0.19MB + Engine InnoDB wp_postmeta: Data: 12.06MB + Index: 3.64MB + Engine InnoDB wp_posts: Data: 3.09MB + Index: 0.64MB + Engine InnoDB wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_term_relationships: Data: 0.09MB + Index: 0.05MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_usermeta: Data: 1.44MB + Index: 1.86MB + Engine InnoDB wp_users: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpml_mails: Data: 0.50MB + Index: 0.00MB + Engine InnoDB wp_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_indexable: Data: 2.52MB + Index: 0.97MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.17MB + Index: 0.28MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.41MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 2948 condition_group: 1 custom_css: 3 customize_changeset: 1 flamingo_contact: 25 flamingo_inbound: 12 jobpost: 1 nav_menu_item: 28 oembed_cache: 1 page: 32 post: 7 product: 169 product_variation: 31 revision: 5 shop_order: 393 shop_order_refund: 8 sidebar: 1 tec_tc_attendee: 1 tec_tc_order: 2 tec_tc_ticket: 5 wp_global_styles: 1 wpforms: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (21) ### CB Change Mail Sender: by Md Abul Bashar – 1.2.2 Duplicate Page: by mndpsingh287 – 4.4.9 Easy Tables (vc): by WPBakery – 1.0.11 Envato Market: by Envato – 2.0.7 Event Tickets: by The Events Calendar – 5.5.2 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.7.0 Jetpack: by Automattic – 11.4 WPBakery Page Builder: by Michael M - WPBakery.com – 6.9.0 Mailchimp for WooCommerce: by Mailchimp – 2.7.3 Shopkeeper Extender: by GetBowtied – 1.6.9 Strum PDX Custom PHP: by Anton Emery – WooCommerce Brands: by WooCommerce – 1.6.38 WooCommerce Stripe Gateway: by WooCommerce – 6.9.0 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce Table Rate Shipping: by WooCommerce – 3.0.41 WooCommerce: by Automattic – 7.0.0 Yoast SEO: by Team Yoast – 19.4 WP Mail Logging: by Wysija – 1.10.4 WPForms Lite: by WPForms – 1.7.5.5 Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.7.9 Easy Forms for Mailchimp: by YIKES Inc. – 6.8.6 ### Inactive Plugins (3) ### Facebook for WooCommerce: by Facebook – 2.6.19 Smash Balloon Instagram Feed: by Smash Balloon – 6.0.6 WooCommerce Admin: by WooCommerce – 3.3.2 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (5) ### Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0 WP Engine Cache Plugin: by WP Engine – 1.1.0 WP Engine Seamless Login Plugin: by WP Engine – 1.6.0 WP Engine Security Auditor: by wpengine – 1.0.10 WP Engine System: by WP Engine – 5.0.1 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #2851 - /shop/ Cart: #6 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: #2900 - /terms-of-service/ ### Theme ### Name: Shopkeeper Version: 2.9.91 Author URL: https://www.getbowtied.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: shopkeeper/woocommerce/archive-product.php shopkeeper/woocommerce/checkout/form-coupon.php shopkeeper/woocommerce/checkout/form-login.php shopkeeper/woocommerce/content-product.php shopkeeper/woocommerce/content-single-product.php shopkeeper/woocommerce/global/quantity-input.php shopkeeper/woocommerce/global/sidebar.php shopkeeper/woocommerce/global/wrapper-end.php shopkeeper/woocommerce/global/wrapper-start.php shopkeeper/woocommerce/myaccount/form-login.php version 4.1.0 is out of date. The core version is 6.0.0 shopkeeper/woocommerce/single-product/add-to-cart/simple.php shopkeeper/woocommerce/single-product/product-image.php shopkeeper/woocommerce/single-product/product-thumbnails.php shopkeeper/woocommerce/single-product/tabs/tabs.php shopkeeper/woocommerce/single-product.php Outdated Templates: ? Learn how to update ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-10-29 19:28:07 -07:00 Options: ? Notes: 107 Onboarding: completed ### Action Scheduler ### Complete: 2,312 Oldest: 2022-09-28 10:19:56 -0700 Newest: 2022-10-29 08:23:12 -0700 Failed: 1,233 Oldest: 2022-09-11 15:49:42 -0700 Newest: 2022-09-16 10:23:19 -0700 Pending: 8 Oldest: 2022-10-29 09:23:12 -0700 Newest: 2022-11-04 20:47:07 -0700 ### Status report information ### Generated at: 2022-10-29 08:32:32 -07:00
Forum: Plugins
In reply to: [WooCommerce] Woocommerce no longer auto sending Customer Invoice@xue28 thanks for the reply and info! So it looks like I am not receiving a New Order email, at least when I purchased a test product. It was a product marked as virtual and downloadable, should that make a difference? Is there any other place the New Order email could have been disabled. Currently it emails the store owner by default. Is there a way to include the customer email as well? Something like
#{customer_email}
Forum: Plugins
In reply to: [WP REST Yoast Meta] Return Open Graph Data via API?I figured out it was some Templatera plugin whose shortcode id was messing with the Yoast results. Deactivated the plugin and everything is good to go.
Forum: Developing with WordPress
In reply to: Hook to redirect when single.php is loaded?Thanks, that worked!
Forum: Developing with WordPress
In reply to: Get full size img width/height from Post API queryMarking as resolved
Forum: Developing with WordPress
In reply to: Get full size img width/height from Post API queryI think that might work, just based on reading over it. I ended up putting together and solution based on this blog post. It is not quite the same, as they are getting the featured image and I want every Gutenberg block that is an image, as well as any short code blocks that use a certain image component.
function add_image_attrs() { register_rest_field('post', 'image-dimensions', array( 'get_callback' => 'getImageProperties', 'update_callback' => null, 'schema' => null, )); } add_action('rest_api_init', 'add_image_attrs'); function getImageProperties() { // current Post global $post; // regex to get all image ID's within Gutenberg post content, initialize $matches variable, set results to that $imageIds = array(); if(preg_match_all('<!-- wp:image {"id":(\d+)} -->', $post->post_content, $matches)) { array_push($imageIds, $matches[1]); }; if(preg_match_all('#wp-image-(\d+)#', $post->post_content, $matches)) { array_push($imageIds, $matches[1]); }; if (empty($matches[1])) { return; } // map over $matches array, get metadata using each ID, return ID, width, height $results = array_map(function($imageId) { $image = wp_get_attachment_metadata($imageId); return [ 'id'=>(int)$imageId, 'width'=>$image['width'], 'height'=>$image['height'] ]; }, $matches[1]); return $results; }
I hope perhaps it is useful to someone.
Forum: Fixing WordPress
In reply to: Trying to figure out what plugins this site is usingThanks, yea I viewed the source but it didn’t tell me much. It looks I was able to get a similar implementation working using the Search & Filter and the Toolset Types plugin.