test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • calavaro Friend
    #191024

    Hi,

    How do I make the “Recommend to friend” popup the same as “Ask a question about this product” popup on the detailed product pages?

    Right now the “Ask a question about this product” popup is great. It looks right, and is responsive for most layouts.
    The “Recommend to Friend” popup is different size, and does not respond to responsive layout (it’s stays in one fixed location, while being too wide).

    Is there a way to make both of the pop ups the same (so they both are like “Ask a question about this product”?

    All the best,

    Calavaro

    phong nam Friend
    #507624

    Hi Calavaro,

    You are right. That is the default fixed iframe width of popup view on PDF view, Email, Print links on the product details page of VM component which you can find in componentscom_virtuemarthelpersvmview.php file at 37th line:

    if ($modal) return ‘<a class=”modal” rel=”{handler: ‘iframe’, size: {x: 700, y: 550}}” title=”‘. JText::_($altText).'” href=”‘.JRoute::_($link, FALSE).'”>’.$text.'</a>’;

    That is why the popup view can’t adjust its width on different devices. Well, in this case, i suggest you to work with an experienced jQuery developer who has time and ability to customize this VM feature.

    The idea is changing the fixed width x: 700 (pixels) to x: 100% so that the popup view can be responsive then. But, that parameter definition is not allowed in above line and furthermore, it will be overwritten when you update the VM component.

    Note: I think you also can customize this jQuery of Email (Recommend friends) by referring the defined jQuery of Ask a question in the beginning of templatesja_hawkstorehtmlcom_virtuemartproductdetailsdefault.php file, but define with percent instead of pixel on iframe.

    calavaro Friend
    #507755

    Thank you, that’s a good explanation.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  calavaro 11 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum