Giter VIP home page Giter VIP logo

logo's Introduction

A product logotype chooser for Magento 2.

How to install

composer require mage2pro/logo:*
bin/magento setup:upgrade
rm -rf pub/static/* && bin/magento setup:static-content:deploy en_US <additional locales, e.g.: de_DE>
rm -rf var/di var/generation generated/code && bin/magento setup:di:compile

If you have some problems while executing these commands, then check the detailed instruction.

Frontend

Backend

You can set logotypes for a product in the «Customizable Options» section of the product's backend page.
If you use configurable products, then set logotypes for the parent product only, not for children.

To control the logotypes appearance you should create 3 product attributes with the following codes:

  • dfe_logo_offset_left
  • dfe_logo_offset_top
  • dfe_logo_scale

These attributes should be text fields:

You should add these attributes to your attribute set:

Then the attributes will be should on your backend product page.
The dfe_logo_offset_left and dfe_logo_offset_top attributes specify the chosen logotype's offset (in percent) relative the top left corner of the main product image. E.g. of the both values has the 50 value, the logotype will be placed in the center of the main product image.
The dfe_logo_scale attibutes specifies the scale factor (in percent) of the chosen logotype. E.g. the 40 value means that the chosen logotype will have 40% of its initial size.

logo's People

Contributors

dmitrii-fediuk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

logo's Issues

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.