Page 1 of 2 12 LastLast
Results 1 to 10 of 113

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Restrict Digital Downloads [Support Thread]

    Sure: http://www.zen-cart.com/content.php?6-donate

    I'm glad to have helped!

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Restrict Digital Downloads [Support Thread]

    I posted this in the template support thread but since then, I have been looking at the raw server log for December.

    These errors began on the date that I installed the RDD plugin which leads me to believe that the errors are somehow related to RDD.
    Prior to this plugin, the template files did not include the various product_info folders which are created by RDD.

    Do I need a template patch, an RDD patch or something else? With all the possible code variations related to plugins and templates, I don't know how code writers keep things as functional as you do.

    Quote Originally Posted by RixStix View Post
    I've looked as much as I know how to find the source of these which is causing problems. I have compared default template files with my edited template files and have not seen anything obvioius.

    Anne, can you help? These are excerpts from a "view source" of any product page.
    The template doesn't include any /product_info folder
    I'm assuming that the doubleslash between the product_info and file name is most likely the culprit, but where to find those 4 edits?

    Server error logs has 4 lines of filedoesnotexist error for each product view.
    I do not know when it started.
    It could be due to an edit made by me.


    Code:
    <script  src="includes/templates/westminster_new/product_info//css_browser_selector.js"  type="text/javascript"></script>
    <script  src="includes/templates/westminster_new/product_info//jquery.slimmenu.min.js"  type="text/javascript"></script>
    <script  src="includes/templates/westminster_new/product_info//easyResponsiveTabs.js"  type="text/javascript"></script>
    <script  src="includes/templates/westminster_new/product_info//jquery.tabSlideOut.v1.3.js"  type="text/javascript"></script>
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Restrict Digital Downloads [Support Thread]

    Rick, use your admin's Tools->Developers Tool Kit and search for $template->get_template_dir. What you're looking for are (poorly coded) constructs that look like:
    Code:
    <?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js';
    See how the first variable is an empty string? You'd change the above to
    Code:
    <?php echo $template->get_template_dir('css_browser_selector.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js';
    to correct the error. Repeat for each instance found.

  4. #4
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Restrict Digital Downloads [Support Thread]

    Thank you Cindy,

    4 errors fixed.
    1 new created but that is just an image not found. For now, I just copied the image from the images folder to all of the product_info folders.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Restrict Digital Downloads [Support Thread]

    Quote Originally Posted by RixStix View Post
    For now, I just copied the image from the images folder to all of the product_info folders.
    Instead, seeing a similarity.... I followed your example & took similar action for the image file.

    Thank you again
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Restrict Digital Downloads [Support Thread]

    I'm back again (sorry!).

    I'm using one of Picaflor Azul's responsive templates. With this javascript code on my site, the mobile version no longer works right. The dropdown menus are all visible (you can't click to toggle them open or closed) and most of the links no longer work. Is there a reason for this?

    I can't figure out how to make the two scripts play nice. Any advice would be helpful. Thanks!

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Restrict Digital Downloads [Support Thread]

    Did you make the required code-fixes to the template files? Refer to this (http://www.zen-cart.com/showthread.p...70#post1268970) posting plus a couple of lines below for the corrections necessary.

  8. #8
    Join Date
    Apr 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    If anyone has trouble with their site template displaying incorrectly after installing the RDD plugin I suggest you look at this solution for Lat9 below as this helped me to solve the problem I was having with the Westminster New responsive template.

    Quote Originally Posted by lat9 View Post
    Rick, use your admin's Tools->Developers Tool Kit and search for $template->get_template_dir. What you're looking for are (poorly coded) constructs that look like:
    Code:
    <?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js';
    See how the first variable is an empty string? You'd change the above to
    Code:
    <?php echo $template->get_template_dir('css_browser_selector.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js';
    to correct the error. Repeat for each instance found.

    FOR THE WESTMINSTER NEW Responsive Template you need to make two corrections:


    After some digging and research on the forum I have found the fix to the problem with the product info display and it is a small code bug in the Westminster New template files that i fixed. I wanted to post the solution here so others can use the fix and that you could update your code for any future releases :-)

    There are two files with a variable that is an empty string, the two files are:

    includes/templates/westminster_new/templates/tpl_product_info_display.php
    templates/westminster_new/common/html_header.php


    Open includes/templates/westminster_new/templates/tpl_product_info_display.php and FIND:
    Code:
     <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/easyResponsiveTabs.js' ?>" type="text/javascript"></script>
    Replace with:
    Code:
    <script src="<?php echo $template->get_template_dir('easyResponsiveTabs.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/easyResponsiveTabs.js' ?>" type="text/javascript"></script>
    Next OPEN templates/westminster_new/common/html_header.php and FIND:
    Code:
     <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
    Replace with:
    Code:
    <script src="<?php echo $template->get_template_dir('css_browser_selector.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
    I used the admin's Tools->Developers Tool Kit and search for $template->get_template_dir and checked for any variable that is an empty string.
    Last edited by missesbeehaven; 9 May 2015 at 06:57 AM.
    Melanie
    beehavendesignz DOT com

  9. #9
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Restrict Digital Downloads [Support Thread]

    If you look back through the Westminster_New support thread, around POST #408 in early January 2015, you will find several additional, similar edits that should also be made.

    Quote Originally Posted by missesbeehaven View Post
    If anyone has trouble with their site template displaying incorrectly after installing the RDD plugin I suggest you look at this solution for Lat9 below as this helped me to solve the problem I was having with the Westminster New responsive template.

    FOR THE WESTMINSTER NEW Responsive Template you need to make two corrections:

    After some digging and research on the forum I have found the fix to the problem with the product info display and it is a small code bug in the Westminster New template files that i fixed. I wanted to post the solution here so others can use the fix and that you could update your code for any future releases :-)

    There are two files with a variable that is an empty string, the two files are:

    includes/templates/westminster_new/templates/tpl_product_info_display.php
    templates/westminster_new/common/html_header.php

    Open includes/templates/westminster_new/templates/tpl_product_info_display.php and FIND:
    Code:
     <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/easyResponsiveTabs.js' ?>" type="text/javascript"></script>
    Replace with:
    Code:
    <script src="<?php echo $template->get_template_dir('easyResponsiveTabs.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/easyResponsiveTabs.js' ?>" type="text/javascript"></script>
    Next OPEN templates/westminster_new/common/html_header.php and FIND:
    Code:
     <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
    Replace with:
    Code:
    <script src="<?php echo $template->get_template_dir('css_browser_selector.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
    I used the admin's Tools->Developers Tool Kit and search for $template->get_template_dir and checked for any variable that is an empty string.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  10. #10
    Join Date
    Jan 2010
    Location
    Richmond, Virginia, United States
    Posts
    114
    Plugin Contributions
    0

    Default Re: Restrict Digital Downloads [Support Thread]

    I'm having difficulty with some US IP addresses being blocked. For example, this one: 45.36.115.222.

    An IP lookup shows it's in North Carolina. But the customer says he doesn't see the download option, only the email option. How can I add this to the approved list?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  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