VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: smsm2000 on January 08, 2012, 13:15:50 PM

Title: Your cart is empty VM2
Post by: smsm2000 on January 08, 2012, 13:15:50 PM
Hello
i install VM2 but its alwas give me Your cart is empty when i go to check out page and always give me the price is 0 how can i fix this
Title: Re: Your cart is empty VM2
Post by: jenkinhill on January 08, 2012, 14:37:04 PM
url?
Title: Re: Your cart is empty VM2
Post by: smsm2000 on January 09, 2012, 04:46:21 AM
thanks allot for replay here is link to check

http://ilamakkah.com/index.php/omrah/6/forfait-al-marwa-21-jours-detail
Title: Re: Your cart is empty VM2
Post by: jenkinhill on January 09, 2012, 10:01:10 AM
OK I see the problem, but don't know the cause.

Your up/down quantity arrows are not working, suggesting a JavaScript problem. So a check with IE9 Script debugger shows a problem with 4b.jquery.ui.autocomplete.html.js  (wherever that comes from)
"Unable to get value of the property 'autocomplete': object is null or undefined"

Does the cart work if you use a different template such as Beez?
Title: Re: Your cart is empty VM2
Post by: smsm2000 on January 10, 2012, 03:47:41 AM
hello thanks for your answer i try it with Beez5 - Default-Fruit Shop  template is working as well and here is code i dont found what you tell me i am not professional in coding sorry you can check the code for me

i found the code in ::  t3-assets/js/js_3eca834695ce1283229d19f07c3d6f4b.jquery.ui.autocomplete.html.js

i use template :: ja_community_plus :: from joomla art

and here is the code inside the file
-----------------------------------------------------------------

(function($){var proto=$.ui.autocomplete.prototype,initSource=proto._initSource;function filter(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),"i");return $.grep(array,function(value){return matcher.test($("<div>").html(value.label||value.value||value).text());});}
$.extend(proto,{_initSource:function(){if(this.options.html&&$.isArray(this.options.source)){this.source=function(request,response){response(filter(this.options.source,request.term));};}else{initSource.call(this);}},_renderItem:function(ul,item){return $("<li></li>").data("item.autocomplete",item).append($("<a></a>")[this.options.html?"html":"text"](item.label)).appendTo(ul);}});})(jQuery);


thanks allot for your help
Title: Re: Your cart is empty VM2
Post by: jenkinhill on January 10, 2012, 09:25:55 AM
I am not a JS coder. You will need to ask over on Joomlart what that code does. If it is related to a module (such as search, which may use autocomplete) then disabling that module may solve the problem.