I need help on Datalist-Urgent
Hi,
im doing some work on carting, ive added some element to cart-datalist like;
Service Name : Amount
service1 : 599$
service2 : 199$
service3 : 199$
total: 997$
If i am going to delete/remove service1, it is removed, but amount of service2 (199$) has to be get replaced with 599$, plz would u tell me how to do this, if u have some coding on this plz send it [email protected]
Re: I need help on Datalist-Urgent
Re: I need help on Datalist-Urgent
im doing some work on carting, ive added some element to datalist ex:
Service Name : Amount
service1 : 599$
service2 : 199$
service3 : 199$
total: 997$
If i am going to delete/remove service1, it is removed, but amount of service2 (199$) has to be get replaced with 599$, plz would u tell me how to do this, if u have some coding on this plz send it [email protected]
Re: I need help on Datalist-Urgent
Hello,
I'm not sure if I understood well what's your point.
You've got a list like that:
service1 : 599$
service2 : 199$
service3 : 199$
total: 997$
and after removing service1, you want your list to look like
service2 : 599$
service3 : 199$
total: 798$,
isn't it?
If so, you just have to remove the name of service1, then move up all service names and delete last amount of the list. Total amount is easy to calculate :)