Flash shopping cart..... Help Please

Hi Guys,
I Would like to add a shopping cart to my flash website. The
current website is working with actionscript 2. selling 10+ items
Anyone knows of a good tutorial, book, program or advise that
would help me from start to finish? should i use xml or php? Any
open source codes with instructions? what can i use to processes
credit cards inside of flash?
Really need the help, thanks

quote:
because of the questions you're asking, you should off-load
the handling of secure transactions to a third party. paypal is the
most well-known of these. check their website for details on how
you can accept a variety of payments, including credit cards. it's
relatively simple (compared to creating your own secure shopping
cart).
Thank you kglad, What would u recommend i do for the coding
of the shopping cart before the total amount is sent to a 3rd
party? Like the add to cart, remove from cart, total etc.

Similar Messages

  • About shopping cart.  Please help!

    How can I add some statements to the following program to check whether the selected item has been tried to add to the shopping cart the second time so that the user can be warned "You can only choose this item once!"?
    Here is the servlet that adds the chosen item to the cart by invoking the add(String) method of the ShoppingCart class.
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class CatalogServlet extends HttpServlet {
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException, NullPointerException
    Connection dbConn=null;
    PreparedStatement p_pt=null;
    ResultSet rs_pt=null;
    PrintWriter out = null;
    try
    //load JDBC-ODBC Bridge driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //establish database connection using ODBC
    dbConn = DriverManager.getConnection("jdbc:odbc:cartlet");
    catch (ClassNotFoundException e) //Class.forName throws
    System.out.println("JDBC-ODBC bridge not found!");
    return;
    catch (SQLException e) //DriverManager.getConnection throws
    System.out.println("SQL exception thrown in init!");
    return;
    try{
    // set content-type header before accessing the Writer
    response.setContentType("text/html");
    // Additions to the shopping cart
    HttpSession clientSession = request.getSession( true );
    ShoppingCart vBasket = (ShoppingCart)clientSession.getValue("thecart");
    if ( vBasket == null ){
    System.out.println("NO CART");
    vBasket = new ShoppingCart();
    clientSession.putValue("thecart", vBasket);
    System.out.println("MADE THE CART");
    out = response.getWriter();
    // then write the data of the response
    out.println("<html>" +
    "<head><title> CD Catalog </title></head>" +
    "<body bgcolor=\"#ffffff\">" +
    "<center>" +
    "<hr> <br> " +
    "<h1>" +
    "<font size=\"+3\" color=\"red\">CD </font>" +
    "<font size=\"+3\" color=\"purple\">Catalog</font>" +
    "</h1>" +
    "</center>" +
    "<br> <hr> <br> ");
    String the_item=null;
    String movieToAdd = request.getParameter("ic");
    if (movieToAdd != null) {
    p_pt = dbConn.prepareStatement("select itemid, item from item_master where itemid=?");
    p_pt.setString(1, movieToAdd);
    rs_pt = p_pt.executeQuery();
    if (rs_pt.next()) {
    the_item=rs_pt.getString("itemid");
    out.println("<p><h3>" + "<font color=\"#ff0000\">"
    + "You just added <i><BR>" + "<IMG SRC=\"http://eric-fyp:9111/emovie/"
    + rs_pt.getString("item") + "\">"
    + "<BR></i> " + "to your shopping cart</font></h3>");
    vBasket.add(the_item);
    System.out.println("ADDED");
    System.out.println("Here are the items");
    Hashtable shoppeditems = vBasket.getItems();
    Enumeration enum = shoppeditems.keys();
    while (enum.hasMoreElements()) {
    System.out.println((String)enum.nextElement());
    out.println("</body></html>");
    out.close();
    catch(SQLException ex)
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Database Error!</TITLE>");
    out.println("</HEAD>");
    out.println("<BODY><H3>Error</H3><h6>" + ex.getMessage() +"</h6>");
    out.println("</BODY>");
    out.println("</HTML>");
    catch (Exception e)
    System.out.println(e.getMessage());
    finally
    if (rs_pt!=null) {
    try{
    rs_pt.close();
    catch (SQLException e) {}
    if (p_pt!=null) {
    try{
    p_pt.close();
    catch (SQLException e) {}
    if (dbConn!=null) {
    try{
    dbConn.close();
    catch (SQLException e) {}
    public String getServletInfo()
    return "CatalogServlet.java";
    Here is the ShoppingCart class
    import java.util.*;
    public class ShoppingCart {
    Hashtable items = null;
    public ShoppingCart() {
    items = new Hashtable();
    public void add(String movieId) {
    Integer sc_value=null;
    int sc_i_value=0;
    if(items.containsKey(movieId)) {
    sc_value = (Integer)items.get(movieId);
    sc_i_value=sc_value.intValue();
    sc_i_value++;
    items.remove(movieId);
    items.put(movieId, new Integer(sc_i_value));
    System.out.println("UPDATED!!");
    else {
    items.put(movieId, new Integer(1));
    public Hashtable getItems() {
    return items;
    Hope anyone can help! Thx!

    After you retrieves the shopping cart items from the database, store the items in a HashSet, so when the user adds a new item, you just need to check whether the HashSet contains that item, if it is already in the set, show the warning. If not exist, insert the item to your database. You can use the response.sendRedirect() method to redirect the user to a warning page.
    HashSet is a very good data structure since it doesn't contain duplicate elements. It is also extremely fast.
    String itemID = 2323; // some item id in your catalog
    HashSet itemset = new HashSet();  // you should add your existing cart items to this HashSet
    // no do the checking
    if(itemset.contains(itemID) {
    response.sendRedirect("warning.jsp"); // forward it to a warning page
    return;   // processing no further
    } else {
    // in here, do the db update, and display the cart to the user

  • Error 1011 in shopping cart - HELP

    I selected The Postal Service "Give Up" album. iTunes will not let me purchase it, or remove it from the list. It will also not let me purchase anything else while it is on the list - and I can't remove it. When I try to purchase I get the message "Your shopping cart's content has changed. Please review your shopping cart and click Buy Now."
    When I try to remove the album, I get the "Could not remove an item from your cart. An unknown error occurred (1011)"
    Help me out here - I can't do anything!

    Ok so I admit it I have been using it as a wishlist and its big...
    I can modify my behavior to the wishlist.
    But that doesn't solve the current problem that I get this error and I can't do anything with the cart. Acesss, buy, delete... nothing.
    BTW I'm a proud cube owner.

  • Shopping Cart Opinion, please

    Which of these two shopping carts for DW is better and why?
    eCart 4.0.2
    or
    Cartweaver for ASP.
    Opinions based on experience, please!

    Hi
    I can only comment on Cartweaver php, it was suggested on the
    forum and I've
    found the addin/program to be excellent. The backup on their
    forum whilst
    perhaps not the fastest ( within a day - ok I'm spoilt by
    this forum:-) is
    very good and comprehensive. The PHP version is easily
    customisable and as
    "it says on the box" I created a simple site within minutes.
    Ian
    [email protected]
    http://www.edwards-micros.co.uk

  • Shopping Cart - Help?

    I'm new to web design, and self taught, so go easy on me, haha. I have a site up, that sells organic mattresses and I need to add a shopping cart to it so customers can purchase online. I've added a buy now button and I want that to take them to another page where they can customize the bed and then purchase it online. You can look at it if you'd like; www.dremata.com
    I have a google checkout account, which comes with a shopping cart widget but it's limited and I need a shopping cart with more options/more customizeable because there are a lot of different options the customer can pick that effect price.
    I've been googling shopping carts for 6 hours now. Everything I've found turns out to be an entire online store. Which I'm not looking for, because I've already designed my website and set up the product pages. I'm just looking to add a shopping cart. I can't, for the life of me, find a premade shopping cart that I can just add to my site. At this point, I'm assuming I'm really ignorant on the subject and you can't do that?
    I don't know too much about shopping carts, or how they work. So if anyone could help me out, let me know what my options are and the different ways to add a shopping cart, I'd really appreciate it!
    - Thanks

    You've made a common newbie mistake of putting the wagon ahead of the horse.  Ideally, you should build your site pages within your shopping cart system.  IOW, the product IDs, descriptions, prices, options, etc... are stored in server-side databases.  Content is dynamically populated to your site pages.  This is the price of doing things on your own without first consulting an expert.  All is not lost though.  Find out which programming languages your server supports (ASP, PHP, ColdFusion...)
    Have a look at Cartweaver and Web Assist  They each have e-commerce extensions that can be used with DW.
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Using the flash uninstaller/ problems/HELP PLEASE

    Look I'm very ill and I can only concentrate so long so
    please don't think I'm a jerk. Nothing has gone right as of late,
    i'm worried that if i do it wrong flash will not work at all and I
    won't be able to fix it. I only can go on the computer certain
    times because of headaches.I need to know three things. When using
    the flash uninstaller I'm thinkiing it uninstalls all flash
    products on your computer? I have two flashplayers that are named
    flash player helpers, do they get deleted? I have firefox and IE
    browsers, I need to make two downloads right because one is for
    firefox and one is for IE? Then Do you need to install the flash
    version NPSWF_32 for IE or just instasll the newest flah for IE?
    just need to know because I have computer issues and flash now
    doesn't work on certain sites. Why would flash stop on some sites
    on both browsers? They are two different flash,right. THANKS to
    anyone who answered this

    The Flash Player is available in two technologies..
    1. ActiveX control.. Used by all Windows versions of Internet
    Explorer ONLY
    2. A plugin. Used by all other browsers and all other OS
    Yes, you do need to install both if you use IE and other
    browsers.
    You should NOT have to worry about uninstalling, unless
    something goes wrong with the install, which does happen sometimes.
    But for millions of people a day the install goes just fine and
    they have no worries.
    I don't know what a 'Flash Player helper' is. YOu should NOT
    need to worry about the plugin and/or activeX control files
    themselves.
    Launch IE, go to
    http://www.adobe.com/go/getflashplayer
    and do the install, then quit IE.
    Then launch Firefox and repeat. That plugin install will be
    used by anything else on your machine that requires the plugin
    (except maybe for google chrome.. i haven't tested that)
    You should be OK with the basic update install. If you get
    stuck you can open a support webcase and we can guide you. Or in
    some cases (especially if troubleshooting can be a challenge) we
    recommend taking your machine to a local professional. But that's
    fairly rare.

  • Flash 8 Workspace Help Please

    Hello Everybody,
    I was playing around with the tools on my Flash program and I
    screwed up my workspace. I used to see all the layers in my
    timeline and now for some reason I don't see the background
    anymore. It didn't ruin the show or anything but I can't seem to
    figure out how to go back to how it was.
    Can someone please help me?
    This is what I see now:
    http://www.southbeachgroup.com/screenshot_02.jpg
    Whereas before I could see it with the background like this:
    http://www.southbeachgroup.com/screenshot_01.jpg
    The two used to be combined..I could see the grey background
    and all the things on the timeline.....
    Thank you,
    Allie

    Is that under Window > Workspace Layout > Default
    (tried this)
    Under my View menu there is only:
    http://www.southbeachgroup.com/screenshot_04.jpg

  • Flash Quiz Template HELP Please!

    I created a quiz using the Flash Quiz Template and everything
    works fine. What I'm wondering is how do I make it so that it gives
    a different frame when the user fails and when the user passes.
    Please help. I am desperate here.
    Thank you very very much.

    hi,
    I need some i am using quiz templates and my problem is when
    i make the swf file and test the quiz it works good , but when i
    press the enter key , the quiz doesn't work and repeat and go to
    the first screen , i don't know if i have to block the enter key or
    how i can resolve this ?
    Thanks a lot

  • Sound not working in Flash Builder. Help please.

    So, here's my situation. I keep trying to put an mp3 in Flash Builder to try and make sounds happen, but each time I do it only plays the beginning of it and stops midway through. My music is working at 44100 Hz with a 32 bit rate (tried changing it to 16, but Audition won't let me). Here's my code.
    package
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.events.KeyboardEvent;
              import flash.media.Sound;
              import flash.media.SoundChannel;
              import flash.ui.Keyboard;
              [SWF(width = "550", height = "400",
              backgroundColor = "#FFFFFF", frameRate = "60")]
              public class SoundThing extends Sprite
                        [Embed(source="../sounds/try1.mp3")]
                        private var Try:Class;
                        private var _try:Sound = new Try();
                        private var _tryChannel:SoundChannel = new SoundChannel();
                        public function SoundThing()
                                  stage.addEventListener
                                            (KeyboardEvent.KEY_DOWN, keyDownHandler);
                        public function keyDownHandler(event:KeyboardEvent): void
                                  if (event.keyCode == Keyboard.SPACE)
                                            _tryChannel = _try.play();
    I'm not sure what the issue is. Please help me. Thank you!

    I would say that either the OP needs two tabs somewhere to make his headings and line items align,Exactly what I was thinking. As this sample code illustrates, the b will not line up under Column#2. Perhpas OP needs to use a Formatter or the printf method instead.
        StringBuffer sb = new StringBuffer();
        sb.append("Column#1");
        sb.append("\tColumn#2\n");
        sb.append("a");
        sb.append("\t");
        sb.append("b");
        System.out.println(sb);

  • Flash Gallery - Need Help Please!

    Hi, I want to make an image gallery like this (see image) using Flash. The gallery uses an .XML file to dynamically load the images, so all you need to do is size your images and then add them to the appropriate folder, then edit the .XML file. The thumbnails scroll too. Can this be done in Flash? Does somebody know where I can find an .XML file that will do this.
    I didn't want to use a proprietary gallery solution, because they require you to have their logo on your gallery page etc. and I'd like to design the page to my liking.
    I have little programming experience on how to do this so I was hoping for some help. Are there files around that will allow me to do this? I am also open to other suggestions that might be better, but I'd like the look of my gallery to be similar to the example I've posted.
    pg
    http://img682.imageshack.us/img682/8062/galleryh.jpg

    If you are using MX 2004, change your Google search terms to be: "AS2 XML gallery tutorial"
    The search results should be your best bet for finding advice/examples/suggestions as to some different ways to build a thumbnail gallery.

  • Flash Drive Unreadable - HELP PLEASE!!

    "The disk you inserted was not readable by this computer." Story of my life.
    I have a 32gb Micro Center brand flash drive. It's completely full of pictures, videos, documents, and files. Every time I stick it into my Macbook Pro, it tells me its unreadable. It gives me three options: Initialize, Ignore, Eject. I don't want to mess around with anything until I know what's wrong and what I should do. I've tried putting my flash drive into PCs, but it's still unreadable. I always remove my devices safely so I'm not sure what the problem is. The flash drive is in excellent condition. Maybe if anyone knows how to talk me through the Initialize option, that'd be helpful, cause frankly, I don't know much about softwares and such.
    I've heard of people sending out there flash drives and getting them fixed. Is this an options? I'd only do it if it was guaranteed to work without losing any files. Is there anyway I can troubleshoot it at home and fix this?
    I will be checking this post often to reply to any questions or answers. It's urgent that I access my flash drive!

    Initializing it will format it and you will definitely lose everything if it isn't lost already.
    Not being readable on either a PC or Mac is a bad sign.
    It may be worth taking it into MicroCenter and see if they have any ideas. Most recovery services are rather expensive and Google is your friend in finding such a service.

  • Troubleshooting Flash DW-Need help please.

    While working on a project, I suddenly found that I was no longer able to view my flash content once loaded to server. Locally, all content looks fine. I've been converting .wma files to .flv so I thought it was my conversion process but I ran some test on existing flash projects done in the past and those do not show on server either when placing into new DW index files. So, it appears my flash files are not the problem, it appears to be how Dreamweaver is embedding the file. By looking at the code below, it doesn't appear to be embedding at all and all the additional code is completely new to me. None of my previous Dreamweaver files imported .swf files with this code. Can someone please take a look and point me in the right direction? If this is kosher, I have a different problem but I'm stumped. I've been fooling around with this for hours. Here is an active link in addition to the code below. Just a junk file but acceptable for reference. http://www.polarpitcher.com/testing.html
    Current source code:
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1248" height="704">
      <param name="movie" value="poloarpitch/HTML/fanout.swf" />
      <param name="quality" value="high" />
      <param name="swfversion" value="6.0.65.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />  (what is this code???)
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="poloarpitch/HTML/fanout.swf" width="1248" height="704">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="swfversion" value="6.0.65.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");  (Is this something
    //-->
    </script>

    Current source code:
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1248" height="704">
      <param name="movie" value="poloarpitch/HTML/fanout.swf" />
      <param name="quality" value="high" />
      <param name="swfversion" value="6.0.65.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />  (what is this code???)
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="poloarpitch/HTML/fanout.swf" width="1248" height="704">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="swfversion" value="6.0.65.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");  (Is this something
    //-->
    </script>
    Note spelling error in bold.
    Also note this error -
    http://www.polarpitcher.com/Users/jayblanton/Desktop/fanout.flv
    This page cannot be found.
    Fix your spelling, and upload the FLV file.  Make sure your links are correct.

  • Flash picture, need help please

    Hi
    For a website I want to make a picture of a map to be used so
    that when someone clicks on a certain area then they hare
    hyperlinked to a certain web page. i have the picture, how do I cut
    it up, using Flash (I'm told) so that this will happen?
    Thanks

    depends on what format the picture is in - was it drawn with
    flash tools or imported as a raster image?
    you may not need to cut it up if you want to simply place hot
    spots over it that act like buttons -
    this is easily achieved with "invisible" buttons - meaning
    button symbols with only a shape in their
    HIT state.
    If you need to "cut-up" an imported image then you should
    really use your graphics editor
    (photoshop) for this. But if you don't then try breaking
    apart the bitmap in flash and using the
    lasso tool to select sections.
    hope this helps.
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    mtntbtvtctx wrote:
    > Hi
    >
    > For a website I want to make a picture of a map to be
    used so that when
    > someone clicks on a certain area then they hare
    hyperlinked to a certain web
    > page. i have the picture, how do I cut it up, using
    Flash (I'm told) so that
    > this will happen?
    > Thanks
    >

  • My internet is automatically restarting when I use flash player. Help please.

    It says there's a problem with an add-on. I check what add-on it is and its the adobe flash player 10 thats causing the problem. My brother's computer is doing the exact same thing which is weird. Has anybody heard of this problem before? Do you know how to fix it?
    Thank you.

    First, give us some information
    what is your operating system & version?
    what is your web browser & version?
    what is your Flash Player version (http://kb2.adobe.com/cps/155/tn_15507.html)?
    Next, what does it mean "my internet [...] is restarting"; your internet connection, or your browser?  Please explain.
    Finally, the latest Flash Player version is 10.1; FP10 is an old version.

  • On start up all that displays is a white back ground and a flashing ? Mark, help please

    ? Please Can somebody help please

    Restart while holding command and R keys down (two keys together).
    Select the Recovery HD icon and continue.
    Run Disk Utility.
    When DU is running, select your hard drive on the left, the First Aid tab at the top, and click Repair Disk.
    When that is completed, quit DU and restart.
    Full description here: http://www.apple.com/osx/recovery/

Maybe you are looking for

  • Best Practice for CTS_Project use in a Non-ChARM ECC6.0 System

    We are on ECC6.0 and do not leverage Solution Manager to any extent.  Over the years we have performed multiple technical upgrades but in many ways we are running our ECC6.0 solution using the same tools and approaches as we did back in R/3 3.1.  The

  • How to filter on rolling date?

    is there a reference page somewhere for all the power query built in date functions? ie dateadd()? I'm reading data from an RSS feed (http://sentinel.ga.gov.au/RSS/sentinelrss.xml) but want to filter to recent observations (12rs) only. Adding a date

  • Adding Cell in a row in Smart Form

    Hi All, Can anybody please tell how to add a cell in the row of a table in smart forms. Thanks

  • JSF Components in HTML Components

    Hi, I'm trying to use JSF components as children of HTML components but the UI isn't being rendered properly. Basically, here's my scenario: <ul>      <li>           <h:commandLink id="newQuoteLink" styleClass="topNav" action="#{pc_HeaderFragment.new

  • ITunes Download Link does NOT work

    When I opened my iTunes today it told me that there was a new update iTunes 5.0.1 was available.. so it took me to the website but I don't see anything but text. I can't see any download buttons or links or anything like that, same thing goes to the