How to change product layout (Images inc.)

GK User
Sat Mar 31, 2012 6:27 am
My first question is how to change the product layout and where I might find the code to do so. Image
I do not like the standard layout as it is way to long, I understand you can remove tax etc manually but it does not adjust the height of the box when you for example remove the tax option it still stays the same height. As you can see in my picture how I would like it to look, just a simple and much smaller box.

Also the "current stock level" will not go away even when the option is checked to off. I have spent a lot of time trying to get this to turn off but it seems to be broken.
-----------------
My second question has to do with manually adding + and - signs into the +/- control buttons....
Image
I've been trying to search to where I can find this code to edit but no luck.

Also I would like to know how I can add a spacer in between the two images as shown.

Thanks a lot and can PM you info needed just let me know.
User avatar
Senior Boarder

Konrad M
Sat Mar 31, 2012 7:48 pm
Hi,
All views you will find in \templates\gk_eSport\html\com_virtuemart
User avatar

GK User
Sat Mar 31, 2012 9:48 pm
Thanks but I am having trouble as I'm not that great with php.

For the first part, where I was trying to reformat the layout and remove the in stock option, it really messed up the layout and the products were scattered all over the place.

Also I'm really not sure where to manually add a +/- to the quantity controls, although I found where they are at in the php just don't know how to add them.
User avatar
Senior Boarder

GK User
Mon Apr 02, 2012 1:11 am
anyone?
User avatar
Senior Boarder

GK User
Mon Apr 02, 2012 6:17 am
Image

Alright so messing around with code all day and finally got the product category layout pretty much how I wanted it as pictured in the first pic. But now I ran into another problem, after I got the layout exactly how I wanted it for some reason now on the home page there is now a gap between the "New Products" title and the product box as shown. But the weird thing is the "Popular Items" title is still in it's normal position?

I'm confused on how this happened and cant find out to get it back to normal.

[site's name edited] to see what I'm talking about full screen

Also if someone could show me how to add the +/- to the quantity buttons still would be great as I am stumped for now.
User avatar
Senior Boarder

Konrad M
Mon Apr 02, 2012 1:56 pm
Can you give us url to this page?
User avatar

GK User
Mon Apr 02, 2012 3:32 pm
Konrad M wrote:Can you give us url to this page?

[site name edited]
User avatar
Senior Boarder

Konrad M
Mon Apr 02, 2012 7:12 pm
If you look at source code you will see that you have some "" in box which make this extra empty space. Look at screen
User avatar

GK User
Mon Apr 02, 2012 7:20 pm
Alright so using inspect element with google chrome I found the lines I need to edit for +/- quantity controls as shown below but I can't find out where they are to edit them...
Code: Select all
<input type="button" class="quantity-controls quantity-plus">
<input type="button" class="quantity-controls quantity-minus">

This code below seems all I need to do if I could just find these lines...
Code: Select all
<input value="+" type="button" class="quantity-controls quantity-plus">
<input value="-" type="button" class="quantity-controls quantity-minus">
User avatar
Senior Boarder

GK User
Mon Apr 02, 2012 7:38 pm
Konrad M wrote:If you look at source code you will see that you have some "" in box which make this extra empty space. Look at screen


Yes you are right if you delete that code in inspect element mode on chrome it goes back to normal position, but question is where do I delete it at? Any thoughts?
User avatar
Senior Boarder

GK User
Tue Apr 03, 2012 4:44 pm
Man this is killing me, I cannot find out where this " " space code is. or why it's even showing up.

Also the quantity controls lines I posted are impossible to find :evil:
User avatar
Senior Boarder

GK User
Wed Apr 04, 2012 1:40 am
Please anyone, I cannot find this " " thing anywhere in the code, I've spent many hours trying to find this and it's driving my crazy. I am about to have to remove all files and upload the template all over again :(
User avatar
Senior Boarder

Konrad M
Wed Apr 04, 2012 1:34 pm
Did you check all files in com_virtuemart folder located in html folder ?
User avatar

GK User
Wed Apr 04, 2012 2:55 pm
Yea I checked in there cant find it
User avatar
Senior Boarder

GK User
Wed Apr 04, 2012 5:59 pm
:( will give FTP login if someone can help me
User avatar
Senior Boarder

teitbite
Thu Apr 12, 2012 11:52 pm
Hi

I've edited site's name from thread as requested by an author.
User avatar
Moderator


cron