Magento seasonal products - magento

I'm looking for an easy way to set up a product in the Magento catalog so that it appears on a date that I specify and only until a date I specify. This would operate similarly to the current sale_from and sale_to dates, but hide the products entirely outside the given date range. For reference, this is for holiday products that are only relevant until a given date. Anyone?
Thanks,
Joe

You could create two attributes, and if one of them is set, set the visibility accordingly use an event right before the save (using an event observer)...

Related

Magento pre-order list

I hope that somebody can point me in the right direction or has a ready to go solution, but I'm willing to spend time on this myself, but can't figure out where to start. Lets first start what I want to create.
I use magento, and a custom page create in the backend where I set manually a list with pre-order product, but this is time consuming. All pre-order products are already in one particular category and the all have a attribute that states pre-order yes or no.
I would really like to create a page that can retrieve all pre-order product by the custom attribute, or from the category and create a simpel list in html that gives the user the information of comming pre-orders sorted on the attribute date thats also custom.
So for example a list like
product name | release date | Price (clickable that links to the product)
I use a custom theme currently. Do I start with the page creation from magento, do I start with a custom theme that is a copy of my current theme and select that in the category layout? What is the best way to achieve this wanted behavior?
Hopefully somebody will point me the right direction
There are multiple ways of doing something like this. When developing a solution I try to leverage as much native functionality as possible to reduce the amount of custom work involved.
A possible solution:
Create a new category Pre-Orders or use existing
Create new product attribute 'Release Date', add this to the correct attribute set and set the values for the products
Add all pre-order products to this category
Create a new template for the category which will pull the data from the products themselves
Set default template to be the new template for that specific category
The template you will need to create can be created from scratch or you can leverage a page template you already have. Regardless, going forward, all you have to do is make sure the product data is correct and the products are in the correct category.

Magento 1.9 - Use backorder stock instead of actual stock for certain products

For some "Special" products in a webshop I want to use Backorder stock instead of actual stock which is available for those products but not sure how to proceed with it.
I have looked into MAGE_CATALOGINVENTORY_STOCK_ITEM and its functions CheckQty() and VerifyQty() but still do not how shall I tell Magento to not use actual stock when I place order for those products. Because I do not want Magento to reduce the stock for them. Also I am not sure if I do it in an event or by overriding MAGE_CATALOGINVENTORY_STOCK_ITEM class.
I be very grateful if someone can give me ideas or share some code regarding this.
No, I have not written any code so far as I am not sure how to proceed with it.
My recommendation is to not write any additional code that changes Magento's inventory behaviour as this is possible using vanilla Magento features. As you are not considering stock at all for your preorders, you can
Set all of the desired quantities first on the preorder products.
In 'Catalog > Manage Products', select all of the preorder products and click 'Actions > Update Attributes'
In the 'Inventory' tab, set all of these products to 'Manage Stock' being "No" by checking the 'Change' checkbox and unchecking the 'Use Config Settings' checkbox.
This will prevent all orders to not affect stock whatsoever for preorder items. You could also set the individual quantities after your preorder season is complete when you set the 'Manage Stock' flag back to "Yes".
The challenge was not to reduce the the product stock if Pre-order mode is selected. As same product can be both Pre and Re-order product. So to keep the stock information same for the product I have to override few function of cataloginventory_stock_item class.
The functions which I override are:
verifyStock
subtractQty
verifyNotification
On the other hand one can look into registerProductsSale function who subtracts product quantity from stock.
Or can use subtractQuoteInventory function of an observer which according to Magento Also called after every successful order placement to ensure subtraction of inventory

is it possible to edit Magento creation date? and how?

hey there? I have a problem and I need to edit product's creation date on magento to arrange my products to the right order, but I just cannot find out how to do it? can anyone here help me? thanks
It depends if you are wishing to do this via the admin section or programmatically in some sort of script. The created_at field is a core field found in the "catalog_product_entity" table. Programmatically you could do it along these lines:
$productId = 123; //use your own product id here
$myProduct = Mage::getModel('catalog/product')->load($productId);
$myProduct->setCreatedAt(strtotime("now"))->save();
// I put strtotime("now") as an example - use whatever date you need to.
$myProduct->unset();
However, you could reconsider using a different attribute to order by. There is a "position" field, or use a custom order attribute. The created_at is useful to keep as a proper point of reference to when the product was actually entered into the system.
To use the position attribute, you can order your products in the admin by going to "categories" and then choosing the "category products" tab. You should see the position field as one of the columns. Set this for each product with the lowest number you want to appear at the top.

Magento category and attributes

In Magento Community Ed., my structure of products is such that there are a set of 100 attributes that some products are assigned to and some are not. These attributes values are common to all products. So if Product A has attribute X with value 360, if Product B has that attribute, its value will also be 360. Now these attribute values would need to be updated every hour or so. Is there a way that I can update these at the back end in one csv/excel file and the changes apply to all products that have subscribed to this attribute?
Also, is there a way to create attributes for categories ?
Yes, you can create and use your own import in Magento. You find the module using System Menu ~ Import/Export ~ Import.
Oh, and refer to this question for Attributes on a Category
Good luck!

Magento add product size and attribute inventory

I think this is a common situation, I'm selling clothes and shoes and I need to have an option for sizes and attribute an inventory level for each. How could I do that?
Here is an example, I m selling shoes in sizes 41 to 45. I have 5 pairs of each except the size 45 which I only have 2.
(Keep in mind that clothes and shoes don t have the same measurement options).
Would be awesome if I could do it for all products in a category at the same time, even if that means having to go through the DB.
Thanks.
Creating a Configurable Product
There are a few steps involved:
Create the attributes that will be configurable by the user - for our example they will be Size and Color
Create the attribute set that will be assigned to the variant products - for our example, we’ll call it “T-shirt”
Create the individual variant products
Create the configurable product, and add the “T-shirt” attribute set
Add the individual variants to this configurable product
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product/
Adding a new attribute to the table isn't to difficult, but you need to find a good way of making sure it's not dirty. You do not want to add empty attributes to make sure you have room for enough products and you don't want to have too few. I was recommended using implode on an array to put it into a variable in which each element of the original ray is stored and separated by a character. You could then put this into one column. You can find some good information for updating a magento table here: http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-6-magento-setup-resources/

Resources