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)
-   -   Product Extra Fields Don't Show (https://forum.x-cart.com/showthread.php?t=45201)

spiredem 01-29-2009 04:46 PM

Product Extra Fields Don't Show
 
I've added an extra field in the admin and it is active but the content of the field does now show up on the customer end. Where in the product.tpl template would I edit the code to make sure the extra field displays right under the description? thanks!

balinor 01-29-2009 04:59 PM

Re: Product Extra Fields Don't Show
 
Have you edited product.tpl?

spiredem 01-29-2009 05:08 PM

Re: Product Extra Fields Don't Show
 
Yes, I think the original site designers customized it because I would imagine the default would allow it to show... They set up an "ingredients" extra field. Does this mean anything to you?

{section name=field loop=$extra_fields}
{* loop through with sanity check on field=ingredients in case more extra fields are added *}
{if $extra_fields[field].active eq "Y" && $extra_fields[field].field_value && $extra_fields[field].field eq "Ingredients"}

spiredem 01-29-2009 05:09 PM

Re: Product Extra Fields Don't Show
 
I mean, does it appear that they have somehow blocked other fields than the ingredients field from displaying?

balinor 01-29-2009 05:11 PM

Re: Product Extra Fields Don't Show
 
Yea, looks like they turned off the other extra fields to call this specific one. The original code looks like this:

{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}

spiredem 01-29-2009 05:13 PM

Re: Product Extra Fields Don't Show
 
Hmm...what do you think I should do to fix it?

balinor 01-29-2009 05:14 PM

Re: Product Extra Fields Don't Show
 
Do you want the ingredients to show with the other fields?

spiredem 01-29-2009 05:15 PM

Re: Product Extra Fields Don't Show
 
Yes, I want everything to stay the same but I would like the extra field I just added to display as well.

spiredem 01-29-2009 05:18 PM

Re: Product Extra Fields Don't Show
 
Maybe it would help to take a look at the page:
http://www.spiritbeautylounge.com/Skinny-Skinny-Organic-Bar-Soap-Basil-Mint.html

My ingredients field is a javascript thingie. I would actually like for the other extra field to appear just above the AddThis button.

spiredem 01-29-2009 05:19 PM

Re: Product Extra Fields Don't Show
 
...or just after the ingredients..wherever!

balinor 01-29-2009 05:20 PM

Re: Product Extra Fields Don't Show
 
Can you post the rest of the code from above? Would end in {/section}

spiredem 01-29-2009 05:22 PM

Re: Product Extra Fields Don't Show
 
{section name=field loop=$extra_fields}
{* loop through with sanity check on field=ingredients in case more extra fields are added *}
{if $extra_fields[field].active eq "Y" && $extra_fields[field].field_value && $extra_fields[field].field eq "Ingredients"}
<iframe id="ingred_cover" src="javascript: '<html></html>';" scrolling="no" frameborder="0"></iframe>
<div id="ingredients">
<div class="ing_title">INGREDIENTS</div>
<div>{$extra_fields[field].field_value}</div>
<div class="ing_close"><a href="javascript: ingredients('none');">CLOSE X</a></div>
</div>
{/if}
{/section}


Make any sense?

ARW VISIONS 01-29-2009 07:16 PM

Re: Product Extra Fields Don't Show
 
Can't you put HTML in the extra fields?

spiredem 01-30-2009 09:56 AM

Re: Product Extra Fields Don't Show
 
What HTML would I put?

ARW VISIONS 01-30-2009 10:14 AM

Re: Product Extra Fields Don't Show
 
why I asked is because I don't think you need to break the original code. Could have just made the pop up by putting that code in the ingredients extra field.

spiredem 01-30-2009 01:40 PM

Re: Product Extra Fields Don't Show
 
Well, the popup is already done...let's leave all that alone. I don't want to change any of the existing code except for whatever is keeping it from allowing the new extra field to show up on the page at all. Any ideas? thanks!

ARW VISIONS 01-30-2009 06:49 PM

Re: Product Extra Fields Don't Show
 
well if you add the code to allow the others the ingredients one will show also.


All times are GMT -8. The time now is 12:38 PM.

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