Skip to content

Instantly share code, notes, and snippets.

Avatar

SomewhereWarm Support somewherewarm-snippets

  • WooCommerce
  • Athens
View GitHub Profile
View cp-calculate-component-price-based-on-selected-option
<?php
/**
* Plugin Name: WooCommerce Composite Products
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to calculate a components' Relative Price based on the selected option
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Manos Psychogyiopoulos
*
View cp-automatically-select-remaining-variation-in-component
<?php
/**
* Plugin Name: WooCommerce Composite Products
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to automatically select the remaining available variation in a component
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Manos Psychogyiopoulos
*
View gc-set-expiration-date-for-all-store-gift-cards
<?php
/**
* Plugin Name: WooCommerce Gift Cards
* Plugin URI: https://woocommerce.com/products/gift-cards/
* Description: Use this snippet to set a specific expiration date for all gift cards created on your store
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Jason Kytros
*
View apfs-always-calculate-subscription-plan-discount-based-on-regular-price
<?php
/**
* Plugin Name: All Products for WooCommerce Subscriptions - Hide Subscription plans for specific user roles.
* Plugin URI: https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/
* Description: Use this snippet to always calculate Subscription plans discounts based on the Regular product/variation price
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Jason Kytros
*
View apfs-display-price-of-cheapest-plan-in-catalog-price
<?php
/**
* Plugin Name: All Products for WooCommerce Subscriptions - Hide Subscription plans for specific user roles.
* Plugin URI: https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/
* Description: Use this snippet to display the price of the cheapest plan in the catalog price
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Jason Kytros
*
View apfs-hide-subscription-price-from-subscription-plans
<?php
/**
* Plugin Name: All Products for WooCommerce Subscriptions - Hide Subscription plans for specific user roles.
* Plugin URI: https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/
* Description: Use this snippet to hide the subscription price from subscription plans
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Jason Kytros
*
View bis-disable-notify-me-form-specific-products
<?php
/**
* Plugin Name: Back In Stock Notifications
* Plugin URI: https://woocommerce.com/products/back-in-stock-notifications/
* Description: Use this snippet to hide the "Notify Me" form for specific products
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Manos Psychogyiopoulos
*
View cp-hide-total-composite-price-when-configuration-invalid
<?php
/**
* Plugin Name: WooCommerce Composite Products
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to hide the total Composite price when the components configuration is invalid
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Manos Psychogyiopoulos
*
View cp-display-total-string-before-total-composite-price
<?php
/**
* Plugin Name: WooCommerce Composite Products
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to display a "Total" string before total Composite Price
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Manos Psychogyiopoulos
*
View cp-hide-out-of-stock-component-options
<?php
/**
* Plugin Name: WooCommerce Composite Products
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to hide out of stock component options
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Manos Psychogyiopoulos
*