Woocommerce Product Variations – Price and Order button not appearing

ThemeBurn SupportForumsWordPress ThemesShoppica WordPress ThemeWoocommerce Product Variations – Price and Order button not appearing

This topic has been marked as not resolved.

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

August 8, 2013 at 6:24 am #26312

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

August 8, 2013 at 9:24 am #26319

Please find details below

August 8, 2013 at 10:54 am #26320

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

August 12, 2013 at 10:05 am #26428

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??

August 13, 2013 at 12:42 pm #26505

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’); } }

August 13, 2013 at 1:13 pm #26513

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

August 13, 2013 at 3:22 pm #26533

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!

August 14, 2013 at 3:10 am #26552

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

August 14, 2013 at 10:38 pm #26579

Great thanks. Ive put back the custom code and the details are as follows

August 15, 2013 at 7:05 am #26587

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

August 15, 2013 at 7:53 am #26588

Hello,

We didnt change anything yet.

Best,
ThemeBurn team

August 15, 2013 at 2:10 pm #26605

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

August 15, 2013 at 3:32 pm #26619

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

August 19, 2013 at 12:44 pm #26672

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

August 20, 2013 at 10:50 am #26739
Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.