Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Insert product image and price into send to a friend email
 
LisaPrzy
Jr. Member
 
Total Posts:  25
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:  25
Joined:  2008-02-01
 

Any help would be great.

Pease!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  25
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
Sr. Member
 
Total Posts:  296
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:  25
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
Sr. Member
 
Total Posts:  296
Joined:  2008-03-15
 

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
LisaPrzy
Jr. Member
 
Total Posts:  25
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:  25
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
Jr. Member
 
Total Posts:  21
Joined:  2008-05-25
 

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:  25
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
Sr. Member
 
Total Posts:  296
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:  25
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
Sr. Member
 
Total Posts:  296
Joined:  2008-03-15
 

That could work. Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50120 users|437 users currently online|102256 forum posts