Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Mar 2008
    Posts
    18
    Plugin Contributions
    0

    xhtml problem 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

    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 :)

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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 )
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2008
    Posts
    34
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #7
    Join Date
    May 2008
    Posts
    34
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: jquery - prestashop - zencart ?

    Quote Originally Posted by yellow1912 View Post
    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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: jquery - prestashop - zencart ?

    Quote Originally Posted by jaydee98273 View Post
    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!
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #10
    Join Date
    May 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: jquery - prestashop - zencart ?

    Quote Originally Posted by kuroi View Post
    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?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 migrate from prestashop to zencart
    By Thannaree in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Aug 2013, 11:32 AM
  2. Jquery, JCarousel and ZenCart
    By borillion_star in forum General Questions
    Replies: 0
    Last Post: 3 Jan 2011, 01:10 AM
  3. jQuery Facebox + Zencart
    By khopek in forum General Questions
    Replies: 2
    Last Post: 26 Dec 2009, 11:42 PM
  4. JQuery + ZenCart
    By j4ckripp3r in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Apr 2009, 06:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR