VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Themes & Layout Problems and Customization VM 1.1 => Topic started by: patricia2 on June 02, 2008, 19:47:42 pm

Title: Edit the add to cart box ?
Post by: patricia2 on June 02, 2008, 19:47:42 pm
Where do you edit the edit to cart box ?
The actual blue one is not very nice and the text doesn't fit in the picture.
example on my site
 (http://www.chaussure-securite.org/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=2&category_id=1&option=com_virtuemart&Itemid=53)
Thank you
pat.
Title: Re: Edit the add to cart box ?
Post by: jilong on June 02, 2008, 20:05:43 pm
You can change the blue button to your own from theme.css
Quote
yousite/components/com_virtuemart/themes/default/theme.css
Code: [Select]
.addtocart_button {
background: url( 'images/add-to-cart_blue.gif' ) no-repeat  center transparent;
}



You can change the layout or position for the add cart form from addtocart_form.tpl.php

Quote
yousite/components/com_virtuemart/themes/default/templates/product_details/includes/addtocart_form.tpl.php
Title: Re: Edit the add to cart box ?
Post by: peukie on June 03, 2008, 22:24:43 pm
Hi,

You can change the backgroundcolor of the box in the theme.css file also.

Around line 265 the following code starts:
/**
* Addtocart detail Styles
*/
.vmCartContainer { /* Cart Container */
   width: auto;
   float: left;
   background: white;
   border: 1px solid #000;
   padding: 3px;
}

This controls the box...

Maybe it helps.... ;)