Welcome, Guest
  • Author Topic: simplecart se puede??  (Read 3085 times)

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    simplecart se puede??
    « on: 08/29/10, 02:10 »
    hola....tengo 2 preguntas.. la primera es..
    en el simplecart, en el archivo html...
     <input type="button" name="add" value="Consultar" onClick="sendToFlash('5', 'Aralia', '6.00')" /> lo que resalte necesito eliminarlo.. como lo hago? ya  q si solo dejo el las comillas en el swf veo NaN y necesito eliminar ese valor... y la otra prergunta es.. pq no puedo no puedo enviar las consultas de? siempre llego al ha habido un error .. . a alguien se le ocurre algo?

    gracias PD: no se ingles por eso si ya esta posteada la respuesta no la he encontrado
    gracias a todos

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: simplecart se puede??
    « Reply #1 on: 08/29/10, 02:35 »
    Hi Mumus, and welcome to the boards.

    If you could repeat your question in english, we possibly can help you.

    We are a international board and confirmed to use the english language to communicate with each other.
    happy flashing
    8)
    Ronald

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #2 on: 08/29/10, 16:29 »
    hello, well try to write in english.
    What I know is, if possible in the code
    simplecart, remove the price.
    Since the "swf" if I delete the prices (HTML), I see NaN ...
    let the example of what I want to delete.
    Thanks and hopefully will understand my question.
    Regards


    <input type="button" name="add" value="Consultar" onClick="sendToFlash('5', 'Aralia', '6.00')" />

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: simplecart se puede??
    « Reply #3 on: 08/29/10, 22:07 »
    If you want to remove the price completely, you have to edit the fla.

    The value given is checked, if it is valid.

    An empty value is not a valid number. This is, what NaN means - Not a Number.
    happy flashing
    8)
    Ronald

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #4 on: 08/30/10, 00:28 »
    Hi...
    this is the code that I removed?

    (//Add a duplicated product making proper fixing to quantity and Price
       if(duplicate==true){
          var curQty = Number(lista.getItemAt(i).Qty)
          var curPrice = Number(lista.getItemAt(i).Price)
          var newQty = curQty+datos.Qty
          var newPrice = curPrice+Number(round2D(Number(datos.Price)*Number(datos.Qty)))
          details.Qty = newQty
          var item = {Name:datos.Name, Qty:newQty, Price:round2D(newPrice)}
          lista.replaceItemAt(i, item)
       } else { //really a new item
          lista.addItem({Name:datos.Name, Qty:datos.Qty, Price:round2D(Number(datos.Price)*Number(datos.Qty))})
          details.push({Pk:datos.PkProduct, Qty:datos.Qty})
       }
       //Calculate total price and how many products we have
       var totalProducts = 0
       for(var i=0; i<lista.length; i++) {
          totalPrice += Number(lista.getItemAt(i).Price)
          totalProducts += Number(lista.getItemAt(i).Qty) )

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: simplecart se puede??
    « Reply #5 on: 08/30/10, 04:16 »
    isnt this a little too much?

    you only wanted to remove the price, right?
    So you only have to remove code related to price calculation and assignment.
    happy flashing
    8)
    Ronald

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #6 on: 08/31/10, 02:05 »
    yes. I just need to remove the price ..
    but not where that code, so I wrote the code that I thought was right, but it seems that this is not

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #7 on: 09/01/10, 18:29 »
    can someone please tell me what the code that I
    remove? please!

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: simplecart se puede??
    « Reply #8 on: 09/02/10, 02:03 »
    after you removed all lines containing price, you should be fine.
    Be careful with lines containing brackets - these must stay!
    happy flashing
    8)
    Ronald

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #9 on: 09/02/10, 12:42 »
    hola .. I just need to remove the price ... so that in the
    Shipping not appear NaN ...
    Leave the code that I thought was to be removed, but
    seems that this is not.
    So I wanted to consult you which is the line that I
    delete.
    I tried deleting line by line, upload it to the server
    but do not find it.

    Thank you very much for your help

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: simplecart se puede??
    « Reply #10 on: 09/03/10, 08:50 »
    This is in AS2, so if you remove the Price textfield in the cart (or just move outside the stage) is enought

    Jorge

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #11 on: 09/03/10, 15:12 »
    WoW!!!  :o ;D :o

    All fine .. but ...  :-\

    now .... just a question ... possible
    remove (Total undefined: undefined) now
    in here ...
    You're good Jorge

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: simplecart se puede??
    « Reply #12 on: 09/03/10, 15:15 »
    If you just delete teh textfield but not the code, you will not get undefined ... I guess you delete some portion of the code. AS2 lossles status allow to set properties of inexistent objetcs, so just delete the visual asset (textfields) and don't care about code

    Jorge

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #13 on: 09/05/10, 00:00 »
    delete it ... from ventana 2, delete textfields but still
    NaN appearing ?    :-\

    mumus

    • Server what's that
    • *
    • Posts: 12
      • View Profile
    Re: simplecart se puede??
    « Reply #14 on: 09/05/10, 15:05 »
    Restore the simplecart, is now all the code. Remove only the textfield, but the problem still occurs (NaN). Maybe I'm wrong but in Window 2 (in the library) only find a single text field.
    That's what I'm doing wrong?