Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default require for Amazon does not work

    Hi Guys,

    I'm trying to do a require in tpl_checkout_shipping_default.php, but it does not work. The path is right, but the require destroys my shop:

    PHP Code:
    if(file_exists('amazon_checkout/src/CheckoutByAmazon/Service/Samples/config.inc.php'))
        require 
    'amazon_checkout/src/CheckoutByAmazon/Service/Samples/config.inc.php'
    hope someone of you has a solution for me?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: require does not work

    And if you write it as:
    Code:
    require('amazon_checkout/src/CheckoutByAmazon/Service/Samples/config.inc.php');
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: require does not work

    Then it's the same.
    Something with the require is not working because it doesnt get into config.inc.php code when i debugg.
    It stops at the require and i dont know why.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: require does not work

    Are you sure you want the require in the template and not in the header_php.php for that page?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2009
    Posts
    210
    Plugin Contributions
    1

    Default Re: require does not work

    Maybe an include will work rather then a require.

  6. #6
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: require does not work

    Hi Guys,

    i tried include too but didn't work. It's the same with include and require.

    Is there a difference embedding the lib in header_php.php or directly in the template?

 

 

Similar Threads

  1. My Shipping estimator does not work for guests / users not logged in
    By bgroup99 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 10 Nov 2011, 07:27 PM
  2. Free shipping option for US does not work for NY
    By imen in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 11 Aug 2011, 04:27 AM
  3. Shipping Estimator does not work for me when not logged in
    By speedraceratl in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Aug 2009, 06:14 PM
  4. Override Does not work for me
    By teebee2e in forum Templates, Stylesheets, Page Layout
    Replies: 30
    Last Post: 20 Jun 2006, 05:42 PM

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