Jump to content

lightdown

Members
  • Posts

    13
  • Joined

  • Last visited

lightdown's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I want to know how to show always the lowest price (lowest combination price) in the home featured and product_list I have done it in the product.tpl with the next code: {if isset($groups)} {assign var="precioactual" value=$productPrice} {assign var="precio" value=$productPrice} {foreach from=$combinations key=idCombination item=combination} {assign var="preciocombinacion" value=($product->base_price+$combination.price)*1.21|floatval} {if ($preciocombinacion < $precio)} {assign var="precioactual" value=$preciocombinacion} {/if} {/foreach} {convertPrice price=$precioactual} {else} {convertPrice price=$productPrice} {/if} But, $combinations seems not to be defined in category or homefeatured. How can I do it? thanks
  2. I think you are right. I'll try that solution. Thanks!
  3. And that is the point: "keep your selection for the whole process". Is there any documentation about that? Where is stored all the information about the product? In Cookie or other global var? I have develop some modules and in the BO all seem to be is more easy (access to cookie, global vars, product object, etc), but in front office...how can i do that? Thanks
  4. Hello, I'm trying to develop a module to calculate the product price from a product tables, and my problem is How can I update the product price in real time? I know how to update the price in our_price_display span, but, when I click in add to cart, the product is added to the cart with the original price. Any idea ? Thanks
  5. Hi, I'm creating a shop for a customer and I have the next problem: My customer doesnt like the tabs system of the product page in dashboard. I can understand that It is really slow to add a product in comparison with other platforms. So I decided to try change the add new product screen to avoid the tabs and show all information, all forms, in one single step. I can make this changing the CSS, but then, I have the next trouble: After the product-associations tab, the tab show: You must to save the product before to add combinations, and the same thing with images and features. How can I solve this? Is it possible to make a save with jquery in the background or someting similar? Thanks
  6. Hi everybody I´m using prestashop 1.4 I have a problem when I make pages with the CMS. In my frontpage, when i click on them it shows: Warning: htmlentities() expects parameter 1 to be string, array given in /usr/home/....../tools/smarty/plugins/modifier.escape.php on line 30 Even the default pages in CMS has the same error. I only have two languajes (spanish and english). Anybody knows what happened? Thanks
  7. Hi everybody ;-) I´d like to know how to send the order message (textarea in the first step) in the email order_conf.html This message is in BO, but i need to send it by email with the order. Is it possible? Thanks
  8. Te indico cómo hacerlo: Tienes que conocer el ID de la categoría que quieres aplicarle esta limitación de cantidades. Suponiendo que la categoría de vasos es la 3 y se tienen que comprar de 8 en 8: Editamos el archivo order.php, y en la línea 472, a continuación de "include_once(dirname(__FILE__).'/header.php');" ponemos: $query = "SELECT c.id_product, c.quantity, p.id_category FROM ps_cart_product c, ps_category_product p WHERE c.id_cart='".$cart->id."' AND c.id_product = p.id_product"; $hayarticulos = false; $articulos = 0; $miconsulta = mysql_query($query); for($i=0;$i $ea = mysql_fetch_array($miconsulta); if ($ea['id_category'] == '3') { $hayarticulos = true; $articulos = $articulos + $ea['quantity']; } } if (($hayarticulos)&&(($articulos%8)<>0)) { echo ' Ha añadido usted en su carrito productos de la categoría CATEGORIA. Estos productos se presentan en una caja que contiene 3 unidades, por ello ha de comprarlos en cantidades de 3 en 3, para poder realizar su compra correctamente. Las cajas pueden contener articulos de esta categoria pero diferentes, pero cada caja debe contener 3 de estos artículos. <style> p.cart_navigation a.exclusive { display:none;} </style> '; } Con esto, cuando alguien añade cantidades de la categoría 3 que no son múltiplos de 8, desaparece el botón "seguir" del detalle del carrito. Esto lo he programado en una tienda en la que no he puesto el carrito de la compra detallado a la derecha, así que el cliente cuando compra se va al detalle del carrito y en esa pantalla es donde deshabilito el botón y le muestro un mensaje. Si vas a mantener el carrito a la derecha no sabría como hacerlo, pero puede que partiendo de esto puedas modificar el carrito de forma similar. Espero ser de ayuda Un saludo
  9. Hi everybody and thanks for this grat forum I have a trouble with a prestashop. I have added a field in product.tpl, because I need customer enter a value in the product before add to cart (this value is the number of boxes in a pallet). I know that its possible add a field with the tab Cuztomization in each product, but is too slow to make it in each product. I need to make in all products, and thats why i have done it. I have try to put my field into the main form, but I cant to follow the path of this data. I think that It have to be possible to get with a $_REQUEST, but i can´t . Well, the problem is that I need to put the value of this field in the cart, and, of course in the finally in the order. So that i have two question really: - How can I add a customized field to ALL MY PRODUCTS AT THE SAME TIME? - How can I add a field to my product, cart and order? Thanks !
  10. I have a problem with the way to show the combinations of a product. If one product have a combination and each combination only have one attribute all its ok, for example: Green color --- 100 € Blue color ----- 120 € All its ok because prestashop show a SELECT with the option Blue | Green But, if my product has many attributes, for example, a fishing tool can have: mod 4550 | 4,4 Mts | 360 gr | thread Steel ---- 350 € mod 4880 | 4,2 Mts | 369 gr | thread Plastic ---- 300 € In this case, prestashop shows 4 SELECTS, but is not confortable neither normal for a costum, because, to discover the correct combination is so dificult. My question is: How can i show radio buttons or anything like this instead of select to make the correct choice: Or mod 4550 or mod 4880, with all attributes each one? Thanks
  11. Hi everybody, I´m searching for something like this code, but now, i need to put an add a cart from this list. For example, in my shop , the code from rocky show this: 140, 80, PDRD 140, 80, W-23 140, 80, w27 210, 280, w-24 Its Ok, those are combinations from my products, but, below i see the selects that i want to delete. I need the people buy the products from the list above. Each combination has a reference. Another option would be put a select with references and hidden the other selects Anyone knows how to make this? Thanks for all
×
×
  • Create New...