• Hi,

    It is me again. First of all, I was developing a solution for Yarpp to support post_type feature and I am so very happy that it was coincidentally delivered with the new updated.

    It helps. Alot.

    Suggestion: Please add the feature in the shortcode so it becomes easy to assign a particular post_type to particular archives. For example, I am using post_type = product on archives for post_type = posts (because we are into e-commerce).

    However, we recently introduced a post_type = recipe and would like to show related recipes in the recipe archives.

    I am not sure how to do that with settings, as I have been using things programmatically with yarpp now. (if you remember my solution for instock products)

    Purpose of this new thread:

    I am trying to use the magic powers of Yarpp on the woocommerce order pages. Kindly see my code below:

    add_action( ‘woocommerce_view_order’, ‘my_custom_related_products’ );
    function my_custom_related_products( $order_id ){
    echo ‘</br>[yarpp]</br>’;
    }`

    I would like to know if we can pass certain parameters in some way for yarpp to determine which posts (array) to consider for the generation of the results.

    My idea is to have parameters for orders (ordered_items), to be considered with extra weight as we do for taxonomies.

    Currently, I am “sort of” achieving some results are selecting “extra weight” for the Body (description) component.

    I have not yet looked into how as can add support for ordered_items in “the algorithm”.

    I believe it would be best to pass the array into the function or shortcode.

    Let me know.

    PS: I believe Yarpp should be on every page of every website for better internal-links! It works so beautifully well.

  • The topic ‘YARPP & WC-Order’ is closed to new replies.