Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default disable shipping modules on product variable

    It's possible disable the storepickup shipping module only for those products that have a simple flag, like as 1 into a new database product field named "no store"?
    If yes, how can i do it?
    Thank you

  2. #2
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: disable shipping modules on product variable

    or able storepickup shipping module only for certain customer.

  3. #3
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: disable cod payment for certain product

    It's possibile disable cash on delivery payment only for some product? How can I do it?

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: disable cod payment for certain product

    Quote Originally Posted by 100asa View Post
    It's possibile disable cash on delivery payment only for some product? How can I do it?
    This reply applies equally to your other questions.

    Near the start of the code for each of the modules you'll see a variable being tested that is called "$this->enabled".

    If this variable evaluates to "true" the module is enabled. Otherwise it is disabled. The actual value determined here is from the admin setting used to enable/disable the module.

    To make any of the modules available (or not available) based of some other condition, you only need to "reset" the "$this->enabled" variable based on your test case.

    eg:
    if (product == "bar of gold" ) { "$this->enabled" = "false" ; )

    or

    if (product_field == "no store") { "$this->enabled" = "false" ; ) or perhaps
    if (product_field != "no store") { "$this->enabled" = "true" ; )

    Needless to say, you'll need to you valid code and legitimate tests, but the the methods and principles are sound.

    Cheers
    Rod

  5. #5
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: disable shipping modules on product variable

    Thanks so much!
    I'll do tests and tell you.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 31 Dec 2010, 07:23 PM
  2. Disable shipping to zone by product?
    By johnrid in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 26 Apr 2010, 06:52 PM
  3. please help on how to disable shipping modules.
    By jazzhit0930 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 18 Dec 2009, 12:06 PM
  4. Disable Shipping and Payment Modules
    By pareen in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 29 Jan 2009, 06:54 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