15,916,951 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sudeshna2 (Top 5 by date)
Sudeshna2
18-Dec-19 8:15am
View
Yes. I had seen in network tab of the browser dev tools, js files shows pending. How to solve this?
Sudeshna2
18-Dec-19 5:48am
View
Error shown in Console:
Uncaught TypeError: $(...).myCart is not a function
It is connected to line:
$('.my-cart-btn').myCart({
Sudeshna2
12-Dec-19 5:57am
View
Will you give me proper code for local storage?
Sudeshna2
5-Dec-19 6:22am
View
I have got following code for local storage:
// Check browser support
if (typeof(Storage) !== "undefined") {
// Store
localStorage.setItem("lastname", "Smith");
// Retrieve
document.getElementById("result").innerHTML = localStorage.getItem("lastname");
} else {
document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage...";
}
Does I have to store details of my all products like "lastname" and "smith" ? I have 10,000 products.
Like add new products string
$("#addNewProduct").click(function(event) {
var currentElementNo = $(".row").children().length + 1;
$(".row").append('product ' + currentElementNo + ' - $' + currentElementNo + 'Add to Cart
Details
')
Can I strore products dynamically in local storage and get in the Checkout Form Page?
Sudeshna2
12-Jun-19 9:47am
View
Thanks for your solution!
I have selected a template from the link you have given above.
From that I have a following difficulty:
I have onchange function to select price country wise.
Select Country
India
Outside India
function myFunction() {
var x = document.getElementById("mySelect").value;
document.getElementById("demo").innerHTML = x;
}
In the template to add price only numbers are accepted, but I have to give id value i.e. #demo to get amount country wise in add to cart button.
Code of 'add to cart' button:
Add to Cart
In the above code if I give a number after "price": it is excepted, but I have to give #demo
Pl. guide me how I make changes in the above code.