Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Variable product add to cart
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/add-to-cart/variable.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@dhilditch
dhilditch / class.yith-wcwl.php
Created July 17, 2019 17:19
Performance improvement for Yith Wishlist by amending yith-woocommerce-wishlist/includes/class.yith-wcwl.php
<?php
/**
* Main class
*
* @author Your Inspiration Themes
* @package YITH WooCommerce Wishlist
* @version 2.0.9
*/
if ( ! defined( 'YITH_WCWL' ) ) {
@dhilditch
dhilditch / hidden contact 7 form
Created September 29, 2014 18:07
Create a hidden Contact 7 Form which is revealed on clicking a button - great for space conscious situations - e.g. place in your sidebar
<div class="requesttour">
<input id="requesttourbutton" type="button" class="button" value="Request a tour">
<div class="hiddenrequestform" id="requesttourhiddenform" style="display:none">
<h3>Request a tour</h3>
<div class="rflabel">
Your name
</div>
<div class="rffield focusbox">
[text* your-name placeholder "Your name"]
</div>