Magento: show stock levels for specific date [closed] - magento

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need a list of the stock levels of all products, per store, for a specific date in the past. Is there a way to go back and see how many items were in stock for product X, and then for all products?

unfortunately, no. There is no history of the stock, or any "snapshots" of the product stock at any time.
What you can do, but this is not 100% reliable since the stock can be altered manually, is to get the current stock and subtract from it the quantity ordered since the day you want until now. To get the qty ordered for a product you can use one of the methods described here. All of them use the sales reports models to retrieve data.
Or you can try this one, but you need to add the date filters by yourself.

Related

Apply a discount to all products in Magento [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
I am new to Magento. I want to provide a 30% discount on all the products. Also want the old price to have a cross sign on the frontend of my website.
Could anyone please help me to perform this task?
Firstly, you have to create a Catalog Price Rule. Go to Promotions/Catalog Price Rule and create a new rule. In "Actions" tab, set Apply by Percentage and set Discount Amount to 30.
Set all other fields as required.
This will apply 30% discount on all the products.
To get a cross sign on original price and display discounted price, you have to do some edits in price.phtml list.phtml and view.phtml in your theme, i.e
app/design/PACKAGE/THEME/catalog/product/
To get original price, call getPrice() on product object. For discounted price, use getFinalPrice()
In your case, it should be $_product->getPrice() and $_product->getFinalPrice()
Apply CSS to put a strike mark on original price.

How to add large amout of product in magento1.7 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've just started working on magento 1.7 recently , and i know how to add categories and product one by one ,but i've large amount of categories and product.Is there any alternative to add large amount of categories in one way?
I've heard about of sample data , is it a solution of my above problem , if it is than how to use that?
Please help me in this matter.
Just noticed this - look into MAGMI for mass importing large amounts of product data into Magento;
http://sourceforge.net/apps/mediawiki/magmi/index.php?title=What_is_magmi
Here's a link to the section on categories;
http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Import_categories

Magento Product definition with different prices for different regions [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have an interesting problem that I need to get resolved.
I have a website with Magento shopping cart servicing different countries. I was wondering if there is a way to create products in Magento in such a way that I could price them differently for different regions. Namely:
Product 1 Region: US Price: 100 USD
Product 1 Region: UK Price: 80 GBP
I'd like to avoid duplicating the products in the catalog. In addition the simple currency conversion won't work since there may be duties and other considerations involved in determining the price.
It might be awkward, but you could possibly build each product as configurable, and then the simple associated products could be the ones that are viewable in the various stores.
Probably not what you're after, but it could work with some elbow grease.
Aside from that, you'll need to set up multiple websites on the same installation. For that, start here: http://www.magentocommerce.com/blog/comments/video-creating-multiple-online-storefronts-part1/
in order to do this you'll need to configure multiple websites. Magento has one base currency per website, which means that all other currencies within that website are FX conversions from the original one.
So, for your example, if the base currency was USD then GBP would convert based on a rate from that original currency.
You can do some more reading here: http://www.magentocommerce.com/knowledge-base/entry/managing-currency/
hope that helps
Please Navigate to magento->admin->system->config->catalog-> and look for the field "Catalog Price Scope". This is what you may be looking for. As previous posts said you need to create multiple websites.

Add a product refers to one-or-many distributors in Magento [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am using Magento to build a bookshop
A book includes:
has many attributes such as: name, prices, weight, etc...
belong to one publisher
belong to one-or-many categories
has many distributors which includes many attributes:
name
address
phone/email
So, when I create a book in Admin Management Panel, how I could:
Make a list of distributors.
Add a book (product) refer to
one-or-many distributors?
Make a multiselect attribute called distributors. This will give you the possibility of adding one or multiple distributors to products. However, the attribute options only have IDs, label fields, and nothing else.
To extend this, you will need to write you own module with a database table containing your fields and a reference to the attribute option:
Distributor ID (reference to option_id in eav_attribute_option)
Name
Address
Phone
Email
You will probably also need to write a backend interface for editing this data, and some functions to access distributor data by attribute option ID etc.

Product page says "out of stock" even though SKU at 50 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've created a catalog with about 10 products and I've made sure each of them have a SKU of at least 50.
Yet, when I go to an individual product's page, it tells me that the product is out of stock - which makes no sense whatsoever to me.
Anyone know what might be causing this?
A SKU is the unique identifier for a product, not the quantity of inventory of that item in stock. On a typical retail product, the SKU is the number coded into the product's bar code.

Resources