WordPress.org

Forums

WooCommerce - excelling eCommerce
move the "add to cart button" and "variations selector" (5 posts)

  1. 5ngua
    Member
    Posted 1 year ago #

    Hi,
    I want to move the "add to cart button" and "variations selector" because the short descriptions of my products are quite long making it hard to get the "add to card button". I want to place them right after the price info. How can I do that?
    Thanks,

    https://wordpress.org/plugins/woocommerce/

  2. Daniel Espinoza
    Member
    Posted 1 year ago #

    Look at the wc-template-hooks.php file. There is a section titled "Product Add to cart"

    You'll want to "remove_action" on those, then "add_action" into a different place in the single-product.php template or the sub templates in /single-product https://github.com/woothemes/woocommerce/tree/master/templates/single-product

  3. Richardz99
    Member
    Posted 1 year ago #

    Our "add to cart" button is missing after 2.1.2, i followed the fix but still doesn't work - please advise

  4. Richardz99
    Member
    Posted 1 year ago #

  5. Daniel Espinoza
    Member
    Posted 1 year ago #

    @ Richardz99 you should probably open a new thread for your question instead of hijacking this thread. You've got javascript errors on the product page which will stop the ajax call that adds the Add to Cart button. Fix those and it should work fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.