close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

ecart tutorial question

Thread began 6/26/2014 4:25 pm by Webbie | Last modified 8/01/2014 12:17 pm by Webbie | 3172 views | 67 replies

Jason ByrnesWebAssist

on the details page, the ID form element was:
<input type="hidden" name="eCartEWEB_1_ID_Add" value="" >

i changed it to :
<input type="hidden" name="eCartEWEB_1_ID_Add" value="<?php echo($row_WADAProducts_3['ProductID']); ?>" >

For the other probelms, you have a few errors on the page.

the packages select list was passing the optin name for the value instead of the option ID. I changed:
<option value="<?php echo $row_rsPackage['OptionName']?>"><?php echo $row_rsPackage['OptionName']?></option>

<option value="<?php echo $row_rsPackage['ProductOptionID']?>"><?php echo $row_rsPackage['OptionName']?></option>

in the eCart add to cart behaviors, the package, package increment , addon and addon increment columns where using the wrong bindings, i changed:

$ATC_itemPackage = "".$_POST["eCartEWEB_1_Package_Add"]  ."";// column binding
$ATC_itemPackagePriceInc = floatval("".$row_rsPackage['OptionPriceincrement'] ."");// column binding
$ATC_itemAddon = "".$_POST["eCartEWEB_1_Addon_Add"] ."";// column binding
$ATC_itemAddonPriceInc = floatval("".$row_rsAddonLookup['OptionPriceincrement'] ."");// column binding


$ATC_itemPackage = "".$row_rsPackageLookup['OptionName']  ."";// column binding
$ATC_itemPackagePriceInc = floatval("".$row_rsPackageLookup['OptionPriceincrement'] ."");// column binding
$ATC_itemAddon = "".$row_rsAddonLookup['OptionName'] ."";// column binding
$ATC_itemAddonPriceInc = floatval("".$row_rsAddonLookup['OptionPriceincrement'] ."");// column binding

for the price to properly increment though, the cart object file does not contain the AddonPriceInc column

make sure you have that column defined in the cart object, and that the total price and true price calculations are set to use that column, it may be that you haven't uploaded the cart object file after making the change.

for the item images, edit the cart display page to prepend the folder that contains the images:

<img src="imagesfolder/<?php echo $eCartEWEB->DisplayInfo("Thumbnail"); ?>" alt="Product thumbnail" class="eC_ProductThumb" />

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





Ease of use


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