Copernican Theory Posted October 11, 2016 Share Posted October 11, 2016 (edited) 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 October 11, 2016 by Copernican Theory (see edit history) Link to comment Share on other sites More sharing options...
Logical IT Posted October 11, 2016 Share Posted October 11, 2016 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} 1 Link to comment Share on other sites More sharing options...
Copernican Theory Posted October 11, 2016 Author Share Posted October 11, 2016 Thank you, Logical I switched the More Info with the Data Sheet. Now just have to move Review to the bottom, however the product .tpl file does not have the word 'review' in it (searched the file) so i'm kinda lost as to what I need to edit. Link to comment Share on other sites More sharing options...
Logical IT Posted October 11, 2016 Share Posted October 11, 2016 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 More sharing options...
Copernican Theory Posted October 11, 2016 Author Share Posted October 11, 2016 (edited) 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 October 11, 2016 by Copernican Theory (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now