News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

$.noConflict problem with other plugins?

Started by P-solver, November 04, 2013, 20:38:18 PM

Previous topic - Next topic

P-solver

Joomla: 2.5.0
VM:    2.0.24

site url: www.curre.se/qce
Login: user
Password: user

Hello,

Ok, I'm new to both Joomla and this forum and I feel that there's two interesting worlds i'm stepping in to :)

PROBLEM:
I've bought an finished template for joomla at a commercial site.
I've started to make som changes to it, and now trying to integrate VM into it also.

Unfortunatly it seems like one or more plugins that followed with my finished template are making VM not working quite correctly.

For example:
- When looking at a product the following error comes up in firebug:
TypeError: $.noConflict is not a function
<script type="text/javascript">$.noConflict();</script>


- When adding to cart the following happens:
{"basePrice":"1000,00 \u20ac","basePriceVariant":"1000,00 \u20ac","basePriceWithTax":"1210,00 \u20ac","discountedPriceWithoutTax":"1000,00 \u20ac","priceBeforeTax":"1000,00 \u20ac","salesPrice":"1210,00 \u20ac","taxAmount":"210,00 \u20ac","salesPriceWithDiscount":"","salesPriceTemp":"1210,00 \u20ac","unitPrice":null,"priceWithoutTax":"1000,00 \u20ac","discountAmount":"","variantModification":"","DBTax":"","Tax":"","VatTax":"1,00 \u20ac","DATax":""}

I've googled the problem and get the feeling that it has something to do with jquery and the use of the "$"-symbol.

Feel free to log on o the website if it can help you on the way in making my life a little more problem-free... (Se info in top of post)

QUESTIONS:
1. Can anyone help me figure out what causes the problem?
2. How do I solve it?

SOLUTION:
1. For the problem with $.noConflict I simply deleted the row containing:
<script type="text/javascript">jQuery.noConflict();</script>
in:
url\templates\my_template\index.php
(where "my_template" is the template in use)


GJC Web Design

Hi,

the cart etc functions fine .. I would start with the Jqueryeasy plugin  http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327

Just use the default settings and that should clear up the 2nd noConflict()

were are you seeing the 2nd "error"? - it is just the json post for the cart -

Cheers
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

P-solver

JQuery easy plugin installed with following features:

Enable jQuery (frontend) jQuery
Enable jQuery (backend) jQuery

jQuery Version jQuery v1.7 (latest)
jQuery UI Version jQuery v1.8.17 (stable)
Theme Base
Protocol https

Still no change in the problem with the blank popup when pressing "add to cart".

But when I disable the "rokBox" plugin it seems like it works better. I will confirm this when I get home, since I dont have firebug on my computer at work.

GJC Web Design

but the blank popup is just css - nothing to do with JS

see screens
you have white text on a white background





[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

P-solver

You are right, thanks.
I will change the css so the text gets visible.

Unfortunately I'm still being bugged with

TypeError: $.noConflict is not a function

Any suggestions on how to debug this?

GJC Web Design

just find where it's being inserted and remove...
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

P-solver

Perfect, I've done so now, and adited my original post.

I now get another error when going to the cart from the popup (after added a product to the cart):

TypeError: $(...).chosen is not a function

Any ideas of solution for this one?

GJC Web Design

#7
if your using jqueryeasy (would only use in the frontend btw)

add this line (copy/paste) to  Advanced Options Frontend (Expert users only)->Add Scripts

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



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

P-solver


GJC Web Design

added chosen is not a function to title - hopefully will be easier to search as have seen this on many VM's with jqueryeasy
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