Woocommerce: Multiple Shipping Classes for one product - php

First of all, thanks to everyone for your contribution to stackoverflow - you helped me hundreds of times. Now, I really have a question I can't find. :(
I'm using the latest Woocommerce for Wordpress. In Woocommerce you can create shipping-classes and assign them to the products you upload. This helps you for creating "complex" shipping methods.
However, I wan't a very complex shipping method. How can I make it possible that I can choose multiple shipping-classes per product and not just one? I am not an expert in programming :(
I'm using table rate shipping also. So what my final goal is:
Product A:
Shipping-Class - local post rates
Product B:
Shipping Class - Chinese Warehouse
Shipping-Class - local post rates
Why I want this?
I have a warehouse in Thailand and one in China. People ordering products and some I have to collect from the Chinese Warehouse. The Products from China will come to my place and there I will put them in the same box as those products from my local warehouse. Currently my shipping system thinks "This dude makes two boxes and send two boxes to one customer". So my customer has to pay way to much delivery. I need to be able to tell my programm that I order from different warehouses but in the end I put all together in one box.
Thank you so much for your help!

Related

Wordpress custom dashboard button that changes stock status for products in the same category

Im creating a online delivery website (wordpress+woocommerce) for a friend that sells kebab.
The only thing is that at some point in the night, the kebab usually runs out and the store keeps selling other fast food items.
I would like to know if its possible to create a custom button in the admin dashboard so that it changes Stock status for all products in the same category or products that have the same tag. I know you can go to products and multiple edit the whole category but i want it to be as simple as possible since the staff may be in a hurry.
Any help appreciated. If you think there is a better & faster way to change the stock status feel free to advice me. Thanks.

Magento 1 wrong Shipping rates

we are using Webshopapps Product Matrix Rates pro version
after asking the developers of this extension they are saying that it's NOT the extension that is causing the issues as the logs say it's returning the correct values.
We have a shipping matrix setup for UK postcodes that requires a delivery charge for certain UK postcodes this is on a multi site setup which as 2 sites.
What should happen is per pallet added to the cart it should add £4.80 where a charge is required based on the postcode entered, so If I have 2 pallets the shipping cost to the postcode would be £9.60 and £4.80 for each extra pallet added there after, for the economical 2-3 day delivery.
On site one if I add 5 pallets the shipping cost is coming back at £28.80 where it should be £24
On site two If I add 5 Items the shipping cost is coming back at £9.60
I have no Idea why it is doing this as both sites are using the same code / theme apart from the logo and CSS for the colours of the site.
If anyone has any suggestions for a fix it would be much appreciated.
sorry I can't put code here or setting as I have no idea what I need to post for you to view.
Regards
Mal
Sorted, turns out after the developers going through the logs and a lengthy chat, which the boss remembered something very important they had done on the products on the other site I was trying to match, once I found this out it all made sense and got it working correctly, so there wasn't any bugs and it's working correctly all along ARGH!!!!
Basically any products on the first site where the weight was over 850KG was set to 850KG regardless.
on the new site the correct weights have been added, so anything over 850KG was adding the extra cost, then they didn't update the CSV to reflect this.

Adding Custom pricing and name in Magento

i am new to the magento and i have a small problem. Suppose, while entering the order from backend the admin has to add a product which doesn\’t exist in his shop. So, does he have to first add the product and then again enter the order or is there a simple way of doing it from the order page?? I don\’t want to save the product. I just want to take the order and enter it without adding the product with its price. Please Help.
Thanks in advance.
Currently there is no feature like this in Magento and to be honest it is kind of a bizarre situation you are describing. Although Magento does not keep a reference to product tables in sales flat order item table but having an item in this table which we can find no history about it anywhere else is quite unconventional in e-commerce solutions. However in your case you should develop a module which adds these kind of products directly to the order items and handles financial issues concerning these products.

I need to setup a Magento Site, with two seperate websites, the same products but different prices/skus

I need to setup a Magento Site, with two seperate websites, the same products but different prices/skus.
Right now I added in two custom attribute fields for each product with the other company sku/price. I have a flag that chooses which product sku/price to show.
Is this feasible with Magento or am I going about this the wrong way?
You can give a product a price for each website. Yes, SKU are global but as Mike stated, if you want to keep track of your stock you should follow magento logic on this.
Add your product then set a different price for each of your website.
If the product is sold either way stock will be changed accordingly and you won't run into more problems.
just my 2 cents on this.
Magento is designed so that each product has only 1 SKU. They do this so that you can use Magento to manage stock on a SKU basis. If stock is not of concern to you, then your way will work fine. However, the correct way to do this would be to have two different products.
If the two products are identical, but you just want to determine which store they came from, there are other ways to do what you are trying to do.
I'd say you're doing it wrong, but that's really just my opinion. You can go about it whichever way you choose!

Does Magento allow order and shipping restrictions by country for specific items on the product level?

the product’s page would have a “restricted countries” tab, where we can select countries that the product cannot ship to.
Nope I am afraid recently coded the functionality for a project: Few pointers how I tackled the issue:
You will have to modify the addToCart
functionality to introduce your
logic. Rewrite
Mage_Checkout_CartController::addAction()
You will also need to alter the OnePageController Mage_Checkout_OnepageController::saveBillingAction and saveShippingAction to confirm that the address choosen are not restriced
You will also need to alter Mage_Checkout_MultishippingController::addressesPostAction to do the same address checking during multi shipping checkout.
Admin Changes
You will need a product attribute called restricted_countries ...you will need to set some source and backend models to poplulate the countries in the multi select list in the product tab
I hope this puts you on the right path ... good luck.
Personally I think you should go multi-website and have the product selection, prices and delivery prices setup per currency (or region).
You then should put some GeoIP code on the index.php so that you have one URL for all of your websites.
In that way the person from region A sees the subset of products for their region based on their currency, e.g. ₡7.99 instead of an auto-converted ₡7.57, region B sees a different subset of products e.g. ₱14.99 instead of auto-converted ₱14.23 and so on.
Price points do matter if your site is to be popular, making money and a long term investment then you need price points not auto-converted prices or foreign currency only.
The multi-store, multi-website arrangement is out-of-the-box, easy to setup and with minimal burden on catalog inventory management. Work within the software and the methods available, don't reinvent the wheel.

Categories