VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: almopiasgefsis on May 07, 2015, 22:07:12 PM

Title: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: almopiasgefsis on May 07, 2015, 22:07:12 PM
Hello guys. I am new here and i am so exited.
I want to add a quantity box near the button of "add to cart", i guess that is a modification of my code but i cand do this.
Any help??
Thank you in advance
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: GJC Web Design on May 07, 2015, 23:16:08 PM
calm down first - then follow the directions....

http://forum.virtuemart.net/index.php?topic=79799.0
http://forum.virtuemart.net/index.php?topic=104795.0
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: almopiasgefsis on May 08, 2015, 09:52:30 AM
I used Virtuemart 2.6 , Joomla 2.5.28 and PHP 5.3.26.


My site is www.almopiasgefsis.gr
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: GJC Web Design on May 08, 2015, 12:41:07 PM
there are 18 versions of VM2.6 not counting sub versions..  hmmm

these questions have a purpose..

you don't even say where or what page you want quantity boxes .. one assumes the home page modules

they are already there .. just hidden in your template by css - see screen

unhide by removing

span.quantity-box, span.quantity-controls {
  display: none;
}

http://www.almopiasgefsis.gr/templates/ordasofttemplate-ecofoodtemplate/css/style.css line 1557

you will need to restyle the layout

Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: jenkinhill on May 08, 2015, 12:47:10 PM
Make sure you use at least VM2.6.10 - versions before that have security issues and should not be used in a live store.
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: almopiasgefsis on May 11, 2015, 11:35:49 AM
Great! It's very important!
Its my fault to dont ask specifically.
Ι want to add quantity boxes into the products description,not external in module etc.

any help?
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: GJC Web Design on May 11, 2015, 11:40:08 AM
was this not hint enough???????

Quotethey are already there .. just hidden in your template by css - see screen

unhide by removing

span.quantity-box, span.quantity-controls {
  display: none;
}

http://www.almopiasgefsis.gr/templates/ordasofttemplate-ecofoodtemplate/css/style.css line 1557

you will need to restyle the layout
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: almopiasgefsis on May 11, 2015, 11:44:16 AM
Yes that is specially help and thank you so much.
But, if i make these changes the quantity box will add on singularly product description(?),that is i want and which is why I'm asking.
I used the firebug and i saw that the change is perfect.But i want add quantity box only on product description,not external.
Τhank u.
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: GJC Web Design on May 11, 2015, 11:49:30 AM
one has nothing to do with the other

you are using a commercial template -- these things should be asked of the template maker - he has you money - he should support his product.. 

otherwise check the standard vm templates to see how it should be done
Title: Re: ADD QUANTITY BOX NEAR " ADD TO CART BUTTON"
Post by: almopiasgefsis on May 11, 2015, 11:53:59 AM
Okay thank you very much.