Magento get current viewed product name on contact form.phtml on product page - magento-1.7

Hello all i need to display product name on my contact from which is displayed on product page. So basically i want that my contact form will display currently viewing products name if anyone could help me doing so thanks in advance.

As you are on the product view page you should be able to access the current product from the registry:
<?php $product = Mage::registry('product') ?>

Related

How to add product tags in content of WooCommerce no stock notification email

I want to add the product tags of a product in the woocommerce out of stock email content.
Any ideas?
I managed to change some items in the content like product name and current stock, but product tags won't show.

How to override contact us from in shopify?

I am new to Shopify and I want to create feedback form and for that, I would needed base of the contact form. Now the thing is how to override contact us form.
There would be template suffix of contact form page in the online store > Pages.
Open your Theme Editor and create a new page template and give it a name of your choice. Now open your contact page's admin screen and simply change the page template to the one you created.

Magento2 show sku on message

I want to show product sku on preorder message that displays on cart page.
By default it shows the product name.
How can I change it to product sku?
Thankyou

Magento 2 Show MSRP on Product page

I'm trying to work out how to show MSRP on the Product page on Magento 2.
I want to only display the "MSRP" if the value is great than the "Price".
On our current site which is 1.9.2 I have it showing as "RRP: $100.00"
In 1.9 I edited app/design/frontend/theme/default/template/catalog/product/view.phtml
and added
<?php if ($_product->getMsrp() > $_product->getPrice()) :?>
<?php echo $this->__('RRP: ') ?> <?php echo Mage::helper('core')->currency($_product->getMsrp(),true,false);?>
<?php endif;
As Magento 2 is completely different I'm having trouble trying to work it out.
Any help would be appreciated
Thank you in advance.
I implemented a simple Magento 2 extension to show the MSRP price on the product listing and product detail pages, without requiring a user to click a link.
See more details here: https://github.com/krakencommerce/magento2-module-display-msrp-inline
Screenshot showing what the extension does:

magento email template format for contact page comment text area field

In my magneto site have contact form and form is submitted successfully, but Comment text area field content show in one line.
Suppose customer write like this(with line break) -
Hello,
I would like to get a price for the product XY.
Thanks a lot for your help.
Best regards
John.
but in email I get like this-
Hello, I would like to get a price for the product XY. Thanks a lot for your help.
Best regards John.
I am using this code
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
Please tell me what i do ?
Thanks
To resolve this you should use the System > Transaction emails option in Magento admin.
Add a new template, select contact form and load template. When you have created the template make sure the template type is TEXT and not HTML. If it is HTML you will not get the line breaks. You can open the template and click Convert to Plain Text if it is in HTML.
Once it is created go to System > Config > Contacts > Email Template and select the template you just created.