Resolvedpickup product (urgent)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37394
    ramesh08lk
    Participant

    Hi,
    how to make this one product pickup only?

    Product URL : https://sliceandwingsshack.com/product/medium-pizza-2/

    Note : We allow pick up only for this product. so if user select delivery we need hide / disable add to cart button.

    pickup

    thank you

    #37429
    Alex
    Keymaster

    Hello ramesh08lk,

    There is no such option in Lafka.

    You can achieve this with custom code in child theme. You can check if the user has picked up a Delivery and using the WooCommerce hooks to hide that product.
    We can tell you where to get this information from, but currently don’t offer custom modifications.

    
    // Get currently selected branch info
    $branch_location_session = WC()->session->get( 'lafka_branch_location' );
    // What is stored in this key
    $lafka_branch_location_session = array(
    			'branch_id'  => $selected_branch_id,
    			'order_type' => $fields['lafka_branch_order_type'],
    			'country'    => $fields['lafka_user_country'],
    			'address_1'  => $fields['lafka_user_address_1'],
    			'city'       => $fields['lafka_user_city'],
    			'state'      => self::get_processed_state_code_from_google_state( $fields['lafka_user_state'], $fields['lafka_user_country'] ),
    			'postcode'   => $fields['lafka_user_postcode'],
    		);
    

    Regards,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register