X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Google Feed Manager 'Label' field (https://forum.x-cart.com/showthread.php?t=24750)

DaveB 09-08-2006 06:25 AM

Google Feed Manager 'Label' field
 
Hi

I'm a bit stuck with what to do with the label field in the google feed generator.
If I add an extra field to products in xcart for keywords and phrases, and set this field to not show, it then doesn't appear on the website which is correct, but it also doesn't appear as an extra field in field mapping section of the feed manager. But if I set the field to show, which I think would make it show in the mapping section, the keywords etc would appear on our website.

Presumably I'm doing something wrong?

balinor 09-08-2006 07:00 AM

Re: Google Feed Manager 'Label' field
 
Are you talking about Firetanks mod?

DaveB 09-08-2006 07:30 AM

Re: Google Feed Manager 'Label' field
 
Sorry, should have said. Yes.

B00MER 09-11-2006 07:32 AM

Re: Google Feed Manager 'Label' field
 
The best thing I can suggest is to modify the extra field tpl's on the product detail pages to not display the enabled keywords field.

Take a look at skin1/modules/Extra_Fields/product.tpl

{section name=field loop=$extra_fields}
{if $extra_fields[field].active eq "Y" && $extra_fields[field].field_value}

{$extra_fields[field].field}
{$extra_fields[field].field_value}

{/if}
{/section}

If you know the index of the keywords field you can modify the {if} condition to something like this:


{if $extra_fields[field].active eq "Y" && $extra_fields[field].field_value or !$extra_fields[1].field eq "keywords"}

This would be if you had one extra field before a second field with the name "keywords" as this would bypass the active eq "Y" condition and cause the active field not to display but still be available in the feed generator.

Hope this helps.


All times are GMT -8. The time now is 09:45 PM.

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