Magento, add some text beside item title - magento

I am new to Magento but willing to learn. :)
For the current project we need to add the Serial number next to the purchased item. Serial should be added in the invoice (PDF and html). It doesn't need to be new field, it is enough to add it next to the item name, or under it.
I have the serial number already saved in the DB, so the only thing I need is to find the html file to modify and there call the SQL statement to get the serial.
Please I could really use any help where to locate that file and what to change.
Thank you!

Try template/sales/order/invoice/items/renderer/default.phtml for frontend display
The template folder can be either in /app/design/frontend/base/default/ or in the package/theme folder of your store.
For backend display use /app/design/adminhtml/default/default/template/sales/order/invoice/view/items/renderer/ folder, which contains two template files: configurable.phtml for configurable type products, and default.phtml, for other types

Related

Observer on Product saving for name appending

I am creating a small module. In which I have built my own tab in System- Configuration, Name "ZARA" which consists of a textbox. I can enter words in the textbox and save the configuration.
Question
Now my problem is, I want that the module should append the word entered in the configuration to the product name through an observer whenever a product is saved.
for example, I entered "Test" as a word in the configuration. I then open a product in the backend in product management, which is called "RedShirt". When I save this now, it's called "RedShirtTest". If I save it again, it's called "RedShirtTestTest". Thank you in advance if anybody can clear my issue. I'm totally new to Magento. Please answer regarding Magento 1.9.

Magento price showing twice

I installed a new template on my Magento store and when I got to a product page it shows the price twice? Most of my products are a "simple" Product and I have one "Configuarable" product
Any ideas how I can get rid of one of the prices?
Here is Simple product:
Here is configurable product: (with an option selected)
Any ideas?
I'm running latest 1.9.3.7 and can't find a fix anywhere
You need to check your
app/design/frontend/default/your _theme/temlate/product/view.phtml
1st: inspect find the class or id
2nd: then remove wrong price code
before doing this take a backup of your file
I don't think anyone can help you here unless it's a popular theme people would know. The problem is not in Magento, it's in the theme files. You will need to find the theme file and check the php logic to truly know what is happening there. Best case, contact the theme developer if you purchased it or switch to a new theme.
To find the theme file responsible for printing the price, you can enable template hints. This will show the hints to you and all the customers, so be diligent about doing this live. Secondly, you will need to take a look at the block which encompasses the pricing. When you find the template name, just go to the .phtml file and see what's going on there with the price output.
Edit app/design/frontend/default/your_theme/template/catalog/product/view.phtml
Look for price divs and comment one.

Magento - Rename Tax to GST

Throughout my Magento website, where there are products, I made it so that a customer can see the price of the products, with and without Tax.
However, how can I rename the word 'Tax' to 'GST' whenever a product is viewed within the website. I believe I have to go to the back-end and change some script around, I just don't know where?
The easiest way is to translate inline.See here to enable the inline translation from admin panel. Now hover over the "Tax" you can see the book icon click on that and type whatever text you want to replace with, in your case its "GST".
Another way is to directly changing in the csv files in app/locale folder.According to the locale you have choosen, for example if you have choosen "United States" than check for the file Mage_Tax.csv file inside "app/locale/en_US/Mage_Tax.csv". After opening this file search for term "Tax","Tax".Change it to "Tax","GST". and save it.
Hope this will help.

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

Resources