Spostare il blocco + venduti a sinistra

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

Moderatore: mod Generali

Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Spostare il blocco + venduti a sinistra

Messaggio da everest »

E' possibile spostare il blocco + venduti da destra a sinistra?
Nel file column_right.php quale voce escludo e includo in column_left.php?
Non riesco a capire....Grazie :wink:
...un piacere usare oscommerce!!
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

Mi date una dritta?
...un piacere usare oscommerce!!
Avatar utente
kikoleppard
membro Senior
membro Senior
Messaggi: 343
Iscritto il: 25/05/2005, 18:12
Località: Plovdiv-Bulgaria
Contatta:

Messaggio da kikoleppard »

everest ha scritto:Mi date una dritta?
Guarda, scarica ti la documentazione di osCommerce. Capisci un po inglese?

la maggior parte delle domande per il Set - Up li trovi dentro.

Anche questo che stai cercando.

CMQ Cut and Paste bestsellers.php
Avatar utente
exhaust
membro Regular
membro Regular
Messaggi: 216
Iscritto il: 21/09/2005, 1:51
Contatta:

Messaggio da exhaust »

Devi copiare il codice dalla colonna di destra(alla voce best_sellers.php) ed inserirlo nella colonna di sinistra se mi posti qui il codice php della colonna di destra e di sinistra te lo faccio io! è davvero molto semplice.
Ciao
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

Grazie per la considerazione....

TI COPIO IL CODICE COLONNA DX (scusa il maiuscolo)

<?php
/*
$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require(DIR_WS_BOXES . 'shopping_cart.php');

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_session_is_registered('customer_id')) {
$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
$check = tep_db_fetch_array($check_query);
if ($check['count'] > 0) {
include(DIR_WS_BOXES . 'best_sellers.php');
} else {
include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
}

require(DIR_WS_BOXES . 'reviews.php');

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
include(DIR_WS_BOXES . 'negozio_ebay.php');
}
?>

CODICE COLONNA SX (scusa il maiuscolo)

<?php
/*
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
include(DIR_WS_BOXES . 'categories.php');
}

if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
} else {
include(DIR_WS_BOXES . 'manufacturers.php');
include(DIR_WS_BOXES . 'info-pag-sped.php');
}

require(DIR_WS_BOXES . 'affiliate.php');
require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'information.php');

?>

Io ho + o - capito come fare, ma ci sono gli if then else che mi impicciano...Grazie, molto gentile!
...un piacere usare oscommerce!!
Avatar utente
exhaust
membro Regular
membro Regular
Messaggi: 216
Iscritto il: 21/09/2005, 1:51
Contatta:

Messaggio da exhaust »

Potresti per piacere utilizzare il tag CODE.
Grazie ciao
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

exhaust ha scritto:Potresti per piacere utilizzare il tag CODE.
Grazie ciao

Codice: Seleziona tutto

TI COPIO IL CODICE COLONNA DX (scusa il maiuscolo) 

<?php 
/* 
$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ 

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

Copyright (c) 2003 osCommerce 

Released under the GNU General Public License 
*/ 

require(DIR_WS_BOXES . 'shopping_cart.php'); 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); 

if (isset($HTTP_GET_VARS['products_id'])) { 
if (tep_session_is_registered('customer_id')) { 
$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); 
$check = tep_db_fetch_array($check_query); 
if ($check['count'] > 0) { 
include(DIR_WS_BOXES . 'best_sellers.php'); 
} else { 
include(DIR_WS_BOXES . 'product_notifications.php'); 
} 
} else { 
include(DIR_WS_BOXES . 'product_notifications.php'); 
} 
} else { 
include(DIR_WS_BOXES . 'best_sellers.php'); 
} 

if (isset($HTTP_GET_VARS['products_id'])) { 
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); 
} else { 
include(DIR_WS_BOXES . 'specials.php'); 
} 

require(DIR_WS_BOXES . 'reviews.php'); 

