Jump to content
Latest News: (loading..)

PiLLaO

Members
  • Content count

    323
  • Joined

  • Last visited

  • Days Won

    4

PiLLaO last won the day on January 21

PiLLaO had the most liked content!

1 Follower

Profile Information

  • Real Name
    Gustavo
  • Gender
    Male
  • Location
    Spain

Recent Profile Visitors

17,388 profile views
  1. I'm trying to reproduce the error, but in a fresh install, I look that now seems to admin sessions don't expire. Anyone can confirm this, please?
  2. Hello, I seems several times that I'm logged in admin, and open an order to update and send customers new order status. After update the order, I must to accept a call or make another thing, and when I update the order the session was expired. I log in again, and now... the order doesn't appear in "orders". I see on admin/application.php that have a tep_redirect if not logged or your session is expired, and in admin/includes/function/general.php that the tep_redirect have an "exit;" in the code, but something are wrong. If I access to another order, and change the order by this one, the order are there, but have an order status problem. Anybody have any idea to prevent the order update at all, if your session are expired? Thanks in advance.
  3. Yes, is the products tag, but Google take it as undefined
  4. Hi, Rich Snippets Validator shows "Type undefined" in Open Graph tags, Anybody knows how to solve that?
  5. PiLLaO

    Can't install COD module

    See your error_log file in server Is better that don't show the admin url
  6. Not good for SEO, you must to put the products only in one category
  7. This addon don't send email, only show the carts
  8. In Spain GDPR not allow to send emails if customers don't consent before
  9. PiLLaO

    Limit or surcharge for shipping module

    You forget $ here: if (post_sur == $order->delivery['postcode']) { And if you use more than 1 postcode to compare, you need a for loop
  10. PiLLaO

    Time for create account

    Try this: https://www.w3schools.com/sql/func_mysql_time.asp Find in Google
  11. Both functions give me the same results, and the frontend function don't make the same sql consult all the time.
  12. Hello, I look that the function tep_get_tax_rate() catalog/includes/functions/general.php //// // Returns the tax rate for a zone / class // TABLES: tax_rates, zones_to_geo_zones function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) { global $customer_zone_id, $customer_country_id; static $tax_rates = array(); if ( ($country_id == -1) && ($zone_id == -1) ) { if (!tep_session_is_registered('customer_id')) { $country_id = STORE_COUNTRY; $zone_id = STORE_ZONE; } else { $country_id = $customer_country_id; $zone_id = $customer_zone_id; } } if (!isset($tax_rates[$class_id][$country_id][$zone_id]['rate'])) { $tax_query = tep_db_query("select sum(tax_rate) as tax_rate from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (tr.tax_zone_id = za.geo_zone_id) left join " . TABLE_GEO_ZONES . " tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = '0' or za.zone_country_id = '" . (int)$country_id . "') and (za.zone_id is null or za.zone_id = '0' or za.zone_id = '" . (int)$zone_id . "') and tr.tax_class_id = '" . (int)$class_id . "' group by tr.tax_priority"); if (tep_db_num_rows($tax_query)) { $tax_multiplier = 1.0; while ($tax = tep_db_fetch_array($tax_query)) { $tax_multiplier *= 1.0 + ($tax['tax_rate'] / 100); } $tax_rates[$class_id][$country_id][$zone_id]['rate'] = ($tax_multiplier - 1.0) * 100; } else { $tax_rates[$class_id][$country_id][$zone_id]['rate'] = 0; } } return $tax_rates[$class_id][$country_id][$zone_id]['rate']; } are diferent of the function in catalog/admin/includes/functions/general.php //// // Returns the tax rate for a zone / class // TABLES: tax_rates, zones_to_geo_zones function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) { global $customer_zone_id, $customer_country_id; if ( ($country_id == -1) && ($zone_id == -1) ) { if (!tep_session_is_registered('customer_id')) { $country_id = STORE_COUNTRY; $zone_id = STORE_ZONE; } else { $country_id = $customer_country_id; $zone_id = $customer_zone_id; } } $tax_query = tep_db_query("select SUM(tax_rate) as tax_rate from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za ON tr.tax_zone_id = za.geo_zone_id left join " . TABLE_GEO_ZONES . " tz ON tz.geo_zone_id = tr.tax_zone_id WHERE (za.zone_country_id IS NULL OR za.zone_country_id = '0' OR za.zone_country_id = '" . (int)$country_id . "') AND (za.zone_id IS NULL OR za.zone_id = '0' OR za.zone_id = '" . (int)$zone_id . "') AND tr.tax_class_id = '" . (int)$class_id . "' GROUP BY tr.tax_priority"); if (tep_db_num_rows($tax_query)) { $tax_multiplier = 0; while ($tax = tep_db_fetch_array($tax_query)) { $tax_multiplier += $tax['tax_rate']; } return $tax_multiplier; } else { return 0; } } The function in catalog/includes/functions/general.php reduce querys to a minimal, so... if safe to replace this function with the function in catalog/admin/includes/functions/general.php ? Best regards
  13. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    Better replace this: require('includes/application_top.php'); if (http_response_code() == 404) { require('your_custom_404.php'); return false; } With this: require('includes/application_top.php'); if (http_response_code() == 404) { require('your_custom_404.php'); exit; } Best regards :)
  14. And how many sql queries use to load the website? https://apps.oscommerce.com/TbX2f&kisser-error-handling-debugging
×