Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8093057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:25:17+00:00 2026-06-05T20:25:17+00:00

In my shipping module I’m trying to check the payment type and only return

  • 0

In my shipping module I’m trying to check the payment type and only return true for valid() if the payment type is not COD. Basically, I only want to give shipping choices of Local Delivery or Local Pickup if paying by COD and not allow actual shipping methods.

My problem is that in the valid() method of the shipping modules I don’t know how to access the current order information. Is there a way to have the order information passed in to the init call? Or some other way to look it up?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:25:18+00:00Added an answer on June 5, 2026 at 8:25 pm

    After some more research I found a signal

    shipping.signals.shipping_choices_query
    

    This allowed me to filter the shipping options that are displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create my own Magento shipping module in Magento 1.6. Since I
I have a shipping module I'm working to wrap up and am trying to
I am working on implementing a new payment module for Magento and want to
Is it possible to log shipping for few tables only in SQL Server 2012?
I can't seem to find the Ubercart 2.x version of USPS Shipping module! This
I'm writing a quick-and-dirty module to restrict shipping methods based on products in the
I created one module in Magento. I create Api.php in that. Now I want
I'm trying to write a simple shopping cart Orchard module that will store items
I'm having a serious problem with a prestashop shipping module for FedEx. I know
I want to be able to toggle what shipping method is used based upon

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.