Index by attached – woocommerce

  • Piteus
    Participant
    # 8 months, 4 weeks ago

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

    wpsolr
    Keymaster
    # 8 months, 4 weeks ago

    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
    # 8 months, 4 weeks ago

    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
    # 8 months, 4 weeks ago

    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
    # 8 months, 3 weeks ago

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

    wpsolr
    Keymaster
    # 8 months, 3 weeks ago

    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
    # 8 months, 3 weeks ago

    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
    # 8 months, 3 weeks ago

    Where do you see this error?

    wpsolr
    Keymaster
    # 8 months, 3 weeks ago

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

    Piteus
    Participant
    # 8 months, 3 weeks ago

    &#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
    # 8 months, 3 weeks ago

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

    Piteus
    Participant
    # 8 months, 3 weeks ago

    Image ZBWTmXP1 of

    Piteus
    Participant
    # 8 months, 3 weeks ago

    That’s results
    https://postimg.cc/ZBWTmXP1

    wpsolr
    Keymaster
    # 8 months, 3 weeks ago

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

    Piteus
    Participant
    # 8 months, 3 weeks ago

    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.