Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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