Problems with woocommerce variations in xmarket theme

This topic has 7 replies, 2 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp

  • Avatar: Sunread
    Sunread
    Participant
    January 19, 2016 at 21:16

    Hi

    I have updated to latest woocommerce 2,5 and my variations on products did now show. After some time I found out that it will only take maximum of 30 variation. On the 31st variation, it stopped showing and says “product is not in stock” when I view the product on the front end.

    I found several woocommerce templates out of date as per below. I am running xmarket 2,0 and woocommerce 2,5 (copied in private):

    Thanks for suggestions/P

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 20, 2016 at 12:05

    Hello,

    To fix variations issues add this code in functions.php file:

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 1000;
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 1000, 2 );

    You can read about it here:
    https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/

    Template files will be updated in the next theme version.

    Regards,
    Eva Kemp.

    Avatar: Sunread
    Sunread
    Participant
    January 20, 2016 at 12:30
    Please, contact administrator
    for this information.
    Avatar: Sunread
    Sunread
    Participant
    January 20, 2016 at 13:15

    Hi Eva,

    Thanks, however I encountered problems with server error, can you help. See private!

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    January 20, 2016 at 15:02

    Hello,

    You added the code to incorrect file.
    I’ve edited it and re-added to the correct file wp-content/themes/xmarket/functions.php.
    Please check variable products now.

    Regards,
    Eva Kemp.

    Avatar: Sunread
    Sunread
    Participant
    January 20, 2016 at 15:06

    Dear Eva,

    Excellent, I am very happy and thank you for your fantastic service.

    5 stars/Peter

    Avatar: Eva
    Eva Kemp
    Support staff
    January 20, 2016 at 15:20

    Hello,

    You’re welcome.
    We’d be thankful if you leave a comment on ThemeForest site:
    http://themeforest.net/item/xmarket-responsive-wordpress-ecommerce-theme/3558432/comments

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Problems with woocommerce variations in xmarket theme’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.