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)
-   -   Multiple "Detailed Descriptions" (https://forum.x-cart.com/showthread.php?t=13661)

Wizard 04-27-2005 12:35 PM

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

sportruck 04-27-2005 12:44 PM

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.

balinor 04-27-2005 12:47 PM

Could use the short description as one of them as well....

Wizard 04-27-2005 01:00 PM

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

sportruck 04-27-2005 01:08 PM

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.

Wizard 04-27-2005 01:16 PM

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}



All times are GMT -8. The time now is 03:05 PM.

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