Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1317906
    tongpo3205
    Participant

    OK I have just recently installed xtheme. Great theme btw, however I am having problems with woocommerce.

    The problem is when I add custom attributes, they get added OK, however, when I go to the add product page, the custom attributes are there and I can add them and provide values HOWEVER when I go to preview the product page all I can see is the attribute name, the values are not there.

    I have previewed the page after saving as draft and also after publishing it and the same thing happens??

    It appears that actual attribute values are not saving even though the attribute names are.

    I have checked error logs and this is what I am seeing:

    PHP Warning: implode(): Invalid arguments passed in /[DIRECTORY PATH]/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php on line 42

    I installed woocommerce via X ADDONS by the way. The version it installed is Version 2.7.0-beta-1.

    I have wordfence security plugin an it reports:

    x/woocommerce/cart/cart-empty.php, 
    x/woocommerce/cart/cross-sells.php version 1.6.4 is out of date. The core version is 2.7.0, 
    x/woocommerce/loop/loop-end.php, 
    x/woocommerce/loop/loop-start.php, 
    x/woocommerce/loop/pagination.php, 
    x/woocommerce/notices/error.php, 
    x/woocommerce/notices/notice.php, 
    x/woocommerce/notices/success.php, 
    x/woocommerce/single-product/product-image.php version 2.6.3 is out of date. The core version is 2.7.0, 
    x/woocommerce/single-product/product-thumbnails.php version 2.6.3 is out of date. The core version is 2.7.0, 
    x/woocommerce/single-product/related.php version 1.6.4 is out of date. The core version is 2.7.0, 
    x/woocommerce/single-product/tabs/tabs.php, 
    x/woocommerce/single-product/up-sells.php, 
    x/woocommerce/single-product-reviews.php

    I tried downloading woocommerce from wordpress.org and tried that wc-attribute-functions.php file, which didnt work, so I replaced the original.

    Anyway, its back to the original problem as explained above.

    How can I solve this? I have also tried disabling plugins and switching themes to twenty eleven. SAME PROBLEM!!

    Any help would be appreciated as I have spent hours on this, thanks.

    I am also wondering why you are using a beta version to begin with and also why in the plugins directory it reports that the version is 2.7.0-beta-1, yet wordfence says some files are from versions 1.6.4 and 2.6.3???

    #1317976
    tongpo3205
    Participant

    Ok I have found a solution to this myself so I will share it with others and x theme devs.

    That particular problem is now resolved.

    You need to change the code in /wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php as show in the following link:

    https://github.com/woocommerce/woocommerce/commit/b81b6c1a4482a14654caf5b38248f25c8a7f54d1

    #1318389
    Rupok
    Member

    Glad that you figured it our already and thanks for sharing.

    Have a nice day!

  • <script> jQuery(function($){ $("#no-reply-1317906 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>