Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default payment options based on category - possible?

    I'll preface this question with the fact that I'm not dead set on the best approach to this so I'd appreciate any ideas.
    The problem:
    My client has two main "types" of products. One is standard pay and ship, the other is a subscription based product which ships new at the first of the month which would require manual offline processing (or would it?).
    The solution?:
    What I would like (zen) to be able to do is, detect if a product from categoryX is in the cart and if so, only present the customer with the offline processing option.
    ----
    If this is a possibility or if you have any alternatives I would greatly appreciate it.
    If you're a developer who can assist me with such a mod I would be glad to discuss this with you.
    Last edited by jonias; 5 Feb 2009 at 12:57 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: payment options based on category - possible?

    What if a customer decides to buy BOTH a conventional product AND a subscription in the same order? ...

    What payment method would apply to such an order?
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: payment options based on category - possible?

    In the event a customer orders both a subscription and a regular product, the entire order would be processed manually.

  4. #4
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: payment options based on category - possible?

    Can someone please point me in the right direction? Maybe just give me a hint as to which files I should edit or maybe some syntax to detect if a product is of a certain category ID? I'm pushing a deadline and would really appreciate any help I could get. Thanks.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: payment options based on category - possible?

    You can control whether or not a Payment module is displayed based on the:
    $this->enabled

    being true or false ...

    So, you can set a condition for that based on what is in the cart ...

    One method is to test if any of the Products in the cart use the master_categories_id that is for one set or the other set of Products ...

    I believe if you do a search on:
    $this->enabled

    you should find quite a few modules that give examples of various things that can be done to show or not show modules ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Is it possible to limit the payment options based on the product?
    By brimstone in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Mar 2010, 09:25 AM
  2. Payment options based on customer type
    By scottmcclean in forum Managing Customers and Orders
    Replies: 3
    Last Post: 18 Dec 2009, 09:34 AM
  3. Region based Payment Options - help please!
    By entica in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 3 Apr 2009, 03:22 AM
  4. More payment options based on check and money order
    By martyndw2005 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jan 2008, 03:43 PM

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