Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by 241

  1. tep_href_link('shopping_cart.php', 'action=clear_cart') uses includes\actions\clear_cart.php redirects to shopping_cart.php if the redirect is not right then copy and mod as required and change the name to be different from clear_cart
  2. most likely a cached result try on a new order or round trip back to shipping and choose a different shipping method
  3. yes I mixed up shipping and payment that's all should have been includes\languages\[language]\modules\shipping\[shipping method].php he managed to post before I because a picture saves a thousand words
  4. The payment module will be reliant on geo_zone which is setup via the Tax Rates and Tax Zones to populate the zones_to_geo_zones table in the database if you have access to the database you can check to see if you have entries in the zones_to_geo_zones table for UK what you will have is zone_country_id from the countries table zone_id from the zones table geo_zone_id from the geo_zones table which will be created when you set up Tax Rates and Tax zones Do you have: Tax Rates set for UK Tax Zones for UK with Country United Kingdom and Zone UK I think I had an issue with zone set as Zones-UK Code-UK, so set it as Zones-UK Code-GB other things to look at are the default settings in includes\languages\english.php as they are usually USA rather than UK things to look at in includes\languages\english.php @setlocale(LC_ALL, array('en_GB.UTF-8', 'en_GB.UTF8', 'enu_gb')); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization define('JQUERY_DATEPICKER_FORMAT', 'dd/mm/yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate //// // Return date in raw format // $date should be in format dd/mm/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'GBP'); // Global entries for the <html> tag define('HTML_PARAMS', 'dir="ltr" lang="en"'); // charset for web pages and emails define('CHARSET', 'utf-8'); also define('DOB_FORMAT_STRING', 'dd/mm/yyyy'); define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: DD/MM/YYYY (eg 21/05/1970)'); define('ENTRY_DATE_OF_BIRTH_TEXT', 'eg. 21/05/1970');
  5. I did not see that bit of the question about () in shipping If the text in includes\languages\[language]\modules\shipping\[shipping].php for MODULE_SHIPPING_[shipping]_TEXT_WAY is blank you will have nothing in the () e.g. includes\languages\english\modules\shipping\flat.php define('MODULE_SHIPPING_FLAT_TEXT_WAY', '');
  6. I will deal with second question first as it is straight forward you can change the wording in the language file for the payment, in this case includes\languages\english\modules\payment\[name of payment].php Back to first question Is the payment module for all zones or for UK? What have you got setup for zones with regards to United Kingdom? What do you have setup for default country and zone for the store in configuration? In localizations > currency what do you have as default currency? there are more questions and checks but these will do for now
  7. as a test try setting the zone in the payment module to none if the payment now shows then you can go about setting up zones if you want the payment only to be available for a specific zone.
  8. cron jobs have problems to in fact if the errors appear at consistent time spans this may be indicative of a bad cron job
  9. you could do locate no-debug-non-zts-20090626 that would give you all paths to no-debug-non-zts-20090626 or you could use egrep on the ini file egrep '(extension= | timezonedb.so| pdo.so)' path to your ini file|more that would give you any lines in your ini file that have a space after the = it would also give you any lines containing timezonedb or pdo.so the |more at the end just help show a page of data at a time making easier reading otherwise if there is a lot of data it will scroll to the end
  10. do you have ssh access as grep is used from the command console as is locate you may have an empty space after the = on one of the lines for extensions in the ini file. a line like extension=the space there should be no space after the = a space after the = will cause the messages you are seeing in the logs There is also a know issue with using the editor in that it sometimes enters a line twice
  11. are you on cpanel or WHM? maybe your ini got hosed from possible update for exim vulnerability check for the path /usr/local/lib/php/extensions/no-debug-non-zts-20090626 if it does not exist then do a grep or locate for no-debug-non-zts-20090626 the system is looking for your extensions at path /usr/local/lib/php/extensions/no-debug-non-zts-20090626 if the path is different then the the file needs to be updated to the correct path
  12. 241

    Illegal string offset 'type'

    done Frozen bug list post
  13. includes/functions/html_output.php if ( !isset($params['type']) ) { $params['type'] = 'submit'; } change to if ( !isset($params['type']) ) { $params = array('type' => ''); $params['type'] = 'submit'; } the addition is $params = array('type' => '');
  14. 241

    Simple shipping module

    you can use the free shipping admin > modules > Order Total > shipping set allow free shipping true and set the amount and for the other you just want to add a message stating that the costs vary and they will be contacted, so adapt the flat rate to fit
  15. 241

    Illegal string offset 'type'

    change to if ( !isset($params['type']) ) { $params = array('type' => ''); $params['type'] = 'submit'; } the addition is $params = array('type' => '');
  16. you don't actually need the tep_get_all_get_params(array('order_id')) that can be set to NULL
  17. 241

    PayPal App v5.018 Log In with PayPal is now dead

    no worries then got a logic step mix up
  18. 241

    PayPal App v5.018 Log In with PayPal is now dead

    is the original code in includes/modules/content/login/cm_paypal_login.php lines 212-220 correct if (ACCOUNT_STATE == 'true') { if ($ship_zone_id > 0) { $sql_data_array['entry_zone_id'] = $ship_zone_id; $sql_data_array['entry_state'] = ''; } else { $sql_data_array['entry_zone_id'] = '0'; $sql_data_array['entry_state'] = $ship_zone; } } more so line 215 $sql_data_array['entry_state'] = ''; if you have the ship_zone_id which is derived from the query based on PayPal response for country and zone being from region should the line not be $sql_data_array['entry_state'] = $ship_zone; and line 218 be $sql_data_array['entry_state'] = '';
  19. 2. Are you using 1 flat.php with min/max weights or have you copied flat.php to give you two shipping methods never mind you said you replaced the original flat.php so 1 file do you have separate id for each in the quotes array
  20. There is a free shipping option in modules > Order Total > Shipping set the free shipping true and set Free Shipping For Orders Over 0.00 or look to this bit of code in flat.php $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FLAT_TEXT_WAY, 'cost' => MODULE_SHIPPING_FLAT_COST)));
  21. to clarify answer above what version of oscommere? what shipping module? you could use an if statement if price > 0 code to show price cannot give more info without knowing the answers to 2 questions above it would also need to be done in order total > ot_shipping.php otherwise confirmation page will also show 0.00 for shipping
  22. what version of oscommere? what shipping module? you could use an if statement if price > 0 code to show price cannot give more info without knowing the answers to 2 questions above if you wanted it across all shipping modules then it could be done in order total > ot_shipping.php
  23. You need to look at the entire section of code <div class="contentText"> <table class="table table-striped table-condensed table-hover"> <tbody> <?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <tr class="table-selection"> <td><strong><?php echo $selection[$i]['module']; ?></strong></td> <td align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> </tr> <?php if (isset($selection[$i]['error'])) { ?> <tr> <td colspan="2"><?php echo $selection[$i]['error']; ?></td> </tr> <?php } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) { ?> <tr> <td colspan="2"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) { ?> <tr> <td><?php echo $selection[$i]['fields'][$j]['title']; ?></td> <td><?php echo $selection[$i]['fields'][$j]['field']; ?></td> </tr> <?php } ?> </table></td> </tr> <?php } ?> <?php $radio_buttons++; } ?> </tbody> </table> </div>
  24. you would need to edit the code further down the checkout_payment.php which covers the radio buttons and other fields for all the payment modules
  25. 241

    PayPal App v5.018 Log In with PayPal is now dead

    could you not use htmlspecialchars($_GET['keyname'] )