• To fix the problem, go to the path
    wp-content >plugins >order-attachments-for-woocommerce >templates >frontend >frontend-my-account-attachments.php

    Replace all the code in this file and save it will work great

    <?php
    
    $wcoa_attachments = WCOA_Attachment::get_list(0, get_current_user_id() );
    
    if (!$wcoa_attachments || count($wcoa_attachments) === 0)
    {
        _e('There are no attachments to display.', 'sld-wcoa');
        return;
    }
    
    ?>
    <table>
    	<thead>
    	<tr>
    		<th><?php _e('Order', 'woocommerce'); ?></th>
    		<th><?php _e('Date'); ?></th>
    		<th><?php _e('Actions'); ?></th>
    	</tr>
    	</thead>
    	<tbody>
        <?php foreach ($wcoa_attachments as $item ) {
            $wcoa_order = wc_get_order($item['order_id']);
            $item['order_url'] = $wcoa_order->get_view_order_url();
        ?>
    	<tr>
            <td> <a href="<?php print $item['order_url']; ?>" >#<?php print $item['order_id']; ?></a> </td>
    		<td><?php print $item['post_date']; ?></td>
    		<td><a target="_blank" href="<?php print $item['guid']; ?>" class="button"><?php _e('View'); ?></a></td>
    	</tr>
        <?php } ?>
    	</tbody>
    </table>
    

    Copy this code and put it in the file frontend-my-account-attachments.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thank you so much much! this solved the issue

    • This reply was modified 5 months, 3 weeks ago by jusemora30.

    Thank you. It works properly now

    Plugin Author Dominik

    (@sldesignpl)

    Hello, the mentioned bugs have been fixed in the latest release. Please update the plugin and let me know if the issue still occurs.

    The issue still occur. Customer can not see their PDFs.

    I must point out that I am also experiencing this issue. I updated the plugin a few days ago to the new version 2.4.0, and the same problem has occurred. On the admin side, everything seems to work properly, but the customer can no longer see the document table from the Account page.
    WordPress version: 6.6.2
    WooCommerce version: 9.2.3
    PHP version: 8.3.11

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.