Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • henryxutao Friend
    #189934

    In this template, in product detail page, when we click the “add to cart” button, there will be an animation, the main-image will shrink and fly to the right side shopping cart icon.
    I’ve successfully added the “add to cart” button into the product category page, I want to add the animation too. But I can’t find the code or files related to this, can anyone help me please?
    Thanks.

    Saguaros Moderator
    #503233

    Hi Henry,

    We include a JS file that helps the ‘add to cart’ functions like that, it locates in /templates/ja_hawkstore/js/javmprices.js, you can have a look at it.

    Regards

    henryxutao Friend
    #503400

    Thanks. This problem has been solved. This is really a fantastic template and the support is good too.
    The code relate to the animation is in line 113:

    if($('.productdetails-view.productdetails .main-image img').length>0){
    flyToElement($('.productdetails-view.productdetails .main-image img'), $(".vmCartModule"));
    }
    if($(form).parent().parent().parent().find('div.vmproduct-image img').length>0){
    flyToElement($(form).parent().parent().parent().find('div.vmproduct-image img'), $(".vmCartModule"));
    }

    If anybody want to check more about “add to cart” button in product category view page, you can read my post here.

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

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

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