close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping question

Thread began 1/04/2010 12:22 pm by jajja | Last modified 1/05/2010 11:55 am by Eric Mittman | 1016 views | 3 replies |

jajja

Shipping question

Hello,

In the list of items for sale, I have a hidden field with a "shipping value" (calculated from a session variable (the customers discount percentage & the shipping-factor of the particular merchandise group)). How do I get this value to be the shipping rate of the particular item?

Sign in to reply to this post

Eric Mittman

How you would like to utilize this shipping value will depend on how you want the shipping calculated. Is this a flat shipping rate for the item, or do you multiply it by the quantity?

Once you have determined this part you would then create a shipping charge rule that will be based on the subtotal of either this shipping price or total shipping price column that you have.

Also, just FYI if you set the value of a hidden form element like this it is possible for users to edit this value client side. If you are calculating the value server side you could just make use of a server side variable that holds this value for the shipping price binding in your add to cart server behavior.

Sign in to reply to this post

jajja

Ok, I changed the hidden field to a variable ($faktutrakning) (thanks for the tip). I understand that I need to put the value from the "$faktutrakning" variable in to the cart. Do I just write "<?php echo $faktutrakning; ?>" in the eCart Add from Recordset -server behaviour?

Now, do I have to make a new column in the cart in where to store this value, should I call this column "Shipping"? Or how would I get this value to the Shipping column so that it would be automatically inserted in various right places on the checkout pages?

Sign in to reply to this post

Eric Mittman

You are exactly rite about how you would make use of this variable in your add to cart server behavior, just use the echo for it in the php blocks.

As for the shipping this is a two part approach to calculating shipping for the cart. In a regular cart the shipping is calculated as either a flat rate or a shipping quote value based on the entire cart contents.

In your scenario where you would like to apply shipping on a per item basis you will have the two parts. The first part will be what you are currently working on where you get the shipping for the item into the cart. You will need to have another column in your cart to hold this value. Finishing this part of it will require you to create a new calculated column for the total shipping per line item. This total shipping calculated column will multiply the quantity times the shipping value.

The second part of this is to craft your shipping charge rule. This is how you see the shipping charge in the cart on the checkout pages. Your rule will be very simple, it will use the subtotal of the total shipping calculated column.

Please post back with any questions that you have about any part of this and we will be glad to help you out with any part of it that we can.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...