-
AuthorPosts
-
shertmann Friend
shertmann
- Join date:
- September 2008
- Posts:
- 339
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 22
- Thanked:
- 42 times in 26 posts
September 21, 2008 at 6:27 am #133563i actually has to give thanks to the administrators and the team of joomlart team your work make us the life easier.
i want to give some contibution of an edition that i make to this template.
when i was working on this template i need to make some edition and here they are.
to make in the flypage the image show not the thumbnail but the larger image even this is a hardcoded solution when i found how to make the real code i will send it, i have too change how the browse page show images of categories products thumbnail not at the right but at the left of the products.
flypage.tpl.php modified page
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>
<?php echo $buttons_header // The PDF, Email and Print buttons ?>
<?php
if( $this->get_cfg( 'showPathway' )) {
echo "<div class="pathway">$navigation_pathway</div>";
}
if( $this->get_cfg( 'product_navigation', 1 )) {
if( !empty( $previous_product )) {
echo '<a class="previous_page" href="'.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page" href="'.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}
?>
<br style="clear:both;" />
<table border="0" style="width: 100%;">
<tbody>
<tr>
<?php if( $this->get_cfg('showManufacturerLink') ) { $rowspan = 5; } else { $rowspan = 4; } ?>
<td colspan="3" valign="top" > <center>
<?php echo $product_name ?>
</center> </td>
</tr>
<tr>
<td colspan="3" valign="top" class="vm-product-img"><center>
<img src="components/com_virtuemart/shop_image/product/<?php echo $product_full_image ?>" />
</center> </td>
</tr>
<tr>
<td colspan="3" valign="top" ><?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?><?php echo $edit_link ?></td>
</tr>
<?php if( $this->get_cfg('showManufacturerLink')) { ?>
<tr>
<td rowspan="1" colspan="2"><?php echo $manufacturer_link ?><br /></td>
</tr>
<?php } ?>
<tr>
<td width="33%" valign="top" align="left">
<?php echo $product_price_lbl ?>
<?php echo $product_price ?><br /></td>
<td valign="top"><?php echo $product_packaging ?><br /></td>
</tr>
<tr>
<td colspan="2"><?php echo $ask_seller ?></td>
</tr>
<tr>
<td rowspan="1" colspan="2"><hr />
<?php echo $product_description ?><br/>
<span style="font-style: italic;"><?php echo $file_list ?></span> </td>
</tr>
<tr>
<td><?php
if( $this->get_cfg( 'showAvailability' )) {
echo $product_availability;
}
?><br /> </td>
<td colspan="2"><br /><?php echo $addtocart ?></td>
</tr>
<tr>
<td colspan="3"><?php echo $product_type ?></td>
</tr>
<tr>
<td colspan="3"><hr /><?php echo $product_reviews ?></td>
</tr>
<tr>
<td colspan="3"><?php echo $product_reviewform ?><br /></td>
</tr>
<tr>
<td colspan="3"><?php echo $related_products ?><br /> </td>
</tr>
<?php if( $this->get_cfg('showVendorLink')) { ?>
<tr>
<td colspan="3"><div style="text-align: center;"><?php echo $vendor_link ?><br /></div><br /></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php
if( !empty( $recent_products )) { ?>
<div class="vmRecent">
<?php echo $recent_products; ?>
</div>
<?php
}
if( !empty( $navigation_childlist )) { ?>
<?php echo $VM_LANG->_('PHPSHOP_MORE_CATEGORIES') ?><br />
<?php echo $navigation_childlist ?><br style="clear:both"/>
<?php
} ?>
save a copy of your old flypage.tpl.php or create a new one with this code.
the browse_1.php code
<div class="browseProductContainer">
<h3 class="browseProductTitle"><a title="<?php echo $product_name ?>" href="<?php echo $product_flypage ?>">
<?php echo $product_name ?></a>
</h3>
<div class="browseProductImageContainer">
<script type="text/javascript">//<!]>
</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" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?>
</a>
</noscript>
</div>
<div class="browsePriceContainer">
<?php echo $product_price ?>
</div><div class="browseRatingContainer">
<?php echo $product_rating ?>
</div><div class="browseProductDescription">
<div style="margin: 15px 0 5px;"><?php echo $product_s_desc ?> </div>
<a class="readon" href="<?php echo $product_flypage ?>" title="<?php echo $product_details ?>">
<?php echo $product_details ?>...</a>
</div><br />
<div class="browseAddToCartContainer">
<?php echo $form_addtocart ?>
</div></div>
the same case with this browse page.
enjoy it
:D:D
September 22, 2008 at 7:59 pm #271739Hello , i have this problem and i cant find where are the Flypage.tpl and browse_1.php y have looked everywhere and i can not find the. Can you give a clue please?
thanks in advance
Martinshertmann Friendshertmann
- Join date:
- September 2008
- Posts:
- 339
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 22
- Thanked:
- 42 times in 26 posts
September 22, 2008 at 11:14 pm #271752the flypage.tpl.php is located at
yourstore/components/com_virtuemart/themes/name_of_theme/templates/product_details/
and browse_1.php is located at:
yourstore/components/com_virtuemart/themes/name_of_theme/templates/browse/
September 22, 2008 at 11:27 pm #271754Thanks Shertman but i could repair my problem of not showing templates wisth this solution. The folder component by default brings 777 property with PHP5 cause problems so i changed to 755 and now everything is perfect. thanks
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by shertmann 16 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum