Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Activity

danvers's Achievements


Newbie (1/14)



  1. Ok after some research, I think the better solution is a javascript to put in blockcart.js but I don't know how-to write it
  2. I've managed to see why it wasn't working: The validate.php file was empty.... now that I've put the original one, it's works like a charm!
  3. Hello, I need to change the id of the quantity input in my product.tpl when the radio input is checked. WHY? My product.tpl display a "Add to cart" for each attribute. When I select for instance the second attribute and choose "1" quantity or any quantity it adds the quantity in the first quantity box (here in the example "5") --> Only the first quantity box works, the others don't. So, I think I've managed to see why, it's because all the input quantity have the same id "quantity_wanted", and the script just add the first quantity he finds in any input with id "quantity_wanted"(the first attribute then) <input id="quantite" type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination(); getProductAttribute();" /> <span id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <!-- <label>{l s='Quantity:'}</label> --> <input type="number" name="qty" id="quantity_wanted" class="text" value="1" size="2" maxlength="2" /> </span> THEN What I need, is something like this with {if} (of course it doesn't work, as I don't know how-to properly write it) <input type="number" name="qty" {if (input.#quantite.checked == "checked")} id="quantity_wanted"{/if} class="text" value="1" size="2" maxlength="2" /> Could someone tell me how-to write it properly? Or if you have some other solution to my problem, I'm listening. Best regards,
  4. I've used his method to get autocompletion on TAG, it works on PS 1.6 but the post have some mistakes so be careful
  5. Hello Enrique, Sorry to bother again, I've noticed something weird and annoying: When I add a new product or if I just re-saved a product in the back office, the module create a new tag even if the tag already exist. I have put the overriden files in the right path (validate.php, tag.php, & product.php) Is that because I've 4731 tags? Is that too much for the module? edit: I've managed to see why it wasn't working: The validate.php file was empty.... now that I've put the original one, it's works like a charm!
  6. Hello, I must be really dumb, but after installing the module I don't know where to access it... Can someone tell me, where I can find it into the Back Office of Prestashop? Thank you
  7. Merci Pascaline pour votre code, il fonctionne nickel. Mais comment peut-on faire apparaitre les valeurs pour les attributs? Edit: J'ai réussi à les voir
  8. Hello Enrique, I've installed your module and thank you a lot for it! I've managed to display title, price, category. But I need to display the name of the manufacturer. I've tried with {Manufacturer::getNameById($categoryProduct.id_manufacturer)|escape:'htmlall':'UTF-8'} where I would like to appear in the .tpl file, but there's nothing. Do you know how I can get the name of the manufacturer? Best regards,
  9. Par catégorie par défaut, j'entend la catégorie dans laquelle j'ai classé mon produit dans le BO en catégorie par défaut. En effet, un produit peut se trouver dans différentes catégories, mais PrestaShop permet de lui attribuer une catégorie par défaut. (Catalogue - Produit - Association - et tout en bas de la page). Cette information, j'arrive à l'afficher sur la page produit, mais pas dans product-list.
  10. Bonjour, J'ai réussi après moult recherches à afficher la catégorie par défaut sur différents endroits de ma boutique, mais pas pour la page product-list. En effet, la variable: {$product.id_category_default} ne renvoie que l'id de la catégorie par défaut {$product.category} renvoie l'url ré-écrite, et {$category->name} renvoie la catégorie où on se trouve actuellement J'ai bien compris qu'il fallait modifier classes/Category.php mais je ne vois pas comment. Si quelqu'un pouvait bien m'aider ce serait top
  11. Hello, everyone. I'm using PrestaShop 1.6 and i'm a total newbie. I've noticed that if you 're in a group, you can see your reduced price and the full price quiet nicely. But, If you are not in a group, but just a regular customer you can not see the reduced price for a particular group. What I want is that every customer get to see what he could pay for a product if he were in this particular group. I want PrestaShop to display both price, the full price, and the reduced price. Is there a way to do it?
  12. Thank you. But it's just not working. I can't create a function or savec a script in my cms page using the CMS page editor. How can I just add a product to my cart in a CMS page??
  13. I've got a custom page, where I would like to add a link to automatically add to cart just 1 quantity of a product in my catalogue. I've search the web, I've found this piece of code: <script type="text/javascript"> ajaxCart.add(ID_PRODUCT , ID_ATTRIBUTE , AJOUTAPARTIRDELAFICHEPRODUIT , ELEMENT , QUANTITY , WISHLIST); ajaxCart.refresh(); </script> but, the thing is I don't know how to place it, and how to change the attribute. So, can someone post an example of how it can be done? I'm on PS 1.6 Thank you.
  • Create New...

Important Information

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