PDA

View Full Version : Multiple PROD templates?


fatbobsmith
04-01-06, 01:13 AM
Feel my pain:

I need to create 6 different brand websites that all use the same shopping cart and products. Each brand needs to have it's own look and feel through the shopping cart up until the checkout process. I can accomplish this using multiple CTGY pages and changing the page identifier in the URL. Everything works great except the PROD page.

The code to pull up the list of products in a category is:

<mvt:item name="product_list" />

Is there a way to change the product_list item to link to a page template other than PROD?

Vic - WolfPaw Computers
04-01-06, 01:28 AM
If editing the PROD page template does not give you enough control, why not edit the Product Display Layout item itself?

Go to edit the PROD page and click on the Product Display Layout tab on the right.

If you're not in advanced mode, change to it by clicking "Advanced Mode" near the bottom.

This should give you much more control of the look.

sebenza
04-01-06, 04:15 AM
If you need multiple PROD templates, see the Product Template Manager (http://www.sebenza.com/products/SS-PRODTEMPLATES5.html?a_aid=forum) module.

fatbobsmith
04-01-06, 04:24 AM
Thank you for your quick replies. I suppose the real question here is how can I control what product page layout is pulled from the product links on a CTGY page? If the Product Template Manager module solves this problem, then I'm sold. It states that you can have multiple product templates, but does this actually make changes to the CTGY page code? As it stands, the only code that calls the list of products is this: How can I specify what PROD template to use with those product links?

sebenza
04-01-06, 05:23 AM
Are you saying that a product page should look different based on the brand being shopped? Sounds like you could add a variable to your product links... ie: Brand=xyz... then do a IF statement in your PROD template checking for the presence of the Brand variable. Am I following you right?

fatbobsmith
04-01-06, 07:38 AM
The product page should only look different if it's coming from a specific category. For example, a Ford Mustang may be under the category of "Ford" or under the category of "Muscle Cars." Depending on which category the product is selected from, I'd like it to use a different PROD page template.

Vic - WolfPaw Computers
04-01-06, 08:10 AM
The product page should only look different if it's coming from a specific category. For example, a Ford Mustang may be under the category of "Ford" or under the category of "Muscle Cars." Depending on which category the product is selected from, I'd like it to use a different PROD page template.

Then simply put a conditional to check Category_Code=Muscle etc in your product page template.

Mind you, this will only affect the output IF the customer arrives at the PROD page via a CTGY page. If they go straight to the PROD or arrive via the Product list or search, the category code is not passed.

PicturesqueWeb
07-07-06, 06:19 AM
This may be a bit too late, but I just did this for one website. I created a customer product field called TEMPLATE. In the product layout code, I used...

<mvt:if expr="l.settings:product:customfield_values:customfields :TEMPLATE EQ 'C'"> Code for template C </mvt:if> <mvt:if expr="l.settings:product:customfield_values:customfields :TEMPLATE EQ 'S'"> Code for template S </mvt:if>

I'm certain there are fancier things, but this worked for my simple needs on one site.

agenius
07-16-06, 05:15 AM
While we are on this subject, I've worked in miva 4 so I understand about viking prod temps. You could attach a template to a group of products and those products could carry a unified message, etc. What is the equivalent in MM5 if there is one?

Thanks very much for any help.

sebenza
07-16-06, 05:30 AM
Product Template Manager

http://www.sebenza.com/products/SS-PRODTEMPLATES5.html