sostituire bottone aggiungi carrello...
Moderatore: mod Generali
sostituire bottone aggiungi carrello...
Volevo sostituire il bottone che viene visualizzato in galleria a fianco del prodotto quando si va in "tutti i prodotti" o in "nuovi prodotti"
ora mi appare lo stesso bottone "aggiungi al carrello" che mi appare in product_info , ma volevo far apparire un nuovo bottone che dice "dettagli prodotto".
Stessa cosa succede se si naviga fra le categorie, mi appare una scritta "prodotto con opzioni" la quale non e' nemmeno cliccabile, infatti per entrare nel prodotto bisogna cliccare sulla foto o sul titolo, ma vedevo piu semplice inserire un bottone "dettagli prodotto" che sembra piu intuitivo.
Sapete dirmi dove si va a modificare? e in che modo? grazie mille
ora mi appare lo stesso bottone "aggiungi al carrello" che mi appare in product_info , ma volevo far apparire un nuovo bottone che dice "dettagli prodotto".
Stessa cosa succede se si naviga fra le categorie, mi appare una scritta "prodotto con opzioni" la quale non e' nemmeno cliccabile, infatti per entrare nel prodotto bisogna cliccare sulla foto o sul titolo, ma vedevo piu semplice inserire un bottone "dettagli prodotto" che sembra piu intuitivo.
Sapete dirmi dove si va a modificare? e in che modo? grazie mille
>> visitate il mio sito 2.2 http://WWW.TENTAZIONISHOP.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
Re: sostituire bottone aggiungi carrello...
nessuno sa dove si sostituisce quel bottone??
ho cercato nei file all product e new product ma non vedo la citazione del bottone...
ho cercato nei file all product e new product ma non vedo la citazione del bottone...
>> visitate il mio sito 2.2 http://WWW.TENTAZIONISHOP.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
- marzioscaglione
- membro Regular
- Messaggi: 204
- Iscritto il: 06/08/2007, 14:15
- Località: Prato
- Contatta:
Re: sostituire bottone aggiungi carrello...
Guarda in
includes\languages\italian\images\buttons
includes\languages\italian\images\buttons
http://www.newinformaticworld.com
I gestionali Danea 2009 da noi li trovi a prezzi scontati http://www.newinformaticworld.com/gesti ... _1455.html
I gestionali Danea 2009 da noi li trovi a prezzi scontati http://www.newinformaticworld.com/gesti ... _1455.html
Re: sostituire bottone aggiungi carrello...
non devo sostituire il bottone ovunque, altrimenti non avrei piu il bottone aggiungi al carrello, devo sostituire quello in galleria dei prodotti che invece di aggiungere al carrello apre il prodotto, per questo volevo mettere scheda prodotto o cose simili...
>> visitate il mio sito 2.2 http://WWW.TENTAZIONISHOP.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
- marzioscaglione
- membro Regular
- Messaggi: 204
- Iscritto il: 06/08/2007, 14:15
- Località: Prato
- Contatta:
Re: sostituire bottone aggiungi carrello...
Riguarda meglio, nel new product devi cercare:deltabiri ha scritto:nessuno sa dove si sostituisce quel bottone??
ho cercato nei file all product e new product ma non vedo la citazione del bottone...
Codice: Seleziona tutto
if (PRICES_LOGGED_IN == 'false')
$buy_now_button_d = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_add_cart.gif') . '</a> ';
if ( (PRICES_LOGGED_IN == 'true') && (!tep_session_is_registered('customer_id'))) {
$buy_now_button_d = '<a href="' . tep_href_link(FILENAME_LOGIN, '','SSL') . '">' . PRICES_LOGGED_IN_BUY_TEXT . '</a> ';
} else {
$buy_now_button_d = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_add_cart.gif') . '</a> ';
}
http://www.newinformaticworld.com
I gestionali Danea 2009 da noi li trovi a prezzi scontati http://www.newinformaticworld.com/gesti ... _1455.html
I gestionali Danea 2009 da noi li trovi a prezzi scontati http://www.newinformaticworld.com/gesti ... _1455.html
Re: sostituire bottone aggiungi carrello...
grazie mille, sono riuscito a risolvere http://www.tentazionishop.it/products_new.php non so' perche' ma macromedia mi da sempre 0 risultati quando faccio ricerca nei testi
pero' mi manca ancora all-product.php mi sono letto tutto il file ma non trovo l'immagine da sostituire, in quel file ci sono 2 varianti
1° (prodotto con opzioni di taglia o colore) esce una scritta "prodotto con opzioni" non cliccabile
2° (prodotto senza opzioni) mi esce l'immagine "aggiungi al carrello" questo pero' cliccabile.
vedi link http://www.tentazionishop.it/all-products.php
Vorrei anche qui far apparire sempre e solo il bottone "dettagli prodotto" cliccabile e senza il riquadro "quantità"....sembra piu' idoneo
posto il codice cosi facciamo prima:

