Articolo Prenotabile

Postate qui discussioni di carattere generale riguardo a problemi di installazione e configurazione di osCommerce

Moderatore: mod Generali

Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Articolo Prenotabile

Messaggio da Ricsca »

Ragazzi come posso fare per far si che invece del prezzo, per alcuni prodotti compaia la scritta Articolo Prenotabile?

Ciao cioa
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Re: Articolo Prenotabile

Messaggio da Bass »

Ricsca ha scritto:Ragazzi come posso fare per far si che invece del prezzo, per alcuni prodotti compaia la scritta Articolo Prenotabile?
C'e' una contribution che si chiama call for price, dovrebbe adeguarsi allo scopo :)

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »

Mi esce fuori due pagine di risultati :(

http://www.oscommerce.com/community?con ... category=3
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

Ricsca ha scritto:Mi esce fuori due pagine di risultati :(
Dovrebbe essere questa http://www.oscommerce.com/community/con ... +for+price

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »

Lo so che sono un rompipalle ma....
Qualcuno me lo potrebbe tradurre in 2 parole? :)

Grazie 1000

[quote]CORRECTED VERSION......

I noticed that when I click on the call for pricing link, I sometimes forget what product it was and had to go back to see the details. Here is the code to replace the A tag so it will produce a Contact form with the complete details of the product plus thew URL, I think this is a necessary
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »

:roll:
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

Ricsca ha scritto:Lo so che sono un rompipalle ma....
Qualcuno me lo potrebbe tradurre in 2 parole? :)
Praticamente vuol dire che puo' capitare che, quando dei clienti cliccano per chiedere il prezzo e vengono rimandati alla form di contatto, possono dimenticarsi per cosa avevano richiesto il contatto. Questa modifica mette direttamente nella form i dati del prodotto

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »

Grazie ma non sono riuscito ancora a capire (dal quote che ho copiato) dove devo inserire quel pezzo di codice! :)
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

Ricsca ha scritto:Grazie ma non sono riuscito ancora a capire (dal quote che ho copiato) dove devo inserire quel pezzo di codice! :)

Codice: Seleziona tutto

with the code above in "product_listing.php"
'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
uzumaki
membro Junior
membro Junior
Messaggi: 40
Iscritto il: 29/11/2005, 8:12

Messaggio da uzumaki »

Bass ha scritto:Praticamente vuol dire che puo' capitare che, quando dei clienti cliccano per chiedere il prezzo e vengono rimandati alla form di contatto, possono dimenticarsi per cosa avevano richiesto il contatto.
Wow, comodissimo, praticamente un anti-Alzheimer ! Quando si dice "usabilità" :D
Avatar utente
the_artist
membro Regular
membro Regular
Messaggi: 124
Iscritto il: 24/05/2005, 11:09
Località: Torino

Messaggio da the_artist »

uzumaki ha scritto:
Bass ha scritto:Praticamente vuol dire che puo' capitare che, quando dei clienti cliccano per chiedere il prezzo e vengono rimandati alla form di contatto, possono dimenticarsi per cosa avevano richiesto il contatto.
Wow, comodissimo, praticamente un anti-Alzheimer ! Quando si dice "usabilità" :D

:D :D :D :D :D :D :D :D :D :D
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »

