Jump to content
Sign in to follow this  
pspr

WooCommerce Select Option button

Recommended Posts

ellenmva    112
ellenmva

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


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites
pspr    0
pspr

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
ellenmva    112
ellenmva

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


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites
pspr    0
pspr

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
pspr    0
pspr

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
Jenny    33
Jenny

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


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • caspersjan
      By caspersjan
      Hello, 
      I am running into problems with the Woocommerce for Pagelines plugin, version 1.3.1. As soon as I activate it, the Shop page is rendered completely blank, even the Editor disappears. I have no other plugins active except Pagelines Updater and DMS Professional Tools. Could I be doing something wrong or is there an incompatibility? I suspect the former because I'm sure Woocommerce for Pagelines must be compatible with Woocommerce... It looks so promising and I'd love to use it! I must say that I am new to Woocommerce in general, but I tried every setting I could think of and work out and simply cannot get it to work with Woocommerce for Pagelines. My site in question is www.knetgut.de.
      I hope you can shed light on this and I appreciate your assistance! Yours faithfully, Jan Caspers.
    • adminuni
      By adminuni
      Hello!
       
      I am having trouble adding variables to a product. Couple of my products contain many variables and noticed that every time I update the product, variables all become default, or the stock quantity and price that I added become blank.
       
      I tried deleting some of these variables and readded them, which I thought was the only solution, but even when these variables work, when I check back later, other variables become blank. It has been very frustrating and time-consuming, is there any solution to this problem?
       
      (I tried deactivation plugins but that did not work, I tried duplicating the product and that did not work as well)
       
      http://main.4cats.com/
      for products: 'Party' and 'Glow in the dark splatter party'
       
      I will send the login info.
       
      Thank you so much in advance!
    • netage
      By netage
      Hi,
       
      How do I style the featured products?
       
      Regards,
      Cait
       
    • outtareach
      By outtareach
      I know this may be simple but seems nothing is working.  I changed columns from 4 to 6 in the shortcode and I still see 4 columns.  I also changed the image sizes to fit with the 6 columns and nothing changed.  cannot find the php code in functions that people are talking about changing.  Anyone know of any way to add more columns thus making the images smaller per line?
    • outtareach
      By outtareach
      My products are not displaying correctly and I cant see the content that is hindering them from working because its just blank data.  I can select it but no text/content displays.  any help would be great because I am finally starting to get this together.
       

×