Manufacturer link in product details

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Dec 22, 2013 12:10 pm
Reply with quote
Report this post
Hi
The link of manufacturer in product details page, opens outside the template in a full width page. How I can fix it? I hope you can help me.
I send a screenshot, and the link to test: http://www.miraelmuro.cl/productos/afic ... etail.html
I wrote to VM Forum and after to disable "jQ1.6.4" and "use fancybox", the problem has not been solved. I installed a module called "Flexible - Virtuemart Zoom Effect on Product Page" in the product details page (is not a plugin) but this would not cause the issue.
In the forum tell me that It is a JavaScript issue and that maybe I have to write some different code to create a popup but that would be in the template override consulting to VM template developer.
I hope your help.
User avatar
Expert Boarder

GK User
Sun Dec 22, 2013 12:16 pm
Reply with quote
Report this post
I saw the same problem in your demo page: http://demo.gavick.com/joomla25/storebo ... ils-layout
User avatar
Expert Boarder

teitbite
Tue Dec 31, 2013 4:49 am
Reply with quote
Report this post
Hi

I think that a modal class was not attached or it's in a conflict with fancybox. First please try add this at top of this file: /html/com_virtuemart/productdetails/default.php

Code: Select all
<?php JHTML::_('behavior.modal'); ?>
User avatar
Moderator

GK User
Tue Dec 31, 2013 3:55 pm
Reply with quote
Report this post
Hello, I have set <php JHTML :: _ ('behavior.modal');> at the beginning of file default.php. Maybe I have not known where to put it because it has not been work. Please tell me which line should go. At the beginning of everything, before <? Php..., the link opens the tab manufacturer in modal pop up, but only sometimes, because at third or fourth time it opens as full page (as before) and loses completely any css style. I hope your help.
http://www.miraelmuro.cl/productos/afic ... etail.html
(Happy new year)
User avatar
Expert Boarder

teitbite
Wed Jan 01, 2014 1:25 pm
Reply with quote
Report this post
Hi

This additional line was just a guess. Please send me an access to ftp so I'll try to find a solution.
User avatar
Moderator

GK User
Fri Jan 03, 2014 1:36 am
Reply with quote
Report this post
Hi, I send you a PM.
User avatar
Expert Boarder

teitbite
Fri Jan 03, 2014 5:31 pm
Reply with quote
Report this post
Hi

Sorry, but an access You've send me is not working. Please check it and send me a correct one:

530 Login authentication failed. Please contact your web hosting service provider for assistance.
User avatar
Moderator

GK User
Mon Jan 06, 2014 7:38 pm
Reply with quote
Report this post
Hi, I send you the pass some days before...(I had not told here)
User avatar
Expert Boarder

teitbite
Tue Jan 07, 2014 6:45 pm
Reply with quote
Report this post
Hi

I've edited templates/gk_storebox/js/gk.scripts.js and replaced code:

Code: Select all
window.addEvent('load', function() {
setTimeout(function() {
document.getElements('.modal').removeEvents();
document.getElements('.ask-a-question').removeEvents();
}, 2000);
});


with

Code: Select all
window.addEvent('load', function() {
setTimeout(function() {
document.getElements('.ask-a-question').removeEvents();
}, 2000);
});


Looks to be ok now :)
User avatar
Moderator

GK User
Wed Jan 08, 2014 12:52 pm
Reply with quote
Report this post
Thank you! I think now it's working! although the pop up window does not have styles, how I can give css styles or perhaps leave exactly as shown in the manufacturer's description? thanks again for your help.
User avatar
Expert Boarder

teitbite
Fri Jan 10, 2014 6:15 am
Reply with quote
Report this post
Hi

Unfortunatelly this popup is applied by a different plugin "modal", rest is a "fancybox", so they will look a little different. Can be adjusted with some additional styling, but I'm afraid support do not cover it. If You want I can spend some private time on this, but this would cost some small fee.
User avatar
Moderator

GK User
Fri Jan 10, 2014 4:21 pm
Reply with quote
Report this post
I think it would be better that the the manufacturer's link go to page with the manufacturer's description, without fancy box or pop up, because this is not needed. I think the pop up window is so ugly for the rest of the site design.

I have a menu of virtuemart manufacturers (VM - Manufacturer) where each manufacturer are shown in a page layout with template style (titles, align...).

