News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart doesn't working / state id doesn't working

Started by nc, April 27, 2014, 19:11:23 PM

Previous topic - Next topic

nc

Virtuemart 2.6.0
Joomla 2.5.19

Add to cart doesn't work (http://maderasagrada.com/index.php/tienda-online-venta-palo-santo/palo-santo/palo-santo-100-gramos-detail)
state_id doesn't work (http://maderasagrada.com/index.php/tienda-online-venta-palo-santo/user/editaddresscartBT)

I do not how to deal with this trouble. People cannot make orders. I got this trouble on the cart about 15 days and i need to solve it. Pleas anyone here can help me please.

jenkinhill

You must load VirtueMart's jQuery - looks like you have turned it off in Configuration/Templates/Activate Css Styles & Javascripts

Then you load another version of jQuery in your template. The code is
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

You probably will have to stop that version loading as it will be the very latest jQuery version which almost certainly will break VirtueMart's functions. For JavaScript debugging see http://forum.virtuemart.net/index.php?topic=119638.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

nc

Thank you four your help.
I have turned on virtuemart's jquery and added those line of code in my template.

:D Quantity box is workin'. Now the people can choose the number of products, great !!.

:( State:id still not

:( And the cart is empty after choose a product

What else should i do to fix those troubles?

UPDATED: i had installed a few days ago 'jquery easy' and 'ExT safe query' following the instructions here in the forum but i do not know if they behavior are not good for the site. Also, i got firebug but i can not see any troubles there. I'm a virtuemart/coder medium user and maybe i make some mistakes.

Thanks in advance

GJC Web Design

#3
I use Jquery easy on all my VM sites - you won't need both those - just easy

It has no performance drawbacks BUT - look in your Firebug console - on some VM installs I need to add the chosen.js to the Jquery easy exceptions
shows as an error:  TypeError: $(...).chosen is not a function

on the Jquery tab  ->  Advanced Site Options (Expert users only)-> other->add scripts

add :  components/com_virtuemart/assets/js/chosen.jquery.min.js

the reason is jquery easy sees the jquery.min.js in the file name and leaves it out..

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

nc

Thanks for your answer !!

I have disabled EXT safe query.

I have added:  components/com_virtuemart/assets/js/chosen.jquery.min.js in jquery

but nothing has happen. Still in troubles.

Maybe the jquery configuration is not good:
LOAD JQUERY:NO
VERSION: 1.7
LOCAL
UI: 1.8
...

Thanks in advance !!

GJC Web Design

on http://maderasagrada.com/index.php/tienda-online-venta-palo-santo/user/editaddresscartBT  there is no jqueryeasy published and at least 2 versions of jquery being loaded

check your settings - is it even published??

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

nc

This shop online is alive more than 2 years without problems.
Jquery easy is installed 1 week ago trying to solve mentioned problems.
I've checked FTP folders and there's no jquery folder inside libraries folder. (i cannot put the paht to jquery libraries in the jquery easy configuration because it doesn' exist: /libraries/jquery/v1.7/jquery.min.js).This could be the problem?.
Why is not that folder, has it disappear?

Also, i put jquery easy as the last one to be called in the plug-ins joomla directory, as it says in the jquery easy documentation.

I do not understand nothing and my technical profile is not enough to solve it. It is frustating.

Please, help me. I'm losing lots of orders. Sorry about my english, I write from Spain.

Thanks !!

GJC Web Design

But your not following the advice or answering our questions !

There is no jquery easy plugin published or it is wrongly configured.
If it was at the very least  the no-conflict script  from jquery easy would be in the scripts..  there is nothing in the head from jquery easy and at least 2 jquery libraries being loaded - that is the problem

If you say that it worked fine for 2 years then stopped - something you did stopped it - code doesn't write its-self...

If jquery easy was installed, published and configured correctly the 3 entries in the screen shot wouldn't exist - they would be replaced by ONE entry from jquery easy  for the jquery library and another for the no-conflict

[attachment cleanup by admin]
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

nc

 :D IT'S SOLVED !!!!!!!!!!!!!
:D THANK YOU FOUR YOUR HELP !!!!!!!!

The problem was in COOKIES ACCEPT plugin. It was adding a jquery script line loading jquery before virtuemart jquery.

Message for anyone who is in trouble with jquery:
Try to publish/unpublish your plugins one by one until find the plugin who is adding this script line.

Thank you and i hope this message could help.


kelecz

Quote from: GJC Web Design on April 27, 2014, 20:46:55 PM
I use Jquery easy on all my VM sites - you won't need both those - just easy

It has no performance drawbacks BUT - look in your Firebug console - on some VM installs I need to add the chosen.js to the Jquery easy exceptions
shows as an error:  TypeError: $(...).chosen is not a function

on the Jquery tab  ->  Advanced Site Options (Expert users only)-> other->add scripts

add :  components/com_virtuemart/assets/js/chosen.jquery.min.js

the reason is jquery easy sees the jquery.min.js in the file name and leaves it out..

Can you please help me. Pop up won't show, I tryed that you wrote.
Live is on www.petproba.konji.rs

Thx in advance

GJC Web Design

Boy - thats some JS your loading!!!!

have you selected the popup in the admin - goes (successfully) straight to cart
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kelecz

Quote from: GJC Web Design on January 14, 2015, 16:16:27 PM
Boy - thats some JS your loading!!!!

have you selected the popup in the admin - goes (successfully) straight to cart

Is that a compliment for me ? ;D
If you have some suggestion, please? I always listen to you.
I solved it! See picture. It was unchecked that what is marked.

THANK you!

[attachment cleanup by admin]