Jump to content

Lugorcorp

Members
  • Posts

    12
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    México
  • Interests
    http://drcollector.com.mx
  • Activity
    Freelancer

Recent Profile Visitors

371 profile views

Lugorcorp's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Hi guys, I want to add an Adsense into a specific area of the product section. I need to insert the ad below the paypal button section, you can see the example in the picture. The point of this is to know the best way to do this, because I can add it with a code, but maybe is there another way to do it. Thanks for your help.
  2. Hola chicos, estoy dando mis primeros pasos con SSL y tengo el capricho de forzar el SSL en toda la página, el detalles es que parece que todo funciona, pero tengo algunos problemas cuando inicio sesión. Puedo iniciar sesión sin problemas, pero cuando quiero cerrar la sesión me quedo en la página de la cuenta y si me voy al home aparentemente sigo logueado, de hecho puedo entrar a la sección de cuenta, pero ya no puedo ver los pedidos. Es como si hubiera un pequeño delay, pero la verdad no lo termino de comprender. ¿Les ha pasado? o ¿Saben a que se debe esto? Si desactivo la opción de forzar el SSL todo funciona normalmente, pero me gustaría tener el HTTPS en todas las página, el tiempo de carga del home es de 3 segundos la primera vez, después se reduce así que no hay tanto problema con eso.
  3. Hi guys, after a few hours, I found a code that allow me add a pagination on home section "homefeatured" but I can't edit the CSS as I wish. The pagination tab is aligned to the left and I can't do that align to the right. You can see an example at the end of my page: http://drcollector.com.mx I want to know if you can help me with the CSS If you want to add a pagination on your home section you can find the code here: http://cadeseudeusagora.blogspot.com.br/2014/09/paginacao-homefeatured-prestashop-16.html is too easy to edit the code. Replace the function called hookDisplayHome in homefeatured.php located in ROOT/modules/homefeatured/homefeatured.php public function hookDisplayHome($params) { $controller = new FrontController(); $controller->productSort(); $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nbProducts = $category->getProducts((int)Context::getContext()->language->id, NULL, NULL, 'position', NULL, true); $controller->pagination($nbProducts); $products = $category->getProducts((int)Context::getContext()->language->id, intval($controller->p), intval($controller->n), $controller->orderBy, $controller->orderWay); $this->smarty->assign( array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), 'nb_products' => $nbProducts, 'id_category' => (int)$category->id, 'id_category_parent' => (int)$category->id_parent, 'g_teste' => $_REQUEST, ) ); return $this->display(__FILE__, 'homefeatured.tpl' ); } Then replace all the code from homefeatured.tpl located in ROOT/themes/YOUR_THEME/modules/homefeatured/homefeatured.tpl with this code {if isset($products) && $products} {include file="$tpl_dir./product-list.tpl" class='homefeatured tab-pane' id='homefeatured'} {include file="$tpl_dir./pagination.tpl"} {else} <ul id="homefeatured" class="homefeatured tab-pane"> <li class="alert alert-info">{l s='No featured products at this time.' mod='homefeatured'}</li> </ul> {/if} You will see something like this: http://i.imgur.com/4vGrsqX.png but if you want to remove the "Show all" button and the bottom text "showing 1 of x products" you can add this CSS: .pagination { margin: 8px 0;} /*optional*/ .product-count { display: none !important; } .showall button { display: none !important; } I really hope you can help me. BTW The code is not mine, but the original file is in BR or Portuguese and sorry for my english D=
  4. Thanks dude, the code is working for me, but the css is not very good, this is my result: http://i.imgur.com/4vGrsqX.png I'm going to see what can I do with the CCS
  5. I'm just doing something like this: {foreach from=$products item=product name=products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if} {if ($product.quantity < 0)} /* Out of stock */ #code {/if} {/foreach} Do you know what can I do? I'm new with smarty. Thanks.
  6. Hi guys, I want to hide (no disable from the DB) all the products who are out of stock from the featured products but I want keep them for reference for the customers. I'm editing "product-list.tpl" but I'm getting just a blank space. What can I do? Thanks
  7. Hi guys, after update the module of the menu, the element "home" from the root category dont' want appear in the menu. Just happens with that element, but if I select the "home" element from CMS category appear without problema, the same happens if I create a new element called home. The problem is the "home" element from the root category. My prestashop version is 1.6.13. BTW Is a good idea update my prestashop to the last version? I have more than 200 products in my catalogue. Thanks
  8. Hola, me gustaría saber si hay forma directa de listar los clientes que han levantado pedidos y de esa manera saber rápidamente la cantidad exacta que tengo que traer para poder surtir el producto. Estoy pensando en hacer un mini sistema basado en python, así aprendo las bases de otro lenguaje y soluciono mi problema. Por ahora tengo que hacer consultas directas a la BD... De todas formas les dejo los query's que uso para saber este tipo de cosas (por si álguien llega con la misma duda) SELECT * FROM `ps_order_detail` WHERE `product_name` = 'S.H. Figuarts - Vegetto' //Seleccionar órdenes por nombre SELECT * FROM `ps_orders` WHERE `id_order` = 112 //Seleccionamos el cliente con la orden 112 "pidió un Vegito" SELECT * FROM `ps_customer` WHERE `id_customer` = 77 //Obtenemos el clientey sus datos
  9. Prestashop: 1.6.0.9 Theme: Pos Aries Digital Hola chicos, quiero asociar 2 productos de manera mútua, o sea, que al asociar el producto A con el producto B también pueda asocial el producto B con el producto A. ¿Por qué? Bueno, asociar el A con el B me aparece en la parte inferior los productos disponibles, pero si llego al producto B por un enlace externo no hay manera de indicar que ese producto está vinculado con el A. No me funcionan las combinaciones porque no se descuentan los artículos del stock o al menos no se como hacerlo... Ojalá y puedan ayudarme Si tengo que modificar código no hay problema, solo indíquenme el módulo por favor.
  10. Bueno después de un buen rato pude solucionar mi problema, pero no el error. Tuve que bajar dos plugins basados en Jquery y editarlos para hacerlos compatibles con prestashop. El primero se encarga de añadir los botones de redes sociales y compartirlo en las mismas. El segundo es un "short url" que hace uso de la API de google; el primer plugin usaba toda la URL y dejaba muy pocos caracteres para twitter... Si les interesa díganme y les paso los archivos y el código que tienen que añadir directamente. Es lo que llaman hack. Si supiera hacer plugins de prestashop les juro que se los pasaría jaja La implementación es muy rápida, solo tienen que verificar que sea compatible con su tema. P.D. Le faltan algunos detalles como cambiar los botones y añadir la descripción del artículo para redes tipo FB.
  11. Hola, estoy teniendo algunos problemas con el módulo llamado "Social Sharing" v1.2.7 Los botones no me funcionan, de hecho no aparece ninguna ventana. Primero pensé que se debía al tema que estoy usando, pero no, porque funciona perfectamente en mi localhost, pero mi localhost no tiene plugins actualizados, o sea, tiene la versión 1.6.0.9 tal cual la bajé. Luego pensé que era el plugin y cambié a la versión 1.2.6 (la de mi localhost) y seguía fallando. Por último activé firebug y me arrojó estos errores: ReferenceError: sharing_url is not defined ReferenceError: sharing_name is not defined Estuve comparando código de mi localhost y de mi sitio web, pero no encontré errores =/ Aquí pueden ver el error directamente: http://drcollector.com.mx/mx/figma/8-figma-link.html
×
×
  • Create New...