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)
-   -   put content of Extra Field into the <head> ? (https://forum.x-cart.com/showthread.php?t=61677)

carpeperdiem 12-18-2011 01:03 PM

Re: put content of Extra Field into the <head> ?
 
What didn't work? How did you determine if the extra field variables were/were not available to the template?

In the 4.1 branch, you have to do some hoop jumping to see available variables... and there is a specific format for the variables...

http://forum.x-cart.com/showthread.php?t=12718

weckie 12-18-2011 01:05 PM

Re: put content of Extra Field into the <head> ?
 
BTW i am working on a complete new website using xcart 4.4.4 and template MODERN LIVING

cherie 12-18-2011 01:11 PM

Re: put content of Extra Field into the <head> ?
 
Extra Fields have been available on the product listings page since 4.1:

http://forum.x-cart.com/showthread.php?p=118321#post118321

weckie 12-18-2011 01:19 PM

Re: put content of Extra Field into the <head> ?
 
Quote:

Originally Posted by cherie
Extra Fields have been available on the product listings page since 4.1:

http://forum.x-cart.com/showthread.php?p=118321#post118321



Well.... Not at my New 4.4.4 website with Tha xcart stores Modern Living template.

cflsystems 12-18-2011 02:04 PM

Re: put content of Extra Field into the <head> ?
 
The custom skin you are using should not matter. On products list pages it is not

{foreach from=$extra_fields item=v}

It would be

{foreach from=$product.extra_fields item=v}

Above assuming you are already inside

{foreach from=$products item=product}

Extra fields array is part of each product's array inside $products

weckie 12-18-2011 02:27 PM

Re: put content of Extra Field into the <head> ?
 
Quote:

Originally Posted by cflsystems
The custom skin you are using should not matter. On products list pages it is not

{foreach from=$extra_fields item=v}

It would be

{foreach from=$product.extra_fields item=v}

Above assuming you are already inside

{foreach from=$products item=product}

Extra fields array is part of each product's array inside $products


WELL WELL... That did the job lol. Sometimes xcart is difficult from its easyness.... <-- is that english?? LOL

Thanks Anyway.


All times are GMT -8. The time now is 10:28 AM.

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