News:

Support the VirtueMart project and become a member

Main Menu

Rename Add to Cart button to Buy Now

Started by raunhar, November 01, 2012, 17:10:42 PM

Previous topic - Next topic

raunhar

I want to rename the Add to Cart Button to Buy Now.
Also There will be just one quantity, so I ned to remove the +/- signs before the button, so that by default only one gets selected.

K&K media production

To rename the button you can use a language override.

See here:
http://www.inmotionhosting.com/support/edu/joomla-25/language/add-new-language-override

To hide the quantity +/- buttons use a template override. Copy the file

components/com_virtuemart/views/productdetails/tmpl/default_addtocart.php

to

templates/your_template/html/com_virtuemart/productdetails/default_addtocart.php

and comment this out


<!--
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus"/>
<input type="button" class="quantity-controls quantity-minus"/>
    </span>
-->


bytelord

Hello,

You could use language override as kkmediaproduction suggest you (some information here also: http://forum.virtuemart.net/index.php?topic=92944.0 and here: http://www.ostraining.com/blog/joomla/languge-manager/)

For your second question i will also suggested just comment them out using some CSS:

.quantity-controls {
display:none;
}

Also take a look on the following post: https://forum.virtuemart.net/index.php?topic=106607.0

Some more information regarding templates:

Use firebug to examine you site code and css styling: http://forum.virtuemart.net/index.php?topic=102850.0
template overrides: http://forum.virtuemart.net/index.php?topic=98505.0
Using the template system: http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

saviB

Hey bytelord, speaking of language overrides, I've been unable to find an override for the Prev and Start in pagination. Any clue?

K&K media production

Hi,

maybe this:

JPREV for Prev

start and end are symbols, no language keys

regards

saviB

Great! That worked. So does JNEXT. Is there a way edit Start and End symbols?

bytelord

Hello,

Start and End symbols? Is that part of vm pagination? I am not sure, any screenshot?

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

K&K media production

I was wrong, here the keys:

JLIB_HTML_START
JLIB_HTML_END

regards

raunhar


Can we remove the quantity box

Quote from: kkmediaproduction on November 01, 2012, 17:37:21 PM
To rename the button you can use a language override.

See here:
http://www.inmotionhosting.com/support/edu/joomla-25/language/add-new-language-override

To hide the quantity +/- buttons use a template override. Copy the file

components/com_virtuemart/views/productdetails/tmpl/default_addtocart.php

to

templates/your_template/html/com_virtuemart/productdetails/default_addtocart.php

and comment this out


<!--
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus"/>
<input type="button" class="quantity-controls quantity-minus"/>
    </span>
-->



bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!