close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to cart on Name of Product brings in blank

Thread began 7/19/2022 1:33 pm by lr_leal239405 | Last modified 7/26/2022 9:10 am by Ray Borduin | 258 views | 4 replies |

lr_leal239405

Add to cart on Name of Product brings in blank

For some strange reason this
$ATC_itemName = "testing";

will not add the name of the product into the cart. However, that same exact works from other pages. AND...the below will work.
$ATC_itemDescription = "". "testing ."";// column binding

So...for some reason the '$ATC_itemName' will not work specifically on that page. As soon as I name it $ATC_Description, it will work. It is definitely in this line below (in case you ask).

$eCart1->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);

Can you give me any ideas? Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the entire chunk of code that isn't working and I can look to see what might be wrong.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

The code is below. Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

You will have to debug. The name must not be set properly.

Where you have:
if ((strlen($cac_quote_new_temp_qnums_byclient2reccart->getColumnVal("part_name"))) == 2) {
$ATC_itemName = "". html_entity_decode($cac_quote_new_temp_qnums_byclient2reccart->getColumnVal("description")) ."";// column binding
} else {
$ATC_itemName = "". ($cac_quote_new_temp_qnums_byclient2reccart->getColumnVal("part_name")) ."";// column binding
}

add this after:

die("added name: " . $ATC_itemName);

If there is no name, then one of the lines above must be wrong when the name is set.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

Thanks for this info. I found the issue.

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