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

Customization of dialog part of individual pages
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 08-14-2005, 11:15 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,527
 

Default Customization of dialog part of individual pages

Hi,

I think it is not too complicated to implement. however you should be bit careful.

This is an example for creating the own look for product view details part. You can make the changes like this to all the pages you wish to differentiate from the default dialog design.

1) Create a file dialog_product.tpl under skin1 directory.

2) Copy the contents of dialog.tpl to dialog_product.tpl file

3) Now change the look of the dialog_product.tpl as you want

4) Here is the trick...

Open skin1/customer/product.tpl file

then

change the code

{capture menu=dialog}

to

{capture menu=dialog_product}

then come to the capture close part...

{/capture}
{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"}

change this to

{/capture}
{include file="dialog_product.tpl" title=$product.producttitle content=$smarty.capture.dialog_product extra="width=100%"}

that's it.
Reply With Quote
  #2  
Old 08-16-2005, 12:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just to add my 2 cents, this will also work with any of the other dialog boxes throughout the site.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-16-2005, 07:19 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,527
 

Default

Quote:
Originally Posted by balinor
Just to add my 2 cents, this will also work with any of the other dialog boxes throughout the site.

Yeah. It will work with all the dialog boxes.
Reply With Quote
  #4  
Old 09-15-2005, 09:26 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

I love this forum! Within the first hour of being here I come across this great post. Thank you! I spent over an hour yesterday trying to untangle this one.

Now, where do I change {$title} ? I really do not need that item number appended at the end of the product name.

Also it appears that something still restricts the width of the {$content}. i suspect it's some sort of space reserved for something, maybe image?... Where can I change this?
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #5  
Old 09-15-2005, 08:38 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,527
 

Default

You should look at dialog.tpl file.
Reply With Quote
  #6  
Old 09-16-2005, 02:14 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Quote:
Originally Posted by STORed
I love this forum! Within the first hour of being here I come across this great post. Thank you! I spent over an hour yesterday trying to untangle this one.

Now, where do I change {$title} ? I really do not need that item number appended at the end of the product name.

Also it appears that something still restricts the width of the {$content}. i suspect it's some sort of space reserved for something, maybe image?... Where can I change this?

if your talking about the main product detail page its probably the save % label on the right
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 09-16-2005, 02:30 PM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

Yes, I got it!
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #8  
Old 09-16-2005, 10:37 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

not sure what this does, can anyone post a before and afer screenshot
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


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 05:42 AM.

   

 
X-Cart forums © 2001-2018