Giter Club home page Giter Club logo

magento2-storeinfo-extra's Introduction

Siteation - Magento 2 Store Info Extra

Packagist Version Supported Magento Versions Hyvä Themes Supported License

Warning

This package has been Abbonded and merged with the v3 of the StoreInfo

This Magento 2 module add the option to show social buttons or more extras with ease.

So you can get the whatsapp number from the Stores > Config. Instead using static block or hard code it in your template directly.

Installation

Install the package via;

composer require siteation/magento2-storeinfo-extra
bin/magento module:enable Siteation_StoreInfoExtra
bin/magento setup:upgrade

Note

This Module require Magento 2.3 or higher! For more requirements see the composer.json.

How to use

By default this module loads nothing.

Use one of the samples to get started.

After this Enter your information in the available options found in Stores > Configuration > General > General > Store Extra information

Adding sample block

Hyva - XML Sample
<referenceContainer name="footer">
    <block
        name="footer.store.socials"
        as="footer-store-socials"
        template="Siteation_StoreInfoExtra::hyva/socials.phtml"
    />
</referenceContainer>

Other options are: coc-number.phtml, whatsapp-button.phtml

Luma - XML Sample
<referenceContainer name="footer">
    <block
        name="footer.store.socials"
        as="footer-store-socials"
        template="Siteation_StoreInfoExtra::luma/socials.phtml"
    >
        <arguments>
            <argument name="viewModelStoreInfo" 
                xsi:type="object">Siteation\StoreInfoExtra\ViewModel\StoreInfoExtra</argument>
        </arguments>
    </block>
</referenceContainer>

Other options are: coc-number.phtml, whatsapp-button.phtml

Extending

Incase you want to add your own fields, you need create your own module, that has at least contains the etc/adminhtml/system.xml file.

In here you can create new fields, just as this module is doing.

Preview

Magento 2 footer with social icons

magento2-storeinfo-extra's People

Contributors

allrude avatar grimlink avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

magento2-storeinfo-extra's Issues

Feature: Split socials from this module

Move the COC number to the core module or make smaller version of this version,
and split the socials from this module.

Also consider adding more social options to the list, like mastodon when moving the code

Add week days as source model

Add a drop-down with week day names instead of a text field in the admin area.

When you add the days, you can highlight Today on the frontend.

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.