I need help displaying Product Price in ToolTip.
So far I can display product description and other informations, but when inserting php line of code <?php echo $product_price ?> all of my product disappear from the page. Please see the tooltip working with Product Description <?php echo $product_s_desc ?> and Retail Value Price.
http://erichananjewels.com/index.php...id=5&Itemid=11
below is my code:
Code:<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?> <?php // Dynamic Image Resize check if (file_exists(IMAGEPATH.'product/'.$product_thumb_image)) { list($width, $height, $type, $attr) = getimagesize(IMAGEPATH.'product/'.$product_thumb_image); } else { $parsed = array(); $array = array(); $url = $product_thumb_image; $parsed = parse_url($url); parse_str($parsed[query], $array); list($width, $height, $type, $attr) = getimagesize(IMAGEPATH.'product/'.$array["filename"]); } $target = $this->get_cfg('categoryImageResize'); if ($target == null) { $target = $width; } if ($width != '' && $height != '') { if ($width > $height) { $percentage = ($target / $width); } else { $percentage = ($target / $height); } //gets the new value and applies the percentage, then rounds the value $width = round($width * $percentage); $height = round($height * $percentage); $divwidth = $width; } ?> <?php include_once "browse_ajax.php"; $product_tooltip = str_replace("'","\'",$product_desc); ?> <div class="vmBrowseContainer" style="width:<?php echo $divwidth+30;?>px;"> <div class="vmBrowseProductImage"> <script type="text/javascript">//<![CDATA[ document.write('<a title="<?php echo $product_name ?>" href="<?php echo $product_flypage ?>" onMouseout="hideddrivetip()" onMouseover="ddrivetip(\'<?php echo $product_s_desc ?><br /><br /><?php echo $product_url ?><?php echo $product_tooltip ?>\')">'); document.write('<?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" width="'.$width.'" height="'.$height.'" ' ) ?></a>' ); //]]> </script> <noscript> <a href="<?php echo $product_full_image ?>" target="_blank" title="<?php echo $product_name ?>"> <?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" width="'.$width.'" height="'.$height.'" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?> </a> </noscript> <div class="vmBrowseProductTitle"> <br class="style:both"> </div> </div> <br class="style:both"> <!--<div id="vmCatPrice"><?php //echo $product_price ?></div>--> <!--<div id="vmCatSku"> Product #<?php //echo $product_sku ?></div>--> <?php //echo $form_addtocart ?> </div>
please advise.



Reply With Quote

Bookmarks