Skip to Content
0
Former Member
May 25, 2010 at 11:37 PM

Can we change the stylesheet dynamically based on the webshop

25 Views

Hi Guys,

The E-Commerce application we have, has 2 webshops defined and the requirement is to have a different look and feel along with completely different logos for each webshop. Can anyone point me to the right direction or give some ideas if this can be achieved in a best possible way.

One idea I thought of was to store the shopId in the session context and perform a conditional access i.e.,

If (session.getattribute("Shop") ==shop1) {

</isa:stylesheets> }

else {

// Apply stylesheet specific for shop2

}

One drawback I can think of this is I need to apply all the styles which otherwise would have been taken care by SAP's own stylesheets.

Thanks

Sandeep.K