Get Shipping / Billing Address ID Of An Order Outside Magento Core API?

I want to get a shipping/billing address id from a just complete order out of Magento.

I have tried the following code but it's not worked:



Return An Array Of Billing Addresses And Shipping Addresses In Magento?

Is there a way to make Magento return a PHP array of all shipping/billing addresses that the logged in user has used in the past?

View 1 Replies View Related

Magento: Filter Order List By Shipping Method?

I try to create custom grid with orders shipped by some shipping method (for example TNT). Here is a method where should be a filter:

protected function _prepareCollection()
$collection = Mage::getResourceModel($this->_getCollectionClass());
return parent::_prepareCollection();

I'm going to use something like addFieldToFilter(), but I don't know field name.

View 2 Replies View Related

Limit Shipping Address Of A Group Of Products To Certain Country In Magento?

I have to limit the shipping address of music and dvds to only one country in Magento. For example a client has in basket 3 books and a dvd and he selects a country other than allowed, I need a message to be shown: "You have in your basket at least one music or movie product. Distribution rights are limited only to /country/".

View 1 Replies View Related

Billing Address

for an e-commerce project, we allow the customer has multiple shipping address in the database. How do you handle the same situation:

approach 1) two tables, customer and address.

customer table will only have the name, account number etc. address table holds the multiple addresses for the customer (including billing and shipping, with a flag telling which address is the billing address.). approach 2) two table, customer and shipping_address. customer table will have the name, account number and billing address. shipping_address table will only have the shipping addresses.

I don't see the obvious advantages and disadvantages in both approaches. I used both. Recently I used the approach 2) more often. Just want to know what do you think? If I can hear from your experience, it might help me to stick with one approach for a long time. Reuse some codes, not switch back and forward between these two approaches.

View 5 Replies View Related

Call A Core Template In Magento?

I have created list1.phtml in Magento with some changes to the file list.phtml. My problem is that I want to call list1.phtml like list.phtml. I copied the code of list.phtml from catalog.xml and created a new content block for list1.phtml but it doesn't work for me.

I want a page in Magento that only shows 5 product rows, and all other pages are the same with 3 products. I am overriding list.phtml to list1.phtml according to my needs but it doesn't work for me.

View 2 Replies View Related

Magento: Can Two Modules Extend The Same Core Model

Is it possible to create two modules which extend the same core model like Mage_Customer_Model_Customer?

What will I receive when I access the (overloaded) core model?

View 1 Replies View Related

Magento - Create A Minimum Shipping Charge?

We use USPS API for international shipping. The API returns a shipping cost and we add % Handling charge. We want to set a minimum charge, e.g., if shipping + handling is less than $5 we want to set the shipping price to $5. Would this require writing a full shipping module or just adapt the USPS module?

View 1 Replies View Related

Integrate Webgistix Shipping Method Into Magento?

integrate webgistix shipping method into Magento. Is there an extension available for that or should I integrate in customized way ?

View 2 Replies View Related

Multiple Items Same Shipping Consignment In Magento?

Say I have products 1, 2 and 3. They can all be sent in the same consignment, but with a maximum of 5 per consignment. How do I set it up so that the checkout recognizes this and only applies the shipping once to all of them (max 5)?

For example: One consignment can have 5 items but only from a specific manufacturer. So the shipping cost for 1 item is the same as the cost for 5 items. But 6 items will need to be sent in two consignments so the price is doubled.

1-5 items, £10.00
6-11 items, 20.00 ..

View 3 Replies View Related

Accessing Shipping Cost In Magento's Cart And/or Checkout

Please note, this question is regarding the shipping cost, not price. There is an important difference, i.e. what $$ charge the shipping method incurs for the store owner, as opposed to what is $$ charge is paid by the customer.

The shipping_tablerate database table includes a cost field, which is populated in the Mage_Shipping_Model_Carrier_Tablerate object during the collectRates method. However, that field is not accessible anywhere else in the stack, e.g. from a quote's address.

I need to access that value on the cart page, and I can't find anyway to achieve it, other than to instantiate a Mage_Shipping_Model_Rate_Request object to pass into collectRates(). That seems unnecessarily inefficient given that the data is already loaded from the table and should be accessible.

I have tried Observing the <shipping_carrier_tablerate_load/> event, but it seems that the _load event is not thrown for that model.

I have also tried accessing the rate from the quote:

$quote = Mage::getSingleton('checkout/cart')->getQuote();
$address = $quote->getShippingAddress();
$rate = $address->getShippingRateByCode($code ='tablerate_bestway');

I can see the calculated price, however cost is not present in that model.

View 1 Replies View Related

In Magento, How Can Put An Items Shipping Cost On The Product Page?

I want to put a shipping cost on the actual product page in Magento, so customers can see how much it will cost them. I can add in the shipping estimator from the basket page. But all i actually want is a line of text under the product price saying shipping from £XX.XXI have seen this tutorial[URL]....-details-page-in-magento/#comment-10 but it is not working for me on Magento 1.4.2 - i think this an older version is used on this tutorial.I am using a weight based table rate shipping method at the moment, with only one option.EDIT: I worked out the problem in the end: Rather embarrasingly I didnt realise the blog was stripping the formatting out. It was changing the ' to aI can now confirm the code below does display the shipping:


View 2 Replies View Related

Magento: Multiple Flat Rate Shipping Dependent On Category?

Basicily one category set has a slightly higher delivery cost.

I've installed a Multiple Flat Rate extension but I can't figure out how to set a different flat rate if a product in the shopping cart is from a certain category.

At the moment I've set the flat rate to the higher delivery cost and I'm giving all the other categories a 5 discount, which looks very odd at checkout and on the invoice (especially if the product they purchase is less than 5).

Has anyone done this before, know an extension that will do it or could explain how I could do it?

View 2 Replies View Related

Paypal Buy Now Button And Shipping Address?

I want to setup a simple shopping cart using PHP, only 2 items, I am planning to use paypal buynow button for this, but what about the shipping address details ?, should I collect those details from my site or paypal has such an option so that users can enter shipping address ?

View 1 Replies View Related

Customize The Magento App / Code / Core Folder Without Affecting Future Upgrades?

I found a guide on how to add new attributes to users, it explains that for this operation I must modify some files in the app / code / core / Mage directory (the directory that contains Magento modules).

But if i make some changes in that folder will this affect future upgrades?

Will an upgrade will delete my changes?

Should I limit the changes only to my modules to not have problems with updates?

View 3 Replies View Related

Get List Of Stores Using The Zip/city In Shipping Address?

I need to get the list of stores using the zip/city that we specify in the shipping address
( In Admin Panel

System->Configuration->Shipping Settings(In Sales Tab left)->Origin.

Is there any way to query Magento to get the list of stores with a particular Zip/city ?

View 1 Replies View Related

Retrieving Single Order In Magento By Increment_id After Editing An Order With Configurable Products?

I've come across an interesting problem with a Magento store that deals primarily in selling configurable products. I have some code that packages up order information and sends it to an external warehouse who then fulfill the order. With this request, I'm using the increment_id as the identifier. Periodically, we ask the warehouse if the order has shipped and if they report it has, we retrieve the order in Magento via the increment_id and complete the order by creating a new shipment against it.

Now, this works fine until an order is edited. Due to Magento's handling of configurable products, editing an order involves cancelling the current order and recreating it anew with the same increment_id. Subsequently, my interactions based on the increment_id are now scuppered, since only the first (cancelled) order appears to be retrieved when I do something like this, as the increment_id is no longer unique:

$order = Mage::getModel('sales/order')->loadByIncrementId(100000001);

Ordinarily, having a duplicate increment_id is not possible, so I would have expected Magento to give preference to the 'active' order, but this is not the case. Now, I found a way to get around this with a collection:

$orders = Mage::getModel('sales/order')


However, I'd be interested to know if there's a way to get just one record back from the collection, negating the need for the foreach.

View 1 Replies View Related

Magento Shipping / Shipment Option A Carrier In The Drop Down List What Class Must Extend To Add The Functionality?

I have recently created a new shipping module in Magento 1.3.2 with the aid of the Magento developers guide. My module works correctly, however I cant seem to work how to get the functionality for it to become apart of the carriers down down list when a shipment is created within the admin area.

Once I have my carrier in this drop down list, I am going to need to apply additional functionality so that if my carrier is selected when the shipment order is placed then it does a whole heap of things.

So things i need to work out are:

How can make my shipment option a carrier in the drop down list What class must I extend to add the functionality or can I simply add it to my shipment model?

View 2 Replies View Related

Disable Shipping Address Option In PayPal Express Checkout

Working with the PayPal API and using the Name-Value Pair Interface PHP source codes from SDKs and Downloads: Simplify Integrations with Downloads and SDKs.

My question is similar to "Removing (or prefilling) the address details for PayPal Express Checkout" but I don't want shipping cost/address or anything related about shipping at all.

I keep all shipping details on my system (even sometimes shipping doesn't even apply and there is no charge for it) and I just want user to pay through PayPal without shipping address and shipping cost.

How can I disable shipping part of checkout?

View 2 Replies View Related

Shipping Calculator / Major US Domestic Shipping Services?

Does anyone know of a freeware shipping calculator for PHP? I do not want anything too fancy, and it can be compatible with any of the major US domestic shipping services.

If anyone knows of one that is a plugin for CodeIgniter that would be nice.

View 5 Replies View Related

Send Shipping Address To Paypal When Using Paypal IPN

I am trying to integrate Paypal IPN to an application which I am developing. And I am stuck in a problem which is regarding shipping address. I need to know how to send the address variables to Paypal, as a request so that User can see that address on paypal. tell me the variables which should be sent to paypal, which paypal treats as shipping address(or delivery address).

View 1 Replies View Related

Get Order Increment Id In Magento?

I'm trying to get the Order Increment Id in Magento, on the success.phtml page so that I can use this for affiliate tracking.I'm using the following code, but it is giving an error on the second line;

$order = Mage::getSingleton('sales/order')->getLastOrderId();
$lastOrderId = $order->getIncrementId();

The error reads:Fatal error: Call to a member function getIncrementId() on a non-object on line 34: $LastOrderId = $order->getIncrementId();I was wondering if anyone has any ideas on how to get the Order Increment Id? This is the reference number seen in the admin, usually something like: #1000123

View 4 Replies View Related

Magento API Order Id Vs Increment Id

I've found that there are two different properties of the order in Magento API available.

order_id and order_increment_id. For sample order they can be something like order_increment_id=100000080 and order_id=81.

The Question Is: What is the difference between them? How they are considered to be used? In the web store UI I see that my order has "Order #" = 100000080. What is order_id property for?

View 3 Replies View Related

Magento Order ID Reorder?

With set of products in my shopping cart When I login and start an order I get assigned an orderID. If I then sit on my order, or logout and come back again, my cart products is still there and the order ID I was given (potentailly days ago) is still there. In the mean time the there are 100's of orders placed after me. And now am placing my oder means my oder id is before 100 old ID's. These all are good and goes well.

But In the backend, our fulfilment people will have batched well beyond the current ID and my old order ID will get lost in a void(because if i am ordering after one year or so my ID could be 1000 id's Back).

SO, is it possible and easy and safe to force Magento to re-issue a new ORDER ID upon step one of the checkout? If not, can we prevent Magento from remembering your cart state after you logout) or perhaps each time you re-login, whichever is easier?

View 1 Replies View Related

Magento CE - Discount On First Order?

Is there any plausible way to give a customer a discount on their first order? I imagine it would require the user to sign up for a free account, which is fine. But after that, I'm stumped. The Promotion feature in Magento doesn't cater for anything like this and Google doesn't find any good leads.

View 2 Replies View Related

Api - Execute After New Order In Magento?

I'm trying to figure out where I could drop in some PHP code to notify a CRM we are using (Solve360) that a new order has been placed, and that an event should be created (API) to fulfill the order.

Order Product
Complete Checkout & Capture CC
Side notify CRM

Not sure where to start, but I have had to make some small tweaks to fix the Quantum Gateway payment processor to work. In that module it appears that the objects for the order (email, amt, details) were available. However it seems it would be quite 'dirty' to insert more PHP code in there.

View 1 Replies View Related

Magento Order State Vs. Status?

I'm having a fun time figuring out the difference between an order's 'state' versus it's 'status' in Magento. We have a custom flow set up to send out orders to 3rd party fulfillment and we also have some custom logic to check for potentially fraudulent orders and flag them to be manually approved for shipping by an admin user to go out for fulfillment.

I have added a 'Pending Shipment' status, and an 'OK to Ship' status into my module config like so:

<pending_shipment translate="label"><label>Pending Shipment</label></pending_shipment>
<ok_to_ship translate="label"><label>OK To Ship</label></ok_to_ship>

...and I use the built in 'Suspected Fraud' status for all of this. The problem is that the 'Suspected Fraud' status is grouped under the state 'Payment Review', and if an order is marked 'Suspected Fraud' or 'Payment Review', the admin doesn't allow you the choice of any other statuses besides those 2. Ideally the 'OK To Ship' option would be available, but grouped under the 'state' of 'Processing'. Here, I have 'OK To Ship' under the 'payment_review' state and it made the option available, but then when I pull down an order and check canShip() -- it fails because it's a 'Payment Review' state status.

View 1 Replies View Related

Delete Test Order From Magento?

i have made a website in magento. now it is live . now i want to delete the all test order .i know there are some table in all these order are stored. but i dont know the name of those table. if some body has any script which can delete the all the order data.mention the name of all the tables which stores the order information

View 3 Replies View Related

Add A New Field In Address In Magento?

I need to add 'Email' field in Billing & Shipping address in one-page checkout. I used the below code to add a new field in the database.

$installer = new Mage_Eav_Model_Entity_Setup('core_setup');
$installer->addAttribute('customer_address', 'ship_email', array([code]...

That field was created successfully. Then I add a new text field with the name ship_email in billing and shipping form. Once I save the form the email didn't save in the database.

View 3 Replies View Related

Generate Text File For Every New Order In Magento?

how can I generate a text file for each new order in Magento.

View 2 Replies View Related

Magento: Admin Receive Email On New Order?

Does anyone know if administrators of a magento store receive an email when a new order is created? If so, where/how do I edit it?

View 2 Replies View Related

Copyrights 2005-15, All rights reserved