• Resolved mpally

    (@mpally)


    Hi,
    I found a code snipped to show the variants.
    Is there anything similar possible to show your options as well?
    The snippet is:

    add_action( ‘woocommerce_before_shop_loop’, ‘handsome_bearded_guy_select_variations’ );
    function handsome_bearded_guy_select_variations() {
    remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
    add_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_single_add_to_cart’, 30 );
    }

    Thanks a lot for your help
    Kind regards
    Martin

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    We are a little bit unclear about your exact requirement. Could you please provide us with more details?

    Thank you!

    Thread Starter mpally

    (@mpally)

    Hi,
    The above link shows the options. Therefore I used another plugin.
    When I try with your plugin, the options are not visible.
    Means, that the code above works with the other plugin, but not with yours.
    Maybe you have a explanation for this.
    Thanks and regards
    Martin

    Plugin Author ThemeHigh

    (@themehigh)

    The functions woocommerce_template_single_add_to_cart is used to display the add to cart button. The above code that you have given is only for changing the priority of add to cart button on the shop page. The extra product option doesn’t add any extra field to the shop page. All the product options are available in the product single page.

    Also, the extra product options plugin converts the add to cart button in the shop page to Select option to navigate the user to product single page.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘show options on the shop page’ is closed to new replies.