Jump to content

Help to Rearrange Product Page


Recommended Posts

Right now my product page displays in this order:

 

Data Sheet

More Info

Reviews

Accessories

Download

 

I would like to rearrange them to display in this order:

 

More Info

Data Sheet

Accessories

Download

Reviews

 

Where might I configure this?

 

oops

PS 1.6.1.7

Default Theme with changes by me

Edited by Copernican Theory (see edit history)
Link to comment
Share on other sites

Hello,

 

To achieve your requirement you will need to edit the template file /themes/default-bootstrap/product.tpl

Simply find the code section you want to move and cut and paste into the new spot

For eg. the below code shows the More Info section is now above the data sheet section.

{if isset($product) && $product->description}
			<!-- More info -->
			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='More info'}</h3>
				<!-- full description -->
				<div  class="rte">{$product->description}</div>
			</section>
			<!--end  More info -->
{/if}
{if isset($features) && $features}
			<!-- Data sheet -->
			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='Data sheet'}</h3>
				<table class="table-data-sheet">
					{foreach from=$features item=feature}
					<tr class="{cycle values="odd,even"}">
						{if isset($feature.value)}
						<td>{$feature.name|escape:'html':'UTF-8'}</td>
						<td>{$feature.value|escape:'html':'UTF-8'}</td>
						{/if}
					</tr>
					{/foreach}
				</table>
			</section>
			<!--end Data sheet -->
{/if}
		
  • Like 1
Link to comment
Share on other sites

Yo won't find the review section as it's a module hooked into the displayProductsTab. Look for the code below:   

<!--HOOK_PRODUCT_TAB -->
		<section class="page-product-box">
			{$HOOK_PRODUCT_TAB}
			{if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if}
		</section>
<!--end HOOK_PRODUCT_TAB -->
Link to comment
Share on other sites

That worked.  BUT, after some testing I find I cannot make the review section to display unless there is at least one item to download (I moved the Reviews below Downloads).  The Review area does not show in the FO, and up near the cart where it says to Write a Review if I click to do that I get this popup: 'The requested content cannot be loaded.  Please try again later.'

 

Other products that have downloads work perfectly.  Testing further, I created a new product without features, accessories or downloads (attachments) and I get that error,

but if I make one download available it works great.

 

It seems the review is contingent upon having a download now.  Perhaps I did not put the Page-Product-Box in the correct place?

I put it right under

 

<!--end Download -->

Edited by Copernican Theory (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...