Can i link the shortcode to the file download location?
-
Hi, I plan on taking photos of people and using the tip jar to convert free photography into sales.
my only issue is that there is a lot of manual labor involved in creating a new tip jar shortcode for each photograph i take. At the moment mywebsite.com/id/12345678 has an associated zip 12345678.zip and i would like to create the shortcode [tipjarwp id=”1″ dl=????/12345678.zip] so that for my many many webpages each tipjar knows which file it needs to deliver.
I was planning on emailing the correct zip for each sale but I’m trying to avoid manual labor with a $0 payment system.
Alternatively, can we discuss editing the file-delivery.php?
$deliverable_file_path = get_attached_file( $file_download_data[‘attachment_id’] );
could possibly become
$deliverable_file_path = ‘mywebsite.com/assets/’ + pagetitle + ‘.zip’ ?
I know that it’s a pretty hack way of doing things but if it’s possible to extract the /12345678 out of the page url and use that to reconstruct the file path to deliver this could be a relatively easy fix for somebody who actually knows php.
- The topic ‘Can i link the shortcode to the file download location?’ is closed to new replies.