python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to calculate cart item's discount based on discount type [ Buy1 Get 1 offer ]
I have a table in my DB.
Carts Table:
id| user_id | product_id | title |price |tax| quantity | discount | discount_type
1 | 1 | 2 | Watch | 50 | 5 | 2 | Null | buy1get1
2 |...
Ra3d K
Votes: 0
Answers: 1
I can't filter the product vendor for orders
I want special users (vendors) to see their own orders in their django admin. When ever I tried that it filters out the user that ordered the products. Here are the codes.
I connected the vendors in m...
user18532068
Votes: 0
Answers: 1
Error: element (body) is not in DOM or there is no element(body) with text "NameTest000"
I am doing an assignment and have to create a smaller version of ecomerce website. To test it I was given a link to a their autoQA tester which gives me the following problem.
Error: element (body) is...
Nicik
Votes: 0
Answers: 0
Get gtin from <script type="application/ld+json"> using regex and/or xpath | source code
I need to extract the gtin value (8806090325632)
I need to get the xpath expression to scrape the 13 digit gtin code only.
Here is the <script type="application/ld+json"> code :
<...
YoO
Votes: 0
Answers: 1