Show Cart Button Not Appearing

  • odwyerjim
  • Topic Author
  • Visitor
  • Visitor
12 years 3 months ago #13957 by odwyerjim
Replied by odwyerjim on topic Re: Show Cart Button Not Appearing
Hi Ivan,

Thank you for your assistance.

I am using Google Chrome, the latest version.

What do you suggest that I should do to rectify this situation?

Thank you,

James.

Please Log in to join the conversation.

More
12 years 3 months ago #13960 by ivan.milic
upload jquery runtime to your site , then change those references to point to that file.

Please Log in to join the conversation.

  • odwyerjim
  • Topic Author
  • Visitor
  • Visitor
12 years 3 months ago #13964 by odwyerjim
Replied by odwyerjim on topic Re: Show Cart Button Not Appearing
Hi Ivan,

Thank you for your response.

If possible, could you please direct me to where I can find the "jquery runtime" file?

Thank you,

James

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
12 years 2 months ago #14004 by milos
Sorry for the late answer.

jQuery library can be downloaded from www.jquery.com . Then look at folder /templates/templatename/js and you will see the same (old) file named (most likely) as jquery.min.js. Rename file that you downloaded to match this name and upload it (overwrite original).

Please Log in to join the conversation.

  • odwyerjim
  • Topic Author
  • Visitor
  • Visitor
12 years 2 months ago #14257 by odwyerjim
Replied by odwyerjim on topic Re: Show Cart Button Not Appearing
Hello Ivan,

I apologise for the delay in getting back to you on this.

I have tried what you have suggested above and this issue still remains.

Please see my site: www.marqueepartytents.com/bedroom

Thank you,

James

Please Log in to join the conversation.

More
12 years 2 months ago #14266 by ivan.milic
open:

www.marqueepartytents.com/components/com...ssets/js/vmprices.js
Code:
$.fn.productUpdate = function() { mod = $(this); $.getJSON(siteurl+"index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json", function(datas, textStatus) { if (datas.totalProduct >0) { mod.find(".vm_cart_products").html(""); $.each(datas.products, function(key, val) { $("#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); } mod.find(".total_products").html(datas.totalProductTxt); } ); }

note the line:

mod.find(".show_cart").html(datas.cart_show);


replace it with this:

if(!mod.find(".show_cart")[0]){
jQuery('<div class="show_cart"> </div>')
.appendTo(jQuery('.vmCartModule'))
.html(datas.cart_show);

}else
mod.find(".show_cart").html(datas.cart_show);

Please Log in to join the conversation.

Time to create page: 0.287 seconds
Powered by Kunena Forum