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

Foreign Language products

Thread began 3/19/2011 4:11 pm by bjgarner241692 | Last modified 3/22/2011 10:21 am by Jason Byrnes | 959 views | 3 replies |

bjgarner241692

Foreign Language products

I have products in my shopping cart with foreign language names such as:

El Coma Elite - El Modo Elite para Prender al Bebé al Seno: ¡Ofrezca, Afiance, Transfiera!

or

Hojas de Información - Español

When the script encounters a special character, it breaks and I get errors such as this:

Warning: Missing argument 4 for eCart1_ItemDefinition::eCart1_ItemDefinition(), called in C:\path\2011\WA_eCart\WA_eCart_Definition_PHP.php(477) : eval()'d code on line 1 and defined in C:\path\2011\WA_eCart\eCart1_PHP.php on line 267

Can I change the language set of the eCart files to allow this to work? Some of the product may even be in Chinese or Russian so the character set will always be an issue.

Sign in to reply to this post

Jason ByrnesWebAssist

in the eCart add to cart code for the product name binding, you can try using the php htmlentites() function to convert the special characters to HTML entities.

for example the code for the name binding may look like:

php:
$ATC_itemName = "".$row_WADAProducts['ProductName']  ."";// column binding



change this to:

php:
$ATC_itemName = "".htmlentities($row_WADAProducts['ProductName'],ENT_QUOTES,"UTF-8")  ."";// column binding




you may need to experiment with the character set being used. see the following page for details:
function.htmlentities.php

Sign in to reply to this post

bjgarner241692

Brilliant!
Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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