View one-page-checkout-issue_506.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
@media only screen and (min-width: 783px) { | |
.opc-pricing-table-product.product-item.cart:first-child, | |
.opc-pricing-table-product.product-item.cart:nth-child(2) { | |
max-width: 50%; | |
width: 50%; | |
min-height: 186px; | |
} | |
.opc-pricing-table-product.product-item.cart:nth-child(3) { |
View wcs_sign_fee_discount_with_recurring.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_cart_calculate_fees','wcs_sign_fee_discount_with_recurring', 10, 1 ); | |
function wcs_sign_fee_discount_with_recurring( $cart ) { | |
global $product; | |
// set 999 equal to the post ID of the subscription product | |
$product_id = '999'; | |
$product = wc_get_product( $product_id ); |
View subscription-totals-table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* OVERRIDE: Subscription details table | |
* Remove the 'x' option within subscriptions on the My Account page | |
* | |
* @author Prospress / @jrick1229 | |
* @package WooCommerce_Subscription/Templates | |
* @since 1.0.0 - Migrated from WooCommerce Subscriptions v2.6.0 | |
* @version 1.0.0 - Migrated from WooCommerce Subscriptions v2.6.0 | |
*/ |
View catalog_visibility.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM `wp_postmeta` WHERE `meta_key` LIKE '_visibility' AND `meta_value` LIKE 'hidden' |
View wcpb_round_to_nearest_whole_number.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'raw_woocommerce_price', 'wcpb_round_to_nearest_whole_number' ); | |
function wcpb_round_to_nearest_whole_number( $price ){ | |
global $post; | |
$post_ID = $post->ID; | |
$page_id = array('123','345','398','80'); | |
View wcs_updated_log.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wcs_webhook_subscription_updated', 'wcs_updated_log', 999, 1 ); | |
function wcs_updated_log ( $subscription ){ | |
$logger = wc_get_logger(); | |
$logger->info( 'Subscription ID: ' . $subscription . ' was updated! -- ', array( 'source' => 'subscription-updates-2' ) ); | |
} |
View wc_brands_add_brand_name.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Increase `1` on line 7 to move position of brand name | |
*/ | |
add_action( 'woocommerce_single_product_summary', 'wc_brands_add_brand_name', 1 ); | |
function wc_brands_add_brand_name() { | |
global $product; |
View wcs_remove_bulk_actions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_subscription_bulk_actions', '__return_false', 99, 2); |
View wc_product_type_notice_cart.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_before_cart', 'wc_product_type_notice_cart' ); | |
function wc_product_type_notice_cart() { | |
foreach ( WC()->cart->get_cart() as $item ) { | |
$product = wc_get_product( $item['product_id'] ); | |
if( $product->get_type() == 'subscription'){ | |
wc_print_notice( $product->get_name() . " is a SIMPLE-" . strtoupper($product->get_type()) . " product.", 'notice' ); | |
} elseif( ! empty( $item[ 'wcsatt_data'][ 'active_subscription_scheme' ] ) ) { |
NewerOlder