Zen Cart Logo
Forums / Addon Templates / jquery - prestashop - zencart ?

jquery - prestashop - zencart ?

Locked

Views: 7,855

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
19 Nov 2008, 16:25
#1
b_funtomas avatar

b_funtomas

New Zenner

Join Date:
Mar 2008
Posts:
18
Plugin Contributions:
0

jquery - prestashop - zencart ?

I'm happy zencart user now for about 1 year

Lots of support and free add ons.

Since than there are about 1000 Listings and 150 customer in the database. Lots of modifications, endless hours spent to give customers good user experience.

Though there comes prestashop along with overload of new jquery features :(

We can't just move on and turn our back to zencart community :bigups:

but there is still high demand on some zencart jquery modules.

Only thing i could find what came close to this, is the template from zencart-jquery.com

as i did change and add loads of modules already to my template, it is not that easy to re write them in this new template. I even tried to use some snippets from zencart-jquery.com in my template, but without any usefull result

I'd love to know what you think about this new jquery?

Any suggetions where to get some knowledge to learn how to integrate jquery in to zencart? i’m eager to learn it just to get the feeling of Success and stay with zencart :)

19 Nov 2008, 16:36
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: jquery - prestashop - zencart ?

The zencart-jquery.com template adds the jQuery using the methods described in the jscript readme file in the Zen cart distribution pack's docs folder, i.e. they have renamed the files by prefixing them jscript_ and placed them in the templates jscript folder where they are picked up automatically by Zen Cart.

(Me likey jQuery too - a lot :yes:)

19 Nov 2008, 17:57
#3
jaydee98273 avatar

jaydee98273

New Zenner

Join Date:
May 2008
Posts:
28
Plugin Contributions:
0

Re: jquery - prestashop - zencart ?

JQuery is very nice. I too have a heavily customized shop, and have been able to implement several JQuery features over the past month. I like to look at it like this: PHP generates the content and JQuery manipulates it. So long as each element you want to use javascript on has a class or ID assigned to it you should be able to do whatever you want with it.

For example, I wanted to use JQuery Lightbox instead of one of the lightbox mods in the downloads section. Once I uploaded the proper script files all I had to do was find where the product images were generated in the template file and add the lightbox class to the <img...> tag.

If you have already spent time developing a store that works for you I wouldn't dump it over some eye candy. It is very possible to incorporate JQuery into Zen Cart if you care comfortable working with some basic code. Obviously you need to be careful experimenting on a live store, but make a copy of it or something are dig in. JQuery Website has tons of useful documentation.

19 Nov 2008, 18:07
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: jquery - prestashop - zencart ?

@jaydee98273

Hi jaydee

Though I agree 100% with your sentiment, I disagree with some of your details.

There's usually no need for a specific ID or class on the object to be manipulated as jQuery has such a rich selection of ways to taget specific elements.

Also, one of the main planks of the jQuery philosophy is unobtrusive attachment of javascript, so rather than attaching a class to an element to trigger the jQuery, we can just decare a function (as the jQuery lightbox you have quoted - my choice too), have Zen Cart automatically load it, and there's no need to change the template files at all. This is seriously cool. :cool:

19 Nov 2008, 18:10
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: jquery - prestashop - zencart ?

@b_funtomas

Hopefully this conversation will provide you with some assurance that the rather limited jQuery goodies available with Prestashop will undoubtedly be surpassed by the creatively of the Zen Cart community as the jQuery bandwagon rolls forward gathering pace.

19 Nov 2008, 18:15
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: jquery - prestashop - zencart ?

I recently worked on a project where I have to add multiple items to cart (with attributes) using jquery. Not as easy as you may think, the problem is that zencart catches the post form data and uses redirect and such in the function, I had to extend the class to add an ajax method, and the override the auto_loaders to use the new class. But it is do-able.

19 Nov 2008, 18:15
#7
jaydee98273 avatar

jaydee98273

New Zenner

Join Date:
May 2008
Posts:
28
Plugin Contributions:
0

Re: jquery - prestashop - zencart ?

kuroi -

Thanks for the heads up. I'm still very much a JQuery noob and selecting something by it's class or id was the most obvious way from the reading I did before diving in. I did kind of feel like it was a slightly brutish way at the time, and now I will look into your suggestion.

19 Nov 2008, 18:20
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: jquery - prestashop - zencart ?

yellow1912:

I recently worked on a project where I have to add multiple items to cart (with attributes) using jquery.Looks like we're building up a repository of jQuery experience in the Zen Cart community.

I've quoted this one elsewhere, but this rather specialist page was achieved with jQuery and attributes.

19 Nov 2008, 18:21
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: jquery - prestashop - zencart ?

jaydee98273:

Thanks for the heads up. I'm still very much a JQuery noob and selecting something by it's class or id was the most obvious way from the reading I did before diving in. I did kind of feel like it was a slightly brutish way at the time, and now I will look into your suggestion.I think most of us are still learning on this one. But it's fun and well worth the investment!

19 Nov 2008, 18:23
#10
jaydee98273 avatar

jaydee98273

New Zenner

Join Date:
May 2008
Posts:
28
Plugin Contributions:
0

Re: jquery - prestashop - zencart ?

kuroi:

we can just decare a function...have Zen Cart automatically load it, and there's no need to change the template files at all.

Would you mind elaborating on this a little bit?

11 Aug 2009, 16:30
#12
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: jquery - prestashop - zencart ?

Can we use it on thumbnail images brought up in a search??