News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Updating + and - toggles on quantity-box

Started by IntrepidClassChicken, December 07, 2012, 10:59:28 AM

Previous topic - Next topic

IntrepidClassChicken

Hi Folks,

BACKGROUND
Still using Joomla 1.5.

Just updated to the latest version of VirtueMart, 2.0.1.4

Used Artisteer to create my templates.

I have one active Template Override... the Category default.php hacked to comment out the Sort section.

QUESTION
I have noticed that there are two button images next to the product quantity text box on the product page. The images are identical so without stumbling across their function, a user of my site is not likely to know what they are without some prompting.

I did some hunting through the forum and found a solution posted in 2008:

http://forum.virtuemart.net/index.php?topic=41387.msg130868#msg130868

The problem is that this was likely a solution for an older version of VM and hence the file structures are not the same.

Can anyone please revise the solution provided or tell me where these images are called?

jenkinhill

If you had used Firebug then you would have identified the relevant image sprite as being at joomla_root/components/com_virtuemart/assets/images/vmgeneral/quantity-controls.png

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

IntrepidClassChicken

Ahhhh? Ummmm? Thanks Jenkinhill  ???

I used Firebug. I must have been using it wrong then ???

This doesn't actually address the issue though because for some reason, I don't see any plus or minus buttons. All I see are two blank buttons. They are not images, they are form field buttons.

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

I have no idea what is going on?

In the example provided, it asks for us to open and modify the files at locations:

components/com_virtuemart/themes/default/templates/product_details/includes/quantity_box_general.tpl.php
components/com_virtuemart/themes/default/theme.css

As I understand, it is the equivalent to these files that I need.

Of course if the current version of VM works in a completely different way, appropriate instructions would be helpful.

bytelord

The example is for vm1 i suppose,

Please use firebug to make the apropriate changes on your CSS ... then make your CSS overrides and change the icons if you needed.
You will find a lot of information searching the templating & layouts section. Also will be nice if you could provide a live url and some images explaining what you wanna do.

Keep in mind using artisteer is a bad option because the joomla template and especially the CSS is not produced well causing a lot of conflicts with other components and modules in joomla environment.

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!

elfe

Maybe you have not been able to solve your problem, but I had the same not showing + / - button-images
--> and that was because of the paths to the image (arround line 43/44) did not work with the override of vmsite-ltr.css

../images/vmgeneral/quantity-controls.png had to be changed to the actuall location: "http://www.(YOUR_DOMAIN)/components/com_virtuemart/assets/images/vmgeneral/quantity-controls.png" - and the button(s) showed up

elfe