0

Hey guys, i need your help to build shopping cart

I want to write functions with json and i don't understand how it works here, i need a cart with all products will show alltime in document, and if i click, it will be add other articles differently https://code.sololearn.com/Wa42A1a6a3a6/?ref=app

25th May 2021, 4:14 PM
Olka Berkovich
Olka Berkovich - avatar
13 Respostas
+ 2
Olka Berkovich We can't work with localStorage on Sololearn.
25th May 2021, 4:17 PM
AÍąJ
AÍąJ - avatar
+ 3
Understood, thanks🙏
25th May 2021, 5:55 PM
Olka Berkovich
Olka Berkovich - avatar
+ 1
Olka Berkovich no, neither localStorage, nor sessionStorage, nor cookies are enabled in (at least android) app' :(
25th May 2021, 5:15 PM
visph
visph - avatar
+ 1
Olka Berkovich There is no way except using Javascript. https://code.sololearn.com/WRSR2wVhxDGR/?ref=app
25th May 2021, 5:16 PM
AÍąJ
AÍąJ - avatar
+ 1
no persistent way ^^
25th May 2021, 5:19 PM
visph
visph - avatar
+ 1
on pc, the website code playground is divided in four parts (html, css and js codes and a fourth to render the page), wich can be resized but only by mouse (not with fingers on a mobile device): I think that's the reason sololearn doesn't allow mobile device to access it on mobile devices... as that make it hardly usable ;)
25th May 2021, 6:39 PM
visph
visph - avatar
0
🅰đŸ…č 🅐🅝🅐🅝🅣 we can't on the (at least android) app'... but we can on the website ;) I don't know if it could work with the iOS app ^^
25th May 2021, 4:32 PM
visph
visph - avatar
0
And we don't have something like this?
25th May 2021, 4:56 PM
Olka Berkovich
Olka Berkovich - avatar
0
I built a shopping cart project too! I used codepens code editor, it worked well.
25th May 2021, 6:23 PM
Isaac Fernandes
Isaac Fernandes - avatar
0
Isaac Fernandes as I said previously, it would work on sololearn website code playground... the downside is that on mobile you must activate the 'display as desktop' option of the browser page/tab to have access allowed, with the limitation that the drag and drop used to resize the codes/output frames remain unsupported ;P
25th May 2021, 6:28 PM
visph
visph - avatar
0
You'll have to make it responsive.
25th May 2021, 6:32 PM
Isaac Fernandes
Isaac Fernandes - avatar
- 1
Write a program that reads an integer value of a user and prints 'ODD' or 'EVEN' as that case might be
26th May 2021, 11:44 PM
Musa Jidda Abubakar
Musa Jidda Abubakar - avatar
- 1
H
27th May 2021, 9:52 AM
Zuhra Ruziyeva