Zen Cart Logo
Forums / All Other Contributions/Addons / Restrict Digital Downloads [Support Thread]

Restrict Digital Downloads [Support Thread]

Views: 10,146

Results 41 to 60 of 113
28 Dec 2014, 2:11 PM
#41
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Restrict Digital Downloads [Support Thread]

FWIW, I've got the changes required for a digital download product that is also marked "Product is free" on my *RDD *github repository (https://github.com/lat9/restrict_digital_downloads) and will be staging the distribution zip-file (v1.0.2) to my website and to the Zen Cart plugins area later this morning.

28 Dec 2014, 2:16 PM
#42
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

I have an ebook website where we sell books in 5 different formats. Customers can choose multiple formats by checking boxes prior to adding the product to their carts.

Will my EU customers be able to choose their ebook types and also choose to receive the files by email with this plugin? Or will I have to combine all my files into one ZIP file for the download option?

Will this plugin work with checkboxes?

28 Dec 2014, 2:29 PM
#43
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

The problem with checkboxes is that they're optional, so a customer could choose/check none of the boxes associated with the product. There's also no way with the checkbox-type options to identify an alternate order-fulfillment method (e.g. email the files to the customer).

28 Dec 2014, 2:43 PM
#44
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

lat9:

For your free downloads, are they set with the "Product is free" flag?

Yes, they are.

Does the file type matter? We have one MP4 which I don't think was included in the default download filetype list.

I'll make the edits and re-install shortly. TNX for the PM. That issue is fixed.

28 Dec 2014, 2:45 PM
#45
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

The changes on github address downloads that have the product_is_free flag set. The file-type doesn't matter for the check, just that there's a digital download option.

28 Dec 2014, 2:46 PM
#46
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

So I can't have both the checkboxes and the radio buttons?

I guess what I'm hearing is that I need to set up my site so that all the ebooks are one download option (one zip file) OR there is an email option for EU customers, and use the radio buttons, is this correct?

28 Dec 2014, 3:05 PM
#47
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

jmsnyder23:

So I can't have both the checkboxes and the radio buttons?

I guess what I'm hearing is that I need to set up my site so that all the ebooks are one download option (one zip file) OR there is an email option for EU customers, and use the radio buttons, is this correct?
I'm having a hard time coming up with a configuration where checkboxes could be used (except where a digital download is an optional option for a product). Certainly, one solution for your store is to package all 5 file types into a single zip-file and, in a manner similar to my needlework site (http://www.latitude9needlearts.com/index.php?main_page=product_info&cPath=6_10&products_id=7), create a "Delivery Method" option that includes the download option and the email-it-to-me option.

The Attributes Controller is your friend in this. When I updated my site I simply added the "Email it to me" option value to the "Delivery Method" option and applied that update to one of my download products. Then, using the Attributes Controller's "Copy To" options (either product or category), I indicated that existing attributes should be ignored and only new attributes added. It was a quick and easy way to add that Delivery Method option to all of my downloads!

28 Dec 2014, 3:22 PM
#48
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

One last question. Can this work with Zen Cart 1.39h?

And before you say it, yes I should upgrade. But I don't know if I can before the end of the year, so this takes precedence at the moment.

28 Dec 2014, 3:46 PM
#49
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

It could, but it currently doesn't due to the admin-level changes introduced in v1.5.0. Let me dust off my ZC1.3.9 braincells and I'll post the teeny file update needed to get the IP2Country tool registered on the admin menu.

OK, here you go. Create the file /YOUR_ADMIN/includes/boxes/extra_boxes/tools_ip2country_dhtml.php that contains:

<?php
// Add IP2Country link to Tools menu
$za_contents[] = array('text' => BOX_TOOLS_UPDATE_IP2COUNTRY, 'link' => zen_href_link(FILENAME_TOOLS_UPDATE_IP2COUNTRY, '', 'NONSSL')); 
28 Dec 2014, 9:00 PM
#50
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

I've submitted v1.0.2 to the Plugins area.

29 Dec 2014, 2:06 PM
#51
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

One final question (this time I swear ... I hope). Well, two.

I currently have my site configured to NOT send me emails when new orders come in. Do I have to change this in any way to receive an email when a digital download is purchased by an EU customer? How do I know to send out the file?

Also, what do I put under the "e-mail me" option in attributes?

29 Dec 2014, 2:16 PM
#52
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

jmsnyder23:

One final question (this time I swear ... I hope). Well, two.

I currently have my site configured to NOT send me emails when new orders come in. Do I have to change this in any way to receive an email when a digital download is purchased by an EU customer? How do I know to send out the file?
I suppose that you'll need to set your site to send you an email when a new order arrives. You'll know to send the file because the option selected is "email me".

jmsnyder23:

Also, what do I put under the "e-mail me" option in attributes?
What I've done on each of my sites that provides digital downloads is to create an Option (using Catalog->Option Names Manager) named "Delivery Method" and then values (using Catalog->Option Values Manager) named (at a minimum) I'll download it and E-mail it to me (e.g. http://vinosdefrutastropicales.com/index.php?main_page=product_info&cPath=2_7&products_id=46). The I'll download it option is assigned your download file via the Attributes Controller.

29 Dec 2014, 2:24 PM
#53
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Hmm, okay. At the moment it only sends a new email when there's a physical order (for actual books, not ebooks) because I was tired of getting a ton of emails for free downloads. But if it can't be helped, I guess I'll have to change that.

Thanks again for all your help! Now to try to implement it and see if I can get it to work ... I'm using one of Picaflor Azul's templates and I noticed earlier in the thread this may pose a problem.

29 Dec 2014, 2:48 PM
#54
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Actually, what I'm going to do is assign a weight to the "email me" option. I already have a code in place that emails me an order if the product has a weight assigned to it (like a physical book) so I know to process the order manually. This way I will only receive copies of the emails which include ebooks I have to mail out to EU customers. I see I can add a weight in the attributes section, so I'll play around with that.

Thanks again for all your help!

30 Dec 2014, 9:57 AM
#55
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: Restrict Digital Downloads [Support Thread]

jmsnyder23:

Actually, what I'm going to do is assign a weight to the "email me" option. I already have a code in place that emails me an order if the product has a weight assigned to it (like a physical book) so I know to process the order manually. This way I will only receive copies of the emails which include ebooks I have to mail out to EU customers. I see I can add a weight in the attributes section, so I'll play around with that.

Thanks again for all your help!

Could you please post this code, as I am sure many others like myself would find it useful.

Thanks in advance.

30 Dec 2014, 2:03 PM
#56
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

It's actually here: http://www.zen-cart.com/showthread.php?183278-Admin-order-confirmation-email-based-on-shipping-cost

DrByte helped me with it a while back. Basically it determines if the product is virtual or physical and sends out an admin email only if the product is physical. I don't know if it'll work with this plugin or not yet by adding a weight in attributes, but I'll let you know!

30 Dec 2014, 7:25 PM
#57
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

I'm going to need some help troubleshooting.

IP address 178.198.122.180 was able to place an order today that contained a digital download file (pdf) without selecting the EU: alternate deliver method attribute.

Order included digital download file and physical goods to be shipped.
Order paid using PayPal
Waiting on reply from customer to questions regarding whether the yellow, nag alerts were present.
The download file is available for automatic download in the customer's account.

I am away from my main computer that allows access to logs or other files for the next 4-5 hours.

30 Dec 2014, 8:21 PM
#58
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

FWIW, that IP address is assigned to Switzerland (not a member of the EU), verified via whois.com and ip2nation.com.

30 Dec 2014, 8:50 PM
#59
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

EGG on face. I just assumed all countries over there were considered w/o checking.

31 Dec 2014, 2:14 PM
#60
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Okay, HELP! I installed the plugin following the instructions and clicked the Admin HOME link, and the page went blank! I don't know what happened. :(