Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 03:02:39 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ cart script
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: cart script  (Read 1706 times)
stu
Key Keeper
Member
**
Posts: 83



WWW
« on: November 26, 2008, 07:28:13 PM »

Hi all

I have been trying to work with shopping cart scripts to put a simple cart togeather. I have spent a few days now working with this. After a long internet search i have come up with this one.

Others seem to be a bit to complex for me to modify but this one seems to be just what i want to the T

I do however have a small problem.

The example is located at http://www.lush-lingerie.com/run

to add to the cart it uses a simple form action

I can get it to add to the cart perfectly using a single item and button but i would like to be able to alter this and add option like size a colour.

I've been trying with a bit of php within the form but i dont really know what I'm doing.

<form method="post" action="http://www.lush-lingerie.com/run/FPHPSC/ShoppingCart.php">
<select name="size">
<option>Please select</option>
<option>small</option>
<option>large</option>
</select>
<input type="hidden" name="Title" value=" Some cloathing item <?php $size = $_GET['size']; ?>">
<input type="hidden" name="SerialNum" value="GAR006">
<input type="hidden" name="Price" value="27.99">
<input type="hidden" name="Shipping1" value="2.00">
<input name="Shipping2" type="hidden" value="0.50">
  <input name="cmd" type="hidden" id="cmd" value="1">
  <input type="submit" name="Submit" value="Add To Cart">
</form>

To view the page were the full script comes from and how the forms have to be created this can be done here

http://www.freebert.com/Wiki/index.php/FPHPSC_AddItems

Also one last thing.

The cart opens up on the smae page. with no back button how would i create a back button that remembers which page the user came from so the button can be called continue shooping and take the user back to the last page they were at?

Thank you in advance

stuart
« Last Edit: November 26, 2008, 08:05:32 PM by stu » Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ cart script

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!