add to cart button (6 posts)

  1. thebasharjobs
    Posted 3 years 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?



  2. Roy Ho
    Posted 3 years ago #

    Why would you need to add your own?

  3. thebasharjobs
    Posted 3 years 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 Ho
    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years ago #

    nevermind, figured it out. thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.