Magento admin section - magento

Hai
In my magneto project, admin side invoices, I want to display the product name, sku and
manufactures, is it possible???
I know that when clicking View Link I can show, but I want to show the details in the table in the invoices page

Probably the best place to start is:
/app/design/adminhtml/default/default/tempalte/sales/order/invoice/view/
Everything within the /app/design/adminhtml/ is where you'll want to go to edit any available templates for the backend.
Remember that Magento is full of magic methods. So, often times if you want to output a particular attribute, simply call something like: echo $_item->getManufacturer();
Hope that helps.

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'))

Remove "price" from Magento product details page

I am using tier pricing with a new install of Magento. I am running into some problems with removing the "price" when using tier price. When I leave it blank it show $0 and tiered soes not show at all. When I put a number in, it shows and the tier amounts show. I sell item in bulk, so I do not want the "price" attribute to show. How can I hide it? even if I have to put a price and hide it in the back end, thats fine. I only want my tiered prices to show on the details page. Any ideas?
Thanks!!
If you don't want to modify or pollute your template, you can use this extension to hide/remove all kinds of product's price. AND it works for all kind of theme without modify any template or rewrite.
magento connect link: http://www.magentocommerce.com/magento-connect/catalog/product/view/id/22443/
Demonstration: http://demo.magetools.net

How can i edit the product template of Magento Website

Sorry for asking for very basic question. Actually i am very new to magento hence couldn't find the solution..Here is the question:
I have a magento ecommerce website and i want to edit the product template of the website.
I have both magento and FTP credentials. But not able to figure out where is the actual product template.
in which folder i have to look for the product template file?
I want to append some HTML to each product page hence i am looking for it.
Please Advise.
Hope to get some help.
Regards,
Rich
The best way to debug this type of issue when new to magento is to "Turn on Template Path Hints"
Log into the admin
Goto -> System ->Configuration, and on the bottom of the list select “Developer”
click on Debug – you will only see “Profiler”. Here is the trick – you have to switch the “Current Configuration Scope:” [in the upper left] to a website instead of default. Select “Main Website”.
Now you will see the selection for Template Path Hints – check yes. This will display the path of the template for each block of the page so you can find stuff! You can also choose to “Add Block Names to Hints” to see the corresponding model class for the block.
Which going to point you to app/design/frontend/[theme]/default/template/catalog/product/*
Read more # http://www.redlightblinking.com/blog/magento-debugging-how-to-debug-template-paths-logging-and-display-errors
In addition to the previous answer make sure to disable the cache otherwise you might not see the results right away.
The Product page has many files attached but mainly the most importants, in my opinion, areI
the media.phtml that controls the size of your mage, more views, etc then you have the
the upsell.phtml that call the upsell products and
the view.phtml that combine all these files.
You can find them at
app/design/frontend/base/default/template/catalog/product
app/design/frontend/base/default/template/catalog/product/view
Copy these files and paste them in your theme directory. DO NOT OVERRIDE THEM! and also keep in mind you have: single product, configurable product, etc so you'll have to edit those files as well if you need!
Hope this helps and any feedback from other users is always appreciated.
I have a Magento e-commerce website and I want to edit the product template of the website. I have both Magento and FTP credentials. But not able to figure out where is the actual product template. in which folder do I have to look for the product template file, I would like to edit my product by adding some code. I found this folder in FTP /public_html/app/design/frontend/ET/base/Magento_Catalog/templates/product/view/productlabels.phtml
I edit some code
unit price :
<script type="text/javascript">
$(document).ready(function() {
var Quantity = document.getElementById("qty").value;
var UnitPrice = document.getElementById("options[4]").value;
var vUnitPrice = vUnitPrice / vQuantity;
vUnitPrice = $("#vUnitPrice ").val(total2.toFixed(2));
document.write(vUnitPrice);
}
</script>
but nothing changes, help me please

wishlist integration in joomla

I am somewhat of newbeeeee to the whole Joomla/Virtuemart world. I am trying to implement "my wishlist" module in my joomla 1.5.26 . I have searched in google also but its not free.
My logic is like:
I have a list of products, along with button "add to wish list". If a registered user click on that button then that product id and category id have been saved in jos_user table, where I have added one new field called "wishlist".
Now up to this is okay. Now problem is to fetch those product in one page(lets say page name is my wish list), which are only in that list. Is there any file where I can change the query for that particular page(my wish list). If so please help me. Its urgent.
Thanks in advance.
If your wish list is a module rather than a component, then finding the required file to change the code shouldn't be too hard. I'm not quite sure on the file structure, but it will most likely be in something like helper.php

Pulling Custom Option ID from Magento

We have a SOAP connection to magento that is working great - we're able to pull product info, skus, descriptions, etc. using the magento API. We've been able to successfully add products to the cart programmatically with custom options, and that works great. The problem is this:
When you create a custom option for a product, it is assigned a unique ID that has to be called in order to pass that option value to the cart. For example:
www.mysite.com/magento/checkout/cart/add?product=7&qty=1&options[OPTION ID]=robots
Assuming I have my custom option ID correct, this will add 1 product with the option "robots." Which is nice.
However, we have hundreds of products, and while they all use similar custom options, each option is given a unique ID. That means I need to be able to call the magento API and get custom options details (specifically the option ID) so that we can add them to the cart properly. I have been back and forth with Varien Support (Magento), but they are less than helpful, as usual. Now, I know I can find these options by using firebug in Firefox or Chrome, which I've done to test the "add to cart" script. However, that's not a proper solution. I need to be able to grab this data from magento based on product id.
Can this really be that hard? Shouldn't this be tied to the data for the product somehow? I've done a var_dump on the catalog_product.info and i see where it asks if there are options but doesn't provide any details on them. Thoughts?
Thanks in advance.
Do you need to get all options ids for specific products or just some particular? For the latter you can use this code:
$productEntity = Mage_Catalog_Model_Product::ENTITY;
$colorAttribute = Mage::getModel('eav/config')->getAttribute($productEntity, 'color');
$colorAttribute->getId();
For the first option code in this question might be useful How to get all super attribute options for a configurable item in Magento

Resources