Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2012
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Help with Java Mini Cart Code

    I am looking for help to develop a java code for my e-commerce site mini cart.

    I have looked locally (kijiji) and on Coding Forums market place and haven't received a great response. Either the person had other projects they were working on or they were trying to "sell" me more than what I was asking for (ie web and graphic design).

    I have a mini cart on my site that I would like to have a few specific features. I am hoping someone in this forum can help me out (as I have received wonderful help before!!)

    I need a javascript code/feature that will:

    - highlight the most recent item that has been added to slide down mini cart window
    - refresh the mini cart div content to update item count and price.
    On the site I am hosted on there is a built in feature to show how many items are in the cart and total price, but I don't know how to get it to update successfully
    - when slide down mini cart window refreshes it should'nt scroll to the top (if there is a scrollbar) ie: looking to implement a javascript: void (0) if possible
    - have the slide down minicart window appear for 5-10 seconds then automatically slide back up.
    (the visitor can also have the option to close the window before the 5 seconds)

    I would really appreciate any help with this. I find javascript hard and I have tried to learn it, but unfortunately I can't seem to grasp it .

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    If this is a real project for a real e-commerce site, you should not be using Javascript. You need to use server-side coding. Not all users have Javascript enabled in their browsers and some mobile devices do not support Javascript.

    For the rest I do not see how we can help you unless you show your (relevant) code. At the least provide a link to your site. But remember that this forum is not a free coding service - you have already posted in the web projects section of the forum.

    You seem to be uncertain of the difference bwteen Java and Javascript - they are totally different languages in spite of the confusingly similar names.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Last edited by Philip M; 05-12-2012 at 08:50 AM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New Coder
    Join Date
    Apr 2012
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Link: www.saphra.jumpseller.com << please excuse the mess as its just my test site.

    You are right, I didn't realize the difference between java and javascript. LOL just more proof of how little I know about this area.

    I think I am limited to javascript at the moment. I'll have to do some research on server-side coding. But I don't think I would be able to use it as I am using a site like big commerce or shopify to host my store.

    Maybe you could point me in the right direction as to which scripting/programming I should be using... or atleast find someone who is knowledgeable in that area.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    It is silly to try to build and e-commerce site with a shopping cart if you know so little about programming.

    Google for shopping cart and buy one of the many excellent pre-made systems.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    You could pay a professional to re-invent the wheel, or you could buy a pre-made shopping cart such as this one

    http://codecanyon.net/item/simple-ph...ing-cart/88625

    which costs $9 in its basic form - could be sufficient for you.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •