PrestaShop-moduulin HTML-lohko – työkalu minkä tahansa koodin (html, JavaScript, CSS jne.) lisäämiseen käyttäjän valitsemiin paikkoihin. Yli 20 hakemistoa tuettuna – voit lisätä koodisi minne tahansa. Moduuli tukee mitä tahansa asiakaspuolen koodia kuten html, html5, css2, css3, javascript, jquery jne. HTML-lohkon avulla voit lisätä skriptejä, laajennuksia ja paljon muuta!
Haluatko lisätä kuvia, tekstejä, HTML:ää, JS:ää, CSS:ää johonkin paikkaan kaupassasi? Tällä moduulilla voit tehdä sen muutamassa sekunnissa. Tämä upea lisäosa on monitoiminen työkalu kaikenlaisen asiakaspuolen koodin lisäämiseen minne tahansa kauppasi etupuolelle. Voit luoda omia lohkia tekstillä, kuvilla tai widgeteillä kuten facebookin tykkäyslaatikko, twitter, pinterest jne. Koodin lisäämisen prosessi on helppo ja jokainen voi tehdä sen käyttäjäystävällisellä asetuksella.
Mahdollisuus käyttää muuttujia
Mahtava ja ihastuttava ominaisuus moduulissa on mahdollisuus käyttää muuttujia. Muuttujat korvataan arvolla. Tämä on erinomainen työkalu seuranta- ja koodien rakentamiseen. Varsinkin ulkoisille verkkosivustoille. Alla näet esimerkkejä saatavilla olevista muuttujista moduulissa. Tulevat versiot sisältävät lisää muuttujia!
Muuttuja | Kuvaus | Näyttöohjeet |
{smartyTemplate:XXX} | Tämä shortcode mahdollistaa .tpl-tiedoston sisällön lisäämisen (smarty-koodilla) – missä XXX on smarty-mallin nimi, jonka olet luonut tämän moduulin mukana toimitettavalla smarty-mallien hallinnalla | Muuttuja on käytettävissä globaalisti |
{current_url} | Tämä muuttuja korvataan nykyisen sivun koko URL-osoitteella | Muuttuja on käytettävissä globaalisti |
{currency_iso} | Tämä muuttuja korvataan valuutan ISO-koodilla (esim. USD, EUR, PLN, GBP jne.) | Muuttuja on käytettävissä globaalisti |
{id_customer} | Jos käytät tätä muuttujaa, moduuli korvaa sen asiakkaan ID:llä, joka on kirjautuneena sisään kauppaan | Muuttuja korvataan vain, jos asiakas on kirjautuneena sisään kauppaan |
{email_customer} | Jos käytät tätä muuttujaa, moduuli korvaa sen asiakkaan sähköpostiosoitteella, joka on kirjautuneena sisään | |
{customer_firstname} | Jos käytät tätä muuttujaa, moduuli korvaa sen kirjautuneen asiakkaan etunimellä | |
{customer_lastname} | Jos käytät tätä muuttujaa, moduuli korvaa sen kirjautuneen asiakkaan sukunimellä | |
{id_category} | Jos käytät tätä muuttujaa, moduuli korvaa sen asiakkaan selaaman kategorian ID:llä | Muuttuja korvataan vain, jos asiakas selaa kategoriasivua kaupassasi |
{name_category} | Jos käytät tätä muuttujaa, moduuli korvaa sen asiakkaan selaaman kategorian nimellä | |
{path_array_category} |
Jos käytät tätä muuttujaa, moduuli korvaa sen kategorian pääkategorioiden polulla, esim: 'koti', 'nainen', 'mekot', 'rento mekko' |
|
{HOOK:hook_name} |
Voit käyttää tätä shortcodea näyttämään koukun sisältöä tämän moduulin luomassa laatikossa. Esim.: {HOOK:leftColumn}, {HOOK:rightColumn}, {HOOK:footer}, {HOOK:displayTop} jne. |
Voit käyttää shortcodea näyttämään koukun sisältöä missä tahansa |
{HOOK:(1):(2)} |
Ominaisuus, jolla voit suorittaa valitun moduulin koukusta, jossa (1) on koukun nimi ja (2) on moduulin nimi, esim.: {HOOK:displayProductFooter:productcomments} |
Voit käyttää sitä kaikkialla |
{id_product} |
Tämä muuttuja korvataan nykyisen katsellun tuotteen ID:llä (tuotesivulla) |
Muuttujat ovat käytettävissä tuotteen sivulla ja tuotesivun listassa (koukku suoritetaan tuotteen ID-parametrillä) |
{id_product_attribute} |
Tämä muuttuja korvataan tuotteen attribuutin ID:llä (jos määritelty) |
|
{product_name} |
Tämä muuttuja korvataan tuotteen koko nimellä |
|
{product_ean13} |
Tämä muuttuja korvataan tuotteen EAN13-koodilla |
|
{product_isbn} | Tämä muuttuja korvataan tuotteen ISBN-koodilla | |
{manufacturer_name} |
Tämä muuttuja korvataan tuotteen valmistajan nimellä |
|
{product_price_tax_incl} |
Tuotteen hinta – verot sisältäen |
Muuttujat ovat käytettävissä tuotteen sivulla ja tuotesivun listassa (koukku suoritetaan tuotteen ID-parametrillä) |
{product_price_tax_incl_no_currency} |
Tuotteen hinta – verot sisältäen – ilman valuuttasymbolia |
|
{product_price_tax_excl} | Tuotteen hinta – verot pois | |
{product_price_tax_excl_no_currency} | Tuotteen hinta – verot pois – ilman valuuttasymbolia | |
{product_price_tax_incl*X} | Tuotteen hinta (verollinen tai veroton) kerrottuna X:llä (esim. 1,5,10, 2.5, 0.22 jne.) | |
{product_price_tax_excl*X} | ||
{cart_products_id} |
Tämä muuttuja korvataan listalla tuotteiden ID-numeroita, jotka ovat tällä hetkellä ostoskorissa |
Nämä muuttujat ovat käytettävissä yleisesti, mutta vain jos ostoskorissa on tuotteita. Jos ostoskori on tyhjä – moduuli ei palauta arvoja. |
{cart_total} |
Tämä muuttuja korvataan ostoskorin kokonaissummalla (ilman valuuttamerkkiä – pelkkä kokonaisluku) |
|
{cart_total_with_currency} |
Tämä muuttuja korvataan ostoskorin kokonaissummalla valuuttamerkillä |
|
{order_id} |
Tämä muuttuja korvataan tehtävän tilauksen ID:llä. |
Voit käyttää tätä shortcodea / muuttujaa tilauksen vahvistussivulla (kun asiakas tekee tilauksen ja kauppa vahvistaa sen) |
{order_currency_iso_code} |
Tämä muuttuja korvataan asiakkaan käyttämän valuutan ISO-koodilla |
|
{order_total_paid} |
Tämä muuttuja korvataan asiakkaan maksamalla tilauksen kokonaissummalla |
|
{order_total_paid_tax_incl} |
Tämä muuttuja korvataan asiakkaan maksamalla tilauksen kokonaissummalla, sisältäen verot |
|
{order_total_paid_tax_excl} | Tämä muuttuja korvataan asiakkaan maksamalla tilauksen kokonaissummalla, ilman veroja | |
{order_total_products_tax_included} | Tämä muuttuja korvataan tilauksen tuotteiden kokonaissummalla, sisältäen verot | |
{order_total_products_tax_excluded} | Tämä muuttuja korvataan tilauksen tuotteiden kokonaissummalla, ilman maksettuja veroja | |
{order_products_id} | Tämä muuttuja korvataan listalla tuotteiden ID-numeroita, jotka asiakas osti (käytännöllinen Facebook-pikselin content_ids-parametrissä) |
Esimerkkejä moduulin käytöstä
HTML-laatikon Pro-versio ominaisuudet:
Ominaisuudet ja toiminnot |
|
|
kuinka monta erilaista paikkaa voi käyttää? |
Rajoittamaton |
|
kuinka monta erilaista koodia voi käyttää |
Rajoittamaton |
|
WYSIWYG-editori | ||
Smarty-mallipohjien editori | ||
Monikielinen tuki | ||
Saatavilla olevat paikat (koukut) | 20+ | |
Supports custom hooks | ||
Kuinka monta mukautettua koukkua moduuli voi käsitellä? | Rajoittamaton | |
Lyhytkoodi {htmlboxpro:XX} CMS-sivuilla html-lohkojen sisällön näyttämiseen (käyttäen meidän ilmaisia CMS-tuotteiden moduuleja ) |
||
Näytä lohko "Vain kirjautuneille" | ||
Näytä lohko "Vain ei kirjautuneille" | ||
Näytä lohko "Kaikille käyttäjille" | ||
Näytä lohko vain SSL-sertifikaatin kanssa suojatuilla sivuilla | ||
Näytä vain etusivulla | ||
Näytä vain tietyillä tuotossivuilla | ||
Älä näytä lohkoa tietyillä tuotesivuilla | ||
Näytä lohko tietyn tuotteen arvoa suuremmalla tai yhtä suurella hinnalla | ||
Näytä lohko tuotteen arvon ollessa suurempi tai yhtä suuri kuin määritelty arvo | ||
Näytä lohko tuotteen arvon ollessa pienempi tai yhtä suuri kuin määritelty arvo | ||
Näytä lohko tuotteen arvon ollessa pienempi tai yhtä suuri kuin määritelty arvo | ||
Näytä lohko vain, jos tuote on loppuunmyyty tai varastossa (sekä tuotesivulla että listassa) | ||
Näytä lohko vain, jos tuote liittyy valittuihin kategorioihin | ||
Näytä lohko vain, jos tuote liittyy valittuun valmistajaan | ||
Näytä lohko vain, jos tuote liittyy valittuun toimittajaan | ||
Näytä lohko vain tietyillä CMS-sivuilla (voit määrittää CMS-sivut) | ||
Näytä lohko vain valituilla CMS-kategorioilla | ||
Näytä lohko vain tietyillä valmistajasivuilla | ||
Näytä lohko vain valituilla kategoriasivuilla | ||
Poissulje lohko valituista kategoriasivuista | ||
Näytä lohko, kun joku hakee määriteltyä fraasia | ||
Mahdollisuus piilottaa lohko valituista asiakasryhmistä | ||
Näytä lohko vain valitulla URL-osoitteella | ||
Mahdollisuus näyttää lohko vain valitulle asiakasryhmälle | ||
Mahdollisuus käyttää muuttujia – esim. {id_customer} jne. | ||
Näytä lohko, kun vierailija etsii jotain | ||
Näytä lohko vain valitulla aikavälillä | ||
Näytä lohko valitulla päivällä, kuten maanantai, lauantai, sunnuntai jne. | ||
Näytä sisältö vain, jos kauppaa selaillaan valitussa valuutassa | ||
Näytä sisältö vain, jos toimitusosoite osoittaa valittuun maahan | ||
Näytä sisältö vain, jos vierailija on valitusta maasta (maantieteellisen sijainnin perusteella) | ||
Näytä lohko vain tietyllä ajalla (klo välissä, lähtien, päättyen) |
||
Lisää / poista useita lohkoja yhdellä paikalla (hook) | ||
Aktivoi / deaktivoi lohko koukussa | ||
Näytä / piilota lohko mobiililaitteella | ||
Näytä / piilota lohko tablettilaitteella | ||
Näytä / piilota lohko PC-laitteella | ||
Mahdollisuus muuttaa lohkojen sijaintia koukussa | ||
Koukkujen sanasto ja kuvaus | ||
Online-tuki | ||
Yleiset moduulin asetukset | ||
Mahdollisuus poistaa TinyMCE-editori käytöstä | ||
Mahdollisuus käyttää laajennettua editoria tinymce pro | ||
Mahdollisuus estää URLien poistaminen koodista | ||
Saatavilla olevat paikat (koukut) käytettäväksi | ||
Etukäytävä Header | ||
Etukäytävä Top | ||
Etukäytävä Vasemmanpuoleinen sarake | ||
Etukäytävä Oikea sarake | ||
Etukäytävä Alatunniste | ||
Etukäytävä Etusivu (koti) | ||
Etukäytävä Tuotesivu Lisävasen | ||
Etukäytävä Tuotesivu Lisäoikea | ||
Etukäytävä Tuotesivu Toiminnot | ||
Etukäytävä Tuotesivu Loppu varastosta | ||
Etukäytävä Tuotteen alatunniste | ||
Etukäytävä Tuotteen välilehti | ||
Etukäytävä Tuotteen välilehden sisältö | ||
Etukäytävä Tilaus Lisäkuljetin | ||
Etukäytävä Ennen kuljetinta | ||
Etukäytävä Maksu | ||
Etukäytävä Maksun palautus | ||
Etukäytävä Yläosan maksu | ||
Etukäytävä Ostoskori | ||
Etukäytävä Ostoskori Lisä | ||
Etukäytävä Käyttäjän Oma Tili -lohko | ||
Etukäytävä Asiakastili | ||
Etukäytävä Luo Tili -yläosa | ||
Etukäytävä Luo Tili -lomake |
3.9.9.6
- added improvements to installation and update process to update database correctly
3.9.9.5
3.9.9.4
3.9.9.3
3.9.9.2
3.9.9.1
3.9.9
3.9.8
3.9.7
3.9.6
3.9.5
3.9.4
3.9.3
3.9.2
3.9.1
3.9.0
3.8.9
3.8.8
3.8.7
3.8.6
3.8.5
3.8.4
3.8.3
3.8.2
3.8.1
3.8.0
3.7.9
3.7.8
3.7.7
3.7.6
3.7.5
3.7.4
3.7.3
3.7.2
3.7.1
3.7.0
3.6.9
3.6.8
3.6.7
3.6.6
3.6.5
3.6.4
3.6.3
- added new variables {order_total_paid_tax_incl} and {order_total_paid_tax_excl} to orderConfirmation hook
3.6.2
- added improvements to apperance of blocks for customer groups
3.6.1
- added improvements to module usage in multistore environments - from now each block can be used "in all shops"
- added css styles improvements to avoid css conflicts with other modules used in shop's back office
- added possibility to duplicate block created in custom hook
- added improvements to "search" tool that explains how to use the search feature
3.6.0
- added improvements to appearance of the blocks for selected cms pages, cms category pages, manufacturer pages
3.5.9
- added improvements to variables feature, from now you can use new variables on product pages and for products (on list of products): {product_ean13} + {product_isbn}
3.5.8
- added improvements to save process of customer's groups selection (if you want to show block for selected groups of customers only)
3.5.7
- added new variable {manufacturer_name} - it will be replaced with name of product's manufacturer
- added improvements to translations, added missing italian translations
3.5.6
- added improvements to groups selection (to show block only for customers that are associated with selected groups of customers). From now you can select many groups, not only one group.
- this version of the module requires reinstallation
3.5.5
- added improvements that fixes notifications about missing index "theme_css_dir" on module configuration page under the "global settings" tab
3.5.4
- added new feature to show contents only if shop is browsed in defined currency
- this version of the module requires its reinstallation in shop's back office
3.5.3
- added fixes to smarty templates editor, there was a problem with feature usage in new prestashop 1.7.6.2
3.5.2
- added improvements to module code in template files (html.tpl)
3.5.1
- added improvements to appearance of module's editor - added missing icons
3.5.0
- added improvements to rich text editor in prestashop 1.7.6.x
3.4.9
- added improvements to search tool included to the module
- now you can easily see the name of selected items (instead just ID)
- now you can also easily remove the item
3.4.8
- added improvements to spanish translations
3.4.7
- added improvements to module usage in prestashop 1.7.6.x
3.4.6
- added feature to find products, manufacturers, categories, cms pages, cms page categories
- added improvements to module's updates checker feature
3.4.5
- added feature to display block on selected day type like Saturday, Monday, Friday etc.
- this version of the module requires reinstallation of an addon
3.4.4
- added fix to white page in prestashop 1.7.x when you try to reach the module configuration page
3.4.3
- added missing translations
3.4.2
- added improvements to smarty template editor feature
3.4.2
- added missing translations
3.4.1
- added feature to exclude block with contents from selected category pages
- added feature to exclude block with contents from selected product pages
- this version of the module requires reinstallation
3.4.0
- added feature to switch the shop where the created block will appear. Useful for multistore shops
3.3.9
- added improvements to module usage in prestashop 1.7.x
3.3.8
- added new feature to display block on product page (or on list of products near each product) that is worth more (or equal) than defined amount
- added new feature to display block on product page (or on list of products near each product) that is worth less (or equal) than defined value
- module automatically calculates min / max values to other currencies based on prestashop's currency exchange rates
3.3.7
- added feature to show / hide block on mobile devices
- added feature to show / hide block on tablet devices
- added feature to show / hide block on PC devices
- new version of the module requires reinstallation
3.3.6
- added improvements to recently added feature to identify stock
- module to check stock verifies if viewed is a combination, and if so - it gets information about combination stock
3.3.5
- added feature to display block only if viewed product (product page or on list of products) is in stock
3.3.4
- added two new variables to use in contents of the boxes,
- {customer_firstname} - variable will be replaced with first name of the logged customer
- {customer_lastname} - variable will be replaced with last name of the logged customer
3.3.3
- added new feature to module - smarty templates manager
- from now - with this module - you can create smarty template files and then include them to boxes with special shortcode
- the shortcode is {smartyTemplate:XXX} where XXX is the name of the template created with "smarty templates manager" tool
3.3.2
- added minor code optimization
- changed installation function of tables in database, it has less code now than before
3.3.1
- added new variables to use: {product_price_tax_incl_no_currency} and {product_price_tax_excl_no_currency}
{product_price_tax_excl_no_currency} - displays product price tax excluded but without currency symbol like: 32.90
{product_price_tax_incl_no_currency} - displays product price tax included but without currency symbol like: 28.00
3.3.0
- removed custom hook acidentally included to module package with recent module upgrade
3.2.9
- added improvements to feature that displays module on selected URL
- function that returns url of viewed page returns it in a proper way now (with 'www' if website uses it)
3.2.8
- added feature to display block only if viewed product is out of stock
- added new variable to use {product_name}
3.2.7
- added feature that allows to display block with contents from, to, between selectd hours, minutes and seconds :)
- example of usage: you can display block from 8:00 AM
- example of usage: you can display block to 10:00 PM
- example of usage: you can display block from 8:00 AM to 10:00 PM
- this version of module requires reinstallation (no worries, module will remember everything)
3.2.6
- added {id_product_attribute} variable to product pages
3.2.5
- added improvements to previously added feature to display product price,
- it can be used on product page too
3.2.4
- added new variables to use for hooks executed on list of products
{product_price_tax_excl}
{product_price_tax_incl}
{product_price_tax_excl*X}
- where x is a number (it will be a math calculation)
{product_price_tax_incl*X}
- where x is a number (it will be a math calculation)
3.2.3
- added improvements to module appearance on product page in prestashop 1.7.x
- in some situations when you will change the attribute or increase / decrease quantity field the hooks contents are duplicated
- to prevent this - from 3.2.2 version module configuration page has new option, when you will enable it - prestashop will not duplicate contents
3.2.2
- added improvements to save process of tags
3.2.1
- added improvements to extended tinymce editor
3.2.0
- added improvements to custom hooks visibility "on product pages associated with categories" and "on selected product pages"
- now when you want to show blocks on list of products - these blocks will not appear on all thumbs on product pages (if you show some kind of "related" products there)
3.1.9
- added improvements to module visibility on product pages. Now you can display blocks on all product pages (not only on selected poduct pages)
3.1.8
- added missed translation files
3.1.7
- added improvements to extended editor to support ‹div› elements inside ‹a› elements
3.1.6
- added improvements to hook execution process (shortcode to run hook or other modules in hook)
3.1.5
- added support of new hooks displayLeftColumnProduct and displayRightColumnProduct
- improved workflow of feature to show contents for logged / unlogged customers
3.1.4
- improved rich text editor, it supports "" tag properly, so you can include your css file well
3.1.3
- updated save process of groups (if you want to show block only for selected groups of customers)
3.1.2
- updated internal rich text editor, added better support of some not frequently used html tags
3.1.1
- updated the way of how module generates internal modules' rich text editor
3.1.0
- added new feature to run specific module from selected hook inside html box pro block
- you can specify hook name and module that you want to run, for example: {HOOK:displayFooterProduct:productcomments}
3.0.9
- added improvements to feature to display blocks on: homepage only, cms pages, category pages, product pages
3.0.8
- added feature to display block on product pages associated with selected suppliers
- new version of the module requires reinstallation of the plugin
3.0.7
- added fixes to module workflow in PHP 5.6.x related to identification of arrays / objects
3.0.6
- added some minor design improvements to management page (tooltips)
- added new feature to change position of block any time you want
- added new feature to duplicate block
3.0.5
- regenerated default hook functions in the module to make it work properly with some positions like:
- displayFooterProduct
- displayProductTab
- displayProductTabContents
- displayRightColumn
3.0.4
- added fixes to save blok with option "display on homepage only"
3.0.3
- added improvements to save process of blocks
- now you can save special characters properly
- module escaping code before it will be added to database
3.0.2
- added improvements to module design when multistore is active,
3.0.1
- removed support of hook displayPaymentEu in prestashop 1.7.x because this module is not a payment module
3.0.0
- this is milestone update
- changed the design of the module to support prestashop standards
- redesigned the module code and its workflow
- added support of missed default hooks for PrestaShop 1.6 and 1.7
- improvements to display block while users serach for something (you can use many keywords now)
- improvements to display block for selected urls (now you can define many urls)
- released separated .zip libraries for PrestaShop 1.6 / 1.7
2.8.7
- added new variable to use {current_url}
2.8.6
- added fixes related to language
2.8.5
- added feature to decide what kind of rich text editor module will use
- module can use internal prestashop's editor and also editor delivered with module
- module can support also extended rich text editor module tinymce pro
- updated feature that allows to check if new version of module is available
2.8.4
- improved variables feature, now if variable does not exist - it just disappears
- added new variables, list of them: {order_products_id} {currency_iso} {cart_products_id} {cart_total} {cart_total_with_currency} {id_product}
2.8.3
- added fixes to recently released version of the prestashop 1.6.1.9
- added full support of PrestaShop 1.7.x
2.8.2
- possibility to use module on selected cms category pages only
- added feature to display module only on order confirmation page
2.8.1
- added new variables that are available on order confirmation pages
- these variables are {order_id}, {order_currency_iso_code}, {order_total_paid}, {order_total_products_tax_included}, {order_total_products_tax_excluded},
2.8.0
- new feature that allows to run hook inside selected box created with this module
- you can use now shortcode like {HOOK:hook_name} and module will replace this short code with hook contents
- for example to display right column contents use: {HOOK:rightColumn}, to display footer contents use {HOOK:footer}
- you can run unlimited number of hooks inside one box created with html box pro
2.7.9.5
- added improcements to feature that allows to display contents for selected products only.
- before it was possible to display contents on product pages only
- now you can also display contents on list of products - for selected products only
2.7.9.4
- added fixes related to blocks appearance on selected urls
- on one step checkout prestashop loads contents "in background" with ajax queries. In some cases html box pro contents in places (positions) like shoppingCartExtra werent executed. Now they are :-)
2.7.9.3
- added fixes to blocks save process in PrestaShop 1.5.x and 1.4.x
2.7.9.2
- added fixes to recent feature that accidentally displays "a" letter after / before the block
2.7.9.1
- improved updates checker system
- added option to enable / disable automatic updates checker system
- added feature to check if module is up to dated, or not (from module configuration page)
2.7.9
- added feature to display block only if viewed product is associated with selected manufacturer
2.7.8.1
- PHP7 support fixes
2.7.8
added possibility to use variables, module will replace variables with some informations. At the moment, available variables are:
{id_customer} - id of customer that is logged to the shop (if logged)
{email_customer} - email of customer that is logged to the shop (if logged)
{id_category} - id of category that customer browse (category page)
{name_category} - name of category that customer browse (category page)
{path_array_category} - array with category names, for example: 'Home', 'Women', 'Dresses', 'Casual dresses'
future releases of the module will have more variables
2.7.7
added French translations improvements
2.7.6
added fixes for "notification" appearance while shop owners configure the module
2.7.5
better module installation process
2.7.4
fixes for regeneration process of new hooks
2.7.3
fixes for tinymce rich text editor
2.7.2
added fixes to new feature to define blocks for search pages
2.7.1
new feature in module to create blocks that will appear only if someone will search for selected phrases
2.7.0
fixes related to appearance of blocks for selected customer groups
2.6.9
added fixes related to additonal languages that you added after module installation. Now module should update the blocks properly
2.6.8
rozpoczęcie logowania zmian w module za pomocą changelog'a
poprawki do formularza tworzenia nowych hooków