Post by kkeith » Thu May 26, 2011 10:41 pm

Why does opencart use so much javascript?

I recently started using opencart for a client because I thought it would be what I needed, but I soon found out that it didn't have all the features I needed. I'm am currently doing some heavy modification of the system and found that a lot of the submit buttons are jquery calls to submit the form. Is there a reason for this? Why would you rely on something that can be disabled.

Javascript should be used to improve the user interface, not actually be the user interface. I know this adds another layer of complexity, but the cart should work without it. At the very least, put a noscript tag in the default theme that shows a global message that javascript is disabled.

Overall, good job on this cart though. The MVC is pretty good. Made me rethink how MVC frameworks are used. I have been building my own for years and I am thinking of modifying it to incorporate some of your ideas.

Newbie

Posts

Joined
Thu May 26, 2011 4:49 am

Post by avagraphique » Sun Jun 19, 2011 10:52 am

I have to agree wit you here, I would prefer some old school forms over the fancypants jquery submit... I may have to change this on my shop if I am going to move forward with it.

Newbie

Posts

Joined
Thu Dec 16, 2010 8:28 pm

Post by rph » Sun Jun 19, 2011 1:26 pm

kkeith wrote:Why does opencart use so much javascript?
Cutting down on page reloads mayhaps?

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 8 guests