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

    Hi,

    I reeeaaally didn’t want to open up yet another thread, but I have another problem.

    This problem cropped up somewhere along the lines of other fixes and mods provided here (mostly by the hero Leo), but I am not sure which caused it.

    So, when a user clicks “Ask a question about this product” on a product detail page, it should open in a modal popup box. It used to open correctly, but now it does not anymore.
    Now it simply opens up a new page with no other info except the form. You can still fill in the form and send it, but you have no way of getting back to the website (unless you click back in the browser twice).

    When you click the “Email/Recommend to friend icon it opens in a modal popup just fine, which is right there on the same product page. (I did try to go back to the original …htmlcom_virtuemartproductdetailsdefault.php file without the email/recommend icon, but it didn’t help at all)

    So, hopefully for the last time (not likely :p ) I am asking for assistance on how to solve a problem.

    A product can be viewed at http://com2.udemo.net/hayabusa-rashguard-detail
    PM me for access credentials if you don’t have them.

    Pictures of the issue:
    Result:
    Thank you again for any assistance provided.

    All the best,

    Calavaro


    1. tB0iyMi
    2. O4YVFBk
    phong nam Friend
    #506556

    Hi Calavaro,

    It is quitely weird that the our customized jQuery of displaying Ask a question got stuck on your website, not sure it happened before or after you added the Recommned friend codes. Anyways, the issue is fixed by using the defaul Joomla jQuery in templatesja_hawkstorehtmlcom_virtuemartproductdetailsdefault.php with:

    // addon for joomla modal Box
    JHTML::_('behavior.modal');
    // JHTML::_('behavior.tooltip');
    if(VmConfig::get('usefancy',0)){
    vmJsApi::js( 'fancybox/jquery.fancybox-1.3.4.pack');
    vmJsApi::css('jquery.fancybox-1.3.4');
    $box = "$.fancybox({
    href: '" . $this->askquestion_url . "',
    type: 'iframe',
    height: '550'
    });";
    } else {
    vmJsApi::js( 'facebox' );
    vmJsApi::css( 'facebox' );
    $box = "$.facebox({
    iframe: '" . $this->askquestion_url . "',
    rev: 'iframe|550|550'
    });";
    }
    $document = JFactory::getDocument();
    $document->addScriptDeclaration("
    //<!]>
    ");

    The link with popup works fine now.

    calavaro Friend
    #506642

    Thank you. It’s fixed Leo.

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, 3 months ago.

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