Giter Site home page Giter Site logo

newfold-labs / wp-module-global-ctb Goto Github PK

View Code? Open in Web Editor NEW
0.0 10.0 0.0 144 KB

Newfold module for global click to buy functionality in brand plugins

License: GNU General Public License v2.0

JavaScript 64.22% PHP 20.74% CSS 15.05%
press-1 composer php wp

wp-module-global-ctb's Introduction

Newfold Logo

WordPress Global CTB Module

Version Number Lint License

Newfold module for 'Click to Buy' functionality in brand plugins.

Module Responsibilities

  • Detect clicks on elements with a ctb-id attribute if the user has the canAccessGlobalCTB capability.
    • These elements are in the marketplace section, notification banners, and even other plugins.
  • Open a purchase modal window for the specific CTB id.
  • The purchase window shows the same CTB MFE as in the hosting account manager with integrated payment to the hosting account.

Critical Paths

  • A user has the canAccessGlobalCTB capability, a CTB link should open a CTB modal and allow purchase.
  • A user does not have the canAccessGlobalCTB capability, a CTB link should not open a modal but the fallback link should open a new tab.

Installation

1. Add the Newfold Satis to your composer.json.

composer config repositories.newfold composer https://newfold-labs.github.io/satis

2. Require the newfold-labs/wp-module-global-ctb package.

composer require newfold-labs/wp-module-global-ctb

More on Newfold WordPress Modules

wp-module-global-ctb's People

Contributors

circlecube avatar wpalani avatar wpscholar avatar bradp avatar 0averyan avatar

Watchers

 avatar Abhijit Bhatnagar avatar Arnav Chaudhary avatar  avatar Brian Henry avatar  avatar  avatar diOS avatar Chris David Miles avatar Allen Benny 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.