how to use shopping cart html

Hello Again, New Problem. i am redoing a client’s website in Freeway. however, they insist on using a new host’s shopping cart. He send me the cart’s code. Where do I put it? How do I incorporate that?
Tobé


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That depends a lot on the code. Most likely it comes with some instructions. Can you post those, or an example of the code you need to include? For the former, just paste it into an e-mail to this list (or the Web form). For the latter, use Pastie to set it up in a way that won’t get mangled by the auto-formatting code here.

http://pastie.org

Paste the code, then copy the link that it generates and post that link here.

There are lots of ways to get code into Freeway, and very likely this will be easy once we get a look at what exactly is required.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here is the code:

SEKUR-GRIP™
(1) $14.95 each
(1-2) $14.00 each
(3-4) $13.50 each
(5-6) $13.00 each
(7-8) $12.50 each
(9-10) $12.00 each
(11-12) $11.50 each
(13 and up please contact us)
For US orders shipping & handling is included.
For International orders $1.00 will be added for each item.

Qty:

Tobé Saskor
Websites and Photography by Tobé
59 Deerwood Lane
Pinehurst, NC 28374
Tel: 910-215-8818
Email: email@hidden

Websites:
www.bytobe.com (photo)
www.WebsitesByTobe.com
www.WebsitesForHorses.com

On Aug 15, 2008, at 3:29 PM, waltd wrote:

That depends a lot on the code. Most likely it comes with some instructions. Can you post those, or an example of the code you need to include? For the former, just paste it into an e-mail to this list (or the Web form). For the latter, use Pastie to set it up in a way that won’t get mangled by the auto-formatting code here.

http://pastie.org

Paste the code, then copy the link that it generates and post that link here.

There are lots of ways to get code into Freeway, and very likely this will be easy once we get a look at what exactly is required.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is confusing to my 71 year old brain! Here is the link to the code (I think).

http://pastie.org/253860.txt

Tobé


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It looks to me like somebody e-mailed that code to you, and it enjoyed some adventures along the way. I cleaned it up, and it actually tries to submit to the server and everything:

http://pastie.org/253890

This will be pretty simple to do in Freeway. It’s just a matter of knowing what each of those things in there mean. I’ll walk you through it.

The form method and action are added in the Page > Form Setup. Copy and paste the entire action (minus the quotes that surround it) into the Action field in the Form Setup dialog. Pull the method picker in that same dialog down to Post.

There’s four hidden elements in the form, named PartNo, Item, discount, and URL. You also add these using the Page > Form Setup dialog, using the controls in the Hidden Fields segment.

The middle part of this layout (which I formatted in a list, just to keep it all together) is purely descriptive, explaining the price structure. You would draw this part using a normal Freeway HTML box, and type the text into it.

The Qty field is a regular Text Input field, you draw that with the HTML tool or use Insert > Text Input from the main menu when you have a flashing text cursor inside an HTML box.

Finally, there are two Submit buttons. Again, you either select that option from the HTML tool in the toolbar or use Insert > Button from the main menu.

All of these form elements need to be named and configured using the Inspector. While you have each form element selected, click on each of the tabs in the Inspector until you find the options you need. Once you get the first one, the rest will be a lot easier.

And once you have all of the hidden and visible form elements into your page, and you upload it to your server, it should just work.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have been working on the shopping cart page. http://www.tobesite.com Have gotten as far as the submit button. How do I change these buttons to go to the two different places - and change the text of the button?

Here is the address of the page I want to duplicate. http://www.sekur-grip.com/ordering.html

Also, how do I get the source of sites on the web now that I am using Leopard? I used to click on a page and then go to source. Can’t do that now.

Thank you very much for all your help!!

Tobé


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 16 Aug 2008, at 17:27, Tobé Saskor wrote:

Also, how do I get the source of sites on the web now that I am
using Leopard? I used to click on a page and then go to source.
Can’t do that now.

Got to View>View Source, or hit Apple-Option-U

best wishes,

Paul Bradforth

