If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Shipping Modules / Newbie coding question

Newbie coding question

Locked

Started by audleman on 25 Jul 2007, 12:27 AM · Views: 1,390

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Jul 2007, 12:27 AM
#1
audleman avatar

audleman

New Zenner

Join Date:
Jul 2007
Posts:
69
Plugin Contributions:
0

Newbie coding question

I am going to be writing a custom shipping module for a small nonprofit. It will base the rate on the maximum number of any individual item. The total number of items is irrelevant.

In the tables code, I see function calls on $_SESSION['cart'], e.g. $_SESSION['cart']->show_total(). I was wondering where I could find out what other functions I can call on the cart. Can anybody point me in the right direction?

Thanks,
Kevin

25 Jul 2007, 4:26 PM
#2
brandtim avatar

brandtim

Zen Follower

Join Date:
Apr 2006
Posts:
250
Plugin Contributions:
0

Re: Newbie coding question

The shopping cart class is defined in (not surprisingly) includes/classes/shopping_cart.php.

By looking through that file, you can see all of the available functions/methods of that class, except the ones extended from base. Those are in includes/classes/class.base.php.

BrandTim

25 Jul 2007, 4:52 PM
#3
audleman avatar

audleman

New Zenner

Join Date:
Jul 2007
Posts:
69
Plugin Contributions:
0

Re: Newbie coding question

Thank you BrandTim. That's very helpful.

Cheers,
Kevin