Author Topic: Featured Products and Latest Products not level??  (Read 5061 times)

dgh1981

  • Jr. Member
  • **
  • Posts: 68
Featured Products and Latest Products not level??
« on: June 09, 2010, 20:11:22 pm »
ok so this is bugging me now.... I have tried to sort but can't find where this slight error is.

I have featured products directly above Latest products but the items do not match up?

The product images are all same size but there is a slight difference in gap between the featured products module...

http://youwant.lizardtechmedia.co.uk/

Featured Products module version 1.1.0
Latest Products module version 1.1.0
Can anybody help?
Cheers

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10376
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

dgh1981

  • Jr. Member
  • **
  • Posts: 68
Re: Featured Products and Latest Products not level??
« Reply #2 on: June 10, 2010, 08:39:35 am »
BanquetTables my productsnapshot doesn't have any information like that for the template I am using?

This is it shown below:
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>
 
<span style="font-weight:bold;"><?php echo $product_name ?></span>
<br />

<a title="<?php echo $product_name ?>" href="<?php echo $product_link ?>">
   <?php
      // Print the product image or the "no image available" image
      echo ps_product::image_tag( $product_thumb_image, "alt=\"".$product_name."\"");
   ?>
</a>
<br />

<?php
if( !empty($price) ) {
   echo $price;
}
?>
<?php
if( !empty($addtocart_link) ) {
   ?>
   <br />
   <form action="<?php echo  $mm_action_url ?>index.php" method="post" name="addtocart" id="addtocart">
    <input type="hidden" name="option" value="com_virtuemart" />
    <input type="hidden" name="page" value="shop.cart" />
    <input type="hidden" name="Itemid" value="<?php echo ps_session::getShopItemid(); ?>" />
    <input type="hidden" name="func" value="cartAdd" />
    <input type="hidden" name="prod_id" value="<?php echo $product_id; ?>" />
    <input type="hidden" name="product_id" value="<?php echo $product_id ?>" />
    <input type="hidden" name="quantity" value="1" />
    <input type="hidden" name="set_price[]" value="" />
    <input type="hidden" name="adjust_price[]" value="" />
    <input type="hidden" name="master_product[]" value="" />
    <input type="submit" class="addtocart_button_module" value="<?php echo $VM_LANG->_('PHPSHOP_CART_ADD_TO') ?>" title="<?php echo $VM_LANG->_('PHPSHOP_CART_ADD_TO') ?>" />
    </form>
   <br />
   <?php
}
?>

dgh1981

  • Jr. Member
  • **
  • Posts: 68
Re: Featured Products and Latest Products not level??
« Reply #3 on: June 10, 2010, 08:51:07 am »
OK so I reset to original virtuemart theme, and tried the settings on that productsnapshot.tpl but the only settings I got to make a difference were these but the images are still out slightly any thoughts?

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

<!-- The product name DIV. -->
 <?php if( $show_product_name ) : ?>
<div style="float:left; width: 100%;line-height:5px;">
<a title="<?php echo $product_name ?>" href="<?php echo $product_link ?>"><?php echo $product_name; ?></a>
<br />
</div>
<?php endif;?>

<!-- The product image DIV. -->
<div style="width: 100%;float:left;margin-top:5px;">
<a title="<?php echo $product_name ?>" href="<?php echo $product_link ?>">
   <?php
      // Print the product image or the "no image available" image
      echo ps_product::image_tag( $product_thumb_image, "alt=\"".$product_name."\"");
   ?>
</a>
</div>

<!-- The product price DIV. -->
<div style="width: 100%;float:left;text-align:center;">
<?php
if( !empty($price) ) {
   echo $price;
}
?>
</div>

<!-- The add to cart DIV. -->
<div style="float:left;text-align:center;width: 100%;">
<?php
if( !empty($addtocart_link) ) {
   ?>
   <br />
   <form action="<?php echo  $mm_action_url ?>index.php" method="post" name="addtocart" id="addtocart">
    <input type="hidden" name="option" value="com_virtuemart" />
    <input type="hidden" name="page" value="shop.cart" />
    <input type="hidden" name="Itemid" value="<?php echo ps_session::getShopItemid(); ?>" />
    <input type="hidden" name="func" value="cartAdd" />
    <input type="hidden" name="prod_id" value="<?php echo $product_id; ?>" />
    <input type="hidden" name="product_id" value="<?php echo $product_id ?>" />
    <input type="hidden" name="quantity" value="1" />
    <input type="hidden" name="set_price[]" value="" />
    <input type="hidden" name="adjust_price[]" value="" />
    <input type="hidden" name="master_product[]" value="" />
    <input type="submit" class="addtocart_button_module" value="<?php echo $VM_LANG->_('PHPSHOP_CART_ADD_TO') ?>" title="<?php echo $VM_LANG->_('PHPSHOP_CART_ADD_TO') ?>" />
    </form>
   <br />
   <?php
}
?>

</div>

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10376
  • VirtueMart Version: 3+
Re: Featured Products and Latest Products not level??
« Reply #4 on: June 10, 2010, 14:55:23 pm »
oooo, just realized you are talking about something different

featuredProducts.tpl
recent.tpl

You are going to have to edit those files. I dont know how. I dont use either of them'
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

dgh1981

  • Jr. Member
  • **
  • Posts: 68
Re: Featured Products and Latest Products not level??
« Reply #5 on: June 12, 2010, 13:30:43 pm »
Does anybody know how to sort this? All three components are all over the place?
http://youwant.lizardtechmedia.co.uk/

dgh1981

  • Jr. Member
  • **
  • Posts: 68
Re: Featured Products and Latest Products not level??
« Reply #6 on: June 12, 2010, 16:11:20 pm »
I've had a look at those files and can't find anything that would alter how the products are displayed... does anybody have a clue on how to help me?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10376
  • VirtueMart Version: 3+
Re: Featured Products and Latest Products not level??
« Reply #7 on: June 12, 2010, 16:27:21 pm »
you are going to have to change the html/css to of the featuredProducts file to move the products to the left a little.

echo "<h3>".$VM_LANG->_('VM_FEATURED_PRODUCT')."</h3>";

Add a div right after the header

and then close it right before the file closes and you will be able to use css to move it to the left however many pixels
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

dgh1981

  • Jr. Member
  • **
  • Posts: 68
Re: Featured Products and Latest Products not level??
« Reply #8 on: June 12, 2010, 16:53:05 pm »
I've just realised when I change the length of the product name it shifts the layout slightly...

Is there any way to make them display in some kind of grid format?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10376
  • VirtueMart Version: 3+
Re: Featured Products and Latest Products not level??
« Reply #9 on: June 13, 2010, 04:07:24 am »
I am sure there is, but its not standard.

I have offered a solution


I dont use featured or recent products, so I dont know a lot about them.
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Lance Thompson

  • Beginner
  • *
  • Posts: 38
    • Blue Sky Web Worx - Web Design Company
Re: Featured Products and Latest Products not level??
« Reply #10 on: August 13, 2010, 17:08:47 pm »
DGH1981,

I solved this by adding this to my template's CSS:

.moduletable td {
vertical-align: top;
}

I hope this helps.

Lance
Lance Thompson
CEO, Blue Sky Web Worx
www.BlueSkyWebWorx.com
Website Design Company, Internet Marketing, SEO, Graphic Design