Magento Forum

   
Page 1 of 2
multiple website feature broken on the backend
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

Hi,
it seem many part of the backend are not working as they should if you use a multiple website setup(or even a simple multi store).
Most settings are taken from the default one instead of the store settings,for example store email addresses or invoice logo and address.
Am i missing something?Everything works ok in the frontend.
The culprit is this function not returning the right value i think :
Mage::app()->getStore()

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

Since this is a serious issue affecting most of the multi store functions it would be nice to get a response.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dustin
Sr. Member
 
Total Posts:  160
Joined:  2008-03-13
Columbus, OH
 
00christian00 - 29 May 2008 10:54 PM

Since this is a serious issue affecting most of the multi store functions it would be nice to get a response.

Not sure what you are talking about.

Multi websites is working for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

Hi Dustin,
could you please test what i noted?What i discovered to be not working is : email for invoices,shipment,order update etc,most of the email sent by the back end.
Also invoice and packing slip logo and description are not working.
What you must check is that you can specify these values at the store level,because magento use the default values instead.
If you didn’t notice it yet I think you are using default values for all the websites.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dustin
Sr. Member
 
Total Posts:  160
Joined:  2008-03-13
Columbus, OH
 
00christian00 - 30 May 2008 03:39 AM

Hi Dustin,
could you please test what i noted?What i discovered to be not working is : email for invoices,shipment,order update etc,most of the email sent by the back end.
Also invoice and packing slip logo and description are not working.
What you must check is that you can specify these values at the store level,because magento use the default values instead.
If you didn’t notice it yet I think you are using default values for all the websites.

Each website I have I create a custom email template for invoices, shipment order update etc.

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

I’m talking of email sender.not of the template.
Maybe you don’t have the problem,what version are you using?the latest?
Would you come in chat?i’m going mad with this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dustin
Sr. Member
 
Total Posts:  160
Joined:  2008-03-13
Columbus, OH
 
00christian00 - 30 May 2008 03:53 AM

I’m talking of email sender.not of the template.
Maybe you don’t have the problem,what version are you using?the latest?
Would you come in chat?i’m going mad with this.

You have the correct email address in the admin set for each website/store under system->configuration->store email addresses?

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

Yes I have,and i am sure i am doing everything well,because i solved the email problem by passing the storeid modifying the php code,and now everything work fine,but i can’t patch every part I am not able to do it and even if I would it will take lots of time,while i think a simple bugfix in the getStore function could fix many bugs.
I am not the only one with this problem,i was just in chat with someone having a correct multi store setup that was checking out fine but once he got to the paypal payment he had the wrong currency.
I suggested him to hard code the currency bypassing the getStore function,and guess what?It worked.
So the getStore is definitively faulty.

Are you sure you are using different email sender for each store?Do you use latest version 1.0.19870?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dustin
Sr. Member
 
Total Posts:  160
Joined:  2008-03-13
Columbus, OH
 

Okay I see what you are talking about now and yes it is happening with our stores as well.

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

Glad it’s a confirmed bug.hope they’ll fix it soon.
I can’t put the second store online until it’s not fixed :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Thank you for the report, please edit app/code/core/Mage/Core/Model/Email/Template.php method sendTransactional() around line 332:

// replace
        if (is_null($storeId)) {
            $storeId 
Mage::app()->getStore()->getId();
        
}

// with
     
if (is_null($storeId)) {
         
if ($this->getDesignConfig() && $this->getDesignConfig()->getStore()) {
                $storeId 
$this->getDesignConfig()->getStore();
         
}
         
else {
             $storeId 
Mage::app()->getStore();
         
}
     }

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Hold on, doing some more tests now

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Ok, the updated code above should be complete, please let me know of the results.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

Doesn’t work for me,i always get the default store settings.
And this would fix only the email,but many function using the getStore are affected(invoices design,paypal etc).
My temp fix is calling sendTransactional with the storeid as parameter because at the higher level getStore return the right storeid.
But within certain functions it doesn’t work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

@00christian00: Could you please post all the functions you have the issue with, and we will re-test them on monday.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
00christian00
Sr. Member
 
Total Posts:  87
Joined:  2008-05-02
 

For now i found:
-all transactional email sender except new order and contact us are not working with multistore
-invoice and packing slip design settings are not working with multi store
-paypal currency is not working with multi store(this has been reported by a user on chat,i didn’t notice this problem since i use the same currency for all stores).

This is what i found so far,but it’s few days i have gone live with the first store and i still haven’t launched the second store so I didn’t test much every feature.Since the getStore is called in many parts i suppose there are other parts affected.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2