You have no items in your shopping cart.

Friday, March 29, 2024 8:01:53 AM

New field on google.xml not showing

Posted: 4 years ago

#8914 Quote

cobertec

Posted: 4 years ago

#8914 Quote
Hi, I have tried to add a new field into the google feed to show the product cost, like this:

  <FeedAttribute>
    <Id>51</Id>
    <FeedCaption>Product Cost</FeedCaption>
    <FeedName>product_cost</FeedName>
    <FieldNameCode>productcost</FieldNameCode>
    <ConvertValues />
    <CharsLimit>100</CharsLimit>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <UseCDATA>false</UseCDATA>
    <ActionId>0</ActionId>
    <AdvancedField>true</AdvancedField>
    <RowSourceType>0</RowSourceType>
    <AttributeControlType>0</AttributeControlType>
  </FeedAttribute>

But when I generate the feed, the tag product_cost doesn't show up in the xml.

I have to restart nopcommerce so that the system apply the changes? What can I do?

Thank you so much.

Regards.

Posted: 4 years ago

#8915 Quote

Support

Posted: 4 years ago

#8915 Quote
Check if you has
<Id>51</Id>
only one time.
Maybe you copy existing ID and this template has two items with ID 51

Posted: 4 years ago

#8916 Quote

cobertec

Posted: 4 years ago

#8916 Quote
Support wrote:
Check if you has
<Id>51</Id>
only one time.
Maybe you copy existing ID and this template has two items with ID 51


No, that's the only one.
What else can I check?

Posted: 4 years ago

#8917 Quote

Support

Posted: 4 years ago

#8917 Quote
ID is unique key for each field.
Change it with value 45645654 and try.

Posted: 4 years ago

#8918 Quote

cobertec

Posted: 4 years ago

#8918 Quote
Support wrote:
ID is unique key for each field.
Change it with value 45645654 and try.


I think is something else because I have made a test, changing the existing label custom_label_0 to show product cost, and it doesn't show up in the feed.

Posted: 4 years ago

#8919 Quote

Support

Posted: 4 years ago

#8919 Quote
  <FeedAttribute>
    <Id>31</Id>
    <FeedCaption>Custom label for Shopping Campaigns 0</FeedCaption>
    <FeedName>custom_label_0</FeedName>
    <FieldNameCode>productcost</FieldNameCode>
    <ConvertValues />
    <CharsLimit>100</CharsLimit>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <UseCDATA>false</UseCDATA>
    <ActionId>0</ActionId>
    <AdvancedField>true</AdvancedField>
    <RowSourceType>0</RowSourceType>
    <AttributeControlType>0</AttributeControlType>
  </FeedAttribute>



I changed the FiledNameCode for custom_label_0.
And it worked.

Can you give me login and password for your test store?

Posted: 4 years ago

#8920 Quote

cobertec

Posted: 4 years ago

#8920 Quote
Support wrote:
  <FeedAttribute>
    <Id>31</Id>
    <FeedCaption>Custom label for Shopping Campaigns 0</FeedCaption>
    <FeedName>custom_label_0</FeedName>
    <FieldNameCode>productcost</FieldNameCode>
    <ConvertValues />
    <CharsLimit>100</CharsLimit>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <UseCDATA>false</UseCDATA>
    <ActionId>0</ActionId>
    <AdvancedField>true</AdvancedField>
    <RowSourceType>0</RowSourceType>
    <AttributeControlType>0</AttributeControlType>
  </FeedAttribute>



I changed the FiledNameCode for custom_label_0.
And it worked.

Can you give me login and password for your test store?


Sent

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved