fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

3 Issues: Woo Commerce Filter Conflict, Subscriptions, and Category Pages Drop downs styling

Tanveer Moin

Hi. Kindly assist me in following 3 questions:

  1. How to re-subscribe? I shouldn’t be paying to continue my re-subscription as my first one hasn’t ended. But I want auto-subscription to avail updates.

    As my site is under development, please use this link to verify the below both issues: https://hawkbull.de/product-category/leather-coats-for-men/

  2. I am using the following filter to remove ‘Choose An Option’ from the Woocommerce variation dropdown. But your swatches plugin isn’t allowing it to function. As soon as I disable it, the Choose An Option disappears, else it remains there, and I don’t want it. Kindly resolve this issue or tell me how to do it. Please know that I am not a coder. I just copy-pasted this code from an online website.

add_filter( 'woocommerce_dropdown_variation_attribute_options_html', 'filter_dropdown_option_html', 12, 2 );
function filter_dropdown_option_html( $html, $args ) {
$show_option_none_text = $args['show_option_none'] ? $args['show_option_none'] : __( 'Choose an option', 'woocommerce' );
$show_option_none_html = '<option value="">' . esc_html( $show_option_none_text ) . '</option>';

$html = str_replace($show_option_none_html, '', $html);

return $html;
}

"Capture.PNG" If the plugin is enabled, ‘Choose an option’ remains in product and category pages "Capture1.PNG" If the pro plugin is disabled, ‘Choose an option’ gets deleted in product and category pages which is what I want

 

 

 

 

 

 

 

 

 

 


3. I want category page drop-downs to be full length or divided as per text covered. So in one line both, material and sizing can show up. Right now, they look pretty off, particularly the mobile versions.

"Capture.PNG""Capture1.PNG"

 

Instead of FTP access, please use code snippets or Additional CSS in Customize area. Would be grateful for your assistance.

 

Hakik Zaman

Hi Tanveer,

Thanks for reaching out to us.

But I want auto-subscription to avail updates.

By default, it is automatically enabled. Please wait till your subscription end.

As soon as I disable it, the Choose An Option disappears, else it remains there, and I don’t want it.

Unfortunately, the “Choose an option” remove option is not currently available in our plugin. But it is a great idea, you can send this feature request here- https://storepress.fider.io/

Then, our development and research team will look into it.

I want category page drop-downs to be full length or divided as per text covered.

I have visited your site and didn’t find dropdowns there. Can you please give us an example?

Thank You

Tanveer Moin

It took more than 2 days for you to reply to this. Looks like you haven’t even read the ticket properly. Your service is the worst.

Looking forward to reviewing this so others know before purchasing what they are getting into.

Hakik Zaman

Hi Tanveer,

We are sorry for our late response. Basically, sometimes it happens for a long ticket queue.

For your “Choose an option” issue you can place the below code-

add_filter( 'wvs_variation_attribute_options_html', 'filter_dropdown_option_html', 12, 4 );
function filter_dropdown_option_html( $data, $args, $is_default_to_image, $is_default_to_button ) {
   $show_option_none_text = $args['show_option_none'] ? $args['show_option_none'] : __( 'Choose an option', 'woocommerce' );
   $show_option_none_html = '<option value="">' . esc_html( $show_option_none_text ) . '</option>';
   $data = str_replace($show_option_none_html, '', $data);
   return $data;
}

Instead of-

add_filter( 'woocommerce_dropdown_variation_attribute_options_html', 'filter_dropdown_option_html', 12, 2 );
function filter_dropdown_option_html( $html, $args ) {
$show_option_none_text = $args['show_option_none'] ? $args['show_option_none'] : __( 'Choose an option', 'woocommerce' );
$show_option_none_html = '<option value="">' . esc_html( $show_option_none_text ) . '</option>';

$html = str_replace($show_option_none_html, '', $html);

return $html;
}

For your mobile issue, can you please give us an exact link to check?

Hope to hear from you soon!

Thank you for your co-operation