pero' mi manca ancora all-product.php mi sono letto tutto il file ma non trovo l'immagine da sostituire, in quel file ci sono 2 varianti
1° (prodotto con opzioni di taglia o colore) esce una scritta "prodotto con opzioni" non cliccabile
2° (prodotto senza opzioni) mi esce l'immagine "aggiungi al carrello" questo pero' cliccabile.
vedi link http://www.tentazionishop.it/all-products.php
Vorrei anche qui far apparire sempre e solo il bottone "dettagli prodotto" cliccabile e senza il riquadro "quantità"....sembra piu' idoneo

posto il codice cosi facciamo prima:
Codice: Seleziona tutto
<?php
/*
$Id: allproducts.php,v 4.3 2004/01/13 20:28:47 UJP Co. Exp $
All Products SEO v1.0 by Jack_mcs, oscommerce-solution.com
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2004 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ALLPRODS_SEO);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ALLPRODS_SEO, '', 'NONSSL'));
$firstletter=$HTTP_GET_VARS['fl'];
$where="where pd.products_name like '$firstletter%' AND p.products_status='1' ";
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
// BOF: Header Tags SEO V 3.0
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
<title><?php echo TITLE; ?></title>
<?php
}
// EOF: Header Tags SEO V 3.0
?>
<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<link rel="shortcut icon" href="http://www.tentazionishop.it/sesso.ico">
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top" class="bar_left"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top" class="centercolor"><table border="0" width="95%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><h1><?php echo ALL_PRODUCTS_SEO_HEADING_TITLE; ?></h1></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_products_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo ALL_PRODUCTS_SEO_SUB_HEADING_TEXT; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" class="smallText"><?php
$excludeArray = array();
$str = strtoupper(ALL_PRODUCTS_SEO_EXCLUDE_LIST);
$excludeArray = explode(",", $str);
$letters = array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D', 4 => 'E', 5 => 'F', 6 => 'G',
7 => 'H', 8 => 'I', 9 => 'J', 10 => 'K', 11 => 'L', 12 => 'M', 13 => 'N',
14 => 'O', 15 => 'P', 16 => 'Q', 17 => 'R', 18 => 'S', 19 => 'T', 20 => 'U',
21 => 'V', 22 => 'W', 23 => 'X', 24 => 'Y', 25 => 'Z');
$numbers = array(0 => '0', 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7', 8 => '8', 9 => '9');
$firstletter_nav = ' '.ALL_PRODUCTS_SEO_LINK_SEPARATOR;
// ADD THE LETTERS TO THE CLICKABLE LINKS
for ($i = 0; $i < count($letters); ++$i)
{
if (! in_array($letters[$i], $excludeArray))
{
$firstletter_nav .= '<a href="' . tep_href_link(FILENAME_ALLPRODS_SEO, 'fl=' . $letters[$i], 'NONSSL') . '"> ' . $letters[$i] . ' ' . ALL_PRODUCTS_SEO_LINK_SEPARATOR . '</A>';
}
}
// ADD THE NUMBER TO THE CLICKABLE LINKS
if (ALL_PRODUCTS_SEO_DISPLAY_NUMBERS == 'true')
{
$firstletter_nav .= '<br>' . ALL_PRODUCTS_SEO_LINK_SEPARATOR . ' ';
for ($i = 0; $i < count($numbers); ++$i)
{
if (! in_array($numbers[$i], $excludeArray))
{
$firstletter_nav .= '<a href="' . tep_href_link(FILENAME_ALLPRODS_SEO, 'fl=' . $numbers[$i], 'NONSSL') . '"> ' . $numbers[$i] . ' ' . ALL_PRODUCTS_SEO_LINK_SEPARATOR . '</A>';
}
}
}
$firstletter_nav .= '<a href="' . tep_href_link(FILENAME_ALLPRODS_SEO, '', 'NONSSL') . '"> FULL</A>';
echo $firstletter_nav; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td>
<?php
// create column list
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);
asort($define_list);
$column_list = array();
reset($define_list);
while (list($column, $value) = each($define_list)) {
if ($value) $column_list[] = $column;
}
$select_column_list = '';
for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
if ( ($column_list[$col] == 'PRODUCT_LIST_BUY_NOW') || ($column_list[$col] == 'PRODUCT_LIST_NAME') || ($column_list[$col] == 'PRODUCT_LIST_PRICE') ) {
continue;
}
}
$listing_sql = "select p.products_id, p.products_weight, p.products_quantity, p.products_model, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " .
TABLE_PRODUCTS . " p left join " .
TABLE_MANUFACTURERS . " m on ( p.manufacturers_id = m.manufacturers_id ) left join " .
TABLE_PRODUCTS_DESCRIPTION . " pd on ( p.products_id = pd.products_id ) left join " .
TABLE_SPECIALS . " s on ( p.products_id = s.products_id ) $where and pd.language_id = '" . $languages_id . "'";
if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
$HTTP_GET_VARS['sort'] = $i+1 . 'a';
$listing_sql .= " order by pd.products_name";
break;
}
}
} else {
$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
$sort_order = substr($HTTP_GET_VARS['sort'], 1);
switch ($column_list[$sort_col-1]) {
case 'PRODUCT_LIST_MODEL':
$listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_NAME':
$listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
break;
case 'PRODUCT_LIST_MANUFACTURER':
$listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_QUANTITY':
$listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_IMAGE':
$listing_sql .= " order by pd.products_name";
break;
case 'PRODUCT_LIST_WEIGHT':
$listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_PRICE':
$listing_sql .= " order by p.products_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
}
}
if (ALL_PRODUCTS_SEO_DISPLAY_MODE == 'true')
include(DIR_WS_MODULES . 'product_listing.php'); //display in standard format
else
include(DIR_WS_MODULES . FILENAME_ALLPRODS_SEO);
?>
</td>
</tr>
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top" class="bar_right"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
>> visitate il mio sito 2.2 http://WWW.TENTAZIONISHOP.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
- marzioscaglione
- membro Regular
- Messaggi: 204
- Iscritto il: 06/08/2007, 14:15
- Località: Prato
- Contatta:
Re: sostituire bottone aggiungi carrello...
Guarda in: includes\modules\product_listing.php
http://www.newinformaticworld.com
I gestionali Danea 2009 da noi li trovi a prezzi scontati http://www.newinformaticworld.com/gesti ... _1455.html
I gestionali Danea 2009 da noi li trovi a prezzi scontati http://www.newinformaticworld.com/gesti ... _1455.html
Re: sostituire bottone aggiungi carrello...
perfetto era in product listing il bottone da sostituire, pero' non so come modificare quando il prodotto presenta delle varianti "prodotto con opzioni" questa variante come dicevo non mi interessa e volevo ottenere tutto con il bottone dettagli prodotto:marzioscaglione ha scritto:Guarda in: includes\modules\product_listing.php
Codice: Seleziona tutto
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('dettagli_prodotto.gif', IMAGE_DETTAGLI_PRODOTTO) . '</form> ';
}
break;
>> visitate il mio sito 2.2 http://WWW.TENTAZIONISHOP.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT
>> visitate il mio sito 2.3 http://WWW.INTIMOCLICK.IT