Ive been searching for hours but cant figure this one out. Ive been trying to add product variations to a single product in my range but when using this option the variation price and order button does not appear.
You can see what im talking about here http://www.vetnetsupplies.com/staging/shop/profender-spot-on-allwormer-for-cats/
Rob
|
|
Hi,
We will need the admin access, so we can check.
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|
Please find details below
|
|
Hello,
Sorry for the late reply but we were on holiday last days.
Your problem is that you have missing plugin file:
"NetworkError: 404 Not Found - http://www.vetnetsupplies.com/staging/wp-content/plugins/woocommerce/js/frontend/add-to-cart-variation.js?ver=1.0"
Best,
ThemeBurn team
|
|
Hi, The javascript file is not located under the link you provided as follows
http://www.vetnetsupplies.com/staging/wp-content/plugins/woocommerce/js/frontend/add-to-cart-variation.js?ver=1.0
It is found under here
http://www.vetnetsupplies.com/staging/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js?ver=1.0
Theme must be calling it from the wrong folder. If so how to fix this??
|
|
Got it working but the code is visible right at the top of the page. See here: http://www.vetnetsupplies.com/staging/shop/profender-spot-on-allwormer-for-cats/
I added the following 2 bits of code to the theme functions.php file and the button appeared and the variation price worked
——————————–
function mv_my_theme_scripts()
{
wp_enqueue_script(‘add-to-cart-variation’, plugins_url() . ‘/woocommerce/js/frontend/add-to-cart-variation.js’,array(‘jquery’),’1.0′,true);
}
add_action(‘wp_enqueue_scripts’,'mv_my_theme_scripts’);
?>
add_action(‘wp_head’,'add_to_cart_script’);
function add_to_cart_script(){
if(is_product()){
wp_enqueue_script(‘wc-add-to-cart-variation’);
}
}
——————————–
The only problem now is I have the following code visible right at the top of the page
add_action(‘wp_head’,'add_to_cart_script’); function add_to_cart_script(){ if(is_product()){ wp_enqueue_script(‘wc-add-to-cart-variation’); } }
|
|
Hello,
Theme is not calling this JS file it is from the Woocommerce plugin. The easiest way will be just to move the file or ask Woocommerce support what it is loading it from different folder.
Best,
ThemeBurn team
|
|
I did what you said and placed the js in the missing location and it still doesnt work
http://www.vetnetsupplies.com/staging/wp-content/plugins/woocommerce/js/frontend/add-to-cart-variation.js?ver=1.0
I setup an account with woocommerce but cannot access support or contact without paying them money… stuck in mud!
|
|
Hello,
Can you please put your custom functions back and send us your ftp access so we can check why it display this code.
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|
Great thanks. Ive put back the custom code and the details are as follows
|
|
After putting the functions.php file back up I now get the following error where it was working before. Did you guys make some changes or currently working on the site?
Parse error: syntax error, unexpected T_DNUMBER in /home/vetnetsu/public_html/staging/wp-content/themes/shoppica/functions.php on line 700
|
|
Hello,
We didnt change anything yet.
Best,
ThemeBurn team
|
|
Please check now, I’m clueless to why this isn’t working.
Ive been looking at this post and some people seemed to have it working but Ive tried the placement of the code to the functions.php but no good
http://wordpress.org/support/topic/plugin-woocommerce-excelling-ecommerce-checkout-button-not-showing-on-woo-commerce-product/page/2
|
|
How did you go? Any clues on how to get rid of the code that visible at the top?
add_action(‘wp_head’,’add_to_cart_script’); function add_to_cart_script(){ if(is_product()){ wp_enqueue_script(‘wc-add-to-cart-variation’); } }
This was the only way i could get the Add to cart button and variations to appear. Please check functions.php
|
|
Hi,
We asked for ftp access, else we cant change anything.
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|