Post by gail315 » Sat Sep 15, 2012 5:27 am

For multi-store I want the product images coming from that stores URL (Very important SEO)
Root config file:

Code: Select all

// HTTP
define('HTTP_IMAGE', '/store/image/');

// HTTPS
define('HTTPS_IMAGE', '/store/image/');
That works great BUT then the image does NOT show in the order email confirmations (amongst other emails too).
I need the images working BOTH in the order confirmation emails AND on the product images appearing to come from that stores domain.

Code: Select all

// HTTP
define('HTTP_IMAGE', 'http://MyDomain.com/store/image/');

// HTTPS
define('HTTPS_IMAGE', 'http://MyDomain.com/store/image/');
This code makes the proper image show in the order emails BUT the product images from the each store then ALL appear (bad SEO) to be coming from the main root store.

I need a solution so that ALL product images appear to come from that domain AND I need the store logos to be displayed in the order confirmation emails.

I did find this (i think it is the email order confirmation catalog/view/theme/default/mail/order.tpl if I change the below then the config could use the /store/image (without the MyDomain)

Code: Select all

<div style="width: 680px;"><a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="margin-bottom: 20px; border: none;" /></a>
Would I just change it (but I don't know exactly the syntax)

Code: Select all

<div style="width: 680px;"><a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php CHANGE-THIS-PART echo $logo; ?>" alt="<?php echo $store_name; ?>" style="margin-bottom: 20px; border: none;" /></a>
Please advise :-*

New member

Posts

Joined
Wed Apr 25, 2012 8:25 am
Who is online

Users browsing this forum: No registered users and 26 guests