close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart5

Thread began 4/01/2010 2:34 pm by dave403891 | Last modified 4/09/2010 4:21 pm by Jimmy Wu | 2745 views | 11 replies |

dave403891

eCart5

I'm stumped. I'm using DWCS4 on os10X I've installed the extensions, created a database,table/rescordset, but I don't seem to be able to use the add to cart button to get anything to show up in my eCart. How do I link to my table and get eCart to function? I'm not even sure of the questions to ask. Help!

Sign in to reply to this post

Jimmy Wu

Have you tried following the getting started guide for eCart? It steps you through the process:
ecart_gsg.php

On the support page for eCart, there are other useful tutorials as well:
ecart/

Sign in to reply to this post

dave403891

Working with images

Jimmy, Huge thanks. If all else fails read the directions, but I couldn't find anything there that explained how to get images in the recordset I used with my add to cart buttons to show up in the cart. In the browser all I get is a placeholder with a question mark in the middle. Your thoughts please.

Sign in to reply to this post

Jimmy Wu

In your eCart object, under columns, there should be a column called Thumbnail by default. In the add to cart button, under the bindings tab, you will have to bind the thumbnail to the recordset value that holds the location of the image you want to use.

Sign in to reply to this post

dave403891

Image path

Jimmy,

Thanks again. Here's the path I enter before the <?php:
book_covers/cart_thumbs/

This renders as:
book_covers/cart_thumbs/<?php echo $eCart1->DisplayInfo("Thumbnail"); ?>


I've tried adding both
images/ and assets/images/ to this string and nothing loads the image into the cart. I've checked spelling. Once I crack this code, I'm home free.

Sign in to reply to this post

Jimmy Wu

An easy way to figure out what path needs to be added to the image name in the binding is to navigate to the image directly in the browser. Then when you get the broken image, get the image location and see what the difference is. The image path should become apparent at this point.

Sign in to reply to this post

dave403891

Here's the path code from both the add button binding and the cart src

This is the code from the add to cart button=
http://localhost/ic-site.2/assets/images/book_covers/cart_thumbs/carcapkid.png/<?php echo $row_rsCartadd['Thumbnail']; ?>

This is the code from the cart-
<td class="eC_GroupColumn"><img src="http://localhost/ic-site.2/assets/images/book_covers/cart_thumbs/" alt="" class="eC_ProductThumb" />

When I double click on the broken link icon in the cart the folder containing the cart thumb image files opens. I will be a wiser man when all this is resolved. Thanks for sticking with me.

Sign in to reply to this post

dave403891

Tried this too

In desperation, I deleted both the cart and books file where I had added the add to cart buttons. After recreating these .php pages, I entered the code just as instructed. Nothing. Because I have a deadline, I'm moving forward without the images on the shopping cart page. I figure I can go back once I've figured out what's wrong and add the images code later. In the meantime I really do want to know how to accomlish this.

Sign in to reply to this post

Jimmy Wu

What is the path to the images directory and how would you access the images in the browser?

Sign in to reply to this post

dave403891

Jimmy,

This gets me to my images folder in the browser–
cart_thumbs

When I configure the add to cart button, I replace the default value with the following code–
assets/images/book_covers/cart_thumbs/carcapkid.png<?php echo $eCart1->DisplayInfo("Thumbnail"); ?>

The carcapkid.png is the image file in the recordset for this particular ID

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