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/".
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.
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.
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?
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.
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:
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:
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?
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 ?
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?
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:
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:
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?
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.
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).
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
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?
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.
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 Checkout Complete Checkout & Capture CC Side notify CRM Done
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.
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:
...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.
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