http://www.paulbradforth.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 16 Aug 2008, 4:28 pm, Tobé Saskor wrote:

I have been working on the shopping cart page. http://www.tobesite.com Have gotten as far as the submit button. How do I change these buttons to go to the two different places - and change the text of the button?

Here is the address of the page I want to duplicate. http://www.sekur-grip.com/ordering.html

Also, how do I get the source of sites on the web now that I am using Leopard? I used to click on a page and then go to source. Can’t do that now.

Thank you very much for all your help!!

Tobé

The text on the button is set by the “Value” property, found in the Inspector in the Output tab. When you change the name and value of these two buttons to be exactly the same as in the source code you were given, the form will do precisely what you want. Click once on the button to select it, and the Inspector will change over to have the settings you need to change. Be sure to use the Name field in the Output tab of the Inspector, not the Title field in the General tab.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How easy!! Thanks!

Tobé Saskor
Websites and Photography by Tobé
59 Deerwood Lane
Pinehurst, NC 28374
Tel: 910-215-8818
Email: email@hidden

Websites:
www.bytobe.com (photo)
www.WebsitesByTobe.com
www.WebsitesForHorses.com

On Aug 16, 2008, at 12:33 PM, Paul Bradforth wrote:

On 16 Aug 2008, at 17:27, Tobé Saskor wrote:

Also, how do I get the source of sites on the web now that I am

using Leopard? I used to click on a page and then go to source.

Can’t do that now.

Got to View>View Source, or hit Apple-Option-U

best wishes,

Paul Bradforth

http://www.paulbradforth.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay. Did all that. Seems this was written for a PC and Windows. see: http://www.tobesite.com and try to use one of the submit buttons.

I have contacted the fellow who sent me the code.

Tobé Saskor
Websites and Photography by Tobé
59 Deerwood Lane
Pinehurst, NC 28374
Tel: 910-215-8818
Email: email@hidden

Websites:
www.bytobe.com (photo)
www.WebsitesByTobe.com
www.WebsitesForHorses.com

On Aug 16, 2008, at 3:44 PM, waltd wrote:

On 16 Aug 2008, 4:28 pm, Tobé Saskor wrote:

I have been working on the shopping cart page. http://www.tobesite.com Have gotten as far as the submit button. How do I change these buttons to go to the two different places - and change the text of the button?

Here is the address of the page I want to duplicate. http://www.sekur-grip.com/ordering.html

Also, how do I get the source of sites on the web now that I am using Leopard? I used to click on a page and then go to source. Can’t do that now.

Thank you very much for all your help!!

Tobé

The text on the button is set by the “Value” property, found in the Inspector in the Output tab. When you change the name and value of these two buttons to be exactly the same as in the source code you were given, the form will do precisely what you want. Click once on the button to select it, and the Inspector will change over to have the settings you need to change. Be sure to use the Name field in the Output tab of the Inspector, not the Title field in the General tab.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yup, believe it or not, that’s a security feature. Try changing the value of the ‘domain’ hidden field and see if it goes through then. Although there may be some configuration that needs to be set on the server to allow orders from your domain.

You’ve also got your hidden fields set up wrong. In the Form Setup dialog, make a separate entry for each of the four fields.

You should see something like the following:

Name Value
PartNo SG
Item SEKUR-GRIP
discount 1:14.95;2:14;3-4:13.50;5-6:13.00;7-8:12.50;9-10:12.00;11-12:11.50;13+:11.50
URL http://www.sekur-grip.com/sekurgrp.htm

Right now, it appears as though you pasted everything into a single field called “hidden fields”.

Also go back through your buttons and Qty field and make sure they are named exactly the same as the example you got (or my pastie). This has to be set in the Name field of the Output tab of the Inspector, or the form won’t work.

Form handlers are desperately literal beasts (at least when they are properly written). Anything that they weren’t expecting (and this usually means input that isn’t properly named or properly formed) will not be accepted.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - I changed the form set-up. Put PartNo on top and SG as hidden field etc. - Did not use quotes.

