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

New Side Box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-27-2009, 03:46 AM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Default New Side Box

Hi All.

I'd like to add a new box on the right side, with a list of links to other sites. Does anyone have instructions for doing this please?

Thanks, Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote
  #2  
Old 04-27-2009, 04:05 AM
  ElegantXMods.com's Avatar 
ElegantXMods.com ElegantXMods.com is offline
 

Advanced Member
  
Join Date: Apr 2009
Location: Stirling, UK
Posts: 94
 

Default Re: New Side Box

Hi there,

It's pretty easy - open up skin1/customer/home.tpl and find the line:

Code:
<div id="right-bar">

And place the following code below it - work out exactly where e.g. below the minicart but above the news section for instance.

Code:
{include file="modules/links.tpl"}

Now save home.tpl.

Now, in your skin1/modules folder, create a new file called links.tpl and place the following code inside:

Code:
{capture name=menu} <ul> <li>LINK 1</li> <li>LINK 2</li> <li>LINK 3</li> ... </ul> {/capture} {include file="customer/menu_dialog.tpl" title="Links" content=$smarty.capture.menu}

Change the links to whatever you would like and save.
__________________
John
ElegantXMods.com

QuickOrder AJAX-based search and ordering system now available
giving you complete control over how customers browse and search for your products. Click here for details.
PriceSlider - easily filter categories by price range - only $9.99 - details here

X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache.
Reply With Quote

The following 8 users thank ElegantXMods.com for this useful post:
am2003 (07-11-2010), Bobby P. (10-21-2009), dwpers (08-12-2009), graffix (05-10-2011), just wondering (02-09-2010), onetoremember (02-06-2011), SCUBA1609 (07-15-2009), Shehzad (11-01-2010)
  #3  
Old 04-27-2009, 08:50 PM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Thumbs up Re: New Side Box

Hi John.

That worked well. Thanks for your help.

Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote
  #4  
Old 04-28-2009, 11:24 AM
 
JMC JMC is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 35
 

Default Re: New Side Box

Hi John

Thanks for the helpfull information.

Could you tell me exactly how to do the following.

1/ Create a new side box and insert an image.

2/ Create a new side box and insert 2 or 3 images vertically.

3/ Create a new side box and insert a clickable image that can take a customer to a product within my site.

4/ Create a new side box and place a youtube video in it. Can this be done.

Thanks for any direction.

Regards

John
__________________
x-cart gold version 4.1.8
Reply With Quote
  #5  
Old 04-28-2009, 12:58 PM
 
Dowhatchalike Dowhatchalike is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 84
 

Default Re: New Side Box

@JMC , just follow the same instructions and include whatever content you want inside the {capture} tags
__________________
X-cart Version 4.2.2
Reply With Quote

The following 2 users thank Dowhatchalike for this useful post:
Hagorn (04-30-2009), SCUBA1609 (07-16-2009)
  #6  
Old 07-16-2009, 02:26 PM
 
royng royng is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 85
 

Default Re: New Side Box

This is great!

I want to create one side box to show shop by size

I have in mind to use the search.

Such as, search for large, and all the large sizes come up, and copy and paste the link between capture.

But the problem is, I have the search keywords for large for some other item, and it's show up.

How do I create a search link for just to search the data base, not the title and the keywords.

Thanks!
__________________
X-Cart DB Version: 4.1.11 GOLD
Reply With Quote
  #7  
Old 07-16-2009, 02:31 PM
 
royng royng is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 85
 

Default Re: New Side Box

Quote:
Originally Posted by ElegantXMods.com
Hi there,

It's pretty easy - open up skin1/customer/home.tpl and find the line:

Code:
<div id="right-bar">

And place the following code below it - work out exactly where e.g. below the minicart but above the news section for instance.

Code:
{include file="modules/links.tpl"}

Now save home.tpl.

Now, in your skin1/modules folder, create a new file called links.tpl and place the following code inside:

Code:
{capture name=menu} <ul> <li>LINK 1</li> <li>LINK 2</li> <li>LINK 3</li> ... </ul> {/capture} {include file="customer/menu_dialog.tpl" title="Links" content=$smarty.capture.menu}

Change the links to whatever you would like and save.

I am using 4.1.11 and I can't find the line

<div id="right-bar">
__________________
X-Cart DB Version: 4.1.11 GOLD
Reply With Quote
  #8  
Old 07-16-2009, 02:36 PM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: New Side Box

This is the 4.2.x template editing section.

In 4.1.x look for:

<!-- /central space -->

Just after this there should be a </table>

After that closing table tag are the right hand menu boxes.

Hope that helps,
Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #9  
Old 10-29-2010, 07:41 AM
 
shirtshop shirtshop is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 127
 

Default Re: New Side Box

how can you do this under 4.4.1 pro version?
__________________
ver 3.5.10 with a lot of customizing
now testing 4.4.1 smartytemplate
Reply With Quote
  #10  
Old 11-11-2010, 03:35 PM
 
northstar northstar is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 33
 

Default Re: New Side Box

Worked in 4.3...like a charm! Thank you!
__________________
Alisa
X-Cart 4.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:32 PM.

   

 
X-Cart forums © 2001-2020