Scusate ma nell'ultimo non riesco a trovare il modulo wishlist.
Chi i sa dare ragguagli (è stato implementato? è possibile installare -compatibile con osctpack1_2a- un'altra contribution wishlist?)
Ciao
osctpack1_2a wishlist(????)
Moderatore: mod Generali
Re: osctpack1_2a wishlist(????)
Non e' stato implementato ma si puo' mettere tranquillamentealtrove_1 ha scritto:Scusate ma nell'ultimo non riesco a trovare il modulo wishlist.
Chi i sa dare ragguagli (è stato implementato? è possibile installare -compatibile con osctpack1_2a- un'altra contribution wishlist?)
Ciao
'iao
Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it
Re: osctpack1_2a wishlist(????)
Ho installato lacontribution Wishlist 3.5dBass ha scritto:
Non e' stato implementato ma si puo' mettere tranquillamente
'iao
Sergio
funziona tutto ma.... quando aggiungo un prodotto alla lista
nel box del prodotto (oltre all'immagine ed al prezzo ZERO) compare
un errore che a quanto ho potuto leggere nel sito è molto diffuso
(ho provato anche a leggere le varie soluzioni proposte ma credo -sbaglierò

Errore:Warning: Missing argument 3 for display_price() in c:\programmi\easyphp1-8\www\catalog\includes\classes\currencies.php on line 72
Ciao
e grazie
Re: osctpack1_2a wishlist(????)
Non e' la versione differente della B2B, la versione e' la stessa, e' che la wish list non e' adattata alla total B2B.altrove_1 ha scritto: (ho provato anche a leggere le varie soluzioni proposte ma credo -sbaglierò- che si riferiscano ad altre versione del TotalB2B rispetto a quella dell'ostpack1_2a. Come fare?
Vanno modificate diverse cose, soprattutto la funzione display->price che ha bisogno di un argomento in piu' all'inizio, il products_id
'iao
Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it
Re: osctpack1_2a wishlist(????)
Oggi sono in vena di regali...:Bass ha scritto: Non e' la versione differente della B2B, la versione e' la stessa, e' che la wish list non e' adattata alla total B2B.
Vanno modificate diverse cose, soprattutto la funzione display->price che ha bisogno di un argomento in piu' all'inizio, il products_id
'iao
Sergio
Codice: Seleziona tutto
//TotalB2B start
function display_price($products_id, $products_price, $products_tax, $quantity = 1) {
global $customer_id;
$query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'");
$query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest);
if (($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) {
$query_guest_discount = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'GUEST_DISCOUNT'");
$query_guest_discount_result = tep_db_fetch_array($query_guest_discount);
$customer_discount = $query_guest_discount_result['configuration_value'];
if ($customer_discount >= 0) {
$products_price = $products_price + $products_price * abs($customer_discount) / 100;
} else {
$products_price = $products_price - $products_price * abs($customer_discount) / 100;
}
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} elseif (tep_session_is_registered('customer_id')) {
$query_A = tep_db_query("select m.manudiscount_discount from " . TABLE_MANUDISCOUNT . " m, " . TABLE_PRODUCTS . " p where m.manudiscount_groups_id = 0 and m.manudiscount_customers_id = '" . $customer_id . "' and p.products_id = '" . $products_id . "' and p.manufacturers_id = m.manudiscount_manufacturers_id");
$query_B = tep_db_query("select m.manudiscount_discount from " . TABLE_CUSTOMERS . " c, " . TABLE_MANUDISCOUNT . " m, " . TABLE_PRODUCTS . " p where m.manudiscount_groups_id = c.customers_groups_id and m.manudiscount_customers_id = 0 and c.customers_id = '" . $customer_id . "' and p.products_id = '" . $products_id . "' and p.manufacturers_id = m.manudiscount_manufacturers_id");
$query_C = tep_db_query("select m.manudiscount_discount from " . TABLE_MANUDISCOUNT . " m, " . TABLE_PRODUCTS . " p where m.manudiscount_groups_id = 0 and m.manudiscount_customers_id = 0 and p.products_id = '" . $products_id . "' and p.manufacturers_id = m.manudiscount_manufacturers_id");
if ($query_result = tep_db_fetch_array($query_A)) {
$customer_discount = $query_result['manudiscount_discount'];
} else if ($query_result = tep_db_fetch_array($query_B)) {
$customer_discount = $query_result['manudiscount_discount'];
} else if ($query_result = tep_db_fetch_array($query_C)) {
$customer_discount = $query_result['manudiscount_discount'];
} else {
$query = tep_db_query("select g.customers_groups_discount from " . TABLE_CUSTOMERS_GROUPS . " g inner join " . TABLE_CUSTOMERS . " c on g.customers_groups_id = c.customers_groups_id and c.customers_id = '" . $customer_id . "'");
$query_result = tep_db_fetch_array($query);
$customers_groups_discount = $query_result['customers_groups_discount'];
$query = tep_db_query("select customers_discount from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");
$query_result = tep_db_fetch_array($query);
$customer_discount = $query_result['customers_discount'];
$customer_discount = $customer_discount + $customers_groups_discount;
}
if ($customer_discount >= 0) {
$products_price = $products_price + $products_price * abs($customer_discount) / 100;
} else {
$products_price = $products_price - $products_price * abs($customer_discount) / 100;
}
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} else {
return PRICES_LOGGED_IN_TEXT;
}
}
function display_price_nodiscount($products_price, $products_tax, $quantity = 1) {
global $customer_id;
$query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'");
$query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest);
if ((($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) || ((tep_session_is_registered('customer_id')))) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} else {
return PRICES_LOGGED_IN_TEXT;
}
}
//TotalB2B end
function display_price($products_id,....
Dove si aggiunge l'argomento da te indicato?
O mi consiglierai di andare dove indicato dal Box Top Right del Forum?

Bye
Re: osctpack1_2a wishlist(????)
Questa e' la funzione della B2B quindi il parametro c'e' gia', quelli che devi modificare sono i files della wishlistaltrove_1 ha scritto: Io vedo già nel codice:
'iao
Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it