close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ecart5 thumbnails to display

Thread began 8/29/2010 6:45 pm by gpaul | Last modified 8/31/2010 12:12 pm by Jason Byrnes | 708 views | 5 replies |

gpaul

ecart5 thumbnails to display

I've read the tutorials and most of the questions here in the forum, but I still cant seem to get my images (thumbnails) to display in the cart. I thought I had the proper binding.

Here is the code for the image:

class="eC_GroupColumn"><a href="images_Detail.php?<?php echo $jfincart->DisplayInfo("ID"); ?>=<?php echo $jfincart->DisplayInfo("Thumbnail"); ?>"><img src="images/<?php echo $row_WADAimages["image_file"]; ?>" alt="<?php echo $row_WADAimages["caption"]; ?>" class="eC_ProductThumb" /></a>

This is the code for the bindings:

if (!$jfincart->IsEmpty()){
$cart = $jfincart;
$jfincart->DisplayInfo("ID");
$jfincart->DisplayInfo("Thumbnail");
$ATC_itemID = "".($row_WADAimages["image_id"]) ."";
$ATC_AddIfIn = 2;
$ATC_RedirectAfter = "";
$ATC_RedirectIfIn = "";
$ATC_itemName = "".($row_WADAimages["caption"]) ."";// column binding
$ATC_itemDescription = "".($row_WADAimages["description"]) ."";// column binding
$ATC_itemThumbnail = "".($row_WADAimages["image_file"]) ."|";// column binding
$ATC_itemWeight = floatval("0");// column binding
$ATC_itemQuantity = floatval("".$_POST["jfincart_1_Quantity_Add"] ."");// column binding
$ATC_itemPrice = floatval("0");// column binding
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$cart->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);
if ($ATC_RedirectAfter != "" && $cart->redirStr == "") {
$cart->redirStr = $ATC_RedirectAfter;
}
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
}
else {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];
}
}
}

Can anyone direct me to solving this?

Thank you.

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

in the image code:
<img src="images/<?php echo $row_WADAimages["image_file"]; ?>


you are using the image file field from the recordset.


On the bindings panel, use the Thumbnail column form the cart object binding group instead

Sign in to reply to this post

gpaul

Jason

Thanks for your reply, however I have not been successful.

First I changed

<img src="images/<?php echo $row_WADAimages["image_file"]; ?>

to

<img src="images/<?php echo $row_WADAimages["Thumbnail"]; ?>

Then I deleted all between the <td> tags and inserted the Thumbnail Binding

<?php echo $jfincart->DisplayInfo("Thumbnail"); ?>

I also tried

<a href="images_Detail.php?=<?php echo $jfincart->DisplayInfo("Thumbnail"); ?>"> alt="<?php echo $row_WADAimages["caption"]; ?>" class="eC_ProductThumb" /></a>

And probably a few others.

Could you be more specific about how to fix this?

Again, Thank you for your help.


Gary

Sign in to reply to this post

Jason ByrnesWebAssist

your source should use the eCart binding:
<img src="images/<?php echo $jfincart->DisplayInfo("Thumbnail"); ?>" />

Sign in to reply to this post

gpaul

Jason

Thank you for your help, however it is not working and I have to think there is more going on.

First, I am also not getting the Description to appear, so it appears that the information is not getting called from the DB.

Second, I have an error symbol on the record set, when I open the RS dialog box, I get the following error message.

Paramimage is an invalid variable name; it does not appear in the SQL

Missing type for variable:Paramimage

ParamSessionimage is an invalid variable name; it does not appear in the SQL

Missing type for variable:ParamSessionimage

Paramimage is an invalid variable name; it does not appear in the SQL

Missing type for variable:Paramimage

Missing Run-Time Value for variable:Paramimage_id

Missing Run-Time Value for variable:Paramimage_id2

Missing Run-Time Value for variable:ParamSessionimage_id

***

This is the code for the Thumbnail as I have it now:

<td class="eC_GroupColumn"><a href="<?php echo $jfincart->DisplayInfo("ID"); ?>"img class="eC_ProductThumb" width="150px" height="150px" src="images/<?php echo $jfincart->DisplayInfo ("Thumbnail"); ?>" alt="<?php echo $row_WADAimages["caption"]; ?>" /></a></td>

Again, thank you for your help.

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

the errors are the cause of the problem.

The error are saying that there are parameters created for the recordset but they are not being used, do not have data types, or runtime values.

if you do not need these parameters in the recordset, then you should delete them

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