Archived

This topic is now archived and is closed to further replies.

  • 0

WooCommerce for PageLines WooCommerce Select Option button

Question

Posted · Report post

Hi, I am using WooCommerce for my e-commerce store. I am having trouble deleting the select option button from my page. How could I remove that button. It's under the price of the product.

 

This is the link to the page. http://www.headedforgreatness.com/headed-for-greatness-stor/

 

Thank you,

 

Seena Khoee

Share this post


Link to post
Share on other sites

6 answers to this question

Posted · Report post

There is no way in the settings but there is a hook that you can use to remove the buttons.  You would add this information to the functions.php file either in a child theme if you are using one or by installing the Pagelines Customize Plugin (free in the store) and putting this code in the functions.php file.

add_action( 'woocommerce_after_shop_loop_item', 'remove_add_to_cart_buttons', 1 );

function remove_add_to_cart_buttons() {
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
}

Hope that helps.

 

Ellen

Share this post


Link to post
Share on other sites

Posted · Report post

I am using the base theme. Is that the same thing as a child theme?

Share this post


Link to post
Share on other sites

Posted · Report post

Actually it worked. Thank you very much.

 

I have one last question. I made the price $26.00 but on my store page. It's showing the price as $26. I also want the 00 to show as well. Is it possible I can set it up so the entire price is showing?

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Seena,

 

To hide the Select button try this code. Put it in Pagelines --> Site Options --> Custom Code --> Custom CSS/LESS

.post-type-archive-product #page a.btn {
  display: none;
}

That will hide the Select buttons (or Add to Cart if it isn't a variable product) on the product archive page.

 

Ellen

Share this post


Link to post
Share on other sites

Posted · Report post

Closing this since you opened a new topic about your new question.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for your help Ellen. Is there any other way I can hide the select buttons. Because when I use that method, while the pages load, the buttons are shown for a couple seconds then they are hidden.

 

Is there anyway I can remove that feature from the settings?

Share this post


Link to post
Share on other sites