Afficher les Dimensions et poids du produit sur virtuemart
6 messages
• Page 1 sur 1
- scarface7
- WRInaute discret

- Messages: 124
- Inscription: 29 Mar 2006
Afficher les Dimensions et poids du produit sur virtuemart
Bonjour en effet
j'utilse joomla + virtuemart pour boutique on-line
j'aimerai afficher les dimensions et poids du produit lors de la comande
exemple :
Nom Ref. Prix Unitaire Quantité Sous-total
Acer lcdplus22pouces2 €313.05 1 €313.05
j'aimerai que le script m'affiche :
Nom--Poids -- dimensions --- Ref. -- Prix Unitaire - Quantité - Sous-total
je ne sais pas cmment faire j'ai essayer de fouiller via l'administration de virtumart j'ai pas trouvé
voici la capture d'écran pour mieux comprendre

j'utilse joomla + virtuemart pour boutique on-line
j'aimerai afficher les dimensions et poids du produit lors de la comande
exemple :
Nom Ref. Prix Unitaire Quantité Sous-total
Acer lcdplus22pouces2 €313.05 1 €313.05
j'aimerai que le script m'affiche :
Nom--Poids -- dimensions --- Ref. -- Prix Unitaire - Quantité - Sous-total
je ne sais pas cmment faire j'ai essayer de fouiller via l'administration de virtumart j'ai pas trouvé
voici la capture d'écran pour mieux comprendre

- bumperjack
Quelle version de vm ?
Il faut aller modifier le template (par défaut flypage.tpl).
Et appeler le poids et les dimensions par leur nom de variable.
Il faut aller modifier le template (par défaut flypage.tpl).
Et appeler le poids et les dimensions par leur nom de variable.
- bumperjack
il faut aller dans www/compoenents/virtuemart/themes
le flypage.tpl est dans product_details
il faut récupérer la valeur du poids, je ne sais plus s'il faut bidouiller la fonction de récupération des infos produits mais normalement non
le flypage.tpl est dans product_details
il faut récupérer la valeur du poids, je ne sais plus s'il faut bidouiller la fonction de récupération des infos produits mais normalement non
- scarface7
- WRInaute discret

- Messages: 124
- Inscription: 29 Mar 2006
voici le contenue du fichier
<?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 width="33%" rowspan="<?php echo $rowspan; ?>" valign="top" class="vm-product-img"><br/>
<?php echo $product_image ?><br/><br/><?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?></td>
<td rowspan="1" colspan="2">
<h1><?php echo $product_name ?> <?php echo $edit_link ?></h1>
</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
} ?>
<?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 width="33%" rowspan="<?php echo $rowspan; ?>" valign="top" class="vm-product-img"><br/>
<?php echo $product_image ?><br/><br/><?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?></td>
<td rowspan="1" colspan="2">
<h1><?php echo $product_name ?> <?php echo $edit_link ?></h1>
</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
} ?>
6 messages
• Page 1 sur 1
Lectures recommandées sur ce thème :
- Récuperer poids et dimensions d'une image
- Procedure de mise à VirtueMart 1.1.1 à VirtueMart 1.1.2
- Poids D'UNE page ou poids DES pages ?
- upload photo dimensions !
- tri d'un tableau a 2 dimensions
- nombre de lignes d'un tableau a 2 dimensions
- Faut il indiquer les dimensions des images ?
- Quelles sont les dimensions dune affiche A6
- So Colissimo et VirtueMart/Joomla
- Probleme d'indexation VirtueMart
- Nouvelle version de Microsoft Live Search - 28-09-2007
- Le parrainage AdSense (Google AdSense Referrals) - 05-11-2005
- Ask dévoile sa technologie RhymeRank - 31-03-2006
- 5 astuces pour améliorer vos revenus de parrainages AdSense - 16-03-2007
- Tous les raccourcis-clavier de Google Chrome (shortcuts) - 05-09-2008
- Les Rich Snippets de Google (descriptions enrichies des résultats) - 15-05-2009
- Google reverse 68% des revenus AdSense for Content - 25-05-2010
- Google AdSense en test sur WebRankInfo - 26-11-2003
Consultez la description détaillée des produits ou services de Google suivants : Google Product Search
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité
