• Resolved hieudo

    (@hieudo)


    The “Food Store – Online Food Delivery & Pickup” built radio options on my gift card single product page. So how I can remove it? I only want to use a dropdown list since the radio options haven’t worked here.

    I built my gift card page via “PW WooCommerce Gift Cards” plugin

    • This topic was modified 4 years, 1 month ago by hieudo.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WP Scripts

    (@wpscripts)

    Hello @hieudo

    Food Store uses the WooCommerce hooks on single page to make the dropdowns as radio button and display name nicely on menu page popup. It won’t be possible to make them dropdowns while Food Store is in use.

    Or the functionality can be removed on plugin, so that both the places will show the dropdowns, there won’t be radio buttons in popup as well. This might also lead to other issues related to UI and pricing updates. Let me know your thoughts as well, so that we can reach for an appropriate solution.

    Regards,
    Team WP Scripts

    Thread Starter hieudo

    (@hieudo)

    Can we remove the functionality, so both the places will show the dropdowns, there won’t be radio buttons in the popup as well?

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    Yes, on the popup and on single page you can get the regular dropdowns if the hook is removed.

    You can edit the plugin and find the file food-store/includes/class-wfs-frontend.php and comment the hook on line number 22.

    https://prntscr.com/xmojex

    And to display regular dropdowns which are hidden now, you can add a custom css in theme customizer or somewhere in your active theme.

    .variations_form .variations {
    display: block !important;
    }

    Now you can see how it looks. But the problem is everytime the plugin gets updated, you need to comment that line again.

    Regards,
    Team WP Scripts

    Plugin Author WP Scripts

    (@wpscripts)

    Hello again,

    Will it be fine if the same design of radio buttons you see on the popup is applied to single page as well ? That means, whole row will come in single line, with smaller image and organized. Let us know.

    Regards,
    Team WP Scripts

    Thread Starter hieudo

    (@hieudo)

    Will it be fine if the same design of radio buttons you see on the popup is applied to a single page as well?

    That’s a great option. Can we do that?

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    Please try adding below code to the functions.php of your activated theme and do let us know if that worked or not.

    function elementor_food_store_page( $shortcode_found ) {
    
    	if ( is_product() ) {
    		return true;
    	} else {
    		return $shortcode_found;
    	}
    }
    add_filter( 'wfs_is_foodstore_page', 'elementor_food_store_page' );

    Regards,
    Team WP Scripts

    Thread Starter hieudo

    (@hieudo)

    It works now.

    Thanks for your help.

    Plugin Author WP Scripts

    (@wpscripts)

    Thank you for the update. Please review the plugin if you like it and our support.

    Thanks & Regards,
    Team WP Scripts

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove Radio Options?’ is closed to new replies.