Viewing 7 replies - 1 through 7 (of 7 total)
  • If you examine the source code for the form.variations_form tag, it tells us what WooCommerce thinks are the variations for that product.

    In this case, there is only 1 variation, id #3729 which has no colour set. I’ve seen this before rarely. The presence of an unwanted variation messes up the rest. Can you find id #3729 in the list of variations for that product, if so delete it.

    If its not there, and you are competent with phpMyAdmin, you can delete it from the wp_posts table.

    Otherwise its probably easiest to make a new product. Copy and paste the text from the old product, then delete the old product.

    Thread Starter h_rehman90

    (@h_rehman90)

    @lorro Thanks for the response. I think variations are fine because these variations are working on desktop version. We are running our desktop version since one year. Now we have developed mobile version, which is not working only for variable products.

    I have created a new product with variations, that is also facing same issue. Currently, desktop version is activated. You can view the same product in this version.

    If you want me, I can reactivate mobile version for you?

    Thanks,

    For that version also the data-product_variations data is not like it usually is. Also, the single variation price section is missing. Either the variations have not been setup fully or are corrupted.

    https://docs.woothemes.com/document/product-variations/

    It looks like you are using a custom theme. Does this have a template override for the single product page. You can check at Admin page > WooCommerce > System Status > Template overrides. If your developer has provided a custom page template then we may not be looking at core WooCommerce behaviour, and it would be a matter for the developer who has access to the template to fix this.

    I note you have already deactivated other plugins, did you temporarily switch to one of the default themes?

    If you get to the point where you have only the default theme and WooCommerce in the loop and the data-product_variations data still contains only variation #3729 and the single variation price section is still missing, then its probably incomplete or corrupt setup of the variations.

    Conversely, if the data-product_variations data now contains all the variation ids and the single variation price section is now present, that would point to some fault with your custom theme.

    Thread Starter h_rehman90

    (@h_rehman90)

    Thanks mate, the problem was that in footer.php “<?php wp_footer(); ?>” was missing. I have created a new theme, created files one by one. After debugging each line. I found that this line was missing.

    Thank You.

    I’m not convinced. I wouldn’t expect the footer to have any affect on this issue. The data-product_variations data is still not normal and the single variation price section is still missing. But if you’re happy that’s good enough!

    Thread Starter h_rehman90

    (@h_rehman90)

    Me too, but problem solved and boss is happy now ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘woocommerce cart not working on variable product (no js error)’ is closed to new replies.