WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
add to cart button (6 posts)

  1. thebasharjobs
    Member
    Posted 1 year ago #

    hey all,

    i've modified one of the template files to contain an add to cart button but cannot take the original one out and now have two showing up on my product page.

    anyone know where the original button is called in the default template and what i would need to remove it?

    thanks.

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy
    Member
    Posted 1 year ago #

    Why would you need to add your own?

  3. thebasharjobs
    Member
    Posted 1 year ago #

    im not adding my own so much as im changing the location of theirs by copying the code found within the add to cart button's template.php file to a different location. i uncovered little documentation aimed at a novice user pertaining to themeing the individual product page itself and with little knowledge of how wordpress operates found just simply adding to short-description.php with markup and php to be suitable enough for now.

    heres what i have.

    as you can see, the problem with this is adding to the page means creating elements in addition to what is already there, in my case that stray button you see in the lower left corner. as well as that there's an additional price element that i have to get rid of as well.

  4. Roy
    Member
    Posted 1 year ago #

    This is quite hard for me to help as I don't know where it is originally and where you want to move it to because it could mean code changes or simple CSS change may suffice.

    Perhaps should an image of where it is originally prior to you modifying the code and an image "photoshop" of where you want it.

  5. thebasharjobs
    Member
    Posted 1 year ago #

    it's original placement is sortve irrelevant for what i'm attempting to do. what i'm attempting to do is omit it from the document altogether and use the blank button i added (that works as an add to cart) thats floated to the right of the price.

    basically my question is where is the code exactly that puts that button there entitled 'add to cart.'

  6. thebasharjobs
    Member
    Posted 1 year ago #

    nevermind, figured it out. thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.