close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Product Option labels

Thread began 7/16/2011 3:24 am by anitah355532 | Last modified 7/20/2011 4:03 pm by Jason Byrnes | 1201 views | 7 replies |

anitah355532

Product Option labels

Can you please tell me how I can get the product options text labels to show properly? I've tried everything i can think of ...

The text describing the option "Ribbon Colour" is being cut off and is showing as "Ribbon Colou... :

The site is at www.ambiencebymichelle.co.nz.

I've attached a screen print so you can see what I mean.

Thanks, Anita

Sign in to reply to this post

Jason ByrnesWebAssist

on the webassist/plugins/shopping_cart/add_to_cart.php page, change the following code:

php:
<?php echo substr($row_SubOptions['OptionGroupName'], 012); ?><?php if(strlen($row_SubOptions['OptionGroupName']) > 12) echo "... "?>



to:

php:
<?php echo $row_SubOptions['OptionGroupName']; ?>



and this code:

php:
<?php echo substr($row_AddedOptions['OptionGroupName'], 012); ?><?php if(strlen($row_AddedOptions['OptionGroupName']) > 12) echo "... "?>



to:

php:
<?php echo $row_AddedOptions['OptionGroupName']; ?>
Sign in to reply to this post

anitah355532

Product Options Labels

Thanks Jason .... that's fixed part of the problem.

The initial cart looks just as it should - but when the customer selects an option (small/medium/large) the boxes below jump together, and I'm back to the problem of the labels being cut off.

Images of "before and after" are attached.

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/plugins/catalogue/change_options.js file, change line 130:
[code]
subOptionInner += '<label title="'+subOptions[x][0]+'" for="SimpleOptions_'+subOptions[x][2]+'">\n'+subOptions[x][0].substring(0,12)+((subOptions[x][0].length>12)?'... ':'')+':</label></td><td>';
[code]


to:

subOptionInner += '<label title="'+subOptions[x][0]+'" for="SimpleOptions_'+subOptions[x][2]+'">\n'+subOptions[x][0]+':</label></td><td>';
Sign in to reply to this post

anitah355532

Thanks Jason .... that fixed the problem of the cut-off text.

But, are you also able to figure out for me why the boxes are jumping together whenever a customer selects the first option?

Sign in to reply to this post

Jason ByrnesWebAssist

  But, are you also able to figure out for me why the boxes are jumping together whenever a customer selects the first option?  



Well, I thought the change suggested in the previous reply would fix both issues...

for the jumping together problem try editng the following line from the webassist/plugins/catalogue/change_options.js file:

document.getElementById("subOptionLayer").innerHTML = subOptionInner;



to:

document.getElementById("subOptionLayer").innerHTML = '<div class="addToCartSelect">'+subOptionInner+'</div>';
Sign in to reply to this post

anitah355532

Perfect .... everything's fixed now.
Thanks for your assistance :-)

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