PDA

View Full Version : Product above title & description?


dtlyme
06-27-08, 11:36 PM
I assume I fiddle with something in "Product Display" to achieve this. I'd like it to look like we have it in our current site:
http://elizab.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=EB&Category_Code=limited-ed

thanks!

Leanne
06-28-08, 04:08 AM
Go to Pages > CTGY > Category Product Display Layout. Make sure you're in point and click mode. There's an option there to display the layout in columns, and to specify the number of columns you want. Set that up, click update. Then go to Advanced Mode to arrange your layout the way you'd like. If you mess up, just use the version history to roll it back and start over.

dtlyme
06-28-08, 12:38 PM
As always - thank you Leanne!

dtlyme
06-28-08, 01:35 PM
argh. I have fiddled for an hour to no avail. I wish this was easier to do in design mode in dreamweaver.

Anyone willing to tweak the code for me??

This is what I have:
<table border=0 align="center" cellpadding=2 cellspacing=0>
<mvt:foreach iterator="product" array="products">
<mvt:if expr="pos1 EQ 1">
<tr><td>
<br>
<br>
<br>
</td></tr>
<tr><td align="center" valign="top">
<mvt:elseif expr="pos1 MOD 2">
<td align="center" valign="top">
<mvt:else>
<td align="center" valign="top">
<div align="center"></div></mvt:if>
<table border=0 cellpadding=2 cellspacing=0>
<tr><td align="center" valign="top">
<mvt:if expr="NOT ISNULL l.settings:product:thumbnail">
<a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvta:store:code;&Product_Code=&mvta:product:code;&Category_Code=&mvta:category:code;"><img src="&mvte:product:thumbnail;" border=0></a>
<mvt:else><br />
&nbsp;</mvt:if>
</td><td align="center" valign="top" colspan=2>
<mvt:item name="fonts" param="body_font">
<a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvta:store:code;&Product_Code=&mvta:product:code;&Category_Code=&mvta:category:code;">&mvt:product:name;</a><br>
Code: <b>&mvt:product:code;</b><br>
Price: <b>&mvt:product:formatted_price;</b><br>
<mvt:if expr="l.settings:product:inv_active">
&mvt:product:inv_long;<br>
</mvt:if>
Quantity in Basket:
<mvt:if expr="l.settings:product:quantity EQ 0">
<i>none</i>
<mvt:else>
<b>&mvt:product:quantity;</b></mvt:if>
<br>
</mvt:item>
</td></tr>
<mvt:if expr="l.settings:product:inv_level NE 'out'">
<tr>
<td>&nbsp;</td>
<form method="post" action="&mvt:global:sessionurl;">
<td align="center" valign="top">
<mvt:item name="fonts" param="body_font">
<input type="hidden" name="Action" value="ADPR">
<input type="hidden" name="Screen" value="&mvte:global:Screen;">
<input type="hidden" name="Quantity" value=1>
<input type="hidden" name="Attributes" value="Yes">
<input type="hidden" name="Store_Code" value="&mvte:store:code;">
<input type="hidden" name="Offset" value="&mvte:global:Offset;">
<input type="hidden" name="Product_Code" value="&mvte:product:code;">
<input type="hidden" name="Current_Product_Code" value="&mvte:global:Product_Code;">
<input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
<mvt:item name="buttons" param="Add1ToBasket" />
</mvt:item></td>
</form>
<td>&nbsp;</td>
</tr>
</mvt:if>
</table>
<mvt:if expr="pos1 MOD 2">
</td>
<mvt:else>
</td></tr>
<tr><td>
<br>
<br>
<br>
</td></tr>
</mvt:if>
</mvt:foreach>
</table><br />
<mvt:if expr="g.Offset OR g.NextOffset">
<br>
<table border="0" width="90%" align="center">
<tr>
<td>&nbsp;</td>
<td align="left">&nbsp;</td>
<td>&nbsp;</td>
<td align="right">&nbsp;</td>
</tr>
<tr>
<mvt:if expr="g.Offset EQ 0">
<td>&nbsp;</td>
<mvt:else>
<td align="left">
<mvt:item name="fonts" param="body_font">
<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="&mvte:global:Screen;">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;">
<input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
<input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;">
<input type="hidden" name="Search" value="&mvte:global:Search;">
<input type="hidden" name="Offset" value="&mvte:global:PrevOffset;">
<mvt:item name="buttons" param="Previous" />
</form>
</mvt:item></td>
</mvt:if>
<mvt:if expr="g.NextOffset EQ 0">
<td>&nbsp;</td>
<mvt:else>
<td align="right">
<mvt:item name="fonts" param="body_font">
<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="&mvte:global:Screen;">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;">
<input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
<input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;">
<input type="hidden" name="Search" value="&mvte:global:Search;">
<input type="hidden" name="Offset" value="&mvte:global:NextOffset;">
<mvt:item name="buttons" param="Next" />
</form>
</mvt:item></td>
</mvt:if>
</tr>
</table>
</mvt:if>

And this is the non-result:
http://dev.elizab.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EB&Category_Code=nylon

Ignore the design and the cat tree on the left. I am not focusing on all of that till I can get this done!

Leanne
06-28-08, 05:51 PM
Take out this line between the thumbnail and the product name:

</td><td align="center" valign="top" colspan=2>

Change this:
</td></tr>
<mvt:if expr="l.settingsroduct:inv_level NE 'out'">
<tr>
<td>&nbsp;</td>
<form method="post" action="&mvt:global:sessionurl;">
<td align="center" valign="top">

To this:
<mvt:if expr="l.settingsroduct:inv_level NE 'out'">
<form method="post" action="&mvt:global:sessionurl;">

(And please turn off smilies or use the code options when posting code -- makes it easier to read)

dtlyme
06-29-08, 01:49 AM
Thanks Leanne - and sorry about the smilies. Lesson learned!

dtlyme
06-29-08, 02:10 AM
And now it is beautifully centered. You rock Leanne!

A thousand thanks.