• Resolved mitchelldesigns

    (@mitchelldesigns)


    the plugin works great in the backend. But when I try to view the uploaded attachment in my order on the front end (My Account page) – Once openeing the order I don’t see a download or file name anywhere..

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem. Some help?

    Hi,
    to solve this problem, open ‘order-attachments-for-woocommerce/includes/wcoa_customer_configuration.php’ file and replace this section:

    // It displays an attachment view button on the Orders page in the My Account tab
    add_filter( ‘woocommerce_my_account_my_orders_actions’, ‘wcoa_action_download_attachment_my_account_orders’, 999, 2 );

    function wcoa_action_download_attachment_my_account_orders( $actions, $order ) {

    if ( $value = $order->get_meta(‘_wcoa_attachment_url’) ) {
    $action_slug = ‘wcoa-url’;
    $actions[$action_slug] = array(
    ‘url’ => ($value),
    ‘name’ => __(‘View attachment’,’sld-wcoa’),
    );
    }
    return $actions;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attachments not displaying on front-end’ is closed to new replies.