Create a view in django to add multiple items to a cart model

  • Tila: Closed
  • Palkinto: $60
  • Vastaanotetut työt: 1
  • Voittaja: sundardumre07

Kilpailun tehtävänanto

I have a model working within the admin panel, however i need to create a view to add multiple items within a cart and sum those items. Need to create the view functions and make html buttons to add items and sum those items in the cart

Suositellut taidot

Työnantajan palaute

“It's great...will hire him again. Excellent work ”

Profiilikuva andyway85, Ecuador.

Julkinen selvennystaulu

  • sundardumre07
    sundardumre07
    • 2 vuotta sitten

    Hello. I saw your post and jumped here. You can make view Cart in your views.py and make models in your models.py which you will store the the value of cart item to the database. But it is not good practice. You can use javascript for it.Javascript provides you localStorage method which will allow user to store item in their browser until the user clear his localStorage.I can make help you for this.

    • 2 vuotta sitten
    1. andyway85
      Kilpailun järjestäjä
      • 2 vuotta sitten

      Hi Sundar. I want to make it in html since I barely know python and html, still new at programming, don't want to add another language to the project so far...I understand your point, however, it would be for me more challenging to do that, and i want to get out of this function as soon as i can

      • 2 vuotta sitten
  • vhts09
    vhts09
    • 2 vuotta sitten

    Can it be in flask ?

    • 2 vuotta sitten
    1. andyway85
      Kilpailun järjestäjä
      • 2 vuotta sitten

      have the project already started with django and html

      • 2 vuotta sitten
  • CarolinaCardoza
    CarolinaCardoza
    • 2 vuotta sitten

    Hi!! This can be done with Javascript. Please could you provided your files in order to work with them.

    • 2 vuotta sitten
    1. andyway85
      Kilpailun järjestäjä
      • 2 vuotta sitten

      HTML is fine

      • 2 vuotta sitten
  • zico4reel
    zico4reel
    • 2 vuotta sitten

    Hi, I can help you with this, but I'd love to know what you're using for front end, if it is any JavaScript front-end framework like react? or just normal HTML view for django? also I will most likely need your view script or html to help you swiftly integrate, rather than you going through all the stress of first understanding my own code and integrating it into yours

    • 2 vuotta sitten
    1. andyway85
      Kilpailun järjestäjä
      • 2 vuotta sitten

      Hi!
      Normal HTML, actually what I would like to do is show you my code and work from there...I guess we can make it in Max 2 hours...but I’m stucked in this part
      Thanks

      • 2 vuotta sitten

Näytä lisää kommentteja

Kuinka päästä alkuun kilpailuiden kanssa

  • Ilmoita kilpailusi

    Ilmoita kilpailusi Nopeaa ja helppoa

  • Saat valtavasti töitä

    Vastaanota tonnikaupalla osallistumisia Ympäri maailmaa

  • Myönnä palkinto parhaalle työlle

    Myönnä palkinto parhaalle työlle Lataa tiedostot - Helppoa!

Ilmoita kilpailu nyt tai liity tänään!