VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: FelixR on May 07, 2014, 13:44:58 PM

Title: Manufacturer Modal window problems
Post by: FelixR on May 07, 2014, 13:44:58 PM
Dear All,

Not come across this before but getting the manufacturer's name showing as a pop-up right across middle of the page, see attached image.

I would like Manufacturer's name to appear as a text link next to the label manufacturer!

Any suggestions have modal window selected in the checkout in the config

Ver nos am using in my signature


[attachment cleanup by admin]
Title: Re: Manufacturer Modal window problems
Post by: GJC Web Design on May 07, 2014, 13:46:49 PM
looks more like an absolute positioned div.. but without a url not much more to say

Title: Re: Manufacturer Modal window problems
Post by: FelixR on May 07, 2014, 13:48:16 PM
OK sorry

Site in development  url for that page http://safeproducts4u.co.uk/safe/index.php/products/household-products/cleaning/bathroom-tile-cleaner-detail
Title: Re: Manufacturer Modal window problems
Post by: GJC Web Design on May 07, 2014, 14:30:28 PM
it's just a wonky style  causing a adsolute pos. div

comment out http://safeproducts4u.co.uk/safe/templates/equinox/css/bootstrap.css line 4180

.modal {
  background-clip: padding-box;
  background-color: #b9298b;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  left: 50%;
  margin: -250px 0 0 -280px;
  outline: medium none;
  position: fixed;
  top: 50%;
  width: 560px;
  z-index: 1050;
}
Title: Re: Manufacturer Modal window problems
Post by: FelixR on May 07, 2014, 15:14:40 PM
Thanks for the suggestion - but of course if I do that modal window disappears but the manufacturers name does not appear in the page next to the label as required.

Also modal pop-up does not work when I click the add to cart button.

Is there an option in the config to select to determine how the manufacturers name appears???

Can't seem to find it
Title: Re: Manufacturer Modal window problems
Post by: GJC Web Design on May 07, 2014, 15:44:03 PM
but I just did it in firebug - the link displays where it should and the modal still works

or just change the class name of the link in the template

<a href="/safe/index.php/manufacturers/neways?tmpl=component" rel="{handler: 'iframe', size: {x: 700, y: 550}}" class="modal_">Neways</a>

also works fine

the modal popup is dependent on the rel - not the class name

or overwrite the modal class rule for that page

.manufacturer .modal {
   /* reset everything here*/
}
Title: Re: Manufacturer Modal window problems
Post by: FelixR on May 07, 2014, 16:26:35 PM
Sorry must be a bit thick here :)

But I am still getting a floating window for a link not a text link in the page as required - I can manipulate so it place in a correct position for a particular browser size but as I size the window it floats around.

Maybe i need to override something in the template or virtumart to make it only text that pops a window with info about the manufacture?

need a cup of tea  :-\

[attachment cleanup by admin]
Title: Re: Manufacturer Modal window problems
Post by: GJC Web Design on May 07, 2014, 17:12:42 PM
just set everything to nothing in the css

e.g.

.manufacturer .modal {
  background-color: #b9298b;
  border: 0 solid rgba(0, 0, 0, 0.0);
  border-radius: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  margin: 0;
  outline: medium none;
  position: inherit;
  width: auto;
}

[attachment cleanup by admin]
Title: Re: Manufacturer Modal window problems
Post by: FelixR on May 07, 2014, 17:32:08 PM
Duh

that got it - thank you kindly :)