30, August 2008

Call to undefined method create_message() - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: Call to undefined method create_message()
« previous next »
Pages: [1] Print

Author Topic: Call to undefined method create_message()  (Read 713 times)
Bill Cosby is my Father
*
Posts: 4
32 credits
Members referred : 0


« on: Aug 08, 2007, 03:47:37 PM »

hello,

I try to use your cart class, but in the db_cart_stock_example.php example, I have an error. So the function "create_message() e" doesn't exist.

Can you help me ?
Regards,
Fabrice

« Last Edit: Nov 02, 2007, 09:52:37 AM by Olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6301
38632 credits
Members referred : 374


It's time to use PHP5!


Re: Call to undefined method db_stock_cart::create_message()
« Reply #1 on: Aug 08, 2007, 03:54:46 PM »

some old code Smiley

change the method name to: messages


Last blog : Is your website is down? Know before your visitors do!
Bill Cosby is my Father
*
Posts: 4
32 credits
Members referred : 0


« Reply #2 on: Aug 08, 2007, 04:47:05 PM »

ok, Thank you. So, the version that I have (1.13) is not the newer ?

I have an another error in db_cart_checkout_stock_example.php :

Notice: Undefined index: 04.20.43.00 in F:\web\www\tests\db_cart\db_cart_checkout_stock_example.php on line 142.
 
Code:
<td align="center"><?php echo $stock_array[$val['product_id']]; ?></td>
And the $stock_array is not defiined Wink so,  :
Code:
$stock_array = array();

Can you explain to me a little it the "on stock" example, please ? I've read the readme.htm but for me, it's just that, if I chose a product, the class check if the stock of this product is positive ?. It's right ?


Regards,
Fabrice
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6301
38632 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Aug 08, 2007, 04:54:41 PM »

the stock example was just an example I tried several versions before. You need that feature only if the stock value for your products is dynamic


Last blog : Is your website is down? Know before your visitors do!
Bill Cosby is my Father
*
Posts: 4
32 credits
Members referred : 0


« Reply #4 on: Aug 08, 2007, 06:25:42 PM »

no, when our customer add his products (in his adminstration interface), the quantity is not set.

Thanks.
Fabrice
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6301
38632 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Aug 08, 2007, 11:31:28 PM »

no, when our customer add his products (in his adminstration interface), the quantity is not set.

Thanks.
Fabrice

than use the regular examples


Last blog : Is your website is down? Know before your visitors do!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6991
Tags : stock create_message undefined Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: Call to undefined method create_message()
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Aug 30, 2008, 01:58:12 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.176
Total Topics: 7.461
Total Members: 3.861
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: matsolof

30 Guests, 4 Users online :

17 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.