Jump to content

Ecigarlife

Members
  • Posts

    79
  • Joined

  • Last visited

About Ecigarlife

  • Birthday 12/23/1982

Contact Methods

Profile Information

  • Location
    España
  • Interests
    cigarros electronicos
  • Activity
    Other

Recent Profile Visitors

4,174,815 profile views

Ecigarlife's Achievements

Newbie

Newbie (1/14)

2

Reputation

2

Community Answers

  1. Muchas gracias! Si, fue el Widget de las opiniones verificadas, lo tenemos pendiente de dejarlo ok.
  2. Buenos dias, Consegui que se generara, os explico como lo hice por si a alguno le pasa en un futuro : Me cree un archivo nuevo que puse en la raiz en la web llamada crearcategorias.php El codigo de dicho archivo es el siguiente: <?php require(dirname(__FILE__).'/config/config.inc.php'); echo 'Regenerating tree...'; Category::regenerateEntireNtree(); echo 'done<br />'; echo 'Recalculating level depths...'; $category = new Category((int)Configuration::get('PS_ROOT_CATEGORY')); $category->recalculateLevelDepth($category->id); echo 'done'; Lo mas importante y que creo que es lo que ha hecho que funcione, ha sido borrar las caches a mano, reiniciar PHP en el hosting y despues ejecuto dicho codigo : www.tudominio.com/crearcategorias.php. Debo decir que algo parecido o similar habia intentado dias antes y no me habia funcionado... pero ahora si lo ha cogido
  3. if (isset($categories_array[0]) && $categories_array[0]['subcategories']) Category::_subTree($categories_array, $categories_array[0]['subcategories'][0], $n); Una duda, esta mirando aqui que el Id_parent sea 0 y como no encuentra por eso falla? Es que no tengo ningun id_category con valor 0, y creo que puede ser por eso..
  4. Members 2 75 posts Posted 11 hours ago Hi, I Activated the multistore one month ago, but when i Create a category, the values of the fieds NLEFT and NRIGHT in the ps_category table is 0 always. I Execute manually "Category::regenerateEntireNtree();" but it doent do anything. Maybe is because my root category is "2"? This is my Code public static function regenerateEntireNtree() { $id = Context::getContext()->shop->id; $id_shop = $id ? $id: Configuration::get('PS_SHOP_DEFAULT'); $categories = Db::getInstance()->executeS(' SELECT c.`id_category`, c.`id_parent` FROM `'._DB_PREFIX_.'category` c LEFT JOIN `'._DB_PREFIX_.'category_shop` cs ON (c.`id_category` = cs.`id_category` AND cs.`id_shop` = '.(int)$id_shop.') ORDER BY c.`id_parent`, cs.`position` ASC'); $categories_array = array(); foreach ($categories as $category) $categories_array[$category['id_parent']]['subcategories'][] = $category['id_category']; $n = 1; if (isset($categories_array[0]) && $categories_array[0]['subcategories']) Category::_subTree($categories_array, $categories_array[0]['subcategories'][0], $n); } protected static function _subTree(&$categories, $id_category, &$n) { $left = $n++; if (isset($categories[(int)$id_category]['subcategories'])) foreach ($categories[(int)$id_category]['subcategories'] as $id_subcategory) Category::_subTree($categories, (int)$id_subcategory, $n); $right = (int)$n++; Db::getInstance()->execute(' UPDATE '._DB_PREFIX_.'category SET nleft = '.(int)$left.', nright = '.(int)$right.' WHERE id_category = '.(int)$id_category.' LIMIT 1'); } Any help please? thank you very much
  5. Buenos dias, Desde que activamos la multitienda, cuando creamos categorias no lo hace bien, ya que genera la categoria con los valores Nleft y Nright a 0. Llamo de manera manual a Category::regenerateEntireNtree(); , pero no hace nada... Mi root category esta con valor "2" y esta es e lcodigo que deberia generarlo , ¿Puede ser por el valor 2?: public static function regenerateEntireNtree() { $id = Context::getContext()->shop->id; $id_shop = $id ? $id: Configuration::get('PS_SHOP_DEFAULT'); $categories = Db::getInstance()->executeS(' SELECT c.`id_category`, c.`id_parent` FROM `'._DB_PREFIX_.'category` c LEFT JOIN `'._DB_PREFIX_.'category_shop` cs ON (c.`id_category` = cs.`id_category` AND cs.`id_shop` = '.(int)$id_shop.') ORDER BY c.`id_parent`, cs.`position` ASC'); $categories_array = array(); foreach ($categories as $category) $categories_array[$category['id_parent']]['subcategories'][] = $category['id_category']; $n = 1; if (isset($categories_array[0]) && $categories_array[0]['subcategories']) Category::_subTree($categories_array, $categories_array[0]['subcategories'][0], $n); } protected static function _subTree(&$categories, $id_category, &$n) { $left = $n++; if (isset($categories[(int)$id_category]['subcategories'])) foreach ($categories[(int)$id_category]['subcategories'] as $id_subcategory) Category::_subTree($categories, (int)$id_subcategory, $n); $right = (int)$n++; Db::getInstance()->execute(' UPDATE '._DB_PREFIX_.'category SET nleft = '.(int)$left.', nright = '.(int)$right.' WHERE id_category = '.(int)$id_category.' LIMIT 1'); }
  6. Hi, Thank you for your reply. I have been using layered navigation block filter, but it don´t do what I want. I don´t have a lot of combinations, i only want filter for 2 attributes in a category and subcategories that I have a lot of products. This is an example : http://ecigarlife.com/es/7-e-liquid#/disponibilidad-en_stock/contenido_de_nicotin-6_mg/tamano_bote-30_ml These are the products that have this combination, but I want the products who have stock with this combination. If you click in a product and choose this combination, some of them aren´t in stock, but is in stock antoher combination, but not this. Sorry for mi english. Regards
  7. Hi, I am looking for a module where i can filter for a category and combination with products are in stock for this combination. I have a lot of combinations and clients want to search the product with stock for a determinate combination in a category. Do you know any addons that can do this? Regards!
  8. Me esta pasando exactamente lo mismo ahora.... ¿Puidsteis solucionarlo? un saludo
  9. Para que sea más fácil, también pasa en el formulario de contacto. He visto que falla con el chrome para dispositivos moviles : http://ecigarlife.com/es/contactenos Gracias!
  10. Buenas tardes, No se como hice, al limpiar cache de la tienda, pero los campos tipo Despegables con moviles y Tablets no funcionan. Si os dais de alta en la pagina, y se quiere añadir una direccion, a la hora de elegir Pais o Provincia no deja cambiar ni nada... En version PC funciona correctamente, en combinaciones de productos conseguir arreglarlo con una solucion que vi wn en una Web, pero para estos campos no se como hacer. ¿Alguna idea? la web http://ecigarlife.com gracias
  11. Me auto contesto. Actualize el otro dia el modulo de google analytics, lo he desactivado y va ya perfecto. Lo que no se ahora es que hacer con el google analytics.. un saludo
  12. Buenos dias, desde hace un par de dias la pagina de pedidos va muy lenta en el back office, no se a que puede deberse... Lo demas del back office va perfectamente, estoy con prestashop 1.6.0.5, hay un numero bastante considerable de pedidos, pero la pagna esta limitada a que muestre solo 50... asi que no se. gracias
  13. Buenos dias, Desde ayer, sin haber tocado nada en la pagina, me fallan muchos pedidos que se hacen por paypal. Alguno si que ha entrado, pero la mayoria ha fallado..., da este error. PayPal response:TIMESTAMP -> 2014-08-08T09:58:32ZL_ERRORCODE0 -> 10729L_SHORTMESSAGE0 -> Shipping Address State EmptyL_LONGMESSAGE0 -> The field Shipping Address State is requiredL_SEVERITYCODE0 -> Error a que puede ser que de repente falle?
×
×
  • Create New...