Force Use Of Product Templete

Hi guys

I am using a daily deals add-on which insert a timer into product layout when a product is put on promotion,

But when this happens the layout of the product is not great, I know that I can make a new product template and choose to use this, But I have other people working on the sites in my multi store installation and I do not want to rely on them to remember to apply the template.

What I would like to happen is that when a product is added to a promotion that the product will automatically switch to use a template of my choosing.

Any suggestions

Alan

Hi guys

I am using a daily deals add-on which insert a timer into product layout when a product is put on promotion,

But when this happens the layout of the product is not great, I know that I can make a new product template and choose to use this, But I have other people working on the sites in my multi store installation and I do not want to rely on them to remember to apply the template.

What I would like to happen is that when a product is added to a promotion that the product will automatically switch to use a template of my choosing.

Any suggestions

Alan

Hello,

You should manipulate the templates/views/products/view.tpl file to check if a promotion exists, if this is the case, it should include your desired template, otherwise, it should do its normal thing.

Kind regards,

Or use an override for that template having the appropriate condition as to whether to use the content or fall back to original. Remember that an override is only valid if it returns content, otherwise it’s ignored.

Hi guys

I am using a daily deals add-on which insert a timer into product layout when a product is put on promotion,

But when this happens the layout of the product is not great, I know that I can make a new product template and choose to use this, But I have other people working on the sites in my multi store installation and I do not want to rely on them to remember to apply the template.

What I would like to happen is that when a product is added to a promotion that the product will automatically switch to use a template of my choosing.

Any suggestions

Alan

While I get the idea the execution is beyond me as I am not a programmer, anyone will in to quote me on this.

Alan

Your best bet would be the developer you bought the add-on from. They should be able to customize for you.

Our team is at your service. Feel free to contact us using link form my signature

While I get the idea the execution is beyond me as I am not a programmer, anyone will in to quote me on this.