Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    26
    Plugin Contributions
    0

    Default Cross Sell Errors - Help!

    On the tpl_product_info_display.php document, when I insert this code:

    <?php
    require($template-> get_template_dir('tpl_modules_xsell_products.php",
    DIR_WS_TEMPLATE, $current_page_base,"templates'). '/'.
    'tpl_modules_xsell_products.php');
    ?>
    I get these errors:
    Warning: Missing argument 2 for get_template_dir() in /home/tot2t3/public_html/includes/classes/template_func.php on line 42

    Warning: Missing argument 3 for get_template_dir() in /home/tot2t3/public_html/includes/classes/template_func.php on line 42

    Warning: Missing argument 4 for get_template_dir() in /home/tot2t3/public_html/includes/classes/template_func.php on line 42

    Warning: main(includes/templates/template_default//tpl_modules_xsell_products.php) [function.main]: failed to open stream: No such file or directory in /home/tot2t3/public_html/includes/templates/Custom/templates/tpl_product_info_display.php on line 243

    Warning: main(includes/templates/template_default//tpl_modules_xsell_products.php) [function.main]: failed to open stream: No such file or directory in /home/tot2t3/public_html/includes/templates/Custom/templates/tpl_product_info_display.php on line 243

    Warning: main(includes/templates/template_default//tpl_modules_xsell_products.php) [function.main]: failed to open stream: No such file or directory in /home/tot2t3/public_html/includes/templates/Custom/templates/tpl_product_info_display.php on line 243

    Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default//tpl_modules_xsell_products.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tot2t3/public_html/includes/templates/Custom/templates/tpl_product_info_display.php on line 243

    I have tried reinstalling and nothing changed. Am I putting the code in the wrong location? I've added it to the bottom of the page above the last <?php. Any thoughts as to why?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Cross Sell Errors - Help!

    This is most likely because you're playing fast and loose with your quotes, mixing single and double quotes and confusing the hell out of PHP. For this particular code insertion, I recommend sticking to single quotes throughout.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Oct 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: Cross Sell Errors - Help!

    Thanks for the help! It works great now.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 18 Sep 2013, 11:24 PM
  2. Which one? Multi Cross Sell vs Ultimate Cross Sell?
    By Renz in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Jul 2013, 08:30 AM
  3. Fatal Error After installing Cross Sell - Just Another Cross Sell Mod
    By kconklin in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 9 Jul 2010, 02:38 PM
  4. Cross Sell and Advanced Cross Sell Modules
    By fairway in forum Addon Templates
    Replies: 4
    Last Post: 8 Dec 2009, 08:44 PM
  5. Cross Sell ver 1.3 Install Errors
    By jayson.gurney in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Jun 2006, 10:44 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