Code Monkey home page Code Monkey logo

everblock's Introduction

Ever PS Block for Prestashop

HTML module for Prestashop, hooks everywhere on your shop

Prestashop administrators can create HTML blocks hooked to any available display hook on shop. Works on Prestashop 1.7 and Prestashop 8 (recommanded)

https://www.team-ever.com/prestashop-module-bloc-editeur-html-illimite-shortcode/

Prestashop free HTML block module

This free module allows you to create illimited HTML blocks on your shop

You can make a donation to support the development of free modules by clicking on this link

Prestashop 1.7 & 8 hooks

Dev documentation show every native Prestashop hook : Prestashop 1.7 hook list Please check ps_hook table on your database to see every available hook on your shop. Only display hooks are used with this module

Prestashop 1.6

The module having greatly evolved, it is no longer compatible with Prestashop 1.6 in favor of Prestashop 8 Please update your store to benefit from the new features and advantages of the latest version of the EverBlock HTML block module.

Pretty Blocks compatibility

This module is now compatible with the Pretty Blocks page builder. Find this free module here.

Documentation (French only)

Available at https://www.team-ever.com/prestashop-utilisation-du-module-ever-block-html/

Smarty Variables

  • $currency.name: The name of the currency (euro, dollar, pound sterling, etc.).
  • $currency.iso_code: The ISO code of the currency (like EUR for the euro).
  • $currency.sign: The acronym of the currency displayed (e.g., € or $).
  • $currency.iso_code_num: The ISO code number of this currency (like 978 for the euro).
  • $shop.name: Shop name.
  • $shop.email: Email associated with the store.
  • $shop.logo: Logo of the store (can be found in “Appearance” then “Theme and logo”).
  • $shop.favicon: The favicon of your store (also in the same place as the logos and the theme).
  • $shop.phone: Phone number of your store.
  • $shop.fax: Fax number of your store.
  • $customer.lastname: The last name of the connected customer.
  • $customer.firstname: The first name of the connected customer.
  • $customer.email: The customer's email address.
  • $customer.birthday: Date of birth of the customer (no longer mandatory).
  • $customer.newsletter: Whether the customer is subscribed to the newsletter (boolean).
  • $customer.ip_registration_newsletter: Newsletter registration IP address.
  • $customer.optin: Whether the customer has agreed to receive offers from partners (yes or no).
  • $customer.date_add: Customer creation date.
  • $customer.date_upd: Customer last modified date.
  • $customer.id: Customer identifier (database ID).
  • $customer.id_default_group: Identifier of the default customer group of this customer.
  • $customer.is_logged: Is the customer logged in?
  • $page.meta.title: Title tag of your page (maximum 65 characters).
  • $page.meta.description: Meta description tag of your page (between 90 and 165 characters).
  • $page.page_name: Name of the page you are on (e.g., index, product, category, etc.).
  • $urls.base_url: URL of the home page of your PrestaShop.
  • $urls.current_url: The current page's URL.
  • $urls.shop_domain_url: The domain name of the store.
  • $urls.img_ps_url: URL of the /img directory of your PrestaShop.
  • $urls.img_cat_url: URL of the category images (e.g., /img/c).
  • $urls.img_lang_url: URL of the site’s language images.
  • $urls.img_prod_url: URL of the product images (e.g., /img/p).
  • $urls.img_manu_url: URL of the manufacturers' images (e.g., /img/m).
  • $urls.img_sup_url: URL of the images linked to the suppliers.
  • $urls.img_ship_url: URL of images linked to carriers.
  • $urls.img_store_url: URL of your store's images.
  • $urls.img_url: URL of the images in your theme (e.g., /themes/yourtheme/assets/img).
  • $urls.css_url: URL of your theme's CSS files (e.g., /themes/yourtheme/assets/css).
  • $urls.js_url: URL of your theme's JavaScript files (e.g., /themes/yourtheme/assets/js).
  • $urls.pic_url: URL of the /upload directory.

Shortcodes

  • [product 1]: Display product with ID 1.
  • [product 1,2,3]: Display products with IDs 1, 2, and 3.
  • [entity_lastname]: Display customer's last name.
  • [entity_firstname]: Display customer's first name.
  • [entity_gender]: Display customer's gender.
  • [start_cart_link]: Generate a link to start the cart page.
  • [end_cart_link]: Generate a link to end the cart page.
  • [start_shop_link]: Generate a link to start the shop.
  • [end_shop_link]: Generate a link to end the shop.
  • [start_contact_link]: Generate a link to start the native contact page.
  • [end_contact_link]: Generate a link to end the native contact page.
  • [llorem]: Generate fake text.
  • [shop_url]: Display the shop's URL.
  • [shop_name]: Display the shop's name.
  • [theme_uri]: Display the current theme's URL.
  • [category id="8" nb="8"]: Display 8 products from category with ID 8.
  • [manufacturer id="2" nb="8"]: Display 8 products from manufacturer with ID 2.
  • [brands nb="8"]: Display 8 brand names with their associated logos.
  • [storelocator]: Show a store locator on any CMS page.
  • [subcategories id="2" nb="8"]: Display 8 subcategories (name, image, and link) of category 2.
  • [last-products 4]: Display the last 4 products listed in the store.
  • [best-sales 4]: Display the 4 best-selling products in your store.
  • [evercart]: Display dropdown cart.
  • [evercontact]: Display PrestaShop native contact form.
  • [everstore 4]: Display store information id 1.
  • [video https://www.youtube.com/embed/35kwlY_RR08?si=QfwsUt9sEukni0Gj]: Display a YouTube iframe of the video whose sharing URL is in the parameter (may also works with Vimeo, Dailymotion, and Vidyard).

everblock's People

Contributors

cyssoo avatar rompiot avatar vmulot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.