I have a problem on my site which came as I upgraded to a newer version of WooCoomerce. To 2.3.6 from 2.0.20. After the upgrade I had to make changes in the templates and right now everything seems to work fine except one thing. When downloading virtual products the filenames just becomes "[url removed, login to view]" etc. instead of the filesnames given in the "filename boxes" for each downloadable file.
The current code I use to list the download links on the product page are below:
<?php the_content(); ?>
<?php if (ps_user_has_access()): ?>
<?php $files = $product->get_files(); ?>
<?php foreach ($files as $file_id => $item): ?>
<li><a href="?file_id=<?php echo $file_id; ?>&post_id=<?php echo $post->ID; ?>" class="button"><?php _e('Download', 'prosales') ?> <?php echo ps_get_filetype($item['file']) ?></a></li>
<?php endforeach ?>
<?php else: ?>
Anyone know what's the problem?
13 freelancers are bidding on average $27 for this job
Hi, I am interested in your project. I am expert to fix any kind of wordpress issue. I can fix your download file name issue in 3 hours. Thanks, Ruhul