close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Column bindings

Thread began 5/04/2011 6:01 am by moz1104419172 | Last modified 5/04/2011 10:48 am by moz1104419172 | 658 views | 1 replies

moz1104419172

Column bindings

Hi,

Im working on trying to get my eCart to calculate an addition to the price of one of my items based on how many fields in a certain recordset are empty, this number will multiply the increase in price that comes when increasing the size of the item

I have already put a formula into my cost calculation on the set up for my ecart and have bound the increase in price to my dropdown which selects the size

I have also manually set up a small php script to determine the multiply value which will count how many fields out of 5 are not empty, the number is then stored in a variable, the script is

<?php
//Colour counter
$ColourCount = 0;
for ($i=1; $i<=5; $i++) {
if ($row_WADAproducts["ProductFabric".$i."ID"] != "") {
$ColourCount++;
}
}
?>

What im having trouble doing (as im no PHP expert) is how can i tell my 'add to cart' button, that the binding for my column [ColourMultiply] is the variable $ColourCount, i tried entering

<?php echo $ColourCount; ?>

into the binding field but that doesnt seem to be working, how can i tell my ecart i want to bind this column to that variable?

Many thanks

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