Jump to content

Pronesis

Members
  • Posts

    28
  • Joined

  • Last visited

Pronesis's Achievements

Newbie

Newbie (1/14)

8

Reputation

  1. PS 1.7 requires CSPRNG PHP library. This library is in PHP 7 by default, but not in the previous version of PHP. For the previous version of PHP there's a porting of this library: https://github.com/paragonie/random_compat Just to test, I downloaded the library, then I've put the library in my web server (for me in home/xxxxx/) Finally, I changed the index.php, /install/index.php, /admin/index.php, /admin/ajax.php, /modules/welcome/welcome-api.php by adding on top of each file the require_once to the library file random.php: require_once("/home/xxxxx/random_compat/random_compat-2.0.4/lib/random.php") So I was able to install the PS 1.7 But I think we need the opinion of the PrestaShop team ... I can not find the requirements to install the new version, I do not have php 7 and I think that most of you are in the same situation. LAST MINUTE UPGRADE: you can add the require_once only at the top of config/config.inc.php
  2. Hi, we have to consider the version just released ad announced as a Beta ? Or is a final version ready for production ?
  3. I've the same problem with yen because yen is a currency without decimal, and my solution is to override the method ps_round of class Tools by reset the precision: public static function ps_round($value, $precision = 0) { static $method = null; // Added code to get the currency in use $context = Context::getContext(); if($context->currency->iso_code_num == 392) $precision = 0; // Added code to get the currency in use if ($method == null) $method = (int)Configuration::get('PS_PRICE_ROUND_MODE'); if ($method == PS_ROUND_UP) return Tools::ceilf($value, $precision); elseif ($method == PS_ROUND_DOWN) return Tools::floorf($value, $precision); return round($value, $precision); } This work for me.
  4. Hi Nsweb, i think disabling the cache is not a real solution. Cache is used for better performance, I hope in a Prestashop [spam-filter] or moderator answer, as i read in many posts this is a real problem for many people. Thx
  5. Hi Wizart , i've the same issue, many files inside the cachefs/0,1,2,ecc.. ecc... most of them have the same content (b:0;) and the same lenght (4bytes). The difference is that i've the last ps verison installed (1.6.0.9) This is a big problem for any kind of backup infact i have exluded the cachefs directory from the daily backup in my server. Someone can suggest a solution ? Why PS does not delete files older than X days ?
  6. After many test... downgraded to paypal version 3.6.1 and now all is ok.
  7. Hi to all, i've (again) a problem after the upgrade of the paypal module to 3.6.5 version in a Prestashop 1.5.4.1 The issue is only for customers from China: PayPal response:TIMESTAMP -> 2014-02-01T21:27:13ZL_ERRORCODE0 -> 10736L_SHORTMESSAGE0 -> Shipping Address Invalid City State Postal CodeL_LONGMESSAGE0 -> A match of the Shipping Address City, State, and Postal Code failed.L_SEVERITYCODE0 -> Error PayPal response:TIMESTAMP -> 2014-02-01T21:27:13ZL_ERRORCODE0 -> 10736L_SHORTMESSAGE0 -> Shipping Address Invalid City State Postal CodeL_LONGMESSAGE0 -> A match of the Shipping Address City, State, and Postal Code failed.L_SEVERITYCODE0 -> Error I do not use express checkout, but i use one page checkout, i use states in china and i've also downloaded the localization pack for china with the control that, during the creation of the account, the state is selected. Apparently the issue is caused when paypal returning back to the site for the final confirmation of the order... the name of the address is always "Paypal_Address" and the state field is empty Someone is having the same problem? Please help. Thx
  8. Found it the problem is this function: getOrderTotalUsingTaxCalculationMethod called as callback of the column 'Total' in the list viwe of all carts: 'total' => array( 'title' => $this->l('Total'), 'callback' => 'getOrderTotalUsingTaxCalculationMethod', The function is slow beacuse for every cart make the sum of the price of all products and add also the rules (if present). I think there's no solution for now if you want the "real" total cart!!! But a reply from a Prestashop [spam-filter] would be appreciated
  9. Hi, sorry if I re-open the thread marked as [solved] but for me the access to the BO page Customers->Shopping cart is drammatically slow. Consider that i have a dedicated server where only one shop is running and the performance are very good. I saw that the list of shopping cart is created with a query that require approx. 3 sec to execute, in AdminTabControllor: I've try to clean the ghost shopping carts (carts where i don't have an id_customer and carts not finalized to an order) now i've only 2199 finalized/confirmed carts but the page still loading very slow. Someone can suggest me which is the class or the method that I can check to resolve this problem? The version of my PS is 1.5.4.1 Many thanks
  10. Hi, How is possible to have the breadcrumb, in the product page, with the associated manufacturer name before the product name ? Thx
  11. An alternative method is using array_merge, you have to override AdminController with: public function renderForm() { if (!$this->default_form_language) $this->getLanguages(); if (Tools::getValue('submitFormAjax')) $this->content .= $this->context->smarty->fetch('form_submit_ajax.tpl'); if ($this->fields_form && is_array($this->fields_form)) { if (!$this->multiple_fieldsets) $this->fields_form = array(array('form' => $this->fields_form)); // For add a fields via an override of $fields_form, use $fields_form_override if (is_array($this->fields_form_override) && !empty($this->fields_form_override)) $this->fields_form[0]['form']['input'] = array_merge($this->fields_form[0]['form']['input'], $this->fields_form_override); //$this->fields_form[0]['form']['input'][] = $this->fields_form_override; $helper = new HelperForm($this); $this->setHelperDisplay($helper); $helper->fields_value = $this->getFieldsValue($this->object); $helper->tpl_vars = $this->tpl_form_vars; !is_null($this->base_tpl_form) ? $helper->base_tpl = $this->base_tpl_form : ''; if ($this->tabAccess['view']) { if (Tools::getValue('back')) $helper->tpl_vars['back'] = Tools::safeOutput(Tools::getValue('back')); else $helper->tpl_vars['back'] = Tools::safeOutput(Tools::getValue(self::$currentIndex.'&token='.$this->token)); } $form = $helper->generateForm($this->fields_form); return $form; } }
×
×
  • Create New...