X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Creating a new page inside the cart. (https://forum.x-cart.com/showthread.php?t=32540)

GDScards.com 07-13-2007 04:23 PM

Creating a new page inside the cart.
 
I just purchased a rewards points program and I wanted to create a page where I could tell the customer all about the program. But i would still like the top, left and right sides of the cart to be there... So it would look like the page is in the shopping cart.

I created a static page with a rootlevel and it was pretty much just a blank html page.

carpeperdiem 07-13-2007 05:04 PM

Re: Creating a new page inside the cart.
 
Close... what you wanted to do was create a Static EMBEDDED page.

This will (by default) put this page into your help menu... come back (or search) to find out how to put certain pages in other menus (or not at all -- only called by the URL).

GDScards.com 07-14-2007 07:58 AM

Re: Creating a new page inside the cart.
 
Awsome thanks i didnt realize it put it automatically in the help menu.. im going to try to figure out how to put it in the "Specials" menu on my own first..

Thanks for your help with the Webmaster Mode since you've explained it alittle better to me iv been pulling pages up and making small edits all over the place.

carpeperdiem 07-14-2007 02:14 PM

Re: Creating a new page inside the cart.
 
Glad this is workling for you... the trick to putting a static embeeded page into another menu is:

1. set the POS of the NEW static embedded (that you want to exclude from help section) to a high number (i.e. >900;
2. your template file, pages_menu.tpl probably started out looking like this:

Code:

{section name=pg loop=$pages_menu}
<A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</A><BR>
{/section}


Instead, make it look like this:

Code:

{section name=pg loop=$pages_menu}
{if $pages_menu[pg].orderby > 900}
{else}
<A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</A><BR>
{/if}
{/section}


SO -- at this point, any static embedded page with POS >900 will be excluded from pages_menu.tpl

Cool, huh?

Now, at this point, you can hard-code the page into any menu you want.

That's one of my all-time favorite and simple hacks.

You can also get tricky and put static embedded pages into ranges -- then put a loop into a new menu template and automatically pull all pages from 700-799 into menu XYZ or whatever... got it?


All times are GMT -8. The time now is 06:52 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.