17th Commit
This commit is contained in:
		
							parent
							
								
									ae020c1968
								
							
						
					
					
						commit
						eb1a272d96
					
				@ -131,14 +131,14 @@
 | 
				
			|||||||
                      <div class="input-group-prepend">
 | 
					                      <div class="input-group-prepend">
 | 
				
			||||||
                        <button class="btn btn-outline-primary js-btn-minus" type="button">−</button>
 | 
					                        <button class="btn btn-outline-primary js-btn-minus" type="button">−</button>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                      <input type="text" id="quantity" class="form-control text-center" value="{{cart[id].quantity}}" placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon1">
 | 
					                      <input type="text" id="{{product.id}}_quantity" class="form-control text-center" value="{{cart[id].quantity}}" placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon1">
 | 
				
			||||||
                      <div class="input-group-append">
 | 
					                      <div class="input-group-append">
 | 
				
			||||||
                        <button class="btn btn-outline-primary js-btn-plus" type="button">+</button>
 | 
					                        <button class="btn btn-outline-primary js-btn-plus" type="button">+</button>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                  </td>
 | 
					                  </td>
 | 
				
			||||||
                  <td>₹{{product.price}}</td>
 | 
					                  <td>₹{{toFloat(cart[id].quantity)*product.price}}</td>
 | 
				
			||||||
                  <td><a href="/remove-from-cart?prod={{product.name}}" class="btn btn-primary btn-sm">X</a></td>
 | 
					                  <td><a href="/remove-from-cart?prod={{product.name}}" class="btn btn-primary btn-sm">X</a></td>
 | 
				
			||||||
                </tr>
 | 
					                </tr>
 | 
				
			||||||
                {% endfor %}
 | 
					                {% endfor %}
 | 
				
			||||||
@ -208,11 +208,6 @@
 | 
				
			|||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  <script>
 | 
					  <script>
 | 
				
			||||||
    function removeFromCart(productName) {
 | 
					    
 | 
				
			||||||
      var quantity = document.getElementById("quantity").value;
 | 
					 | 
				
			||||||
      window.location.href = '/remove-from-cart'
 | 
					 | 
				
			||||||
        + '?prod='
 | 
					 | 
				
			||||||
        + productName;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  </script>
 | 
					  </script>
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user