473,788 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to add items to basket

please i need help. I am doing a wed site online shopping system for my
school project, which requires some asp coding using vb script. I am new
to asp and have no knowledge whatsoever on how to code what i need.
Please please please could someone please provide me with help, or
coding on how to add item details into a basket record, once the user
clicks the add to basket link.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #1
3 2926
We can't help you coding your project. How can you learn VBS or ASP if
somebody else have to write the code. See www.google.com for reference and
code exemples.

http://www.google.be/search?hl=nl&q=shopping+cart+ASP
Jul 22 '05 #2
"help" wrote in message news:%2******** **********@TK2M SFTNGP14.phx.gb l...
: please i need help. I am doing a wed site online shopping system for my
: school project, which requires some asp coding using vb script. I am new
: to asp and have no knowledge whatsoever on how to code what i need.
: Please please please could someone please provide me with help, or
: coding on how to add item details into a basket record, once the user
: clicks the add to basket link.

I'm working on phase two of my shopping cart. It is a lot of work. Since
this is a school project, and thank you for being honest, I cannot write
your code for you but I can point you in the right direction.

First, you need some starter ASP instructions. A good place to start is
www.w3schools.com Another thing that would be helpful is the VBScript
documentation. My tag has a link to get it (WSH 5.6 Documentation).
However, be aware it is targeted at Windows Scripting Host but almost all of
the commands can be used in ASP. The other two links are also helpful
because they take you MSFT's site to get VBScript language reference,
examples, etc.

Ex. Where they put Wscript.Echo you replace with Response.Write.

In a shopping cart, it is better to use method="POST" than method="GET" with
your forms. GET puts the posted named pairs in plain view and thus easier
to manipulate.

Adding items to a basket depends on the method you use for your basket. It
could be a database, a CSV or XML file, or it could be just in session
variables. I get my products from a product file and add them to my cart
when the user selects a buy button. Your cart should allow them to view
their selections, change quantities and change their mind by deleting items.
When they are ready to buy, you need to have a checkout page which takes
their shipping information and online payment, or offer them other ways to
pay, i.e. phone, check, money order. Without taking online payments they
should have a printer friendly receipt, with a transaction ID, and the items
of their purchase, listing product IDs, description, quantities and price,
with a subtotal, shipping costs and a final total.

One thing to keep in mind is ALL items being shipped regulate their costs
according to weight. So, each product should have an assigned weight to it,
which means for each carrier you will have either an online rate calculation
with the carrier or a rate table. The other factor in shipping is distance,
which means zip codes and countries if international. International
shipments bring in another factor when merchants have products of which some
are restricted from export. A restricted item cannot be shipped
internationally and your cart needs to have a field in the product file or
database, for each product (record) that compares against the zip code.

You also have to keep track of each user, so either session variables or
cookies is generally the way it is done because each page your user visits
has to know who they are at least by an ID.

If your project is due soon, and you can build a site with a trial version
of a shopping cart and limit yourself to coding the product pages and
interfacing the shopping cart, you'll probably have a good chance at
completing it. Not knowing the language and taking on this kind of project
has little chance of success otherwise. If you're required to write
everything from scratch, you have a lot of learning ahead of you.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #3
<<
how to add item details into a basket record


I generally think of a shopping cart as a fancy name for a session
array. And here is a good resource that includes how to use session
arrays:

Session Object
http://msdn.microsoft.com/library/de.../en-us/iissdk/
iis/ref_vbom_seso.a sp

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1948
by: Phil Powell | last post by:
You have ordered one item and placed it into your cart. Let's say you ordered one small black t-shirt. Your cart will have the product_id, color_id and size_id for the small black t-shirt. The quantity of this item is, let's say 30. You have one in your cart, so how many are available: 1) 29 2) 30 Now let's say that while I ordered one small black t-shirt, Sven ordered 1 small black t-shirt, Anders ordered one black t-shirt, and...
13
2286
by: WindAndWaves | last post by:
Hi Folks I am working with a session and a 'cart' (note that I do not really know what I am doing though). I was wondering if there is some easy way (function) to work out how many items I have in my 'basket' / 'cart', because then I could call this function from anywhere to show the user just how many items are on order TIA - Newbie Nicolaas
4
1825
by: Richard Pain | last post by:
OK - I have a shopping basket with data in a database. Once the person has successfully completed their order I want to be able to send them an email with the products ordered roughly in the following format: Product Price Quantity prod1 £6.99 1 prod2 £5.99 2 Postage ...
3
1420
by: nike | last post by:
please i need help. I am doing a wed site online shopping system for my school project, which requires some asp coding using vb script. I am new to asp and have no knowledge whatsoever on how to code what i need. Please please please could someone please provide me with help, or coding on how to add item details into a basket record, once the user clicks the add to basket link.
9
2590
by: Rob Meade | last post by:
Hi all, Ok - so I've got the array thing going on, and the session thing going on, and up until now its all been ok. I've got my view basket page which is displaying 3 rows (as an example) - I have an input box on each row enabling the user to update the quantity. If the enter a zero I need to remove the item from the array....
3
1874
by: Samuel Shulman | last post by:
Hi I need to implement a shopping basket for my e-commerce website Scenarios are as follows 1. Website to offer shopping basket for all visitors including those who didn't log 2. Website to offer shopping basket ONLY to those that are logged
11
2004
Fary4u
by: Fary4u | last post by:
Hi i've design the ASP shopping with MS Access database it's working fine there is no problem in LOCALHOST when i upload into the Host Server it's working fine but when u add product into basket it's bring automatically 1 extra product some time 2 or some time 3 i've not made a file called GLOBAL.asa for generate session but if some body add item into the basket it takes OrderID & using Session .
1
1348
by: Sparkhill | last post by:
I have this page that prints out the contents of a table and commits it to a table. thus the string is full of all the data from the list. At the moment i have a add to basket button that redirect to another page and directly commits the item selected to a string and then you must press add to basket again. I would like to remove this second page and have item added directly to the basket but i do not know how to select this item specfically...
4
1898
Fary4u
by: Fary4u | last post by:
Hi for the last few months i've just stuck in 1 error & i don't know how to figer it out could any body find out where is the problem gonna be ? it's working fine but when u add product into basket it's bring automatically 1 extra product some time 2 or some time it's working fine i think so problem with GLOBAL.asa File that's not generating proper session variable GLOBAL.asa Sub Application_OnStart
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.