Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Creating a new page inside the cart.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-13-2007, 04:23 PM
 
GDScards.com GDScards.com is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 195
 

Default 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.
__________________
X-cart Gold 4.0.17
Reply With Quote
  #2  
Old 07-13-2007, 05:04 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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).
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 07-14-2007, 07:58 AM
 
GDScards.com GDScards.com is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 195
 

Default 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.
__________________
X-cart Gold 4.0.17
Reply With Quote
  #4  
Old 07-14-2007, 02:14 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:19 AM.

   

 
X-Cart forums © 2001-2020