close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Showing thumnails and sizes in the cart

Thread began 5/30/2010 4:20 am by chriscaldwell11357847 | Last modified 8/20/2012 8:18 am by Jason Byrnes | 5261 views | 28 replies |

chriscaldwell11357847

Showing thumnails and sizes in the cart

Hello,

During my testing, a few issues I'm trying to resolve:

1. When I add something to cart, for example from this page: prints.php I am redirected to my shopping cart, and there I see the words "EditRegion3" under the Continue Shopping, Clear Cart, Update, etc links.

This page was created from a DW template, but how do i prevent the words EditRegion3 from displaying on the page?

2. How do I get the thumbnail images to appear? The cart is static, and the thumbnail images are in a folder entitled store_images . If I go to prints.php and add to cart the first poster labeled Planet Sushi, why doesn't the thumbnail pic show up in the cart? It just says Product Thumbnail. I actually only have one thumbnail pic in the store_images folder, for the Planet Sushi poster. But it doesn't show up.

3. I am using USPS to calculate shipping. Does that mean when putting in the weight in an Add to Cart object binding, do I just put the weight of the actual item, or should I weigh the object with the packaging I'll use to mail it, and put that total in the weight column? Or does USPS calculate the weight?

4. Why don't the size option selected by a customer items display in the cart? For example, on this page: hats.php if i choose a hat, select a size option, shouldn't the size option appear on the cart page along with the price? That way a customer could choose one Small hat, and one Large hat of the same style and I'd be able to know what to send.

Okay, that's all for now. Thank you.
CHris

Sign in to reply to this post

Jason ByrnesWebAssist

1) On the cart page, you need to delete the "EditRegion3" string at the end of the editable region.

2) to show the thumbnail, you need to create a thumbnail column in your cart object. Since your cart is static, you need to edit the add to cart button server behavior. On the bindings panel, enter the image name in the thumbnail column.


Then in the cart page, change the image source to use the thumbnail column in the cart, and prepend the image path in front of it.

3) Use the shipped weight. If the packaging will add a significant amount to the weight, it should be included. If it will only add a minimal amount, then it can be left off.

4) To show the selected size in the cart, you need to create a new cart column in the eCart object to hold the size. Then in the add to cart button, on the bindings panel, select the size column and set it to be updatable from a select list.

This will add the size select list to the page for you, you can populate it with the sizes you wish to offer.

When you create the cart page, make sure to include the size in the list of columns to display in the cart display manager.

Sign in to reply to this post

chriscaldwell11357847

Hi Jason,
Thanks so much for your help! It's all coming together. Can you please tell me how to access the display manager on the cart page so that I can make the adjustments to make the thumbnails visible?

I've gone to the cart page and clicked on each item in the server behaviors panel with no luck.

thanks,
chris

Sign in to reply to this post

Jason ByrnesWebAssist

you dont need to edit the display manager, just the code on the cart page.

In design view, select the thumbnail image in the cart.

In the property inspector, click the lightning bolt next to source, and select the image column from your cart. This will create code similar to:

php:
<img  src="<?php echo $YourCartName->DisplayInfo("Thumb"); ?>" alt="" />



where YourCartName is the name of your cart object.

you will need to prepend the image path in front of this:

php:
<img  src="images/path/<?php echo $YourCartName->DisplayInfo("Thumb"); ?>" alt="" />
Sign in to reply to this post

chriscaldwell11357847

I have attempted to edit in dreamweaver CS4. As you can see by the screen capture, there is a white block of some sort which prevents me from editing. I've never seen anything like this, so I'm stuck.

thanks,
chris

Sign in to reply to this post

Jason ByrnesWebAssist

try setting the Select File From to File System then back to Data Sources to force the screen to redraw.

Sign in to reply to this post

chriscaldwell11357847

Hi Jason,
I was able to get one thumbnail object to appear, but how do I get all the others to appear as a customer clicks on add to cart? I have a total of 94 unique images in a folder named store_images. While your instructions worked perfectly for one item, how do i get the rest of them to work? I've got a page here, for example:

prints.php

If a customer Adds to cart the first print (blowfish print), the thumbnail shows up in the cart.php page.

But, exactly how do I do this same thing for each of the other items?

Thank you,
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

is the cart a dynamic or static cart?


If the products are stored in a database, you need to modify your products table to add a thumbnail column and store the thumbnail name for the product in that column, then bind the thumbnail cart column to the thumbnail recordset column.

Sign in to reply to this post

chriscaldwell11357847

This is a static cart.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, for a static cart, you need to edit each individual add to cart button behavior and set the thumbnail column to the name of the thumbnail that should be used for that product.

Sign in to reply to this post
loading

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...