Category : wordpress

If in the settings Based on Weight InPost dla WooCommerce https://pl.wordpress.org/plugins/woo-inpost/ The plugin throws the following notice in some places: Notice: weight was called <strong>incorrectly</strong>. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘wp_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Form_Handler::add_to_cart_action, WC_Form_Handler::add_to_cart_handler_simple, WC_Cart->add_to_cart, do_action(‘woocommerce_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart->calculate_totals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Shipping->calculate_shipping, WC_Shipping->calculate_shipping_for_package, WC_Shipping_Method->get_rates_for_package, ..

Read more

I am able to find the REST API docs for Woocommerce: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-product but am unable to figure out how to create a subscription product via. this API. I am able to also edit a user’s subscription once it has been created via the REST API: https://prospress.github.io/subscriptions-rest-api-docs/ however I don’t see any documentation for how to ..

Read more

I am getting a fatal error in my php code and want to know how to fix it. Fatal Error: PHP Fatal error: Uncaught Error: Call to a member function is_empty() on null in /home4/metis/public_html/staging/4326/wp-content/plugins/code-snippets/php/snippet-ops.php(446) : eval()’d code:7 Code: add_filter( ‘woocommerce_product_add_to_cart_text’, ‘woocommerce_custom_add_to_cart_text’, 10, 2 ); function woocommerce_custom_add_to_cart_text( $add_to_cart_text, $product ) { // Get cart $cart ..

Read more

I got a problem that I install XAMPP on my computer to develop,and recently I want to use WordPress to expand two functions: 1.posts pinned and deadline is required (the post will not pinned when time is up) 2.posts remove from the list and deadline is requured too (the post will be removed from the ..

Read more

I’m working with WordPress and I’m trying to generate a PDF in php after ajax post. I need to open my generated file in another window. I’m using this functions : $(‘#my_button’).on(‘click’ , function(e){ e.preventDefault(); array = []; jQuery.post( filter_params.ajaxurl, { ‘action’: ‘create_pdf’, ‘array’: array, }, function(response){ //$(‘#w’).empty(); //$(‘#w’).append(response); window.open("data:application/pdf," + response); }) .success(function(data){ }); ..

Read more