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

Multiple "Detailed Descriptions"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-27-2005, 12:35 PM
 
Wizard Wizard is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 40
 

Default Multiple "Detailed Descriptions"

Does anyone know if there was a mod made to show a different "Detailed Description" per membership levels?

I sell both retail and wholesale using the membership levels BUT I want different information in the Detailed Description for the Wholesale Membership Level that I do not want the Retail Side to see...

I was not able to find anything yet in these forums... can anyone assist me on this?

Thanks
__________________
Mike

X-Cart 4.0.9 Gold (In Development)
No Live Site

Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b
Reply With Quote
  #2  
Old 04-27-2005, 12:44 PM
 
sportruck sportruck is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 70
 

Default

If you just want to add a few notes, you could use an extra field for this, and add an if statement to your product.tpl file so that only a certain membership level would see that particular extra field.
Reply With Quote
  #3  
Old 04-27-2005, 12:47 PM
 
balinor balinor is offline
 

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

Default

Could use the short description as one of them as well....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 04-27-2005, 01:00 PM
 
Wizard Wizard is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 40
 

Default

The short description is already in use since it helps me display some information on the thumbnail page. I was looking into the idea of creating an "Extra Field" but could not figure out how the cart name them...

That would be the easiest way to accomplish what I want because then I could just add a {if $user_membership eq "Wholesale"} then display that "extra field" otherwise do not...

Any help on when you create an extra field on how to reference it??

Thanks Again
__________________
Mike

X-Cart 4.0.9 Gold (In Development)
No Live Site

Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b
Reply With Quote
  #5  
Old 04-27-2005, 01:08 PM
 
sportruck sportruck is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 70
 

Default

To show an extra field, use:

Code:
{$extra_fields[0].field_value}

The fields are numbered starting from 0

On the admin side, take the checkbox out of the "SHOW" column.
Reply With Quote
  #6  
Old 04-27-2005, 01:16 PM
 
Wizard Wizard is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 40
 

Default

By placing the following code in product.tpl and creating 2 extra fields I was able to make this happen without a flaw. You have been extremly helpful with this topic... it is much appreciated.

For anyone else who may be interested this is what I added to product.tpl

Code:
{if $user_membership eq "Wholesale"} <TR><TD colspan="2"> <FONT class="ProductDetailsTitle">Wholesale Details</FONT></TD></TR> <TR><TD class="Line" height="1" colspan="2">[img]{$ImagesDir}/spacer.gif[/img]</TD></TR> <TR><TD colspan="2"> {$extra_fields[0].field_value}{$extra_fields[1].field_value} </TD></TR> {/if}
__________________
Mike

X-Cart 4.0.9 Gold (In Development)
No Live Site

Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b
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 11:32 PM.

   

 
X-Cart forums © 2001-2020