How to show the products group by different vendors in Odoo 8 "Invoice Line"? - odoo-8

I am using Odoo 8. "Sales > Confirmed Sales Order" in any invoiced sales order, the "Invoice Line" contains different vendor product. How can I separate different vendor products in one "Invoice Line". I want to show the products group by different vendors.
Any code or help link will be appreciable.
Thanks in advance.

Related

Display ONLY Tier Price based on Customer Group in Magento

I'm building a B2B site and I need to display the tier price matched to each customer's customer group rather than the default price of a product. I need this tier price to be displayed as the primary price of the product for the customer. Many of the customer groups' tier prices are higher than the default price.
Each Customer has a Customer Group to match. Customer Groups have different prices for each product.
Does anyone have a suggestion on how to pull this off?
We're on Magento 1.9 CE
THANKS
Magento will always show the user the loswest price by default, so I would suggest setting the 'standard' price to the product RRP, which (I imagine) will be higher than all tier prices and encourage the b2b customers to login to see their price.
Tier prices can set assigned by customer group. Take a look at Magmi for importing and managing the values really quickly from a csv. Note the column header should be the name of your group rather than its group ID.

How to validate shipping address per product by city and restrict user?

I am using Magento 1.9. I want to create product and make available in only specific cities. And also I want to restrict users on checkout when they select product to ship in the city where the product is not available.
I am a beginner at Magento and don't know how to achieve this.
What I have in mind so far is, it will be good to create an attribute named 'city', make it multiselect and add cities as it's options. So now I can create product and assign multiple cities to it. and can be seen at the 'Additional Information tab' on frontend product's page.
But now I want to restrict user if he select orders product available in "New York" and he submitted shipping address with any other city. This should restrict the further process and display message.
In short, I want to restrict user on checkout and display message. "The product is not available in the specified address/city/location etc"

Magento Product Reviews only by customer who purchased the product

I searched everywhere, but could not find the solution for this. I want to not allow others except the buyers of that product to add review for that particular product, in Magento. Please can anybody help with this.
Initally make the option "Allow Guests to Write Reivews" to "No". Now, you can make this by taking the order collection of a particular product by getProductOrderCollectionById(). From that order collection we can get the list of the customers who purchased it.
In the other hand, you can get the ID of the logged-In customer. If the Order collection list contains the logged In customer ID, then you can allow them to display the review form.

Some products not showing up in magento backend but exist

When am trying to search a product by sku for example "abc123" in backend then magento not gives any result but when am trying to find this in Global Record Search then magento give me a record of this product. I don't understand that actually where this product exist and from where i can found in backend?
and probably this product was added by quick product creation.
Please go to the product configuration page and go to the inventory and set particular product qty as you want and select stock availability as "in stock"
I hope you solve your problem instantly.

how to get id of product in shipping method

Is there anyway to get product Id of product in Shipping module, so that for different category I can charge Additional amount.
for eg: i have to two product in carts. One is in phone category and other is in computer category. for shipment I have to add $5 for phone and $25 for computer . so shipment charge should be $30 dollars in frontend. Is there anyway I can get product Id and corresponding product's category Id in Shipping method collect rates method??
Please help me, I am in a deep trouble....I hope Eg that I provided , explains what I need.
Thanks in advance.
You can get the products from quote
Mage::getSingleton('checkout/cart')->getQuote()->getAllItems();
or
Mage::getSingleton('checkout/type_onepage')->getQuote()->getAllItems();
and iterating over those items (be aware of grouped and bundled parents and so on) will give you the category(s) they might belong to and you can make your conditions against those
This is only a tenable option if products belong to only one category. Unless something has changed in the last couple of versions, there is no data for quote items that shows the category context from which they were added.
WebShopApps.com has several already-developed solutions for shipping scenarios. Depending on development contract & budget, it may be more cost-effective to use one of their well-tested extensions, e.g. Shipping Override Matrix.

Resources