if (substr(basename($PHP_SELF), 0,  != 'checkout') { 
include(DIR_WS_BOXES . 'languages.php'); 
include(DIR_WS_BOXES . 'currencies.php'); 
include(DIR_WS_BOXES . 'negozio_ebay.php'); 
} 
?> 

CODICE COLONNA SX (scusa il maiuscolo) 

<?php 
/* 
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ 

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

Copyright (c) 2003 osCommerce 

Released under the GNU General Public License 
*/ 

if ((USE_CACHE == 'true') && empty($SID)) { 
echo tep_cache_categories_box(); 
} else { 
include(DIR_WS_BOXES . 'categories.php'); 
} 

if ((USE_CACHE == 'true') && empty($SID)) { 
echo tep_cache_manufacturers_box(); 
} else { 
include(DIR_WS_BOXES . 'manufacturers.php'); 
include(DIR_WS_BOXES . 'info-pag-sped.php'); 
} 

require(DIR_WS_BOXES . 'affiliate.php'); 
require(DIR_WS_BOXES . 'whats_new.php'); 
require(DIR_WS_BOXES . 'search.php'); 
require(DIR_WS_BOXES . 'information.php'); 

?> 
...un piacere usare oscommerce!!
Avatar utente
exhaust
membro Regular
membro Regular
Messaggi: 216
Iscritto il: 21/09/2005, 1:51
Contatta:

Messaggio da exhaust »

Codice: Seleziona tutto

<?php 
/* 
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ 

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

Copyright (c) 2003 osCommerce 

Released under the GNU General Public License 
*/ 

if ((USE_CACHE == 'true') && empty($SID)) { 
echo tep_cache_categories_box(); 
} else { 
include(DIR_WS_BOXES . 'categories.php'); 
} 

if (isset($HTTP_GET_VARS['products_id'])) { 
if (tep_session_is_registered('customer_id')) { 
$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); 
$check = tep_db_fetch_array($check_query); 
if ($check['count'] > 0) { 
include(DIR_WS_BOXES . 'best_sellers.php'); 
} else { 
include(DIR_WS_BOXES . 'product_notifications.php'); 
} 
} else { 
include(DIR_WS_BOXES . 'product_notifications.php'); 
} 
} else { 
include(DIR_WS_BOXES . 'best_sellers.php'); 
} 

if ((USE_CACHE == 'true') && empty($SID)) { 
echo tep_cache_manufacturers_box(); 
} else { 
include(DIR_WS_BOXES . 'manufacturers.php'); 
include(DIR_WS_BOXES . 'info-pag-sped.php'); 
} 

require(DIR_WS_BOXES . 'affiliate.php'); 
require(DIR_WS_BOXES . 'whats_new.php'); 
require(DIR_WS_BOXES . 'search.php'); 
require(DIR_WS_BOXES . 'information.php'); 

?> 
Prova questo dovrebbe andare fai il backup della colonna di sinistra prima di caricarlo!
Se hai problemi posta
Ciao
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

Sembra fungere...lo devo togliere da destra adesso!

Come fò :roll:
...un piacere usare oscommerce!!
Avatar utente
exhaust
membro Regular
membro Regular
Messaggi: 216
Iscritto il: 21/09/2005, 1:51
Contatta:

Messaggio da exhaust »

Codice: Seleziona tutto

<?php 
/* 
$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ 

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

Copyright (c) 2003 osCommerce 

Released under the GNU General Public License 
*/ 

require(DIR_WS_BOXES . 'shopping_cart.php'); 
if (isset($HTTP_GET_VARS['products_id'])) { 
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); 
} else { 
include(DIR_WS_BOXES . 'specials.php'); 
} 

require(DIR_WS_BOXES . 'reviews.php'); 

if (substr(basename($PHP_SELF), 0,  != 'checkout') { 
include(DIR_WS_BOXES . 'languages.php'); 
include(DIR_WS_BOXES . 'currencies.php'); 
include(DIR_WS_BOXES . 'negozio_ebay.php'); 
} 
?> 

Colonna destra.
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

Mi dà questo errore:

Parse error: parse error, unexpected T_IS_NOT_EQUAL in /web/htdocs/www.coltello.biz/home/catalog/includes/column_right.php on line 22
...un piacere usare oscommerce!!
Avatar utente
exhaust
membro Regular
membro Regular
Messaggi: 216
Iscritto il: 21/09/2005, 1:51
Contatta:

Messaggio da exhaust »

Codice: Seleziona tutto

<?php 
/* 
$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ 

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

Copyright (c) 2003 osCommerce 

Released under the GNU General Public License 
*/ 

require(DIR_WS_BOXES . 'shopping_cart.php'); 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); 



if (isset($HTTP_GET_VARS['products_id'])) { 
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); 
} else { 
include(DIR_WS_BOXES . 'specials.php'); 
} 

require(DIR_WS_BOXES . 'reviews.php'); 

if (substr(basename($PHP_SELF), 0,  != 'checkout') { 
include(DIR_WS_BOXES . 'languages.php'); 
include(DIR_WS_BOXES . 'currencies.php'); 
include(DIR_WS_BOXES . 'negozio_ebay.php'); 
} 
?> 

Prova questo.
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

Ninte di nuovo errore:

Parse error: parse error, unexpected T_IS_NOT_EQUAL in /web/htdocs/www.coltello.biz/home/catalog/includes/column_right.php on line 29
...un piacere usare oscommerce!!
Avatar utente
exhaust
membro Regular
membro Regular
Messaggi: 216
Iscritto il: 21/09/2005, 1:51
Contatta:

Messaggio da exhaust »

ma tu alla colonna di destra hai gia apportato modifiche in passato?
Avatar utente
everest
membro Regular
membro Regular
Messaggi: 154
Iscritto il: 06/06/2005, 15:48

Messaggio da everest »

Ho solo inserito questa riga

Codice: Seleziona tutto

include(DIR_WS_BOXES . 'negozio_ebay.php');
...un piacere usare oscommerce!!
Rispondi