Jump to content

Search the Community

Showing results for tags 'function'.

  • Search By Tags

    • function ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


  1. Salve a tutti, vorrei sapere se fosse possibile impostare di proposito che quando cambio la pagina dei prodotti, la visualizzazione della stessa tornasse all'apice, dove inizia la lista di prodotti, e non rimanesse in basso. Ho notato che questa cosa varia in base al browser usato (Firefox resta giù...
  2. Hello, I currently have a problem on my web site... (sorry for my translation) On any page where there is an option: "Sort by price ascending/ descending:" or you can select "Relevance", "Name, A to Z", Price, ascending"... but here, all steps except "Price, ascending" and "descending" whi...
  3. Hi all! I'm actually working on my own function to create product, because I have multiple shops in prestashop with different names, diferent hosts and same products. That's why I need to design a product form to create/modify/delete products. I'm now stucked in the point that I don't...
  4. Hi all, I want to know how can I execute some codes after a product is created/updated in prestashop. I have done such things for wordpress via the functions.php file inside a theme. I want to know whether there is a similar way in prestashop or not? I want to purge the cache server...
  5. Hi everyone, I'm trying to write a simple module.I need to get the event when the order status is change to particular state, than I should make something.
  6. Hello, I have question. I wrote an function which I like in module A. Right now I am developing module B and I would love to use this function from A in B without copying it. Any Idea how to achieve this?
  7. Hello, This a simple question about Calling a function from a tpl file. I need to override the discount display that appears on the product page , depending of the category-default parent. In the productcontroller.php I have entered a new function : I try to ca...
  8. Hello, I am using prestashop 1.6.1.13 version and would like to ask the following as I am not completely sure how to do it correctly: I am overriding the ContactController.php and exactly the functions postProcess() and initContent(): class ContactController extends ContactContr...
  9. I guys, I'm currently facing an issue on my website. When I browse my products into a dedicated category, it seems that at some point, the product list disappears. When I open the Console from the Browser Investigator, here is what I have: Uncaught TypeError: a.getE...
  10. Hello, I need your help for this. I like to add two buttons in CMS page. One is the link for product and another is the link for the page of CMS. I added two fields for the product link and the cms link in Admin of cms. But the system can’t save those two values after I i...
  11. Hello all, Calling a controller's method/action/function of module from an url ?
  12. Hello guys, This is my first post in this forum. So, i have a question. In the country i wanna start my e-shop noone use Credit slips, so I want to totaly remove the Credit Slip funcionalty/module of my Presta Shop 1.6.1.17. I don't want to remove it just from the theme, i just want to s...
  13. Hi, My shop is built with Prestahsop 1.5.6.2 In the browser console, js tab, I can see the following error : cart-summary.js:835 Uncaught TypeError: $(...).checkboxChange is not a function at HTMLDocument.<anonymous> (../js/cart-summary.js:835) at o (../xxxxxxxxxxxxx.js:2) at Object.fi...
  14. Hallo liebes Forum, ich möchte gerne folgendes herausfinden: Gibt es die Möglichkeit einen Link auf einer anderen Webseite zu platzieren, der dann einen bestimmten Artikel in den Warenkorb des Prestashops legt? Schließlich soll dann der Warenkorb mit dem Produkt angezeigt werden, sodass mein...
  15. how I can use the truncateTables() function, to clear tables before importing with loadCategoriesPost () and loadProductsPost ()
  16. I want to edit the cart order total function. Do you know where it's located?
  17. Hi all, I need to get $product variable from a product Id on my tpl. I've tried smarty: {assign var=$product value=$banditQuotes[nr].quote_product_link} I've tried php on the page: <?php $product = new Product (int)$banditQuotes[nr].quote_product_link?> I've tried a function in the php...
  18. Hi there Community, today i need to double the original function "on Sale" from Prestashop. I would need exactly the same code and working like the original but a second time with a second checkbox and another word spawning if checkbox is checked. I guess i need to add a new column in ps...
  19. Hi guys, I would like to know if there is a way to add a new smarty modifier/function from a module controller. If so, can you explain me how ? Thanks. Best regards, Romain
  20. I want to know from where the function call or identify function call such as I have situation as follows. In my module development I have override cart's getOrderTotal() method to add some surcharges as my modules requirements, so I want to call that method only if its call by Payment Methods (or...
  21. I've created this funciton : static protected $cacheName = array(); public static function getCmsNameById($id_cms_category) { if (!isset(self::$cacheName[$id_cms_category])) self::$cacheName[$id_cms_category] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT `name` FROM `'._DB_PREFIX_.'...
  22. Hi ! I'm trying to call controller function through an AJAX call in Prestashop 1.5. I don't even know if it's possible. This is what I did : I override product controller (in override/controllers/front/ProductController.php) to load extra medias and to do some actions that the default controller do...
  23. Hello I am using Prestashop 1.6.9 and need to add a function on the featured template. The function is a duplicate with modifs of public function getProducts (class Category.php) The call to the function is : Category::getRandomShopProducts((int)Context::getContext()->language->i...
  24. Good Day: I would appreciate any feedback on www.silkplantscanada.com which is the main site under the ps 1.5.6.2 multistore function selling artificial plants, trees, palms ivies, etc.. To date I am using the default template as it has been a long journey just to have this one working as we...
  25. Im wondering where can i find all the Tools::getValue list and how is this working, is there other function that is useful other than this? for example i want to get the product reference and generate it in my controller.php
×
×
  • Create New...