Index by attached – woocommerce

Tagged:
  • Piteus
    Participant
    3 years, 7 months ago #25428

    Can i index by attached in woocommerce where attached file(pdf) is a downloadable product?

    wpsolr
    Keymaster
    3 years, 7 months ago #25429

    This is an interesting feature indeed that most shops could be interested in.
    I could add it to WPSOLR WooCommerce add-on if you’re interested.
    How many WooCommerce downloadable PDFs do you have?

    Piteus
    Participant
    3 years, 7 months ago #25430

    The ecommerce sells only pdf as product, between 400 and 600, this figure can change every year but the interval is that, so with WooCommerce add-on can users search inside the pdf file even if this one is protected (because it is itself the product to be sold)?

    wpsolr
    Keymaster
    3 years, 7 months ago #25431

    I can add this feature, so visitors of your shop search can retrieve the products with downloadable files containing matching keywords.

    Even if downloadable files are private.

    Only the highlighted texts around the searched keywords of your PDFs would appear in the search.

    Piteus
    Participant
    3 years, 7 months ago #25433

    Ok, could you tell me how much does it take to add this feature? Shall I install WooCommerce add-on anyways?

    wpsolr
    Keymaster
    3 years, 7 months ago #25443

    Here is a fix: https://trello.com/c/10cpmGEt/147-index-and-search-woocommerce-products-downloadable-files

    Please replace your current WPSOLR plugin (or get a trial) with the fix.

    Piteus
    Participant
    3 years, 7 months ago #25444

    Sorry but I’ve a problem:

    Error on embedded url “https://dev.domain.com/wp/wp-content/uploads/woocommerce_uploads/2021/03/sample-o5edxt.pdf” of post_id 11. Could not access the attachement content. Forbidden

    Do i have to give the plugin some permission? If so, where?

    wpsolr
    Keymaster
    3 years, 7 months ago #25445

    Where do you see this error?

    wpsolr
    Keymaster
    3 years, 7 months ago #25446

    sample-o5edxt.pdf&#8221 is strange as a file name.

    Piteus
    Participant
    3 years, 7 months ago #25447

    &#8221 is “, copy and paste error, file name end with .pdf, i see this error when i try to save product or when i click on “index selected post types…” in “Send your data”

    wpsolr
    Keymaster
    3 years, 7 months ago #25448

    Can you ssh on your server and try a simple curl on this url?

    Piteus
    Participant
    3 years, 7 months ago #25450

    Image ZBWTmXP1 of

    Piteus
    Participant
    3 years, 7 months ago #25451
    wpsolr
    Keymaster
    3 years, 7 months ago #25452

    You get a 403 error. Is your file protected by some authentication?

    Piteus
    Participant
    3 years, 7 months ago #25453

    I think i solve this, woocommerce by default in /wp-content/uploads/woocommerce_uploads/ create a .htacces with “deny from all”, now i set “Require local”.
    Now when i try to save product i get this error:
    https://postimg.cc/RWchb342
    If i try to synchronize in “Send your data” it start loading in loop

Viewing 15 posts - 1 through 15 (of 34 total)

You must be logged in to reply to this topic.