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

rating

JS Error while adding a dynamic add to cart button

Thread began 11/21/2011 4:36 pm by joerg431091 | Last modified 9/10/2012 10:04 am by Justin@AdventDesign | 1461 views | 14 replies |

joerg431091

JS Error while adding a dynamic add to cart button

Hi all,

I am quite new to all this and have trouble with adding a dynamic add to cart button in e-cart.

I have everything set up regarding the database and used data assist to create product result and detail pages. Everything works great in this regards.

I did insert an eCart object and the WA_eCart folder with the respective files are created.

Now I open the result or detail pages and like to add the dynamic add to cart button. As soon as I choose "Look up item ID from recordset under properties, I receive the following error message:

While executing onClick in WA eCart AddToCart.htm the following JavaScript error(s) occurred: At line 915 of file "Macintosh HD:User:[my user name]:Library:ApplicationSupport:Adobe:DreamweaverCS5:en_US:Configuration:Commands:WA eCart AddToCart.js": document.generalWP.document.column.options[document.gemeralWP.document.column.selectedIndex] has no properties

I tried to uninstall and then re-installed the extension with the same result.

If anyone could help me with this, I would really appreciate it.

Thanks a lot and best regards,

AJ

Sign in to reply to this post

Dani Chankhour

What version of eCart are you using? Make sure to download the latest version from the download center.

Sign in to reply to this post

joerg431091

Thanks for your response Dani.

I am using eCart 5.0.3 (which should be the most recent) - I am also using Dreamweaver CS5 and Mac OS X Lion.

I also tried a complete new installation on both, my mac and my macbook with the same results.

Thanks for helping,

Best,
Joerg

Sign in to reply to this post

Dani Chankhour

Thanks.

Make sure you have a Recored Set applied to the page before using the Add to Cart.

If you still get the error, please post back with a copy of the page.

Sign in to reply to this post

joerg431091

Hi Dani,

Yes. Recordset is applied since it is a result page created by DataAssist. Again, the site itself works perfectly. It almost seems that the files and folder in the error message might not have been created during the installation of eCart since I can not even locate them on my computer.

I don't know if there is a separate recordset applied by eCart since the error message comes up immediately once i try to look up the item ID from recordset. So it does not even display any recordset in the add cart button menue.

However, I will attach the code for the result page as a pdf to this e-mail.

The link to the result page that I try to add the dynamic cart button to is:

products_Results.php

Thanks a lot for your help and best regards,

Joerg

Attached Files
CodeResultPage.pdf
Sign in to reply to this post

Dani Chankhour

can you please zip the php file and attach it, because the copying from the pdf file is breaking things apart.

Sign in to reply to this post

joerg431091

Hi Dani,

Sure. Sorry about this. I will attach a zip of the php file.

Thanks again,

Joerg

Attached Files
products_Results.php.zip
Sign in to reply to this post

joerg431091

Hi Dani,

It works now. I did uninstall and re-installed the extension, deleted all files and started from scratch. After I applied an additional recordset to the result page, the js error did not come up and I was able to finish the e-cart button and then later create all checkout pages.

Everything seems to work except that I now receive a parse error for the confirm.php page on line 466 which is as follows:

Parse error: syntax error, unexpected '?' in /home/[myusername]/public_html/boutique/Products/confirm.php on line 466

The actual line 466 on the confirm.php page is:

$RecipArray[$CurIndex][] = $row_<?php echo ((isset($_SESSION["eCartCheckoutForm_firstname"]))?$_SESSION["eCartCheckoutForm_firstname"]:"") ?>

Any ideas?

Thanks a lot,

Joerg

Sign in to reply to this post

Jason ByrnesWebAssist

what version of CSS Form Builder do you have installed.


I believe this was a bug that was fixed in the CSS Form Builder 2.0.1 Support Release 2 version available in the support release section of the CSS Form Builder 2 download center page.

make sure to uninstall the previous version from the extension manager before installing the newer one, you should then delete the checkout pages and rerun the checkout wizard to create them again.

Sign in to reply to this post

joerg431091

Hi Jason,

Thanks for your response. I just uninstalled the Form Builder 2.0.0 and downloaded the Support Release 2.0.1. - deleted all checkout pages and run the checkout wizard again.

(I noticed your response to another post - so tried this right away)

Unfortunately with the same results and same error message:

Parse error: syntax error, unexpected '?' in /home/anderjoe/public_html/confirm.php on line 466

I also noticed (as the guy in the other post) that the extension manager noted version 2.0.0 after I installed the new support issue 2.0.1 - don't know whether this has something to do with it).

Any ideas?

Thx.

Joerg

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