Author Topic: Where is the Add to Cart Button in VM 2.0?  (Read 2778 times)

vicnkris

  • Beginner
  • *
  • Posts: 15
Where is the Add to Cart Button in VM 2.0?
« on: January 10, 2012, 21:33:57 pm »
I would like to replace my add to cart button with a custom button, but am having trouble locating it and when I search forums it comes up with the path for the old version.

Any help here is greatly appreciated.

Anypc

  • Beginner
  • *
  • Posts: 45
  • Loving VM2!
    • AnY Computers
Re: Where is the Add to Cart Button in VM 2.0?
« Reply #1 on: January 13, 2012, 08:48:21 am »
I think it's not a button anymore. I found it in a language file.

The green panel is an image, but the text can be altered in one of the language files.
Prowd owner of webshop:
www.AnY-Computers.nl

Version J2.5.4 with VM 2.0.3E.

vicnkris

  • Beginner
  • *
  • Posts: 15
Re: Where is the Add to Cart Button in VM 2.0?
« Reply #2 on: January 27, 2012, 23:10:12 pm »
Does anyone know where the image file is located?

lipes

  • Full Member
  • ***
  • Posts: 720
Re: Where is the Add to Cart Button in VM 2.0?
« Reply #3 on: January 28, 2012, 00:09:53 am »
1st - install filezilla in your browser to see more and find what you want in code about the CSS, etc... And study a little how to use it good ...

then go to your host / local host and seaarch in components > com_virtuemart > assets > images

this address: (../images/vmgeneral/backgrounds.png)

if you see that this problem was solved, mark this topic as Solved with the green right..
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

vicnkris

  • Beginner
  • *
  • Posts: 15
Re: Where is the Add to Cart Button in VM 2.0?
« Reply #4 on: January 28, 2012, 13:07:41 pm »
Thanks I was able to make the changes to the backgrounds.png to make the add to cart button the color I wanted. I really appreciate the help.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10437
  • VirtueMart Version: 3+
Re: Where is the Add to Cart Button in VM 2.0?
« Reply #5 on: January 28, 2012, 14:12:38 pm »
best is to change the css like I did below.

(productsdetails/tmpl/default.php)
<?php // Display the add to cart button ?>
         <div id="addtocartwrap">
            <input type="submit" name="addtocart"  class="addtocart-button" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
         </div>


css
.addtocart-button {
    background: url("/demo/images/addtocart.gif") no-repeat scroll center center transparent;
    border: 1px solid #00628B;
    color: #b9298b;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    height: 37px;
    margin-left: 1px;
    overflow: hidden;
    padding-bottom: 2px;
    padding-left: 31px;
    text-align: center;
    vertical-align: middle;
    width: 130px;
}