osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

> (RESOLU) Numérotation des lignes facture, Pour faciliter la saisie par la suite
JimG
posté 24 Jan 2012, 20:03
Message #1


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 53
Inscrit : 17-November 07
Membre no 19786



Bonjour,
Je viens vers vous car je n'ai rien trouvé sur le forum de similaire. J'aimerais que dans les factures, je puisse avoir chaque ligne numéroter du genre 1. 2. 3. Ca me faciliterais le transfert par la suite.
Merci d'avance


EDIT: J'ai finalement trouvé la solution. Si ca intéresse quelqu'un (j'en doute). J'ai commencé par installé la contrib U html.
Puis j'y ai rajouté dans le checkout_process du module un auto increment dans le tableau.
Merci à tous

Ce message a été modifié par JimG - 27 Mar 2012, 10:54.
Go to the top of the page
 
 
Start new topic
Réponse(s)
JimG
posté 21 Mar 2012, 08:25
Message #2


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 53
Inscrit : 17-November 07
Membre no 19786



Bonjour. J'ai peut etre un début de piste mais je ne suis qu'un piètre codeur.
Voila le code qui permet l'envoi d'email (contrib u html Email)
CODE
<table style="font-size:14px; font-family:\'times\';" border="0" cellpadding="3" cellspacing="2" bgcolor=white>
<tr style="background-color:#87A44C; color:#FFFFFF; font-weight:bold;">
<td align="left" width="300"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.UHE_TEXT_PRODUCTS_ARTICLE.'</font></td>
<td align="left" width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.UHE_TEXT_PRODUCTS_MODEL.'</font></td>
<td align="center" width="100"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.UHE_TEXT_PRODUCTS_PRICE.'</font></td>
<td align="center" width="40"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.UHE_TEXT_PRODUCTS_QTY.'</font></td>
<td align="right" width="100"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.UHE_TEXT_PRODUCTS_TOTAL.'</font></td>
</tr>';
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {//Add one row for each product. The array $order exists already in checkout_process.php; to which we will include this file.
$html_email .='
<tr style="background-color:#DDDDDD;">
<td valign="top" align="left"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.$order->products[$i]['name'] . $HTML_Email_product_attributes[$i].'</font></td>
<td valign="top" align="left"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.$order->products[$i]['model'].'</font></td>
<td valign="top" align="center"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.$currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], 1).'</font></td>
<td valign="top" align="center"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.$order->products[$i]['qty'].'</font></td>
<td valign="top" align="right"><font face="Times New Roman, Times, serif" style="font-size:14px;">'.$currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']).'</font></td>
</tr>';
}
$html_email .='
</table>


Je pensais à counter-increment:case; content:counter(case); trouvé sur internet mais impossible à mettre en route pour moi.
Merci
Go to the top of the page
 

Les messages de ce sujet


Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 29th March 2024 - 00:21
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)