Giter VIP home page Giter VIP logo

jet-engine-dynamic-visibility-woo-user-purchased's Introduction

Introduction

This is a plugin which extends the Crocoblock Jet Engine plugin for Elementor.

It adds support for the Dynamic Visibility functionality to check if the user has purchased a WooCommerce product by entering the product id.

Usage

Install the plugin and activate it.

You need JetEngine and WooCommerce installed as well.

Don't forget that Dynamic Visibility needs to be enabled in JetEngine:

  1. In your admin panel, go to JetEngine > JetEngine to see the JetEngine dashboard
  2. Toggle the "Dynamic Visibility for Widgets and Section" slider.
  3. Hit the “Save” button.

Then you can find it in Advanced > Dynamic Visibility.

Just look under User > User has purchased product.

Enter the product id to check for.

(Check the known issues at the end of this readme before using this plugin)

Changelog

0.5.0 - 21 February 2022

  • Initial release
  • Supports built in wc product purchased check with single product id

Inspiration

This was based on a request in this support ticket:

I used the snippet from here to do the heavy lifting:

And based the plugin structure on these two great starting points:

Known Issues

There are potential issues with this that I haven't investigated fully but did read about during development.

It may be that refunded products are not filtered out with this function:

It may be that this method may seriously slow down your website:

I followed the discussion of this and related support tickets, and it was "solved", but then a bug was found, it was rolled back, and they gave up, so I'm not sure what the current status of this is.

Licence

This plugin is licenced under GPL 3, and is free to use on personal and commercial projects.

Author

Built by Matthew Harris of runthings.dev, copyright 2022.

https://runthings.dev/

jet-engine-dynamic-visibility-woo-user-purchased's People

Contributors

rtpharry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dexit

jet-engine-dynamic-visibility-woo-user-purchased's Issues

Initialize Default product ID

	public function get_custom_controls()
	{
		return array(
			'product_id' => array(
				'label' => esc_html__( 'Product Id', 'rtp-woo-user-purchased' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => '',
				'description' => __('WooCommerce product id', 'rtp-woo-user-purchased'),
			),
		);
	}
Can it be possible to set the `default ` product ID from the current product ID (single-product)

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.