You have no items in your shopping cart.

Friday, October 4, 2024 11:39:17 AM

How to use Prefix field

Posted: 6 years ago

#6894 Quote

minespress

Posted: 6 years ago

#6894 Quote
I have been trying to add a prefix to all of the product names by using the prefix field. However the space is trimmed out and does not function as expected. What would be the proper way to accomplish this task?

Posted: 6 years ago

#6895 Quote

Support

Posted: 6 years ago

#6895 Quote
Do you use prefix with spacebar in start or end position?

Posted: 6 years ago

#6896 Quote

minespress

Posted: 6 years ago

#6896 Quote
End position.

We would like to add a word before each of the product names but when adding the prefix there is no separation between it and the actual product name.

Posted: 6 years ago

#6897 Quote

Support

Posted: 6 years ago

#6897 Quote
I'll check this problem tomorrow.... Think I use TRIM....
If I am right I'll do new fix tomorrow too.
Thank you.

Posted: 6 years ago

#6898 Quote

Support

Posted: 6 years ago

#6898 Quote
I was wrong. I don't use TRIM.
If you change PREFIX from nop admin mode than NopCommerce TRIM each value automatically.

Open the feed template as plain file.
Example Google.xml and look for your prefix. Add space bar and save it.

  <FeedAttribute>
    <Id>1</Id>
    <FeedCaption>Product Name</FeedCaption>
    <FeedName>title</FeedName>
    <FieldNameCode>name</FieldNameCode>
   <Prefix>Test </Prefix>
    <ConvertValues />
    <CharsLimit>150</CharsLimit>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <UseCDATA>false</UseCDATA>
    <ActionId>0</ActionId>
    <AdvancedField>false</AdvancedField>
    <RowSourceType>0</RowSourceType>
    <AttributeControlType>0</AttributeControlType>
  </FeedAttribute>

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved