Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Mar 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Donation product type

    HA! I got it!. I used a product type, for me I used Document. Then on Line 100 of tpl_document_product_info_display.php delete PRODUCTS_ORDER_QTY_TEXT and type whatever you want it to say there. Use single quotes if you want to use spaces or dollar signs!

  2. #12
    Join Date
    Jul 2007
    Posts
    69
    Plugin Contributions
    0

    Default Re: Donation product type

    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

  3. #13
    Join Date
    Feb 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: Donation product type

    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.

  4. #14
    Join Date
    Jul 2007
    Posts
    69
    Plugin Contributions
    0

    Default Re: Donation product type

    Quote Originally Posted by owen26 View Post
    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?

    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

  5. #15
    Join Date
    Feb 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: Donation product type

    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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Product With Ability To Enter Any Price As Donation
    By OneSister in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 21 Jan 2010, 07:54 PM
  2. Auction Product Type: Can't add a product of the type.
    By sw0rdz in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Sep 2009, 02:11 AM
  3. Product Type cloned from General Type
    By mhfein in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Jan 2009, 04:37 PM
  4. Donation-like product
    By jonthelam in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 4 Mar 2008, 03:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg