WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My situation:

I'm selling a few products. I need to get some options at checkout (like Do you want to add installation services?) that will affect the price, and I need to reference a custom database table to do some complex price calculations to get a total order price.

I wanted to use getshopped.org's wp e-commerce shopping cart, but somehow override the checkout page to do what I need, then return my calculated price to wp e-commerce to finish the order up.

How would I do this? Would I use a hook? Should I change some method that calculates the totals (without losing my changes on the next update)? Or do I have to drop the plugin and roll my own completely? Thanks so much.

share|improve this question

closed as off-topic by Pieter Goosen, birgire, cybmeta, Mark Kaplun, gmazzap Nov 27 '14 at 14:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

Some inspiration:
An old colleague of mine did a similar solution. He created a product, in your case called "Installation service", put it as a draft and added it with ajax when customer added it in the shopping cart, and then updated the total price. In that way the product was added to the order and the total price.

share|improve this answer
That's a good idea Elisabeth, thanks. That solves half my problem, but not the table look up part. I'm thinking I'll have to roll my own. – Jeff Mar 5 '12 at 16:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.