• Tom

    (@tomwenk)


    Hey, we have a big problem. We moved our server and everything to the cloud. All of a sudden, our product variants no longer show us the names but the title form. How do we get this reversed? I can’t find any setting in the plugin…. I ask for quick help…. We need the variants for our Google Shopping ad. As soon as Google notices that the names have changed, our products could be rejected ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • fernet_con_cola

    (@fernet_con_cola)

    Hi Tom, we had the same issue and found a temporary solution. If you don’t mind editing the plugin files, simply change line 651 on the wpc-variations-radio-buttons.php file from:

    $attrs[ ‘attribute_’ . $k ][] = $term->slug;

    to

    $attrs[ ‘attribute_’ . $k ][] = $term->name;

    Hopefully the plugin developer will fix this in a future update so we don’t have to modify source files.

    Hope this helps!

    fernet_con_cola

    (@fernet_con_cola)

    Sorry, the solution was a little bit trickier than anticipated. Please ignore my previous post. This should to the trick:

    Change the code starting on line 798 on the wpc-variations-radio-buttons.php file from:

    echo '<div class="woovr-variation-info">';
    $child_info = '<div class="woovr-variation-name">' . apply_filters( 'woovr_variation_name', $child_name, $child_product ) . '</div>';

    to

    $temp_product_name = $child_product->get_name();
    $temp_product_separator = '-';
    $temp_display_product = substr($temp_product_name, strpos($temp_product_name,$temp_product_separator)+strlen($temp_product_separator));
    
    echo '<div class="woovr-variation-info">';
    $child_info = '<div class="woovr-variation-name">' . $temp_display_product . '</div>';
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Title form instead of name’ is closed to new replies.