Melle De Jong
asked 5 years ago

I’m having trouble fixing my cart in dw trendy. the mini cart works but the main cart doesn’t.

This is te problem i find:

Uncaught TypeError: undefined is not a function
http://tweejongens.nl/winkelmandje/ Failed to load resource: the server responded with a status of 500 (Internal Server Error)

When i add a product in doesn’t show up in the cart. can anybody help me out?

tweejongens.nl

1 Answers
DominicStaff
answered 5 years ago

Hi,

  • You may need to use a closure
    ;(function($){
    // your code
    })(jQuery);

    Move your code inside the closure and use $ instead of jQuery

  • The 500 code would normally indicate and error on the server, not anything with your code. Some thoughts

Talk to the server developer for more info. You can’t get more info directly.
Verify your arguments into the call (values). Look for anything you might think could case a problem for the server process. The process should not die and should return you a better code, but bugs happen there also.
Could be intermittent, like if the server database goes down. May be worth trying at another time.

  • have checked on our demo, this issue come from WP 4.1 & woocommerce 2.3.0. At the moment, our theme still does not compatible with latest version of the plugin. I sent and notified our technical team about this problem. We are checking and fix this issue in the next version. We will release as soon as possible.
    Regards,
melle de jong
replied 5 years ago

Thanks for answering so fast. But i have still 1 question, where’s the code i can edit it in?

dominic Staff
replied 5 years ago

I have checked your site. I saw your site have resolved this issue. I’m not find the issue when I Debug site.

Powered by DW Question & Answer Pro