Issue when using the merge option

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #94120
    Zoharn
    Participant

    Hi,

    I installed the plugin and add an issue when using the merge option that was caused in alg_wc_vrb_template

    The issue was the plugin was creating an attribute line for each attribute even if it wasn’t relevant to the variation, which was causing other plugin for ajax add to cart to throw required message for each attribute related to product. i ended up changing the code to create the hidden input only for [variation] attribute to fix the issue.

    Any reason the code is creating the input for each attribute ?

    Thanks.

    #94121
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Thanks for the feedback. Just to be sure – do you mean the issue is that plugin creates hidden inputs for all current product’s attributes including those that are not checked as “Used for variations”? I.e. plugin should check if the attribute is set as “Used for variations” in the current product before adding hidden input for it, correct?

    #94122
    Zoharn
    Participant

    Hi,

    Yes the issue is that the plugin create hidden input for non checked variation attributes in these lines of code :

    foreach ( $product->get_attributes() as $attribute_name => $options ) ...
    #94123
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Sorry for the late reply. Please update the plugin to the latest v2.3.2 – the issue should be fixed now, i.e. only attributes that are marked as “Used for variations” are listed in hidden inputs now.

    Please let me know if something is still not working correctly or I’ve misunderstood you.

    #94124
    Zoharn
    Participant

    Thanks for the change.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.