Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default How to restrict payment method by category?

    Hello,

    Let me start off by making the typical statement that I swear I searched. Second of all, I have very limited php knowledge, moderate html knowledge, and have only been using zen-cart for about a week. :)

    Here is my problem...

    My company sells parts right now that are not very expensive. We are building this site to be able to take credit card orders and it works well.

    The site has impressed my bosses so much that they now want to sell very expensive equipment on it as well. However they do not want people to be able to buy the equipment with a credit card (due to the huge hit we take based on the percentage fees).

    I have all of the equipment we are offering for sale in a new category. How can I make it so that items from this specific category have to be purchased with a specific payment method (I have a "send invoice" payment method that I hacked in).

    The only other catch I see with this is if they try to add "equipment" and "parts" to their cart. Would it then just restrict the whole order to the "send invoice" payment method? That would be acceptable, I just don't want them to get an error.

    Thanks in advance for any help, I will be checking back like every 5 seconds :) (but not whining in a post each time).

    Once again, I thank you very much for any help you can provide me.

    Nick

  2. #2
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: How to restrict payment method by category?

    Where'd you get the "send invoice" module?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: How to restrict payment method by category?

    Quote Originally Posted by DrByte View Post
    Where'd you get the "send invoice" module?
    I'm sorry it is called "Account Holder" ... I changed the language file to make it say "Send Invoice".

    I take it that means you don't know the answer to my question though?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: How to restrict payment method by category?

    Quote Originally Posted by GLV View Post
    I take it that means you don't know the answer to my question though?
    Not without seeing the code for the module. Perhaps you could zip and attach it?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: How to restrict payment method by category?

    I will gladly do that later this afternoon, but how does the one specific module affect it? All that module does is add a payment type. It seems like I would need to make changes to the core to restrict the purchasing of items in a certain category to one particular payment type "ID".

    I will edit this with the attachment shortly though.

  6. #6
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: How to restrict payment method by category?

    Actually its right here: http://www.zen-cart.com/index.php?ma...roducts_id=511

    The only thing I changed was the wording of it in the language file.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: How to restrict payment method by category?

    You're welcome. Don't forget to get the powers that be to show their thanks with their pocketbook ... http://www.zen-cart.com/index.php?ma...es&pages_id=14
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: How to restrict payment method by category?

    DrByte...

    I have another similar question.

    I need to add a new shipping "method" that is basically just that we will contact them with a shipping quote. What is the best way to do this?

    I imagine I would customize some already existing method...

    The reason I am asking this here is I need to restrict 2 of my categories to this shipping method (the same 2 categories that I restricted the payment method with you on this thread).

    Thank you for suggestions.

  9. #9
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: How to restrict payment method by category?

    I got it working with adapting the stuff we did for the payment modules and using that on my table shipping module, so now the table rates are not available if any items are included from the 2 categories that require freight shipping.

    So that is great, but I have an error on line 86 and 87 of that table.php and I think it is making my store run REALLY SLOW ... but it is working...

    The error is:

    Warning: reset() [function.reset]: Passed variable is not an array or object in /modifiedurlforprivacy.com/includes/modules/shipping/table.php on line 86

    Warning: Variable passed to each() is not an array or object in /modifiedurlforprivacy.com/includes/modules/shipping/table.php on line 87

 

 

Similar Threads

  1. how to restrict payment modules by shipping address zone?
    By fakeDecoy in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 10 Mar 2011, 08:14 PM
  2. Finding way to restrict paypal as payment method for specific item or category?
    By gisco in forum Setting Up Categories, Products, Attributes
    Replies: 20
    Last Post: 29 Apr 2010, 04:38 PM
  3. Can I restrict so that a Coupon can only be used for one Payment Method?
    By schira in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 7
    Last Post: 11 Jun 2008, 03:53 AM
  4. How do I restrict a category to a prduct type?
    By PaulRiedel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Aug 2007, 03:26 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