Jump to content

Search the Community

Showing results for tags 'functions'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Addons
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 11 results

  1. Hello. I've installed P.S. 1.7.8.9. In my backoffice, in the attributes and functions module, i cannot write the URL of the single attribute or of the single functions like it was on PS 1.7.7.2 How can i solve it?
  2. On the website when i filter products using faceted search attributes and functions the module hides the attributes and functions that have no matching products. I would like them to always show so it is more clear to the customer what is selected and what the options are even if no products are found. Can anyone point me in the right direction where to do this? Prestashop version: 1.7.6.2
  3. Hi, guys! I'm an intern at a web development company. With other interns we're working with Prestashop. We've never seen it before and it causes us a lot of problems. We are usually told to modify something simple within CSS or a .tpl file, but recently we started to get tasks that are a bit too advanced for us. Not because these are hard, I can think of many solutions easily, but we know nothing of Smarty framework and how to use it properly. So I have to add a new functionality to the newsletter (ps_emailsubscription) module. After registering to it, the API has to generate a new one-use-only 5% discount voucher only for that specific user (Prestashop only allows to assign vouchers to registered users, so I added the 'email_user_unregistered' column to the 'ps_cart_rule' table). When that happens it has to either send and email with it to the specific user or display it inside of the JS modal mox that I've created (it shows up after successfull registration to the newsletter). I've found the functions that can help me accomplish my task: modules\ps_emailsubscription\ps_emailsubscription.php --> getSubscribers() classes\CartRule.php --> add() and others from classes\db as backup But I have no clue on how to call them within themes\PRS01\modules\ps_emailsubscription\views\templates\hook\ps_emailsubscription.tpl, which is where the view part of ps_emailsubscription module is located. What is the syntax? How should I do it? I'm a noob when it comes to OOP, I'm still trying to get used to it. There's the code from ps_emailsubscription.tpl: <div id="newslatter" class="col-sm-12"> <div class="block_newsletter"> <div class="row"> <div class="tt-content col-sm-5"> <h1 class="tt-title">{l s='Subscribe to our newsletter' d='Shop.Theme.Global'}</h1> </div> <div class="block_content col-sm-7"> <form action="{$urls.pages.index}#footer" method="post"> <div class="ttinput_newsletter"> <input class="btn btn-primary float-xs-right hidden-xs-down" name="submitNewsletter" type="submit" value="{l s='Subscribe' d='Shop.Theme.Actions'}" > <input class="btn btn-primary float-xs-right hidden-sm-up" name="submitNewsletter" type="submit" value="{l s='OK' d='Shop.Theme.Actions'}" > <div class="input-wrapper"> <input name="email" type="text" value="{$value}" placeholder="{l s='Enter your Email' d='Shop.Forms.Labels'}" aria-labelledby="block-newsletter-label" > </div> <input type="hidden" name="action" value="0"> <div class="clearfix"></div> </div> <div class="col-xs-12"> {if $conditions} <p class="newsletter-desc">{$conditions}</p> {/if} {if $msg} <p class="alert {if $nw_error}alert-danger{else}alert-success{/if}"> {$msg} <!-- MODAL BOX --> <div id="myModal" class="modal"> <div class="modal-content"> <div class="modal-header"> <span class="close">&times;</span> <h2>Registration successful!</h2> </div> <div class="modal-body"> <p>You've been assigned a 5% voucher!</p> <p>Voucher: CODE<b></b></p> </div> <div class="modal-footer"> <h3> Thanks! </h3> </div> </div> </div> {if $nw_error} {else} <!-- EXECUTES AFTER SUCCESFFUL REGISTRATION TO THE NEWSLETTER --> <script type="text/javascript"> var modal = document.getElementById('myModal'); var span = document.getElementsByClassName("close")[0]; modal.style.display = "block"; span.onclick = function() { modal.style.display = "none"; } window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } </script> <!-- WHERE THE REST OF THE SCRIPT HAS TO BE ADDED (I suppose) --> {/if} </p> {/if} </div> </form> </div> </div> </div> </div> Huge thanks in advance guys!
  4. How can i catch the errors of these functions. When running on the backend you can see if something fails but since php I do not know how I can catch those error messages or that the operation has been a success. function loadProductsPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'productos.csv', 'forceIDs' => '0', 'match_ref' => '1', 'convert' => '', 'entity' => '1', 'separator' => ';', 'multiple_value_separator' => ',', 'iso_lang' => 'es', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'category', 1 => 'name', 2 => 'description_short', 3 => 'reference', 4 => 'ean13', 5 => 'weight', 6 => 'wholesale_price', 7 => 'price_tex', 8 => 'ecotax', 9 => 'manufacturer', 10 => 'image', ), ); } $import = New AdminImportController(); loadProductsPost(); $import->productImport(); //______________________________________CATEGORIAS function loadCategoriesPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'categorias.csv', 'forceIDs' => '1', 'convert' => '', 'entity' => '0', 'separator' => ';', 'multiple_value_separator' => ',', 'iso_lang' => 'es', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'parent', 4 => 'is_root_category', 5 => 'description', 6 => 'meta_title', 7 => 'meta_keywords', 8 => 'meta_description', 9 => 'link_rewrite', 10 => 'image', ), ); } $import = New AdminImportController(); loadCategoriesPost(); $import->categoryImport();
  5. Hi All, I'm a new add-on developer and just getting started. I generated class documentation for the prestashop/classes directory. I would like to share this documentation with the community as I hope to become a valuable member and contributor. You can find Prestashop 1.6.1.4 Class Documentation at http://api.gmp.business/prestashop/ . Anyone that takes a look please feel free to reply with comments and suggestions. Thank you, Jimmy Warren Jr. GMP Domain Technician
  6. Hi All, I'm a new add-on developer and just getting started. I generated class documentation for the prestashop/classes directory. I would like to share this documentation with the community as I hope to become a valuable member and contributor. You can find Prestashop 1.6.1.4 Class Documentation at http://api.gmp.business/prestashop/ . Anyone that takes a look please feel free to reply with comments and suggestions. Thank you, Jimmy Warren Jr. GMP Domain Technician
  7. I have developed a new module for prestashop and it is using dompdf library for generating pdf. When I validate the module then I get some compatibility issues that are pointing to some errors that say: 'Class 'PDFLib' does not exists' 'Function 'pg_query()' does not exists' 'Function 'pg_escape_string()' does not exists' The above errors are coming in various files withing the dompdf library and I do not find a way to fix them. Please help.
  8. Hi there, I am using the default theme to set up my webshop. At the beginnin I see the add to cart function. Customer can add to cart and go to check out. But after a while, on the way I am configure other basic information, when I come back to view my site. The function "Add to cart" disappeared. I do not know why. Can anyone help? Thank a lot!
  9. Hi everyone again, Now i have a simple question, im trying to organize my code in my module, and i want to do my own functions, but no matter how i create and call the functions, is not working. public function __construct() { public function install() { public function unistall() { public function displayForm() { public function myTest() { $output = null; $output .= $this->displayError($this->l('test')); } public function getContent() { $output = null; if (Tools::isSubmit('submit' . $this->name)) { $this->myTest(); $output .= $this->displayError($this->l('test')); ETC ETC. As you can see, i have the normal methods, and my own method called myTets(). In the getContent method, i have the call to my method, folowed by the same line i have in my method. One is showing, the other not. I think i'm not doing anything wrong, just calling the function. Thanks in advance as always!
  10. Prestashop v1.6 finally has a "how to" book that not only covers the basics of running a Prestashop store but also documents all the main methods and functions: http://www.amazon.com/Prestashop-v1-6-Under-Hood-developers-ebook/dp/B00KEDX01O/ref=sr_1_11?ie=UTF8&qid=1400395157&sr=8-11&keywords=prestashop
  11. Hello, There doesn't seem to be any way to assign more than one value to a product feature. I have products that use features like "Suitable for" and those require to have more than one Value assigned. Comma-separating those values isn't a good idea as I won't to enable customers to filter by features (like Suitability) with the help of the Layered Navigation Module. Is there any known workaround for those limitations?
×
×
  • Create New...