Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Insert product image and price into send to a friend email
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

How do I insert a product image and product price into the send to a friend email?

Please can someone help me.  I have been working on this for hours using different {{var}} placeholders but nothing seems to work.

Thanks
Lisa

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

Any help would be great.

Pease!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

Who do I have to pay to get an answer out of the Magento forum!?!?!?!?!??!!??!

 
Magento Community Magento Community
Magento Community
Magento Community
 
norbolig
Guru
 
Total Posts:  328
Joined:  2008-03-15
 

Hi Lisa, this would be a good function! (that’s why I have subscribed to your thread). But maybe just no one have a solution for this yet ... ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

Yay, I did it!!

Anyone who wants to know how, let me know grin

Lisa

 
Magento Community Magento Community
Magento Community
Magento Community
 
norbolig
Guru
 
Total Posts:  328
Joined:  2008-03-15
 

YES!! Please, let me know ... wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

No problem,

This is what I did and it worked for me;

1) Create a copy of template/catalog/product/view/media.phtml (I called mine media2.phtml) and then edit this file to include the things you want.  For example I deleted the zoom function for the image and changed the resize value.

2) If you want to change how it looks then just add a style in boxes.css and change the class from .main-product-img to your new class.

2) Upload the file to your theme directory.  I uploaded it to the default theme directory too (I haven’t checked which one it is working from but my guess is the default theme).

3) In my “Send product to friend” transactional email I added the following line of code;

{{block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml" block type="catalog/product_view_media2" name="product.info.media2" as="media2" template="catalog/product/view/media2.phtml"}}

4) It brings up errors when I try to preview the template, but works fine from the store.  I guess it needs a product ID to insert the picture.

That is it.

Hope it works for you too.

Lisa

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

By the way, I never figured out how to include the product price, mainly because I could not spend another second on this issue.  I am sure it can be done in a similar way.
Cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
seiya
Sr. Member
 
Total Posts:  85
Joined:  2008-05-25
Vienna
 

i cant find any price in order emails. does anyone know how to insert the price?

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

Try this;

Insert the following code into your “send product to a friend” transactional email

{{block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml" block type="catalog/product_view_price" name="product.price" template="catalog/product/price.phtml"}}

This works for simple and configurable products, but not for grouped products.  I am going to work on it a bit more.

 
Magento Community Magento Community
Magento Community
Magento Community
 
norbolig
Guru
 
Total Posts:  328
Joined:  2008-03-15
 

@LisaPrzy: This is great.

Did you find a way to add text in front and after the price, for it to appear on the same line. I.e. “The price is $ 99.99 incl. shipment”

Best regards

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  26
Joined:  2008-02-01
 

The only thing I can think of off-hand is to use a table format, that is if all your prices include shipment.  I am not sure about altering the code but I am sure it can be done.
Kind regards
Lisa

 
Magento Community Magento Community
Magento Community
Magento Community
 
norbolig
Guru
 
Total Posts:  328
Joined:  2008-03-15
 

That could work. Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
clickcomkyle
Jr. Member
 
Total Posts:  28
Joined:  2008-08-07
 

<img src="{{var product_image}}"> that should show the image..
http://www.magentocommerce.com/boards/viewthread/17047/
theres a list of more variables.
name -> Recipient’s Name
email -> Recipient’s Email
product_name -> Product Name
product_url -> Product Url
message -> Message Text
sender_name -> Sender’s Name
sender_email -> Sender’s Email
product_image -> Product Image

Not sure how to do price, but the image is what i needed.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top