Next I went to the buttons and put Qty: in the name field, 1in the value field ; put Add to Shopping Cart in both Name and value - same with View Cart or Check Out

EEEEEK. So near and yet so far!

Tobé

Tobé Saskor
Websites and Photography by Tobé
59 Deerwood Lane
Pinehurst, NC 28374
Tel: 910-215-8818
Email: email@hidden

Websites:
www.bytobe.com (photo)
www.WebsitesByTobe.com
www.WebsitesForHorses.com

On Aug 16, 2008, at 5:29 PM, waltd wrote:

Yup, believe it or not, that’s a security feature. Try changing the value of the ‘domain’ hidden field and see if it goes through then. Although there may be some configuration that needs to be set on the server to allow orders from your domain.

You’ve also got your hidden fields set up wrong. In the Form Setup dialog, make a separate entry for each of the four fields.

You should see something like the following:

Name Value
PartNo SG
Item SEKUR-GRIP
discount 1:14.95;2:14;3-4:13.50;5-6:13.00;7-8:12.50;9-10:12.00;11-12:11.50;13+:11.50
URL [http://www.sekur-grip.com/sekurgrp.htm](http://www.sekur-grip.com/sekurgrp.htm)

Right now, it appears as though you pasted everything into a single field called “hidden fields”.

Also go back through your buttons and Qty field and make sure they are named exactly the same as the example you got (or my pastie). This has to be set in the Name field of the Output tab of the Inspector, or the form won’t work.

Form handlers are desperately literal beasts (at least when they are properly written). Anything that they weren’t expecting (and this usually means input that isn’t properly named or properly formed) will not be accepted.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

http://www.tobesite.com

Tobé Saskor
Websites and Photography by Tobé
59 Deerwood Lane
Pinehurst, NC 28374
Tel: 910-215-8818
Email: email@hidden

Websites:
www.bytobe.com (photo)
www.WebsitesByTobe.com
www.WebsitesForHorses.com

On Aug 16, 2008, at 5:29 PM, waltd wrote:

Yup, believe it or not, that’s a security feature. Try changing the value of the ‘domain’ hidden field and see if it goes through then. Although there may be some configuration that needs to be set on the server to allow orders from your domain.

You’ve also got your hidden fields set up wrong. In the Form Setup dialog, make a separate entry for each of the four fields.

You should see something like the following:

Name Value
PartNo SG
Item SEKUR-GRIP
discount 1:14.95;2:14;3-4:13.50;5-6:13.00;7-8:12.50;9-10:12.00;11-12:11.50;13+:11.50
URL http://www.sekur-grip.com/sekurgrp.htm

Right now, it appears as though you pasted everything into a single field called “hidden fields”.

Also go back through your buttons and Qty field and make sure they are named exactly the same as the example you got (or my pastie). This has to be set in the Name field of the Output tab of the Inspector, or the form won’t work.

Form handlers are desperately literal beasts (at least when they are properly written). Anything that they weren’t expecting (and this usually means input that isn’t properly named or properly formed) will not be accepted.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You are very close. Add To Shopping Cart doesn’t need a name, and View Cart gets named ItemList.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Did that. Uploaded - still no go. (I did refresh FoxFire incase that was the problem.)

Tobé Saskor
Websites and Photography by Tobé
59 Deerwood Lane
Pinehurst, NC 28374
Tel: 910-215-8818
Email: email@hidden

Websites:
www.bytobe.com (photo)
www.WebsitesByTobe.com
www.WebsitesForHorses.com

On Aug 17, 2008, at 4:27 PM, waltd wrote:

You are very close. Add To Shopping Cart doesn’t need a name, and View Cart gets named ItemList.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Almost. You named the buttons the wrong way around. The Add To Shopping cart should have nothing in its name field. The View Cart button should be named ItemList. You have Add to cart named ItemList, and the old name (with spaces in it – a serious no-no) in the View Cart button.

And anyway, you won’t get any joy out of this form processor until you find out from the hosting provider whether the URL field needs to be your URL or another, and if you need to be registered on the commerce server or not.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options