I really need this also. Anyone figure this out?
Bam!
Some dude wrote this and it worked! Case closed!
add_action('wp_head','add_to_cart_script');
function add_to_cart_script(){
if(is_product()){
wp_enqueue_script('wc-add-to-cart-variation');
}
}
I don’t think it will work for my situation as I’m using a yootheme with warp. My index.php page just calls:
// get warp
$warp = Warp::getInstance();
// load main template file, located in /layouts/template.php
echo $warp['template']->render('template');
and after that I’m freakin’ lost.
I tried to add it to my “Single Post” page but it didn’t do anything for me so I’m assuming that’s not the place to add it.
Beyond that I’m stumped.
That’s awesome you are fixing it.. Any clue on a release date?