Results 1 to 10 of 147

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    I have attached the changes I've made to have the definitions of the Mail,Popup and Account fields so that you can set it in the language file and not in the database, this way You can have the texts in different languages.
    Hope it can help

    multi.mod.zip

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    Quote Originally Posted by izar74 View Post
    I have attached the changes I've made to have the definitions of the Mail,Popup and Account fields so that you can set it in the language file and not in the database, this way You can have the texts in different languages.
    Hope it can help

    multi.mod.zip
    Thanks for the files, I actually skipped 4.2.2 and moved right to 4.3.0. and submitted for moderation. Thanks again!

  3. #3
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    Hi again,

    i've downloaded the new version e still testing It, meanwhile i found a strange problem.
    error.jpg

    The big red arrow indicate what i've found. After a few try I found out that it comes when i modified the footer.php adding:
    PHP Code:
    <!--bof back in stock popup-->
    <?php require($template->get_template_dir('tpl_modules_back_in_stock_fancybox.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_back_in_stock_fancybox.php'); ?>
    <!--eof back in stock popup-->
    So clearly it's a problem related to the loading of the tpl_modules_back_in_stock_fancybox.php (i've tried also on a fresh install,with the same template, and the problem is the same) but till now i wasn't able to figure it out.

    The template is the winchester Black, with the default template it desn't show... which file could be involved?

    Thnaks for any advice

  4. #4
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    Ok seem i found out the error in /includes/templates/YOUR_TEMPLATE/tlp_modules_back_in_stock_fancybox.php Line 22 is:
    PHP Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\');}
    </script>'
    ."\n"
    it seems there ere some characters more than needed -->"');}"
    I modified the line as follow:

    PHP Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>'."\n"
    Now the problem seems gone, just check it to be sure i didn't make any mistake.

  5. #5
    Join Date
    May 2005
    Location
    England
    Posts
    740
    Plugin Contributions
    0

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    I get that too. Wasn't confident enough to change the file as my code looks a tiny bit different too

  6. #6
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    wooops sorry i forgot the closing ")" and "}", here the code i'm using at the moment and it seem to work fine:

    PHP Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>')}."\n"

  7. #7
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    Discard the upper modification... it generates error. Sorry but I'm not very good at the moment and I'm making mistakes...

    Using THIS code:

    PHP Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') { document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>'."\n"
    It work fine and doesn't generate any error even if it seems to me not to be correct. Waiting for someone with more skill than me to take a look

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

    Quote Originally Posted by izar74 View Post
    Ok seem i found out the error in /includes/templates/YOUR_TEMPLATE/tlp_modules_back_in_stock_fancybox.php Line 22 is:
    PHP Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\');}
    </script>'
    ."\n"
    it seems there ere some characters more than needed -->"');}"
    I modified the line as follow:

    PHP Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>'."\n"
    Now the problem seems gone, just check it to be sure i didn't make any mistake.
    The solution posted leaves behind a stray slash on the page. Should be:
    Code:
    echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script></script>'."\n";  
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. Ceon Back In Stock Notifications 3.0.0
    By conor in forum Addon Admin Tools
    Replies: 204
    Last Post: 8 Apr 2025, 05:19 PM
  2. Replies: 4
    Last Post: 14 Feb 2013, 09:33 PM
  3. back in stock notification - buttons 'back' and 'update' not working
    By flix in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Mar 2010, 10:02 PM
  4. "Notify me when Out of Stock items is back in stock" Mod?
    By mes7000 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 21 Aug 2008, 06:04 PM
  5. Module: Back to Stock Items like this one how to?
    By explorer1979 in forum General Questions
    Replies: 0
    Last Post: 12 Aug 2008, 04:47 AM

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