Author Topic: Custom field images display  (Read 16684 times)

scoody

  • Beginner
  • *
  • Posts: 38
Re: Custom field images display
« Reply #60 on: January 10, 2012, 15:56:11 pm »
Yes it works , it took you files in reply #34 , it's very cool !

The template.css provided in your zip has to go in components/com_virtuemart/assets/css and with template.css name or replace vmsite-ltr.css in this same folder ?

cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #61 on: January 10, 2012, 20:07:23 pm »
Glad it works!  I keep asking the VM folks to make this view the default product view for VM.  You can ask them as well.   

The template.css file in my zip file is not to replace any existing file or add a new file.  What you do is to open this file and copy all the information in the file, and then paste this information into your existing template.css file in the templates/css folder.  I don't touch the vmsite-ltr.css file because when a new version of VM comes out, you might overwrite your changes in this file. 

Cheers!   

cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #62 on: January 10, 2012, 20:16:09 pm »
Banquet,

Can you please make this the default view to help everyone out who uses custom fields?   Please!

Thanks,
Chuck

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 9887
Re: Custom field images display
« Reply #63 on: January 10, 2012, 20:33:23 pm »
please outline exact changes here in a reply.

Not the whole file. because it will conflict with other new things that are changing the css etc.

"Banquet Tables Pro"
I do NOT do development work for hire.
My Custom Field Plugin Now with =Price
http://forum.virtuemart.net/index.php?topic=99678
My Shipping Plugin
http://forum.virtuemart.net/index.php?topic=100630.0

cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #64 on: January 10, 2012, 20:53:58 pm »
Hi Banquet,

In the attached zip file from reply #34, I recently updated it to use the latest version of the VM2.0.0 default.php file with your changes.  Of course I do not know since VM2.0.0 came out if there is a newer version of the default.php in the svn.  I do not have access to that.  If you send me the latest version I will be glad to update it for you.   As far as the template.css file, I only included the specific VM changes we made in that template.css file.  It's not a complete template.css file.  This way you can just add these css changes into the vmsite-ltr.css file.  Did I understand your request correctly?  I'm happy to do whatever I can to help you. 

Thanks!
Chuck

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 9887
Re: Custom field images display
« Reply #65 on: January 10, 2012, 21:12:26 pm »
https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/

and you still are gonna have to give exact changes. There are many things being worked on, and 2 people could mess up each others work.
"Banquet Tables Pro"
I do NOT do development work for hire.
My Custom Field Plugin Now with =Price
http://forum.virtuemart.net/index.php?topic=99678
My Shipping Plugin
http://forum.virtuemart.net/index.php?topic=100630.0

cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #66 on: January 11, 2012, 01:36:18 am »
Hi Banquet,

The good news is that the latest default.php in the svn has all the changes we made before, except for one.  On line 202 the tooltip needs a line break at the end.  I added that line break in the attached default.php file.  Otherwise it's good to go.

I also took the latest vmsite-ltr.css file from the svn and added the css additions at the end of the file.  You can decide to integrate them better, but it works fine with my changes as is.

FYI, I did find one new problem in the new default.php. On line 128: class="product-image" was changed to class="medium-image", so the vmsite-ltr.css, which still has ".product-image" is not matching, and thus the main image is not controlled by the vmsite-ltr.css anymore.  In addition, now when hovering over the additional images, the main image shrinks to the small thumbnail size, so this is a problem too.  It needs to display the full size image when hovering over the additional images.  Anyway, this has nothing to do with what I'm doing with the custom field images, but just wanted to bring it to your attention so you can fix it before the next release comes out. 

Thanks,
Chuck

scoody

  • Beginner
  • *
  • Posts: 38
Re: Custom field images display
« Reply #67 on: January 12, 2012, 09:49:48 am »
Hi cas,

I try to follow you , it's almost clear for me, except when yo uare talking about the css files in templates ...

Which templates are you talking about, as there are so many files in front end back end , joomla template, VM template etc etc it's clear for you but not for me !!

So the modifications you propose in your template.css file shall be put in which file in /www/components/com_virtuemart/assets/css   ?

I have no default template, i want to avoid modifications in vrmfile.css .



cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #68 on: January 12, 2012, 18:35:01 pm »
Hi Scoody,

I put these changes in my Joomla default template, which is in \your-root\templates\your-template\css\template.css.  You could also put these into the Virtuemart css, which is in \your-root\components\com_virtuemart\assets\css\vmsite-ltr.css.

scoody

  • Beginner
  • *
  • Posts: 38
Re: Custom field images display
« Reply #69 on: January 12, 2012, 21:52:27 pm »
ok, i updated my css file it "works", but the radio buttons are not alligned at all with the pictures , i have to change the % in the css file ?

cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #70 on: January 12, 2012, 22:21:33 pm »
Yes, you just adjust the width % in: .product-fields .product-field label {width:25%;}

If you use Firefox, then use Firebug add-on to easily tweak the width until you get it to look exactly how you like it.  I know other browsers have similar tools as well. 

When I look at your screenshot, I'm wondering why the first row is indented a few pixels from the other rows?  This might be what is causing you the problem.  Make sure the tool-tip is on it's own row and not interfering with the first row of the custom field images.

Cheers,
Chuck

scoody

  • Beginner
  • *
  • Posts: 38
Re: Custom field images display
« Reply #71 on: January 12, 2012, 22:54:36 pm »
21% not enough , 22% too much , i have to modify the size of my pictures in that case ?  why the 4 at right is not good, else all is ok !

picture with 22%

cas

  • Full Member
  • ***
  • Posts: 487
Re: Custom field images display
« Reply #72 on: January 12, 2012, 23:04:31 pm »
You can use decimal places as well... for example 21.4%.   But if that still doesn't work, then use different size thumbnail images.  My thumbnail images are 80px wide x 90px high, and I use 17% for the width.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 9887
Re: Custom field images display
« Reply #73 on: January 12, 2012, 23:08:13 pm »
you would use percentage in width, then pixels with padding
"Banquet Tables Pro"
I do NOT do development work for hire.
My Custom Field Plugin Now with =Price
http://forum.virtuemart.net/index.php?topic=99678
My Shipping Plugin
http://forum.virtuemart.net/index.php?topic=100630.0

scoody

  • Beginner
  • *
  • Posts: 38
Re: Custom field images display
« Reply #74 on: January 13, 2012, 06:52:40 am »
Hi,
Thanks a lot, but where is the padding,it's here :

.product-fields .product-field label {
   width:21%;
   float:left;
   position:relative;
   top:20px;
   left:-10px;
   
 because 21% is not enough  (the 4th column is not aligned) , and 21.1 is too much !!! (i have a 5th radio button and 4 image on a row only)

Seems i have to redo my jpeg now it's the only solution ?

VirtueMart Forum

Re: Custom field images display
« Reply #74 on: January 13, 2012, 06:52:40 am »