-
Posts
79 -
Joined
-
Last visited
About Ecigarlife
- Birthday 12/23/1982
Contact Methods
- Website
Profile Information
-
Location
España
-
Interests
cigarros electronicos
-
Activity
Other
Recent Profile Visitors
4,174,815 profile views
Ecigarlife's Achievements
-
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
-
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..
-
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
-
Ecigarlife changed their profile photo
-
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'); }
-
Addon to Filter one Combination with stcok
Ecigarlife replied to Ecigarlife's topic in Looking for a module or a theme
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 -
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!
-
SPAM masivo módulo enviar a amigo
Ecigarlife replied to Eutanasio's topic in Informes de Bugs (errores)
Me esta pasando exactamente lo mismo ahora.... ¿Puidsteis solucionarlo? un saludo -
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
-
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
-
Error Paypal
Ecigarlife replied to Ecigarlife's topic in PrestaShop Download: instalación, actualización y configuración
Thanks for the information!! -
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?
-
(SOLVED) Hook Message in Order
Ecigarlife replied to Ecigarlife's topic in Installing PrestaShop for the first time
I thnik its solved, i have erased: {if !$opc}