Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • scissorhands Friend
    #512608

    Thanks for the “und” problem guidance Leo. I am waiting for the fix on the cart issue (cart works if i reload the page, it just doesnt work the first time a product is added to the cart) . Also about the vm products module ? Any ideas how to fix it ? It is still cutting off the images.(see attached photo)


    1. cutting
    phong nam Friend
    #512653

    Hi,

    I spent some time to compare the product images of VM Products modules on your site with our JA Hawkstore template demo, but unfortunately I couldn’t figure the difference and the images being cut on your website as you mentioned in the snapshots. Can you tell me more details how you want to achieve with that product images ?

    scissorhands Friend
    #512779

    Hello Leo,

    I think its a rendering issue. I am using chrome. See attached screenshot. The module is not rendered properly so it doesnt fit the entire area and i have problems with cut -off pictures and non visible categories,


    1. rendering
    phong nam Friend
    #512947

    Hi scissorhands,

    Thank you for your patience. Our Hawkstore developer has helped me to fix the VM cart module when purchasing the products. It can count the quantity and title of the products after being selected now.

    I’d to outline what our dev has done to fix the issue so that you can apply the solution on other related Hawkstore project:

    1. Clone the vmprices.js file in the Virtuemart component installation folder to templates/ja_hawkstore/js/ path.

    2. Open templates/ja_hawkstore/etc/assets.xml file and change:

    <file>js/javmprices.js</file>

    to

    <file>js/vmprices.js</file>

    3. Open this vmprices.js and replaces lines:

    $("#hiddencontainer .container").clone().appendTo(".vmCartModule .vm_cart_products");
    $.each(val, function(key, val) {
    if ($("#hiddencontainer .container ."+key)) mod.find(".vm_cart_products ."+key+":last").html(val) ;
    });
    });
    mod.find(".total").html(datas.billTotal);
    mod.find(".show_cart").html(datas.cart_show);
    }

    with

    $(".vmCartModule .vm_cart_products").each(function(){
    $(this).parent().find("#hiddencontainer .container").children().clone().appendTo($(this).find('.container'));
    });
    $.each(val, function(key, val) {
    if ($("#hiddencontainer .container ."+key)) mod.find(".vm_cart_products .container ."+key+":last").html(val) ;
    });

    });

    if($(".vmCartModule .showtotal").find(".total_products_bottom").length == 0){
    $('<div class="total_products_bottom"></div>').appendTo(".vmCartModule .showtotal");
    }
    if($(".vmCartModule .showtotal").find(".total").length == 0){
    $('<div class="total" style="float: right;"></div>').appendTo(".vmCartModule .showtotal");
    }
    if($(".vmCartModule .showtotal").find(".show_cart").length == 0){
    $('<div class="show_cart"></div>').appendTo(".vmCartModule .showtotal");
    }
    $(".vmCartModule .showtotal").find(".total_products_bottom").html(datas.totalProductTxt);
    $(".vmCartModule .showtotal").find(".total").html(datas.billTotal);
    $(".vmCartModule .showtotal").find(".show_cart").html(datas.cart_show);
    }

    Note: We have already fixed the issue on your site, so you don’t need to apply the solution above anymore.

    I do attach the vmprices.js below so that you can use on other projects without editing the file.


    1. vmprices.zip
Viewing 4 posts - 16 through 19 (of 19 total)

This topic contains 19 replies, has 3 voices, and was last updated by  phong nam 11 years ago.

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