Ma io non ho un file "product_listing.php" nella mia root!! :(
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

Ricsca ha scritto:Ma io non ho un file "product_listing.php" nella mia root!! :(
E' in includes/modules

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »


<?php
/*
$Id: product_listing.php,v 1.44 2003/06/09 22:49:59 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');

if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
</tr>
</table>
<?php
}

$list_box_contents = array();

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_text = TABLE_HEADING_MODEL;
$lc_align = '';
break;
case 'PRODUCT_LIST_NAME':
$lc_text = TABLE_HEADING_PRODUCTS;
$lc_align = '';
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_text = TABLE_HEADING_MANUFACTURER;
$lc_align = '';
break;
case 'PRODUCT_LIST_PRICE':
$lc_text = TABLE_HEADING_PRICE;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_QUANTITY':
$lc_text = TABLE_HEADING_QUANTITY;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_WEIGHT':
$lc_text = TABLE_HEADING_WEIGHT;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_IMAGE':
$lc_text = TABLE_HEADING_IMAGE;
$lc_align = 'center';
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_text = TABLE_HEADING_BUY_NOW;
$lc_align = 'center';
break;
}

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
$lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
}

$list_box_contents[0][] = array('align' => $lc_align,
'params' => 'class="productListing-heading"',
'text' => ' ' . $lc_text . ' ');
}

if ($listing_split->number_of_rows > 0) {
$rows = 0;
$listing_query = tep_db_query($listing_split->sql_query);
while ($listing = tep_db_fetch_array($listing_query)) {
$rows++;

if (($rows/2) == floor($rows/2)) {
$list_box_contents[] = array('params' => 'class="productListing-even"');
} else {
$list_box_contents[] = array('params' => 'class="productListing-odd"');
}

$cur_row = sizeof($list_box_contents) - 1;

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
$lc_align = '';

switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_align = '';
$lc_text = ' ' . $listing['products_model'] . ' ';
break;
case 'PRODUCT_LIST_NAME':
$lc_align = '';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
} else {
$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
}
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> ';
break;
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';

//TotalB2B start
$listing['products_price'] = tep_xppp_getproductprice($listing['products_id']);
//TotalB2B end

//TotalB2B start
if ($new_price = tep_get_products_special_price($listing['products_id'])) {
$listing['specials_new_products_price'] = $new_price;
$query_special_prices_hide = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'SPECIAL_PRICES_HIDE'");
$query_special_prices_hide_result = tep_db_fetch_array($query_special_prices_hide);
if ($query_special_prices_hide_result['configuration_value'] == 'true') {
$lc_text = '  <span class="productSpecialPrice">' . $currencies->display_price_nodiscount($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';
} else {
$lc_text = ' <s>' . $currencies->display_price($listing['products_id'], $listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price_nodiscount($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';
}
//TotalB2B end

} else {
$lc_text = ' ' . $currencies->display_price($listing['products_id'], $listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';
}
break;
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
$lc_text = ' ' . $listing['products_quantity'] . ' ';
break;
case 'PRODUCT_LIST_WEIGHT':
$lc_align = 'right';
$lc_text = ' ' . $listing['products_weight'] . ' ';
break;
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
} else {
$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';
}
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
if (tep_has_product_attributes($listing['products_id'])) {
$lc_text = TEXT_HAVE_PRODUCTS;
} else {
$lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . TEXT_QTY . tep_draw_input_field('list_quantity', '1', 'SIZE=2 maxlength=2') .' '. tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</form> ';
}
break;
}

$list_box_contents[$cur_row][] = array('align' => $lc_align,
'params' => 'class="productListing-data"',
'text' => $lc_text);
}
}

new productListingBox($list_box_contents);
} else {
$list_box_contents = array();

$list_box_contents[0] = array('params' => 'class="productListing-odd"');
$list_box_contents[0][] = array('params' => 'class="productListing-data"',
'text' => TEXT_NO_PRODUCTS);

new productListingBox($list_box_contents);
}

if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
</tr>
</table>
<?php
}
?>
Ma in pratica

<a href="' . tep_href_link(FILENAME_CONTACT_US, 'enquiry=Price Inquiry%0D%0A%0D%0AProduct Id: ' . $listing_values['products_id'] . '%0D%0AProduct Name: ' . $listing_values['products_name'] . '%0D%0AProduct Url: ' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id'] .'%0D%0A%0D%0A') . '') . '">Call For Price</a>
In che punto del codice sopra lo devo copiare??? Inoltre... ma poi come faccio a mettere "articolo prenotabile" ad un determinaot articolo?

Grazie 1000
Avatar utente
Ricsca
membro Regular
membro Regular
Messaggi: 155
Iscritto il: 25/05/2005, 22:15
Contatta:

Messaggio da Ricsca »

Ragà lo so che vi ho "rotto"! :roll:
Ma qulcuno mi darebbe una mano ad istallare questa contrib???'

Grazie 1000
Rispondi