Magento pre-order list - magento

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.

Related

How to make attributes selection independent from each other in frontend?

i need help with magento.
I have tried several ways but could not find it.
Lets say i have a product with 2 different attributes like Color and Size.
When i add those attributes to a product and than check the frontend, i first need to choose one attribute in order to make the other attribute selectable.
IsnĀ“t it possible to make alltibutes independent from each other selectable, so the user can choose which attribute he likes to select first.
In my knowledge, it is not possible to make attributes independent of each other, because magento manages associated products according to options selected.
But you can decide which option should control other by drag attributes up or down in admin for each product.
You don't need to use attributes but can simply create custom options on the configurable product level. These custom options will be displayed for every linked simple product and your customers can select each of those independently.
Be careful to create these options on the configurable product level. If you chose to create them on the simple product level you won't be able to link the products anymore unless you set the custom options to "not required".
(Keep in mind I am using Magento version 1.6.2, so this might be different for newer versions)
Hope that helped.

Brands in sub categories in Magento

I'm trying to solve a problem with the top navigation in Magento.
The top navigation I have, currently shows a top level category and it's sub categories. What I want to do is add another level underneath each sub category containing brands in that sub category as shown here (http://cl.ly/image/3A3D1i1D3j3x)
I want the brand items to be retrieved from the "brands" attribute of products in the parent sub category (Jackets etc.) rather than creating a bunch of brand sub categories in each product type sub category as that is a nightmare for administrating the system.
If anyone knows of a good extension free or paid that does this, I'm willing to go down that route too.
Thanks for the help.
I'm working on something similar right now. It's not an exact fit as it wouldn't integrate with your menu but I would recommend using Amasty's Improved Layered Navigation for this.
It allows you to add a horizontal layered navigation block and set it up so that you can filter by brand based on an attribute. You could use the default manufacturer attribute but I've found it less problematic to add a new one called Brands. The module allows you to assign images to attribute values, so you can have all the logos for your brands listed and the user can filter the products by clicking on the logo.
You can also then use the same brand images in the product list page and the product view page.
This is very easy for your client to manage, they just assign the product it's brand attribute when they create it.
Here's a screenshot of the site I'm working on so far (still not finished so some rough edges) so you can see what I mean. Just a few test products in there and I have used the vertical block rather than the horizontal one but you get the idea. The user just clicks on a logo to filter the list.
And apart from that there's lots of other handy aspects to the module, including sliders for filtering other attributes (weight, price and anything numeric).

Forward to configurable product when opening simple product

I have a Magento shop with 2 simple products
Great Red Cup
Great Blue Cup
and a configurable product
Great Cup
with those cups assigned.
The Red and Blue cups are visible in the search.
If the use clicks one of those simple products, the configurable product should be opened instead, but the right color should be preselected.
I am aware that a simple product can be assigned to multiple configurable products, so I would log an exception if two matching configurable products are found an just take the first one.
I think I have to catch the predispatch event of catalog/product/view and somehow replace the simple product by the configurable one.
How can I now pre-configure the right simple product one?
Is there an elegant solution for this?
I found a solution:
register observer on controller_action_predispatch_catalog_product_view
check if we have a simple product with a parent that is a configurable product
create a array that contains the configuration data of the simple product
pass this data to Mage::helper('catalog/product_view')->prepareAndRender() (third parameter)
stop dispatching by setting the FLAG_NO_DISPATCH on the front action
Full code is available in the Mestrona_ForwardToConfigurable module on github.
To preselect a simple product in a configurable product, the address of a simple product should look like this for example:
/mona-pullover-hoodlie.html#143=167&93=53
where
/mona-pullover-hoodlie.html - configurable product URL
143, 93 - attribute IDs
167, 53 - option IDs.
In order to change the URL of simple products, you can create a Plugin (Interceptor) for Magento\Catalog\Model\Product::getProductUrl(), where to generate the URL as in the example above.
Product selection using URL parameters from example above is already implemented in Magento out of the box.
I made VCT Simple Product URl module on Magento Marketplace that solves this problem with the choice of the first configurable product if there are several.
One idea would be to redirect to the configurable product if the simple products meets somes requirements :
have a new attribute "should_redirect_to_parent" to True (optionnal)
have at least a parent product (for that point, I let you follow the link of Alex)
ps: if you don't want to do a parent product lookup you could add a new attribute like "redirect_sku" or "redirect_product_id" in order to directly make a redirection on that product
For the redirection you should use the event catalog_controller_product_init_after and if the two previous conditions match you redirect the user to the configurable product.
ps: for performance optimisation, you could use instead the catalog_controller_product_init_before which would save an expansive and useless Product::load() but it requires that you build custom SQL queries to search for a parent product
Tell if you want some code examples

what type of products should be used to achieve the below mentioned functionality in magento?

I want to implement the functionality in magento, the link of this is below :
http://ledflashingwatch.com/clocker-watch-illuminati-series/
when you click on strips, it changes strips image but when click on dial, it changes separately. And also add to cart will differentiate the product on these two values.
Can anyone advise me on how to proceed towards approaching this idea. And which type of products to use for this.
You can ask me questions if it's still not clear to you. And do tell me if it is not possible.
This feature is not available in Magento out of the box.
There are several possible approaches, but the user interface component will have to be custom built by you.
If you want the selected products to appear separately in the cart (like in the example you linked) choose simple products.
You could also use a grouped product with a custom interface.
If you want them to be added to the cart as a single product, but internally they are separate, use a configurable product. This is the option I personally would prefer.
You could also use a bundled product - It all depends what exactly you need.
I suggest first getting a good idea of the differences between the product types. Then study how they are reflected in the quote as quote items, i.e. visibility, parent and child items etc.
Once you know that, the implementation will be rather straight forward.
Build the UI. Build the request parameters for the add to cart call. Done.

how to add default variants to product in magento

I'm very new to Magento.I am having product with some variants like "size" with values "large XX,small XX,medium XX".I want the feature to make any one of this values as default in admin.
my screenshot explanation here
How can i do this
please help me!
When you say you want them to be defaults, you are being a little vague. Are you talking about using configurable products for this? Custom product options? When you say "default in admin", what do you mean? Which page are you referring to? More detail will help us answer the question.
Thanks,
Joe
As far as I know, what you are asking for is not a default functionality of Magento, but it shouldn't be difficult to add some javascript to allow you to force selections at page load time. Ultimately, it's just code, so it's definitely possible to do.
my suggestion would be to add a attribute to all you products called for instance "defaultselect" then you can enter your value easily from the backend to your configurable product.
so now you have a configurable product say a hat which comes in 3 sizes, and has 3 assigned simple products. set the defaultselect value to one of the size values
now some layout xml and javascript is required to get you product attribute to work with the magento selects.
first you want to actually include you js. this is done through the layout xml. you can include update using add js method for PRODUCT_TYPE_configurable handle
now the js. store the js in the skin js folder.
to make this work you would need to know the configurable product defaultselect attribute value we're testing against. this could be retrieved with your own ajax function to a method which checks if the current product has a defaultselect attribute and returns it's value or false.
if you have a value from your ajax function you can work with that ie you have both the returned attributes from the configurable product and magento will return the rest.
however after that it seems to get complicated your going to have to do something with the js magento aready uses to render product options

Resources