Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default i want to make moneyorder not OK if item shipping

    Hi,

    I am trying to disable payment by moneyorder on "item" delivery purchases.

    I guess, some code is to be added in moneyorder.php.

    Does anyone have a lead ?

    Thanks a lot..

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: moneyorder not OK if item shipping

    Probably better to make the change in the payment class, where it works out what payment methods are available. Otherwise your Zen Cart may think, and act, as though it has more methods available than it actually does.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: moneyorder not OK if item shipping

    Hi,

    Thanks. Just to be sure, that would be in

    includes\classes\payement.php ?

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: moneyorder not OK if item shipping

    Actually, a little elf has just has just whispered in my ear that it would be better to go with your original plan and use your condition to set the $this->enabled class variable to true or false as appropriate.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: moneyorder not OK if item shipping

    Hi,

    Thanks. This leads to a question regarding sessions, I guess. The code in moneyorder.php should use:

    $_SESSION['cart']->stuff()

    followed by conditions leading to $this->enabled = true or false

    Does anyone know how to get the list of stuff() available at that stage ?

    Thanks..

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: moneyorder not OK if item shipping

    The session's only contribution to this is to hold the name of the object created by the cart class. You could try using var_dump() to see what's in there, and then extract what you need. This is usually good enough though, but if not, you would need to visit the cart class to see how the object is constructed.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. v153 want to make on category a price shipping only
    By RonGin in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 23 Nov 2015, 08:24 PM
  2. Replies: 0
    Last Post: 21 May 2012, 03:07 AM
  3. I want to make a item free if purchase is 100.00 or more
    By Carl Sciscio in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 11 Jan 2010, 09:17 AM
  4. How do I make each item require it's own shipping box?
    By Helvis in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 20 Jun 2007, 07:09 PM
  5. Image not showing Don't want item to show?
    By melkor6925 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Feb 2007, 09:36 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