cs.pt.fs
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Adding AttributeI looked this up on the forums and I was able to add my variations/attributes. But now the Add to Cart option does not show. Visible on Product page is enabled and prices set for each variation. Type set to variable.
I found this resolution on the forums also:
function mv_my_theme_scripts()
{
wp_enqueue_script(‘add-to-cart-variation’, get_template_directory_uri() . ‘/js/add-to-cart-variation.js’,array(‘jquery’),’1.0′,true);
}
add_action(‘wp_enqueue_scripts’,’mv_my_theme_scripts’);
?>But do I add this to function.php and thats it? How do I upload the add-to-cart-variation.js to the js files?
function mv_my_theme_scripts()
{
wp_enqueue_script(‘add-to-cart-variation’, get_template_directory_uri() . ‘/js/add-to-cart-variation.js’,array(‘jquery’),’1.0′,true);
}
add_action(‘wp_enqueue_scripts’,’mv_my_theme_scripts’);
?>So you add the above to the function.php?
Can someone explain how to upload the add-to-cart-variation.js ?
Thank you!
Forum: Plugins
In reply to: Help pleaseOh sorry about that – I am referring to Woo Commerce plugin. I thought that was the section I was in