Support Forum

Content of the article

WPBE - WordPress Posts Bulk Editor Professional
You need to log-in to create request (topic) to the support

Woof Shortcode on other page except Shop

(new from 01-07-2019)
This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see green button on the right side) and press Save button.
If you not got email within 24 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
12

I am working on site where I integrated Woof premium plugin for wooCommerce product filter, on my shop page it is working fine, I have integrated filter with widget.

on the other page of site I have listing of specials ( On Sales ) products from all categories, I want to integrate product filter on this page which should be related to only specials products, so I have used couple of options with shortcode which I mentioned below, but the count with filter items is not correct and when I select any filter it refresh the page and redirect it to shop page.

[woof by_only="by_onsales"]
[woof autosubmit=1 ajax_redraw=1 is_ajax=1 tax_only="none" by_only="by_onsales"]
[woof redirect="https://www.my_site.com/test-all/" autosubmit=1 ajax_redraw=1 is_ajax=1 tax_only="none" by_only="by_onsales"]

Can you please look into this and let me know if I missing something?

Hello

On this  page to show products, please, use  native  woo shortcodes   OR   - https://products-filter.com/shortcode/woof_products/

To  show  correct products and  counts - https://products-filter.com/manipulate-search-data-options/

Example:

add_filter('woof_get_request_data', 'my_woof_get_request_data');

function my_woof_get_request_data($data){
$data['onsales']='salesonly';
return $data;
}

 

Hey,

Thanks for your reply, I put the same code like you suggested but still I am not getting correct counter and product, Can you please let me know?

Hello

Please  activate  extension - https://c2n.me/44flLYs.png

https://c2n.me/44flOgX.png - You need to change this code so that it only works on your custom page.  For  example  use  is_page()

Hello,

I have activated the extension and applied the code in functions files, but still it is not working as expected.

List of issues:

1. Only 3 products shows per page even after I have changed the values for per page parameters.

2. Page 2 is not loading when I click on page 2 from pagination.

3. Counts and filters are not updating as per the sales products only.

Can you please check and help to solve the issue?

Hello

1/2 - It only depends on your template.

3 I checked  it - https://c2n.me/44gspA9.png - counters work correctly

Hey,

I used <?php echo do_shortcode('[woof_products]'); ?> to display products and for filter I used <?php echo do_shortcode('[woof by_only="by_onsales"]'); ?>

If you notice on http://siteforhosting.co.in/sites/home_care_new/specials , after I select size small and then click on page 2 it removes the search filter, can you please let me know how can I prevent this?

Waiting forward for your reply.

 

Hello

 

I checked  it - https://c2n.me/44mCZ8z - it seems to work correctly

Hey,

Thanks for sharing video but it is not working on my mac, I wonder on which OS and browser are you checking ?

please check video on http://siteforhosting.co.in/sites/home_care_new/specials_not_working.mov

Waiting forward for your reply.

 

Hello

Try to click on the filter button!

My  new  video - https://c2n.me/44nL92A   - I don’t know why you made this setting.

Hey,

Thanks for your reply, I also don't want to set that filter button, so when I set is_ajax to 1 and filter the products, pagination stops working.

so for filter, I use : echo do_shortcode('[woof by_only="by_onsales" autosubmit=1 ajax_redraw=1 is_ajax=1]');

and for products, I use : echo do_shortcode('[woof_products is_ajax=1]');

Video Reference : http://siteforhosting.co.in/sites/home_care_new/woof_filter_ajax_not_working.mov

Can you please let me know what should I need to change in shortcode?

Hello

Please  read  this - https://products-filter.com/shortcode/woof/

 I also don't want to set that filter button -  OK! delete this attribute - ajax_redraw=1

Read this - https://products-filter.com/pagination-troubles-in-ajax-mode/

Hey,

Thanks for your reply, I removed that ajax_redraw=1 from shortcode and still I have to click on filter button to filter products, I don't want to submit the form on filter button click it should submit the form when I click on any search parameter, in my case small, medium or large checkbox.

Also, pagination stops working on is_ajax = 1, can you please let me know what should I need to change to make it work?

For more reference, I attached video http://siteforhosting.co.in/sites/home_care_new/woof_filter_updated.mov

Thanks,

Hello

Please  update  plugin  to  latest  version.

Check  your wp-admin  access.

Can I disable  plugins/theme  to test?

Hey,

Thanks for your reply, I updated plugin to latest version, and after that one of my filter is working fine which is size one.

So, when I select any size it works fine and pagination works ok as well but now my second filter which is color filter not working, can you please look into that.

also, I share admin access in private data and you can disable plugin/ theme to test ( I tried to disable theme and enable twentysixteen theme but still in that theme color filter is not working ).

Thanks

Hello

I checked  it - https://c2n.me/44ty6bA - everything seems to work correctly

on the shortcode page you set again - ajax_redraw=1

 

Hello,

No It's not works correctly, I mentioned you to check specific specials page, which is http://siteforhosting.co.in/sites/home_care_new/specials

on specials page size filter works fine but color filter not working, Did you check the video I share on 5th Novemeber?

so just to let you know again, filter is working fine on shop and category pages but it is not working on specials page.

Can you please look into that and let me know?

Hello

I created  test  page - http://siteforhosting.co.in/sites/home_care_new/test-filter/

My test - https://c2n.me/44v0dqJ

Hey,

Thanks for create a test filter, but if you notice on your demo, there is an error showing correct count of products next to size filter.

When you load http://siteforhosting.co.in/sites/home_care_new/test-filter first time you can see the total 6 products which are on sale and size filter ( small, medium and Large ), you can see the count is 5 which is correct.

Now when you select any filter like color or size, the filter is working fine but after you reset filter, you can see it shows all the products (total products 8 ) not only the specials one.

Also, I want to ask you like shop page when you select any filter it shows selected filter on top left side but why it is not showing on test filter page?

Waiting forwad for your reply.

Hello

I can't  check  it - https://c2n.me/44BILde.jpg

12