Author Topic: [SOLVED] Ice VM Cart minicart - Problem no images with SEF enable  (Read 5046 times)

FilipeRuivo

  • Jr. Member
  • **
  • Posts: 62
I correct the problem in Ice VM Cart where no images appear when SEF enable.

Just overwrite de ice vm cart minicart.tpl.php with this one.  ;D

Where is the code to copy&paste or download the attached file:
Code: [Select]
<?php /**
* @Copyright Copyright (C) 2008 - 2010 IceTheme
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
******/

if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

if(
$empty_cart) { ?>

   
    <div style="margin: 0 auto; text-align:center">
    <?php if(!$vmMinicart) { ?>
   <p> <?php }
    echo 
$VM_LANG->_('PHPSHOP_EMPTY_CART'?>

    </p>
    </div>
<?php 
else {
$ps_product = new ps_product;
$db = &JFactory::getDBO();
    
// Loop through each row and build the table
    
foreach( $minicart as $idx => $cart ) { 

foreach( $cart as $attr => $val ) {
// Using this we make all the variables available in the template
// translated example: $this->set( 'product_name', $product_name );
$this->set$attr$val );

}

        if(!
$vmMinicart) { // Build Minicart
$product_thumb_image $ps_product->get_field($_SESSION['cart'][$idx]["product_id"], "product_thumb_image");
echo '<div class="ice-basket-row '.(($idx%2==0)?'even':'odd').'">';
echo "<a href=\"" $cart['url'] . "\">";
echo ps_product::image_tag$product_thumb_image"alt=\"".$cart['product_name']."\" class=\"ice-image\"");
echo "</a>";
?>

           
                <div class="ice-backet-wrapper">
               
                    <div class="ice-prod-descr">
                    <?php echo $cart['quantity'?>&nbsp;x&nbsp;<a href="<?php echo $cart['url'?>"><?php echo $cart['product_name'?></a>
                    </div>
                    <div class="ice-price">
                    <?php echo $cart['price'?>
                    </div>
                   
                    <div class="ice-attributes">
                    <?php echo $cart['attributes'];?>
                    </div>
                   
                </div>
           
           </div>
           <?php  
        
}
    }
}
if(!
$vmMinicart) { ?>

<?php ?>
<div class="ice-cartinfo clearfix" style="clear:both">
    <div class="ice-totalproduct" >
    <?php echo $total_products ?>
    </div>
    <div class="ice-totalprice">
    <?php echo $total_price ?>
    </div>
</div>
<?php if (!$empty_cart && !$vmMinicart) { ?>
   <div class="ice-showcart" align="center">
     <?php echo $show_cart ?>
   </div>
<?php 
echo 
$saved_cart;
?>

[attachment cleanup by admin]

ahoj

  • Beginner
  • *
  • Posts: 1
Re: [SOLVED] Ice VM Cart minicart - Problem no images with SEF enable
« Reply #1 on: October 03, 2012, 21:48:56 pm »
Hello, I am a new user
thank you all for your support for VM
thanks for the solution

I have a problem with vm ice cart for J 1.5,
Pictures are mixed with other products, I attach a screenshot

[attachment cleanup by admin]