haris989 / MyAwesomeCart

A Django E commerce website
72 stars 112 forks source link

Unable to do add to cart in Quick View page #28

Open jaishivnani opened 3 years ago

jaishivnani commented 3 years ago

image

Huzaifa785 commented 3 years ago

Yeah, you are right, and also the cart is not updating on every page. If you get the solution, please explain to me too.

jaishivnani commented 3 years ago

i Solved it by adding same javascript but still name is not updating in popover of quick view page and console.log(cart) is showing the following values

  1. pr: (3) [3, "", 39000] (Name is coming as blank while adding to cart in ProdView)
  2. proto: Object
abhi-shek-2 commented 3 years ago

Hi jaishivnani can you give the JS code for the productview page???

jaishivnani commented 3 years ago

Hello Abhishek,

JS code is there on my github for product view page.

giving it again {% extends 'shop/basic.html' %} {% block title%} {{product.product_name}} - My Awesome Cart {% endblock %} {% block body %}

{{product.product_name}}

Rs.{{product.price}}

{{product.desc}}

{% endblock %} {% block js %}

{% endblock js %}

On Sun, Nov 15, 2020 at 5:12 PM Abhishek rana notifications@github.com wrote:

Hi jaishivnani can you give the JS code for the productview page???

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haris989/MyAwesomeCart/issues/28#issuecomment-727556513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHMAOIXADV6NLL4A4C2WZWDSP65BFANCNFSM4S5SB34A .

abhi-shek-2 commented 3 years ago

mine is also same but idk why it's not working