• Resolved mitchelr

    (@mitchelr)


    When I’m activating this plugin my cart page is changing.

    If I add products to the cart I only see 1 product in the cart.
    And the cart page is different than before I activate the plugin.

    Is this an issue between my theme flatsome and this plugin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor CodeAstrology IT Firm

    (@codeastrology)

    Hello mitchelr

    Please updated our plugin from www.remarpro.com. it will fixed your issue.

    If still have problem then let us know.

    Regards,

    I’m still getting this issue on 1.8:

    Call to a member function is_sold_individually() on bool in woo-min-max-quantity-step-control-single/includes/set_max_min_quantity.php:227

    Here’s a fix for the issue. The product data should be added to the woocommerce_quantity_input_min filter arguments, and retrieved that way rather than using get_the_ID() which will get the ID of the cart page instead of the product.

    function wcmmq_s_set_min_for_single($min_quantity, $product){
        //$product_id = get_the_ID();
        //$product = wc_get_product( $product_id );
        $min_quantity = get_post_meta($product_id, '_wcmmq_s_min_quantity', true);
        $min_quantity = !empty( $min_quantity ) ? $min_quantity : WC_MMQ_S::getOption( '_wcmmq_s_min_quantity' ); //Regenerate from Default
        if( !$product->is_sold_individually() && ( !empty( $min_quantity ) || !$min_quantity ) && is_numeric($min_quantity) ){
           return $min_quantity;
        }
        return 1;
    }
    add_filter('woocommerce_quantity_input_min','wcmmq_s_set_min_for_single', 10, 2);
    Plugin Contributor CodeAstrology IT Firm

    (@codeastrology)

    Yes you are absolutely right. We have updated our plugin with this solution.
    Thank you for using our plugin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cart page’ is closed to new replies.