How To Create Multiple Attribute In Magento For Product Details Page - magento

I want to create multiple attribute in magento for product details page because i have to show two things on the product details page and they are attribute first of all i have color swatches with the help of attribute i am showing on the product details page the next thing is the google map and each different product has a different google map how to show two attribute in magento product details page any help would be very appreciated

You would need to first create an attribute. Read here on a simple tutorial on how to do that.
To display any product attribute in magento you need the "Attribute Code". Lets say you make a attribute called "Gogole Map" with a Attribute Code "gmap". You would need to open the html for the product detail page which can be found
app/design/frontend/default/[your template]/template/catalog/product/view.phtml
and just add the following code to where you want to place
<?php echo $_product_getGmap();?>

Related

Create magento product that links to an external website

I want to add a product that is not held on my magento website. It must only show on my website. But when a customer clicks on a product it directly goes to the website that holds the product.
I want to give the URL to the product on the site. I am not sure how to do this. Please help me. Thanks.
Here are some screen shots that show what I actually want to do:
product show on my website
Customer goes to other website
The way i would suggest you is to create an attribute called external_url, a textinput field. Assign it to required attribute sets then, while adding product if that particular product will be linked to external; input that field with external url.
And while populating product in listings, check if that external_url attribute value exists or not. (for eg on template/catalog/product/list.phtml check for this value $_product->getData('external_url'))
If the value exists then, change the product link(on product list.phtml change $_product->getProductUrl() with our $_product->getData('external_url'))

How to edit the product view in front end magento?

I want to add the some links at the product view time and display it in the front end.
For example product shirt and I want to add two link at the product view time Link Name Like Style Fabric and within these link I want to change image according to select size and fabric.
If you are using Magento 1.9, this can be achieved with the help of configurable swatches.
Following in-depth tutorials will help you:
http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html#catalog/product-configurable-swatch-setup.html%3FTocPath%3DProduct%2520Catalog|Swatches|Swatch%2520Configuration|_____0
http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html#catalog/product-configurable-swatch.html%3FTocPath%3DProduct%2520Catalog|Swatches|_____0

Virtuemart displaying

I want to know if someone know how to display a virtuemart category products into another page like use a shortcode or something like that to display a list of product from one category into another page.
Thanks for your help.
You could do that with a module.
The default "virtuemart products" module has an option to select from which category you will get the products.
If you want to put them inside an article, you could load your module with loadposition. A complete tutorial how you could do that is: How do you put a module inside an article?

Magento List Products based by attribute in CMS page, how to?

how can I list only porducts with some attribute on CMS page?
For example I want to list only all the products across the categories with attribute color=red
How can I achive this?
So far I was able to achive listing products with Special prices based on this
http://phpmysqltalk.com/937-magento-how-to-create-a-special-price-page-with-new-products-first.html
HoweverI am unable to modify it to any other attribute. Any help, how can I achieve displaying only products which have specific value of some attribute /from the Root category for the store or also from specific categories/
Thanks a lot.
check out this tutorial for creating a simple custom module which should do exactly what you need:
https://www.atwix.com/magento/products-list-cms/

Filter one specific attribute values from products in magento

I'm new in magento, I'm working on http://www.theartworkgallery24.com/stage/ website. Please check beneath flash banner, there are 4 big images that are links to attributes value from which user can directly go to a product.
I need a page that display on one specific attribute values like in case of artist, it should be Gustav Klimt, Leonardo Da Vinci etc. These should be links to actual product related to the attribute values.
Please tell me how to make your own PHTML or PHP file, which code to use and how, and in last how to call your code in your magento website.
Any ideas will be appreciated, thanks.
You please create an attribute (davinchi) in admin side for these functionality. You can create products attributes from catalog->attributes->menu.After that you can see these attribute value in product creation page.You just assign it to different products
After that you can either create a module for this. Otherwise just create a phtml file in catalog/product/ folder.
then enter the below custom collection code in it.
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->addAttributeToSelect('*');
//filter codition
$collection->addFieldToFilter(array(
array('attribute'=>'davinchi','eq'=>1),
));
This will load products having attribute value davinchi=1.

Resources