Jump to content


Popular Content

Showing content with the highest reputation on 10/29/2018 in all areas

  1. 1 point
    Hola: Habilita el debug profiling y con eso tendras una idea bien clara de que modulos o procesos son los que estan tardando mas en cargarse y cuanto tiempo y memoria estan utilizando. Saludos
  2. 1 point
    Oui normalement en bas à droite au dessus des prix
  3. 1 point
  4. 1 point
    exécutez cette requete sql dans votre phpmyadmin DROP TABLE IF EXISTS `ps_paypal_capture`; CREATE TABLE `ps_paypal_capture` ( `id_paypal_capture` int(11) NOT NULL AUTO_INCREMENT, `id_order` int(11) NOT NULL, `capture_amount` float NOT NULL, `result` text NOT NULL, `date_add` datetime NOT NULL, `date_upd` datetime NOT NULL, PRIMARY KEY (`id_paypal_capture`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  5. 1 point
    Hi Ttoine, Thanks for your answer ! The issue isn't exactly the same, but the context is extremely similar (at least for the cart problem). I read the link you posted, and saw that the problem is on Prestashop's "bug roadmap", so it will be fixed eventually... I'll keep an eye on that. Meanwhile, I'll keep looking for a workaround... Thanks again
  6. 1 point
    Hello, a similar issue has been reported: https://github.com/PrestaShop/PrestaShop/issues/9763 Is it the same problem?
  7. 1 point
    I only found this reference at file \src\Adapter\Product\AdminProductDataUpdater.php: public function duplicateProduct($productId, $namePattern = 'copy of %s') { //TODO : use the $namePattern var to input translated version of 'copy of %s', if translation requested. $product = new Product($productId); if (!Validate::isLoadedObject($product)) { throw new \Exception('AdminProductDataUpdater->duplicateProduct() received an unknown ID.', 5005); } $id_product_old = $product->id; if (empty($product->price) && Shop::getContext() == Shop::CONTEXT_GROUP) { $shops = ShopGroup::getShopsFromGroup(Shop::getContextShopGroupID()); foreach ($shops as $shop) { if ($product->isAssociatedToShop($shop['id_shop'])) { $product_price = new Product($id_product_old, false, null, $shop['id_shop']); $product->price = $product_price->price; } } } unset($product->id); unset($product->id_product); $product->indexed = 0; $product->active = 0; // change product name to prefix it foreach ($product->name as $langKey => $oldName) { if (!preg_match('/^' . str_replace('%s', '.*', preg_quote($namePattern, '/') . '$/'), $oldName)) { $newName = sprintf($namePattern, $oldName); if (mb_strlen($newName, 'UTF-8') <= 127) { $product->name[$langKey] = $newName; } } } if ($product->add() && Category::duplicateProductCategories($id_product_old, $product->id) && Product::duplicateSuppliers($id_product_old, $product->id) && ($combination_images = Product::duplicateAttributes($id_product_old, $product->id)) !== false && GroupReduction::duplicateReduction($id_product_old, $product->id) && Product::duplicateAccessories($id_product_old, $product->id) && Product::duplicateFeatures($id_product_old, $product->id) && Product::duplicateSpecificPrices($id_product_old, $product->id) && Pack::duplicate($id_product_old, $product->id) && Product::duplicateCustomizationFields($id_product_old, $product->id) && Product::duplicateTags($id_product_old, $product->id) && Product::duplicateDownload($id_product_old, $product->id)) { if ($product->hasAttributes()) { Product::updateDefaultAttribute($product->id); } if (!Image::duplicateProductImages($id_product_old, $product->id, $combination_images)) { throw new UpdateProductException('An error occurred while copying images.', 5008); } else { $this->hookDispatcher->dispatchForParameters('actionProductAdd', array('id_product' => (int)$product->id, 'product' => $product)); if (in_array($product->visibility, array('both', 'search')) && Configuration::get('PS_SEARCH_INDEXATION')) { Search::indexation(false, $product->id); } return $product->id; } } else { throw new \Exception('An error occurred while creating an object.', 5009); } }
  8. 1 point
    Hi.. add this code "themes/classic/assets/css/theme.css" approx line no. 7 #header .header-top { padding-bottom: 1.25rem; clear: both; //add this code } Thanks
  9. 1 point
    Please take some time searching the forum before asking questions for which you can find the answers yourself easily. 1.7.x is a rather controversial upgrade of Prestashop that is not compatible with 1.6.x. So you will need to need new modules and a new theme. The underlying database is largely the same but the structure of the software has changed. Initially the 1.7 versions were rather unstable that has been mostly fixed. Most Prestashop users still stick to 1.6. There are also much more themes and modules available for 1.6. Some people consider the software architecture of 1.7 more modern and more easy to develop for. Others hate the more complex Symfony based software and its often cryptic error messages. The decision is yours. Functionally the versions are almost the same. The only real extra of 1.7 is multi-feature but on the other hand it misses a few minor 1.6 options. So usually upgrading just isn't worth the trouble.
  10. 1 point
    Ενημέρωσα το αρχικό post με την καινούργια έκδοση, η οποία διορθώνει ένα bug.
  11. 1 point
    Hello, I had the same problem. I solved it by changing the session_path to / tmp, in the php.ini Regards
  12. 1 point
    Esto: 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), es nombre y apellidos del cliente Quizas cambiando el: 'validate' => 'isName' por 'validate' => 'isString' se lo trage.... De todos modos, a ti te interesa el nombre del cliente en la dirección del cliente ¿no? Entonces creo que en ese caso, creo que es en la clase: Address.php Donde veras que tambien tienes esto: 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), ---- Aunque mejor seria hacer un override... De todos modos, no estoy seguro si te refieres al nombre y apellidos u a otra cosa.
  13. 1 point
    thanks! you've got there code: <fieldset> <h3>{l s='Already registered?'}</h3> <div class="form_content clearfix"> <p class="text"> <label for="email">{l s='Email address'}</label> <span><input type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" class="account_input" /></span> </p> <p class="text"> <label for="passwd">{l s='Password'}</label> <span><input type="password" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" class="account_input" /></span> </p> <p class="lost_password"><a href="{$link->getPageLink('password')}">{l s='Forgot your password?'}</a></p> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if} <input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in'}" /> </p> </div> </fieldset> change the line: {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if} to: <input type="hidden" class="hidden" name="back" value="{$smarty.server.HTTP_REFERER}" />
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More