h2 title on cart
Dear Webassist,
how do I control the truncation of the h2 title on the cart page? See my link:
cart.php
waxcott...
Dear Webassist,
how do I control the truncation of the h2 title on the cart page? See my link:
cart.php
waxcott...
the code on the cart.php page for the h2 tag is:
<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"), 0, 8); ?>
<?php if (strlen($WA_Store_Cart->DisplayInfo("Name")) > 11) echo "..."; ?></h2>
if you want to remove the truncation all together, change it to:
<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>
other wise, cahnge the number 8 in the following to the number of characters you wish to allow:
<?php echo substr($WA_Store_Cart->DisplayInfo("Name"), 0, 8); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.