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

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> Supprimer les noms des fabricants (fournisseurs), Suppression des fabricant dans nouveaute
LE MOIL Pascal
posté 29 Mar 2005, 15:41
Message #1


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 75
Inscrit : 8-March 04
Membre no 2092



Bonjour à tous,

je souhaiterais rendre mes fabricants anonymes ?
Ou puis je supprimer les noms des fournisseurs ou fabricants en particulier dans product_new (nouveaux produits)

Merci pour votre aide

Pascal
Go to the top of the page
 
pitstop
posté 29 Mar 2005, 19:51
Message #2


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 566
Inscrit : 19-May 02
Lieu : Poligny 39
Membre no 190



avec ça, ça fera l'affaire...

includes/modules/product_new.php

CODE
<table border="0" width="95%" cellspacing="0" cellpadding="2" align="center">
<?php
 if (sizeof($products_new_array) == '0') {
?>
 <tr>
   <td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>
 </tr>
<?php
 } else {
   for($i=0; $i<sizeof($products_new_array); $i++) {
     if ($products_new_array[$i]['specials_price']) {
       $products_price = '<s>' .  $currencies->display_price($products_new_array[$i]['price'], tep_get_tax_rate($products_new_array[$i]['tax_class_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($products_new_array[$i]['specials_price'], tep_get_tax_rate($products_new_array[$i]['tax_class_id'])) . '</span>';
     } else {
       $products_price = $currencies->display_price($products_new_array[$i]['price'], tep_get_tax_rate($products_new_array[$i]['tax_class_id']));
     }
?>
 <tr>
   <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $products_new_array[$i]['image'], $products_new_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td>
   <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '"><b><u>' . $products_new_array[$i]['name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . $products_new_array[$i]['date_added'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>
   <td align="right" valign="middle" class="main">
    <?php echo '<form name="buy_now_' . $products_new_array[$i]['id'] . '" method="post" action="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now', 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $products_new_array[$i]['id'] . '">' . tep_image_submit('button_buy_now.gif', $products_new_array[$i]['name']) . '</form>'; ?>&nbsp;  
   </td>
 </tr>
<?php
     if (($i+1) != sizeof($products_new_array)) {
?>
 <tr>
   <td colspan="3" class="main">&nbsp;</td>
 </tr>
<?php
     }
   }
 }
?>
</table>


--------------------
OSc MS1 Tuning
Go to the top of the page
 
LE MOIL Pascal
posté 1 Apr 2005, 20:57
Message #3


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 75
Inscrit : 8-March 04
Membre no 2092



Bonjour pitstop et merci pour ta réponse

En fait j'ai modifier la ligne 89 du fichier catalogue/product-news.php en supprimant le code suivant TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name']

Ancien code
89 ><td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>
Nouveau code
89<td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>

Une objection a cela?
Faut il egalement modifier le fichier que tu indiques (includes/modules/product_new.php
) ?

Merci

Pascal
Go to the top of the page
 
pitstop
posté 1 Apr 2005, 23:35
Message #4


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 566
Inscrit : 19-May 02
Lieu : Poligny 39
Membre no 190



ah oui sinon tes fabricants apparaitront toujours dans ta page nouveautés.


--------------------
OSc MS1 Tuning
Go to the top of the page
 

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 : 23rd May 2013 - 23:03
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)