Home Forums WoodMart support forum Linked variations with variable product

Linked variations with variable product

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #490146

    webreturn
    Participant

    Hello,

    We’d like to use the Linked Variations provided by Woodmart, however we’re running into some issues.
    Whenever we enable the linked variations for two of the products in our customers webshop, the site gives a critical error. I think this might be caused by the fact that the two products we’re trying to link up are both variable products.

    My question is, do linked variations work with variable products? And if so, could you please help us fix the issue we’re facing. We got the following error message:

    Fatal error: Uncaught TypeError: array_diff_assoc(): Argument #2 must be of type array, null given in /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/linked-variations/class-frontend.php:297 Stack trace: #0 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/linked-variations/class-frontend.php(297): array_diff_assoc(Array, NULL) #1 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/linked-variations/class-frontend.php(203): XTS\Modules\Linked_Variations\Frontend->get_linked_variation_data_for_attribute(6834, 'pa_kleura', 'zwart') #2 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/linked-variations/class-frontend.php(56): XTS\Modules\Linked_Variations\Frontend->get_linked_variations(6834) #3 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-includes/class-wp-hook.php(310): XTS\Modules\Linked_Variations\Frontend->output('') #4 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/woocommerce/content-single-product.php(189): do_action('woocommerce_sin...') #7 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-includes/template.php(787): require('/var/www/vhosts...') #8 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/var/www/vhosts...', false) #9 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/woocommerce/single-product.php(28): wc_get_template_part('content', 'single-product') #10 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-includes/template-loader.php(106): include('/var/www/vhosts...') #11 /var/www/vhosts/trimlessspots.nl/httpdocs/wp-blog-header.php(19): require_once('/var/www/vhosts...') #12 /var/www/vhosts/trimlessspots.nl/httpdocs/index.php(17): require('/var/www/vhosts...') #13 {main} thrown in /var/www/vhosts/trimlessspots.nl/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/linked-variations/class-frontend.php on line 297

    I did disable the linked variation for now, since it was causing the site to not function properly. If needed I can create a testing environment and give you access to it.

    Kind regards,
    Max Rutgrink
    Webreturn

    #490211

    Luke Nielsen
    Keymaster

    Hello,

    For proper work of the Linked variation, the products should be as Simple products. So please define them as simple products and recheck the issue.

    Let me know the results.

    Kind Regards

    #490213

    webreturn
    Participant

    Unfortunately that won’t work in this case. So what you’re saying is that we won’t be able to use Linked Variations with variable products? If that’s the case I’ll let our customer know that he’ll only be able to use Linked Variations for certain simple products.

    #490357

    Luke Nielsen
    Keymaster

    Hello,

    In order to better assist you with your request, we’ll need temporary admin access to your website. Can you please provide us with the necessary login credentials? We understand the sensitivity of this request, and we assure you that we will handle your information with utmost confidentiality.

    Kind Regards

    #490372

    webreturn
    Participant

    Hi Luke,

    I created a staging environment for you to test the issue.
    The credentials are in the private content area.

    You’ll find the linked variation on the following two products:
    https://trimlessspots.nl/staging/product/led-inbouwspot-square-enkel-zwart/
    https://trimlessspots.nl/staging/product/led-square-trimless-enkel-wit/

    I just noticed the critical error is gone, however the linked variation does not show up.
    The linked variation should show the attribute ‘Kleur armatuur’ (which is basically the color).

    #490749

    Luke Nielsen
    Keymaster

    Hello,

    Could you please provide me with FTP access? I need to investigate the issue more closely.

    Thank you in advance.

    Kind Regards

    #490753

    webreturn
    Participant

    See the private content for the information.
    Please do keep to not disable the SeedProd Maintenance mode plugin.

    If there’s any more information you might need, please let us know!

    #491215

    Luke Nielsen
    Keymaster

    Hello,

    The problem is that for some of the linked products you did not add an attribute that linked them. We have fixed that so please check the issue again.

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)