Nate, it sounds like you're on the right track.
Originally I thought I would complete this as its own module, but I've currently got way more work than I could handle. If there is somebody interested in funding the work then let's talk.
Kevin
Nate, it sounds like you're on the right track.
Originally I thought I would complete this as its own module, but I've currently got way more work than I could handle. If there is somebody interested in funding the work then let's talk.
Kevin
Well, I have this working just fine for me now.
But my question is, how do you hide the quantity display in the shopping cart for the "donation" product type only?
If you go to Audelman's website at http://store.yesmagazine.org/donate?cPath=5 , enter a donation amount, and go to his shopping cart, you'll see that he is able to hide the quantity displayed for the donation item. So, if you donate $50, the dollar total displays fine but it doesn't display 50 "units" under quantity.
That's what I want my cart to do as well. Additionally, if you add one of his "standard" product types, the quantities show up just as they should.
I tried setting "show quantity in shopping cart" under my product type (Document Product Type) to zero, but no luck.
I'm guessing I need to modify either my shopping cart template or product type template, but I would appreciate any help with the PHP code.
I overwrote the shopping cart template directly. You'll have to do the same for the Order Confirmation page and, to be thorough, the customer email.
The first two are pretty easy to override, the email is some of the craziest spaghetti logic code you'll ever deal with.
Good luck,
Audleman
Audleman: Would you be willing to share your tpl_shopping_cart_default.php code with us? I'm thinking your modification must lie somewhere inside the "loop through all products" section of that page. Did you just delete a little snippet of the default code, or did you have to add some new logic of your own? Thanks.