Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @kurtnuimage there is a commend on the Github for ‘Google for Woocommerce’ that explains how to get woocommerce_gla_disable_gtag_tracking working:

    https://github.com/woocommerce/google-listings-and-ads/issues/2465#issuecomment-2342869256

    Thread Starter zendev

    (@zendev)

    Ok, I think I got it, thanks for the reply. It seems like we will need to manually adjust the commissions when they arrive for now.

    Is it possible to make a feature request for something like this?

    I’d like to be able to set up a “rate sheet” based on Affiliate Group and then by Product Category.

    Something like:

    Slice WP -> Edit Affiliate Group -> Affiliate Group A:

    –> Mobile Phone Category: 5%
    –> Charging Accessories Category: 15%
    –> Phone Cases Category: Default%

    Slice WP -> Edit Affiliate Group -> Affiliate Group B:

    –> Mobile Phone Category: 0%
    –> Charging Accessories Category: 0%
    –> Phone Cases Category: 20%

    This would let our different affiliate groups be treated entirely differently.

    The business case for us is that we invite general affiliates, but with our partners we negotiate individual rates with them for each product.

    Thanks for considering,
    Zendev

    zendev

    (@zendev)

    The plugin looks to see if the user has entered enough information to calculate shipping (such as their country or address). To disable this, edit the file wpc-free-shipping-bar.php file:

    Line 441:

    public function free_shipping_bar() {

    if ( some checks here to decide if it should display) {
    return;
    }

    In the above block of code, comment out ‘return’ with two forward slashes

    //return;

    Save the file and the shipping info will display.

    WPCreative can probably fix this if they allow you to set a “default” country before the user specifies a country or just by setting expectations in the plugin admin screens.

    • This reply was modified 10 months ago by zendev.

    When calling the API Endpoint:

    https://domain.com/wp-json/wc/v3/products/attributes/1/terms

    The server returns:

    {"code":"internal_server_error","message":"<p>There has been a critical error on this website.<\/p><p><a href=\"https:\/\/www.remarpro.com\/documentation\/article\/faq-troubleshooting\/\">Learn more about troubleshooting WordPress.<\/a><\/p>","data":{"status":500},"additional_errors":[]}

    And this is logged to the PHP log:

    [14-Jun-2023 03:32:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Woo_Variation_Swatches_Backend::get_group() in /var/www/domain.com/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-wc-api-response.php:50
    Stack trace:
    #0 /var/www/domain.com/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(439): Woo_Variation_Swatches_WC_API_Response->get_additional_response()
    #1 /var/www/domain.com/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php(150): WP_REST_Controller->add_additional_fields_to_object()
    #2 /var/www/domain.com/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php(349): WC_REST_Product_Attribute_Terms_V1_Controller->prepare_item_for_response()
    #3 /var/www/domain.com/wp-includes/rest-api/class-wp-rest-server.php(1181): WC_REST_Terms_Controller->get_items()
    #4 /var/www/domain.com/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()
    #5 /var/www/domain.com/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()
    #6 /var/www/domain.com/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()
    #7 /var/www/domain.com/wp-includes/class-wp-hook.php(308): rest_api_loaded()
    #8 /var/www/domain.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #9 /var/www/domain.com/wp-includes/plugin.php(565): WP_Hook->do_action()
    #10 /var/www/domain.com/wp-includes/class-wp.php(399): do_action_ref_array()
    #11 /var/www/domain.com/wp-includes/class-wp.php(780): WP->parse_request()
    #12 /var/www/domain.com/wp-includes/functions.php(1334): WP->main()
    #13 /var/www/domain.com/wp-blog-header.php(16): wp()
    #14 /var/www/domain.com/index.php(17): require('...')
    #15 {main}
      thrown in /var/www/domain.com/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-wc-api-response.php on line 50

    Disabling the plugin and trying again… no error.

Viewing 4 replies - 1 through 4 (of 4 total)