Mercedes
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Order Not showing Up in WooCommerce OrdersI tried opening the link and it took me to an auto draft of a post.
This is the error log I have too.
2023-11-16T21:00:42+00:00 CRITICAL require_once(): Failed opening required ‘/home/e772bvw0s4xp/public_html/cabotinkjet.com/wp-content/themes/Divi/includes/builder/framework.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in /home/e772bvw0s4xp/public_html/cabotinkjet.com/wp-content/themes/Divi/et-pagebuilder/et-pagebuilder.php on line 13
Forum: Plugins
In reply to: [Hide Category by User Role for WooCommerce] Causing Error on ProductsThis is the error message I am receiving.
/plugins/hide-category-by-user-role-for-woocommerce/public/public-ui-setup.php on line 154
Forum: Plugins
In reply to: [Hide Category by User Role for WooCommerce] Causing Error on ProductsHide Category by User Role for WooCommerce V1.4.1
` WordPress Environment WordPress address (URL): https://agrofresh.octochemstore.com Site address (URL): https://agrofresh.octochemstore.com WC Version: 7.9.0 REST API Version: ? 7.9.0 WC Blocks Version: ? 10.4.6 Action Scheduler Version: ? 3.6.1 Log Directory Writable: ? WP Version: 6.2.2 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.33 PHP Post Max Size: 516 MB PHP Time Limit: 600 PHP Max Input Vars: 1000 cURL Version: 8.2.0 OpenSSL/1.1.1u SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? Database WC Database Version: 7.9.0 WC Database Prefix: wp_ Total Database Size: 39.67MB Database Data Size: 29.53MB Database Index Size: 10.14MB wp_woocommerce_sessions: Data: 2.93MB + Index: 0.10MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.24MB + Index: 0.14MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 1.68MB + Index: 1.15MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.13MB + Index: 0.07MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.11MB + Index: 0.07MB + Engine MyISAM wp_commentmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_comments: Data: 1.96MB + Index: 0.74MB + Engine MyISAM wp_cp_calculated_fields_form_discount_codes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cp_calculated_fields_form_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cp_calculated_fields_form_settings: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_ewwwio_images: Data: 0.07MB + Index: 0.05MB + Engine MyISAM wp_huge_it_videos: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_huge_it_video_params: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_huge_it_video_players: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_customer_pairs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_log: Data: 0.07MB + Index: 0.01MB + Engine MyISAM wp_mw_wc_qbo_sync_paymentmethod_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_payment_id_map: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_mw_wc_qbo_sync_product_pairs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_promo_code_product_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_qbo_customers: Data: 0.65MB + Index: 0.09MB + Engine MyISAM wp_mw_wc_qbo_sync_qbo_items: Data: 0.09MB + Index: 0.01MB + Engine MyISAM wp_mw_wc_qbo_sync_real_time_sync_history: Data: 0.07MB + Index: 0.01MB + Engine MyISAM wp_mw_wc_qbo_sync_real_time_sync_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_shipping_product_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_tax_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_variation_pairs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mw_wc_qbo_sync_wq_cf_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 8.78MB + Index: 0.19MB + Engine MyISAM wp_pmxi_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_hash: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_imports: Data: 0.16MB + Index: 0.00MB + Engine MyISAM wp_pmxi_posts: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_pmxi_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_postmeta: Data: 8.11MB + Index: 4.58MB + Engine MyISAM wp_posts: Data: 1.21MB + Index: 0.28MB + Engine MyISAM wp_prflxtrflds_fields_id: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_prflxtrflds_fields_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_prflxtrflds_field_values: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_prflxtrflds_roles_and_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_prflxtrflds_roles_id: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_prflxtrflds_user_field_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_prflxtrflds_user_roles: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_Spider_Video_Player_player: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_Spider_Video_Player_playlist: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_Spider_Video_Player_tag: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_Spider_Video_Player_theme: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_Spider_Video_Player_video: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_terms: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_term_relationships: Data: 0.01MB + Index: 0.03MB + Engine MyISAM wp_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_um_metadata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_usermeta: Data: 1.60MB + Index: 0.97MB + Engine MyISAM wp_users: Data: 0.10MB + Index: 0.09MB + Engine MyISAM wp_vtprd_purchase_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_vtprd_purchase_log_product: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_vtprd_purchase_log_product_rule: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_vtprd_transient_cart_data: Data: 0.28MB + Index: 0.19MB + Engine MyISAM wp_wcsp_global_discount_rule_mapping: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wcsp_group_category_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wcsp_role_category_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wcsp_user_category_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_notes: Data: 0.07MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.04MB + Index: 0.01MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.06MB + Index: 0.07MB + Engine MyISAM wp_wc_order_stats: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_attributes_lookup: Data: 0.02MB + 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.04MB + Index: 0.05MB + Engine MyISAM wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdr_order_discounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdr_order_item_discounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdr_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wsal_metadata: Data: 0.44MB + Index: 0.61MB + Engine InnoDB wp_wsal_occurrences: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wusp_group_product_price_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wusp_pricing_mapping: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wusp_role_pricing_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wusp_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wusp_subrules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wusp_user_mapping: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wusp_user_pricing_mapping: Data: 0.09MB + Index: 0.14MB + Engine MyISAM Post Type Counts acf-field: 1 acf-field-group: 1 attachment: 115 custom_css: 2 et_pb_layout: 4 global_product_addon: 1 nav_menu_item: 34 page: 18 post: 1 product: 253 product_variation: 207 pw_bogo: 1 quantity-rule: 1 revision: 222 shop_coupon: 5 shop_order: 1742 shop_order_refund: 15 tablepress_table: 24 um_directory: 1 um_form: 3 vtmam-rule: 1 vtmax-rule: 2 wcccf: 3 wccpf: 2 wp_global_styles: 2 yith-wcbm-badge: 1 Security Secure connection (HTTPS): ? Hide errors from visitors: ? Active Plugins (40) WooCommerce Authorize.Net Gateway: by Pledged Plugins – 6.0.4 Category Editor: by Kevin Heath – 3.8.3 Change Price Title for WooCommerce: by Kartik Parmar – 2.3 Classic Editor: by WordPress Contributors – 1.6.3 Code Snippets: by Code Snippets Pro – 3.4.2 Customer Specific Pricing for WooCommerce: by WisdmLabs – 4.6.8 Delivery Countdown Timer: by Arul Jayaraj – 1.0 Embed Any Document: by Awsm Innovations – 2.7.3 Export User Data: by Q Studio – 2.2.6 Far Future Expiration Plugin: by Tips and Tricks HQ – 1.6 WooCommerce FedEx Shipping Plugin with Print Label: by PluginHive – 6.0.3 Hide Categories and Products for Woocommerce: by N.O.U.S. Open Useful and Simple – 1.2.9 Hide Category by User Role for WooCommerce: by ThemeSupport – 1.4.1 IgniteWoo Updater: by IgniteWoo.com – 3.0.4 WooCommerce Sync for QuickBooks Online - by MyWorks Software: by MyWorks Software – 2.8.0 Profile Extra Fields by BestWebSoft: by BestWebSoft – 1.2.7 Simple Custom CSS: by John Regan – 4.0.6 Simple Universal Google Analytics: by naa986 – 1.0.5 TablePress: by Tobias B?thge – 2.1.5 Twenty Eleven Theme Extensions: by Mike Walker MozTools – 1.2 Spectra: by Brainstorm Force – 2.7.2 User Meta Lite: by User Meta – 3.0 User Role Editor: by Vladimir Garagulya – 4.63.3 Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.4.2 Huge IT Video Player: by Huge-IT – 1.2.4 W3 Total Cache: by BoldGrid – 2.3.3 WooCommerce Address Book: by CrossPeak – 2.5.0 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.9.0 Extra product options For WooCommerce | Custom Product Addons and Fields: by ThemeHigh – 3.2.1 Woocommerce Checkout Terms Conditions Popup: by WC Marketplace – 1.2.2 WooCommerce Coupon Schedule: by Karolis Giedraitis – 0.1.2 WooCommerce Restrict Shipping: by IgniteWoo – 1.7.5 WooCommerce: by Automattic – 7.9.0 WP Activity Log for WooCommerce: by WP White Security – 1.5.2 WP All Import Pro: by Soflyy – 4.8.0 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.2.16 Smush: by WPMU DEV – 3.14.1 WP All Import - WooCommerce Import Add-On Pro: by Soflyy – 3.3.6 Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.8.4 YITH WooCommerce Badge Management: by YITH – 2.19.0 Inactive Plugins (13) Advertikon MinMax Product: by Advertikon – 1.0.0 CoBlocks: by GoDaddy – 3.0.4 Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.5.0 Divi Builder: by Elegant Themes – 4.21.1 Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.27 Multiple Shipping Addresses for WooCommerce (Address Book): by ThemeHigh – 2.2.2 Preview E-mails for WooCommerce: by Digamber Pradhan – 2.1.4 Simple JS Paste: by Matthew McDonald ([email protected]) – 1.1 Ultimate Member: by Ultimate Member – 2.6.9 WC Fields Factory: by Saravana Kumar K – 4.1.7 WooCommerce: Show Empty Categories: by Maje Media LLC – 1.1.5 WPC Composite Products for WooCommerce: by WPClever – 7.0.5 WP e-Commerce Simple Product Options: by Lee Willis – 2.0 Dropin Plugins (2) advanced-cache.php: advanced-cache.php db.php: db.php Must Use Plugins (2) ET Support Center :: Must-Use Plugins Autoloader: by Elegant Themes – SSO: by Garth Mortensen Mike Hansen – 0.4 Settings API Enabled: ? Force SSL: ? Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: composite (composite) 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: – HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – WC Pages Shop base: #5 - /shop/ Cart: #6 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: #672 - /terms/ Theme Name: Divi Version: 4.21.0 Author URL: https://www.elegantthemes.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: – Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen 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 product-variation-management settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-07-29 16:47:27 -05:00 Options: ? Notes: 166 Onboarding: completed Action Scheduler Complete: 442 Oldest: 2023-06-27 14:40:41 -0500 Newest: 2023-07-28 11:43:00 -0500 Failed: 16 Oldest: 2022-09-20 20:50:52 -0500 Newest: 2023-06-01 08:46:01 -0500 Pending: 2 Oldest: 2023-07-28 19:39:54 -0500 Newest: 2023-08-02 11:27:32 -0500 Status report information Generated at: 2023-07-28 12:34:20 -05:00 `
Looks like the code does not work with a default theme.
Still not giving me Quantity and still giving me error.
Fatal error: Uncaught Error: Call to a member function get_stock_quantity() on bool in /var/www/wp-content/themes/Divi-Child-Theme-master/functions.php:31 Stack trace: #0 /var/www/wp-includes/shortcodes.php(355): shortcode_wc_get_product_stock_quantity(Array, ”, ‘stock_quantity’) #1 [internal function]: do_shortcode_tag(Array) #2 /var/www/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(stock_…’, ‘do_shortcode_ta…’, ‘[stock_quantity…’) #3 /var/www/wp-content/plugins/tablepress/classes/class-render.php(309): do_shortcode(‘[stock_quantity…’) #4 /var/www/wp-content/plugins/tablepress/classes/class-render.php(143): TablePress_Render->_process_render_data() #5 /var/www/wp-content/plugins/tablepress/controllers/controller-frontend.php(666): TablePress_Render->get_output() #6 /var/www/wp-includes/shortcodes.php(355): TablePress_Frontend_Controller->shortcode_table(Array, ”, ‘table’) #7 [internal function]: do_shortcode_tag(Array) #8 /var/www/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(table)…’, ‘do_shortcode_ta…’, ‘[table id=1 res…’) #9 /var/www/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3012): do_shortcode(‘[table id=1 res…’) #10 /var/www/wp-includes/shortcodes.php(355): ET_Builder_Element->_render(Array, ‘[table id=1 res…’, ‘et_pb_text’) #11 [internal function]: do_shortcode_tag(Array) #12 /var/www/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(table|…’, ‘do_shortcode_ta…’, ‘[et_pb_text _bu…’) #13 /var/www/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode(‘[et_pb_text _bu…’) #14 /var/www/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3331): ET_Builder_Column->render(Array, ‘[et_pb_text _bu…’, ‘et_pb_column’, ”, ”, ”, ”, ”) #15 /var/www/wp-includes/shortcodes.php(355): ET_Builder_Element->_render(Array, ‘[et_pb_text _bu…’, ‘et_pb_column’) #16 [internal function]: do_shortcode_tag(Array) #17 /var/www/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(table|…’, ‘do_shortcode_ta…’, ‘[et_pb_column t…’) #18 /var/www/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode(‘[et_pb_column t…’) #19 /var/www/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3331): ET_Builder_Row->render(Array, ‘[et_pb_column t…’, ‘et_pb_row’, ”, ”, ”, ”, ”) #20 /var/www/wp-includes/shortcodes.php(355): ET_Builder_Element->_render(Array, ‘[et_pb_column t…’, ‘et_pb_row’) #21 [internal function]: do_shortcode_tag(Array) #22 /var/www/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(table|…’, ‘do_shortcode_ta…’, ‘[et_pb_row _bui…’) #23 /var/www/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode(‘[et_pb_row _bui…’) #24 /var/www/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3331): ET_Builder_Section->render(Array, ‘[et_pb_row _bui…’, ‘et_pb_section’, ”, ”, ”, ”, ”) #25 /var/www/wp-includes/shortcodes.php(355): ET_Builder_Element->_render(Array, ‘[et_pb_row _bui…’, ‘et_pb_section’) #26 [internal function]: do_shortcode_tag(Array) #27 /var/www/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(table|…’, ‘do_shortcode_ta…’, ‘<div class=”et-…’) #28 /var/www/wp-includes/class-wp-hook.php(308): do_shortcode(‘<div class=”et-…’) #29 /var/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<div class=”et-…’, Array) #30 /var/www/wp-includes/post-template.php(255): apply_filters(‘the_content’, ‘[et_pb_section …’) #31 /var/www/wp-content/themes/Divi/page.php(46): the_content() #32 /var/www/wp-includes/template-loader.php(106): include(‘/var/www/wp-con…’) #33 /var/www/wp-blog-header.php(19): require_once(‘/var/www/wp-inc…’) #34 /var/www/index.php(17): require(‘/var/www/wp-blo…’) #35 {main} thrown in /var/www/wp-content/themes/Divi-Child-Theme-master/functions.php on line 31
There has been a critical error on this website.
I copied and pasted it. So now I get an error.
https://shopactylis.com/product-list/
Here is my function.php file :
https://codefile.io/f/OtbNwerrus0pl0CdbrKC
- This reply was modified 1 year, 11 months ago by Mercedes.
I changed the quotations marks.
// Shortcode for getting WooCommerce product quantity.
function shortcode_wc_get_product_stock_quantity( $atts ) {
$product = wc_get_product( $atts[‘product_id’] );
return $product->get_stock_quantity();
}
add_shortcode( ‘stock_quantity’, ‘shortcode_wc_get_product_stock_quantity’ );No Error now but still not showing the quantity.
https://shopactylis.com/product-list/
- This reply was modified 1 year, 11 months ago by Mercedes.
Giving me error on website.
I get the error: There has been a critical error on this website.
This error occurs when I add it to the function.php file and this time it had actually broke my site.
Forum: Plugins
In reply to: [WooCommerce] Cannot add products to ordersYes, adding products to backend. The orders are on hold for now.
https://snipboard.io/5bEcrs.jpg
https://snipboard.io/5n8I06.jpg
Trying to add products in the backend of the order.
Thanks!
Forum: Fixing WordPress
In reply to: Remove Gift CertificatesIt is apparently a built in feature. One of the GoDaddy Included Extensions.
Forum: Plugins
In reply to: [WooCommerce] Shipping not being charged to customers on certain orders