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

No space enough for long product names

Thread began 8/15/2009 7:38 am by brunodarwin371999 | Last modified 8/18/2009 12:04 pm by Jason Byrnes | 1591 views | 4 replies |

brunodarwin371999

No space enough for long product names

Hi,

Many products names have more than 8 letters.

But when I enter a more than 8 letters-long product,

The word is cut in the page"cart.php"
The word is cut AND is written ON the price in- "Admin/Products_Detail.php" page

How can this problem be avoided ?
Note :I tryed to solve this by changing the maximum number of letters and the css file but I didn't succeed.


Please help. Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

This was done so that the layout would stay consistent with long product names. You can change this be finding the following code on those two pages:

php:
<h2 title="<?php if (strlen($WA_Store_Cart->DisplayInfo("Name")) > 11) echo ($WA_Store_Cart->DisplayInfo("Name")); ?>">

<?php echo substr($WA_Store_Cart->DisplayInfo("Name"), 08); ?>
<?php 
if (strlen($WA_Store_Cart->DisplayInfo("Name")) > 11) echo "..."?></h2>



and changing it to:

php:
<h2 title="<?php if (strlen($WA_Store_Cart->DisplayInfo("Name")) > 11) echo ($WA_Store_Cart->DisplayInfo("Name")); ?>">

<?php echo $WA_Store_Cart->DisplayInfo("Name"); ?>
</h2>
Sign in to reply to this post

anitah355532

No space enough for long product names

I really needed to know how to display the whole product name as well. This is why using the forum for support is such a great idea. Thank you Jason.

Sign in to reply to this post

brunodarwin371999

I hope that for German customers (who have very often long words) or for long detailed products names a solution will be found for a 20 letters word :)
Sometimes long words are self-explainatory.

Thank you Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

Hi brunodarwin371999,

The solution we had in place for that was to set the title for the H2 tag to be the name;

<h2 title="<?php if (strlen($WA_Store_Cart->DisplayInfo("Name")) > 11) echo ($WA_Store_Cart->DisplayInfo("Name")); ?>">

In this case if the word is to long to display on the page, it will show truncated, if you hover your mouse over the truncated word, you will see the entire string.

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