Results 1 to 2 of 2

Thread: Tooltip wont show Product Price

  1. #1
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tooltip wont show Product Price

    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.
    Last edited by djr33; 01-22-2010 at 03:42 AM. Reason: please use [code] tags around code

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    This is the only line I see referring to a "product price":
    PHP Code:
    <!--<div id="vmCatPrice"><?php //echo $product_price ?></div>-->
    and it's commented out. Twice, in fact.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •