| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How would I combine the vertical menu items into one box | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Using 4.1.4 Gold on Unix.
Summary: We want to combine the following boxes into one: categories special your cart help Also, you'll notice we didn't include the authorization box. We want to exclude that from our left side column completely. So, is there a procedure known where we would combine those 4 into one block? And, if not, any insight on how to do so? Plus, as according to balinor's excellent template outline, some of these items are 'shared' between admin and customer. Therefore just deleting the 'authorization' box containing customer login/password recovery/order history/etc. has me a bit concerned. Perhaps this code could be commented out using the {* *} method?
__________________
Custom Designs - Web Templates www.templatedepot.com |
|||||||
#2
|
|||||||
|
|||||||
![]() Take the content out of special, your cart and help and move it into customer/categories.tpl, excluding the {capture} bits. For example, in help.tpl, just move this part:
<a href="help.php?section=contactus&mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</a><br /> <a href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement} </a><br /> <a href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions }</a><br /> {include file="pages_menu.tpl"}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Hi balinor:
Ok, i'm clear on that aspect. But in cases like this 'special.tpl' it's loaded with nothing but 'if' statements. Code:
In your example then i'd eliminate this entire chunk? Code:
and my code would start with the first 'if' statement after that? Code:
__________________
Custom Designs - Web Templates www.templatedepot.com |
|||||||
#4
|
|||||||
|
|||||||
![]() Yes, and you'd remove this:
{/capture} { include file="menu.tpl" menu_title=$lng.lbl_special menu_content=$smarty.capture.menu } <br /> {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Ok, now it being the categories.tpl template i'm putting all this into...would I leave the 'capture' section in there that's related to the categories.tpl? Or remove it as well?
__________________
Custom Designs - Web Templates www.templatedepot.com |
|||||||
#6
|
|||||||
|
|||||||
![]() You'll need to leave it if you want the menu structure to show. You can just change the title of it to whatever you want.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() Ok, based on that here's what I have which includes:
categories.tpl special.tpl menu_cart.tpl help.tpl Code:
__________________
Custom Designs - Web Templates www.templatedepot.com |
|||||||
#8
|
|||||||
|
|||||||
![]() Close...you need to move this to the very bottom:
{/capture} { include file="menu.tpl" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() Ok, that makes sense.
Now, will I need to delete the contents of those .tpl files? help.tpl menu_cart.tpl special.tpl Or delete them entirely? Or, can I just leave them 'as is' since the code will be inserted into the categories.tpl for display? Thanks for your help, balinor.
__________________
Custom Designs - Web Templates www.templatedepot.com |
|||||||
#10
|
|||||||
|
|||||||
![]() You'll need to hide them from customer/home.tpl so they don't show up anymore.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|