Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Location
    Netherlands
    Posts
    26
    Plugin Contributions
    0

    Default Function zen_get_products_display_price in admin issue

    Hello,

    I modified the Newsletter module so I can insert products.
    All works fine, except for the display of products price.

    I used the zen_get_products_display_price funtion, but get the following Fatal error:
    Call to a member function display_price() on a non-object in \admin\includes\functions\functions_prices.php on line 245

    I cant figure this one out.. Can anyone help me solve this issue?

    Thanks!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Function zen_get_products_display_price in admin issue

    Quote Originally Posted by Robbie_79 View Post
    Hello,

    I modified the Newsletter module so I can insert products.
    All works fine, except for the display of products price.

    I used the zen_get_products_display_price funtion, but get the following Fatal error:
    Call to a member function display_price() on a non-object in \admin\includes\functions\functions_prices.php on line 245

    I cant figure this one out.. Can anyone help me solve this issue?

    Thanks!
    Are you passing a valid $products_id to the function when calling it?

    It looks like this is missing or null.

    Cheers
    Rod

  3. #3
    Join Date
    Oct 2008
    Location
    Netherlands
    Posts
    26
    Plugin Contributions
    0

    Default Re: Function zen_get_products_display_price in admin issue

    Yes, a valid products_id is passed.

    The problem was the currencies class was unknown to the newsletter module (which is used by the zen_get_products_display_price function).
    After adding:

    require(DIR_WS_CLASSES . 'currencies.php');
    $currencies = new currencies();

    to newsletters.php, I'm good to go ;)

    Cheers!

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Function zen_get_products_display_price in admin issue

    Quote Originally Posted by Robbie_79 View Post
    I'm good to go ;)

    Cheers!

 

 

Similar Threads

  1. adding an asterisk to zen_get_products_display_price((int)
    By The_Mech in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 2 Mar 2012, 06:01 PM
  2. Define a function that to be used from both admin and non-admin area?
    By Cindy2010 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Nov 2011, 07:35 AM
  3. The function zen_get_products_display_price
    By g.nencini in forum General Questions
    Replies: 3
    Last Post: 23 May 2009, 09:22 PM
  4. Replies: 0
    Last Post: 20 Feb 2007, 01:39 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