• Resolved thanasisxan

    (@thanasisxan)


    At first, thanks for this very useful and high quality free plugin, I will definitely check all the options you have paid or not!

    The bug I am referring to happens when using Oxygen Builder repeater field for product archive. I use the [wpcvs_archive] shortcode in each product (repeater field) and figured that it doesn’t work as expected.

    After some debugging I managed to find the problem and it is the wrong id of select field or data-attribute value at closest .wpcvs-terms generated for the equivalent variation select, maybe this should be pa_color-2 for example or the select id be pa_color?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter thanasisxan

    (@thanasisxan)

    btw I temporarily solve it like this (since pa_color and pa_megethos are the only attributes I have)

    jQuery("select[id^='pa_color']").each(function (i, el) {
    	let correct_id=jQuery(this).attr('id');
    	jQuery(this).parent().find('.wpcvs-terms').attr('data-attribute',correct_id);
     });
    
    jQuery("select[id^='pa_megethos']").each(function (i, el) {
    	let correct_id=jQuery(this).attr('id');
    	jQuery(this).parent().find('.wpcvs-terms').attr('data-attribute',correct_id);
     });
    Plugin Author WPClever

    (@wpclever)

    Hi @thanasisxan

    Thanks for informing me of this issue!

    Please update this plugin to the latest version 2.2.4, and clear the cache before testing again. I’ve fixed it.

    Now I’ll use three ways to find the dropdown for ensure ??

    $select = $this.closest('.wpcvs-terms').parent().find('select#' + attr);
    
    if (!$select.length) {
      $select = $this.closest('.wpcvs-terms').parent().find('select[data-attribute_name="attribute_' + attr + '"]');
    }
    
    if (!$select.length) {
      $select = $this.closest('.wpcvs-terms').parent().find('select[name="attribute_' + attr + '"]');
    }
    Thread Starter thanasisxan

    (@thanasisxan)

    Thanks for the immediate response and the fix!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bug when using [wpcvs_archive] shortcode’ is closed to new replies.