Could the link "manufacturer" of the product details, carry to that template page and not to show plain content in a pop up or fancybox window?

I think this would be better for future template updates.
User avatar
Expert Boarder

teitbite
Tue Jan 14, 2014 4:02 am
Reply with quote
Report this post
Hi

Sorry. I missunderstood. Was thinking You do not like the style of the popup itself not the style of its content. Please add this code at the end of /templates/gk_storebox/css/k2.css :

Code: Select all
body.contentpane div.manufacturer-image {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}


Please try and if You will not like it I'll change it to a direct link to manufacturer page.
User avatar
Moderator

GK User
Tue Jan 14, 2014 2:43 pm
Reply with quote
Report this post
Why file is k2.css and not vm.css or something? because is virtuemart, not k2 ... anyway nothing happened (not even in vm.css), the style of pop up is still plain and the image is not aligned to the left so that the text up. Is all equal.
User avatar
Expert Boarder

teitbite
Thu Jan 16, 2014 4:53 am
Reply with quote
Report this post
Hi

Popup is using a component template which is loading couple of files, but one of them is /templates/gk_storebox/css/k2.css. Anyway when I look at it now I co not the code I gave You there. Please maybe clear joomla cache so changes will takes effect. The class I posted above is working fine when I'm adding it into firebug.
User avatar
Moderator

GK User
Thu Jan 16, 2014 1:27 pm
Reply with quote
Report this post
O.K Thanks! Now is working! Do you know also how to change font style? for to use font "Roboto"?
User avatar
Expert Boarder

teitbite
Sat Jan 18, 2014 4:12 am
Reply with quote
Report this post
Hi

Please just use this code:

Code: Select all
body.contentpane {
font-size: 15px;
font-family: 'Roboto', sans-serif;
}


But I think You will need to include the link to this font (a correct code will be generated in google fonts page) betweet <head></head> part in template's /component.php
User avatar
Moderator

GK User
Mon Jan 20, 2014 4:07 pm
Reply with quote
Report this post
I insert the code in override.css with

body.contentpane {
font-size: 15px;
font-family: 'Roboto Condensed', Arial, sans-serif;
}

and in body selector in fonts (in template styles) I set "body.contentpane" but it no works...is this the words for to insert in "Fonts"?
User avatar
Expert Boarder

teitbite
Wed Jan 22, 2014 6:26 am
Reply with quote
Report this post
Hi

Sorry, my bad. Please add this code to /templates/gk_storebox/css/k2.css . override.css is not used in popups.
User avatar
Moderator

GK User
Thu Jan 23, 2014 10:30 pm
Reply with quote
Report this post
thanks! I set this styles for pop up manufacturer en k2.css (for body, title, image and link):

body.contentpane {
font-size: 15px;
font-family: 'Roboto Condensed', Arial, sans-serif;
color: #444444;
text-align: justify;
}

body.contentpane div.manufacturer-image {
float: left;
background: #fff;
border: 1px solid #efefef;
margin: 0 15px 10px 0px;
padding: 8px;
}

body.contentpane h1 {
font-size: 35px;
font-family: 'Roboto Condensed', Arial, sans-serif;
color: #000000;
margin: 0 0 20px 0px;
}

body.contentpane a {
color: #c95f78;
-webkit-transition: color 0.2s linear;
-moz-transition: color 0.2s linear;
-o-transition: color 0.2s linear;
transition: color 0.2s linear;
text-decoration: none;
}

My only problem is that the Roboto typeface can be seen only in some computers (not browser problem, is always chrome)
Well, I will not dwell on that detail.

Thank you very much for your help ..!
User avatar
Expert Boarder

teitbite
Sat Jan 25, 2014 9:13 am
Reply with quote
Report this post
Hi

Roboto font is a google font, so has to be working with any browser. Problem may be that file with fonts is not loaded in popup, since it has only most common files. Here is a line to load font which should be added to /component.php

Code: Select all
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
User avatar
Moderator

GK User
Mon Jan 27, 2014 9:48 pm
Reply with quote
Report this post
No, that did not result. In OS X Mavericks is good but no in OS X Mountain Lion. Is not a browser problem. I don't want to fix this (is no important). Thanks for all..!!
User avatar
Expert Boarder

teitbite
Wed Jan 29, 2014 12:44 pm
Reply with quote
Report this post
Hi

Ok. No problem. Sorry I could not help with this last one issue.
User avatar
Moderator


cron