Skip to content

Instantly share code, notes, and snippets.

@Lonsdale201
Lonsdale201 / gist:fc843375b9a811255c7de0ff3a4255b6
Last active December 22, 2023 20:43
JetEngine Dynamic Visibility modul - WooCommerce Points and rewards - Equal or greater
// place the code in the child theme functions.php or a custom code snippets plugin.
// Dont forget! This code is for the WooCommerce Points and Rewards plugin, so if it is not installed and activated,
// you will not be able to use this condition!
// https://woo.com/products/woocommerce-points-and-rewards/
// Go to you block, widget container etc, open the Dynamic Visibility modul, and scroll down in the list,
// you will see a new category: Woo Points and Rewards
// this visibility only work for logged-in users. You can use the value field, to define the points.
// example : select the new Current user Equal or greater condition
// in the value field Enter the point amount. This visibility will check if the current user points equal or greater
@Qubadi
Qubadi / gist:48174b21a5a28e93da7737835e31cccf
Last active April 29, 2024 13:45
Custom code for JetFormBuilder, designed to allow users to crop images.
UPDATED :
A new functionality for generating unique filenames for each cropped image
1. I've developed a new custom code for JetFormBuilder, designed to allow users to crop images.
I'm excited to share it with the group, making it accessible to most members here.
2. To begin, you'll need to create four fields: two media fields and two hidden fields. It's convenient to use the same
field names across these, so there's no need to modify the custom code.
@Qubadi
Qubadi / gist:60bfb11df4eab25efc0968bcce771048
Last active January 15, 2024 09:31
Jetformbuilder custom code and DomPDF file for Signature ( Esign )
Jetformbuilder custom code and DomPDF file for Signature ( Esign )
1. Create a Hidden field, and name the field name: signature, and CSS classname : signature-field, save and done.
2. Create your field, and then u dont need to add it to Jetformbuilder content manually, its now dynamicly by using the custom code.
In Content field, u can just add something like that:
Hello,
Thank you for your message. Please find the friends list attached for your reference.
@Qubadi
Qubadi / gist:8a83347e838db08fcd90fe01a5818133
Created November 10, 2023 02:15
Add custom input field CSS ID for menu.
1. Adding a custom input field for the CSS ID in the menu item settings.
2. Saving the CSS ID entered by the user when the menu item is updated.
3. Inserting the saved CSS ID into the menu item's HTML output on the website.
Essentially, it's a way to enhance menu items with custom IDs for more precise styling and interaction handling.
// Add custom fields to menu item
@Crocoblock
Crocoblock / jfb-wc-disable-redirect.php
Last active December 6, 2023 11:55
JetFormBuilder Woo Checkout action disable redirect to checkout
<?php
//add Call Hook as a first action to the form in which redirect should be disabled
//name should be disable-checkout-redirect
add_action( 'jet-form-builder/custom-action/disable-checkout-redirect', function() {
//load cart before adding product to cart
add_action( 'jet-form-builder/action/redirect_to_woo_checkout/before-add', function() {
WC()->cart->get_cart();
@oooh-boi
oooh-boi / gist:5d1f00ee8362292dba0af27700b05d74
Created January 7, 2020 18:51
OoohBoi Video Tutorial : Super-flexible Sections and Columns in Elementor PRO
/* MAGICAL CSS Rule */
selector .elementor-container .elementor-row {
flex-wrap: wrap;
/* uncomment for columns alignment */
/* justify-content: center; */
}
/* Responsive Columns Alignment - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
selector .elementor-container .elementor-row {