Ho letto il file.txt allegati al modulo , sostituito il codice in application_top.php e sovrascritto i 4 files come da spiegazioni ma non è successo nulla... ti dirò di più non riesco più ad accedere alla sezione "localizzazione " dal pannello d'amministrazione.
-----------------------------------------------------------------------------
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::Made By Dj IceN!
Dj_icen@hotmail.com::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
The codes are below.!
But i made some Easy files for u . so u can upload those files.. and don't have to look for those files by ur own.
Upload application_top.php ---> catalog/includes/application_top.php .. overwrite
Upload product_info.php ---> catalog/product_info.php .. overwrite
Upload currencies.php ---> catalog/admin/currecies.php .. ovewrite
Upload english.php / dutch.php ---> catalog/includes/languages/dutch.php or english.php .. overwrite
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
I found this problem in the forum:
"after adding the "Prices for Logged-In Users Only" and "restricted_website" contribs, the add to cart button now does not work in the products listing page when a customer is logged in. The customer would need to go into the product information page in order to add the item into the cart. Does have a SSL cert cause this problem? Any suggestions? Which codes do you need to see in order to help me? Thanks in advance."
THE SOLUTION
The problem is that the modifcation made in file APPLICATION_TOP.PHP is incorrect.
FIND THIS CODE:
// customer adds a product from the products page
case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
break;
// performed by the 'buy now' button in product listings and review page
case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {
tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));
} else {
$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);
}
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
break;
and REPLACE WITH
// customer adds a product from the products page
case 'add_product' : if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
else {
if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
}
break;
// performed by the 'buy now' button in product listings and review page
case 'buy_now' :
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
else {
if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {
tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));
} else {
$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);
}
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
}
break;
It should work now (see attachment for full install)