News:

Looking for documentation? Take a look on our wiki

Main Menu

category alignment css? and .vm-pagination issue

Started by ICWater, January 28, 2013, 20:20:13 PM

Previous topic - Next topic

jenkinhill

I think that is in  joomla_root/modules/mod_virtuemart_product/tmpl/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

ICWater

much thanks, does that need an override or can i edit it directly?

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


ICWater

where is this getting the width settings for those product containers?
<?php // no direct access
defined ('_JEXEC') or die('Restricted access');
$col 1;
$pwidth ' width' floor (100 $products_per_row);
if (
$products_per_row 1) {
$float "floatright";
} else {
$float "center";
}
?>

<div class="vmgroup<?php echo $params->get ('moduleclass_sfx'?>">

<?php if ($headerText) { ?>
<div class="vmheader"><?php echo $headerText ?></div>
<?php
}
if ($display_style == "div") {
?>

<div class="vmproduct<?php echo $params->get ('moduleclass_sfx'); ?> productdetails">
<?php foreach ($products as $product) { ?>
<div class="<?php echo $pwidth ?> <?php echo $float ?>">
<div class="spacer">
<?php
if (!empty($product->images[0])) {
$image $product->images[0]->displayMediaThumb ('class="featuredProductImage" border="0"'FALSE);
} else {
$image '';
}
echo JHTML::('link'JRoute::('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $product->virtuemart_product_id '&virtuemart_category_id=' $product->virtuemart_category_id), $image, array('title' => $product->product_name));
echo '<div class="clear"></div>';
$url JRoute::('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $product->virtuemart_product_id '&virtuemart_category_id=' .
$product->virtuemart_category_id); ?>

<a href="<?php echo $url ?>"><?php echo $product->product_name ?></a>        <?php    echo '<div class="clear"></div>';

if ($show_price) {
//  echo $currency->priceDisplay($product->prices['salesPrice']);
if (!empty($product->prices['salesPrice'])) {
echo $currency->createPriceDiv ('salesPrice'''$product->pricesFALSEFALSE1.0TRUE);
}
//  if ($product->prices['salesPriceWithDiscount']>0) echo $currency->priceDisplay($product->prices['salesPriceWithDiscount']);
if (!empty($product->prices['salesPriceWithDiscount'])) {
echo $currency->createPriceDiv ('salesPriceWithDiscount'''$product->pricesFALSEFALSE1.0TRUE);
}
}
if ($show_addtocart) {
echo mod_virtuemart_product::addtocart ($product);
}
?>

</div>
</div>
<?php
if ($col == $products_per_row && $products_per_row && $col $totalProd) {
echo " </div><div style='clear:both;'>";
$col 1;
} else {
$col++;
}
?>

</div>
<br style='clear:both;'/>

<?php
} else {
$last count ($products) - 1;
?>


<ul class="vmproduct<?php echo $params->get ('moduleclass_sfx'); ?> productdetails">
<?php foreach ($products as $product) : ?>
<li class="<?php echo $pwidth ?> <?php echo $float ?>">
<?php
if (!empty($product->images[0])) {
$image $product->images[0]->displayMediaThumb ('class="featuredProductImage" border="0"'FALSE);
} else {
$image '';
}
echo JHTML::('link'JRoute::('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $product->virtuemart_product_id '&virtuemart_category_id=' $product->virtuemart_category_id), $image, array('title' => $product->product_name));
echo '<div class="clear"></div>';
$url JRoute::('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $product->virtuemart_product_id '&virtuemart_category_id=' .
$product->virtuemart_category_id); ?>

<a href="<?php echo $url ?>"><?php echo $product->product_name ?></a>        <?php    echo '<div class="clear"></div>';
// $product->prices is not set when show_prices in config is unchecked
if ($show_price and  isset($product->prices)) {
echo '<div class="product-price">'.$currency->createPriceDiv ('salesPrice'''$product->pricesFALSEFALSE1.0TRUE);
if ($product->prices['salesPriceWithDiscount'] > 0) {
echo $currency->createPriceDiv ('salesPriceWithDiscount'''$product->pricesFALSEFALSE1.0TRUE);
}
echo '</div>';
}
if ($show_addtocart) {
echo mod_virtuemart_product::addtocart ($product);
}
?>

</li>
<?php
if ($col == $products_per_row && $products_per_row && $last) {
echo '
</ul><div class="clear"></div>
<ul  class="vmproduct' 
$params->get ('moduleclass_sfx') . ' productdetails">';
$col 1;
} else {
$col++;
}
$last--;
endforeach; ?>

</ul>
<div class="clear"></div>

<?php
}
if ($footerText) : ?>

<div class="vmfooter<?php echo $params->get ('moduleclass_sfx'?>">
<?php echo $footerText ?>
</div>
<?php endif; ?>
</div>


i cant find anything that has a meaningful effect on the layout as i did for the catagory. crapoloa

ICWater

where is this located?
<li class=" width33 floatright">

ICWater

oki, almost there. whats the proper php to change this to center? $float = "floatleft";

ICWater

anyone know what code i need to remove to get rid of the bullets?

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum