Page 10 of 12 FirstFirst ... 89101112 LastLast
Results 91 to 100 of 113
  1. #91
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,949
    Plugin Contributions
    71

    Default Re: Restrict Digital Downloads [Support Thread]

    Since there's no look-up for IPv6 addresses, they're also restricted. That would explain why some of your US customers are also restricted.

    In either case, the following change (applied to each of the /includes/templates/YOUR_TEMPLATE/{product type}/extra_main_template_vars/restrict_digital_downloads.php files) to the jQuery script will ensure that one of the radio buttons in the downloadable product's group is selected during the restriction:
    Code:
    <script type="text/javascript">
    $(document).on ('ready', function(){
      $('<?php echo $download_selectors; ?>').each(function(){
        $(this).removeAttr( 'selected checked' );
        $(this).attr( 'disabled', 'disabled' );
        if ($(this).is( 'input' )) {
          var radioName = $(this).prop( 'name' );
          $(this).siblings('input[name="'+radioName+'"]').eq(0).prop( 'checked', true );
    
        }
      });
    });
    </script>
    I'll be submitting this change to the plugins for review ...

  2. #92
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,949
    Plugin Contributions
    71

    Default Re: Restrict Digital Downloads [Support Thread]

    v1.1.0 has been submitted to the plugins and will be available here (http://www.zen-cart.com/downloads.php?do=file&id=1933) once approved.

    You can also download the plugin from its github repository: https://github.com/lat9/restrict_dig...ses/tag/v1.1.0

  3. #93
    Join Date
    Jan 2010
    Location
    Richmond, Virginia, United States
    Posts
    105
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    Thanks. I don't know if this is what's happening or not. It doesn't work for the same customer all the time, or for the same product.

    For instance, I had a customer in the US buy 3 ebooks yesterday. Two of them he managed to purchase without choosing either option (download -- the default -- or email). The last ebook he chose the download option. One of the books that didn't get an option is a free ebook, so there is only 1 option (download only). Yet he still managed not to select it.

    Thus his order shows three books, 2 with no attributes and 1 with a download link.

    I found something in the forums about the possibility of two downloadable products with the same attribute in a cart canceling each other out, but I don't know if that's what's happening here or not. When I tried to implement the code they suggested, my product page didn't load at all. That info was here: http://www.zen-cart.com/showthread.p...button-checked

    It doesn't happen a lot but it DOES happen. I've asked customers how they managed to add the ebook to their carts without selecting an attribute, but they don't seem to know.

  4. #94
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,949
    Plugin Contributions
    71

    Default Re: Restrict Digital Downloads [Support Thread]

    You can see the customer's IP address as part of the Customers->Orders display. Did any of the questionable orders come from an IPv6 address?

  5. #95
    Join Date
    Jan 2010
    Location
    Richmond, Virginia, United States
    Posts
    105
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    No, the IP address looks normal. One of them is 72.235.150.237 (this isn't IPv6, is it?).

  6. #96
    Join Date
    Jan 2010
    Location
    Richmond, Virginia, United States
    Posts
    105
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    I'm going to implement the additional radio button mentioned in this thread as a workaround:

    http://www.zen-cart.com/showthread.p...tton-mandatory

    Thanks for your help!

  7. #97
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,949
    Plugin Contributions
    71

    Default Re: Restrict Digital Downloads [Support Thread]

    Quote Originally Posted by jmsnyder23 View Post
    No, the IP address looks normal. One of them is 72.235.150.237 (this isn't IPv6, is it?).
    Nope, it's an IPv4 address. With the updated version of RDD, you can enter that IP address in the IP to Country tool to make sure that it's not restricted.

    Quote Originally Posted by jmsnyder23 View Post
    I'm going to implement the additional radio button mentioned in this thread as a workaround:

    http://www.zen-cart.com/showthread.p...tton-mandatory

    Thanks for your help!
    OK, but the jQuery change I posted above should also address the issue.

  8. #98
    Join Date
    Aug 2004
    Posts
    644
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    Any idea why I get the following message when I try to upload the unzipped CSV file?

    Code:
    Please choose a CSV file to be uploaded.
    The file I am selecting to upload with the browse button is: IP2LOCATION-LITE-DB1
    - Jeff

  9. #99
    Join Date
    Aug 2004
    Posts
    644
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    Correction - The file I am trying to upload is IP2LOCATION-LITE-DB1.CSV

    It always gives me that "Please choose a CSV file to be uploaded." error after I hit the UPLOAD button. Cannot figure out why it doesn't see the file and update the database. Any ideas?
    - Jeff

  10. #100
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,949
    Plugin Contributions
    71

    Default Re: Restrict Digital Downloads [Support Thread]

    What are the permissions associated with the directory into which you've downloaded/unzipped the CSV file? I've seen that message on my local machine when I put the CSV file into /MYADMIN/backups, for example.

 

 
Page 10 of 12 FirstFirst ... 89101112 LastLast

Similar Threads

  1. Hebrew Support - new release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 12
    Last Post: 9 Oct 2019, 09:32 PM
  2. v151 Limit Quantities for Downloads and Virtual Products [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 47
    Last Post: 17 Jan 2016, 03:48 PM
  3. v154 Email Downloads Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Jun 2015, 06:41 PM
  4. Digital Downloads
    By keithck73 in forum General Questions
    Replies: 8
    Last Post: 9 Mar 2009, 06:45 PM
  5. Admin Users - Restrict Product Categories Support Thread
    By anafor in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Aug 2008, 09:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR