Please try using the regular Price mapping field. TikTok enforces the ISO 4217 Rule so thousands uses the comma as a separator and decimal point for the cents.
But the feed plugin follows my price format, comma as decimal and point as thousands.
So, when i set PRICE in the mapping field, i get $17.999 CLP which is correct, but then Tiktok takes it and set it as $18 CLP which is completely wrong. a thousand times wrong…
That’s because TikTok strictly follows the ISO 4217 format. This means the pricing is as follows:
Thousand separator = Comma or ,
Decimal Points = Dot or .
Also, TikTok might round off the pricing. I suggest reaching out to the TikTok support team regarding this as the Feed seems to be generating the correct Price.
You could try creating a new feed with the TikTok template
// Define your custom separators $custom_thousand_separator = '.'; // Change this to your desired thousand separator $custom_decimal_separator = ','; // Change this to your desired decimal separator
// Process each price field foreach ($price_fields as $field) { if (isset($product_data[$field]) && is_numeric($product_data[$field])) { // Convert to float first to ensure proper formatting $price_value = floatval($product_data[$field]);
// Format the price with custom separators $product_data[$field] = number_format( $price_value, 2, // Number of decimal places $custom_decimal_separator, $custom_thousand_separator ); } }
return $product_data; }
// Hook into the adt_get_product_data action add_filter('adt_get_product_data', 'custom_price_format_separators', 10, 3);
Add that to your functions.php or through the WP Code plugin. You might want to change the currency settings here. Note that this will apply to all your feed – so It may cause more issues on other feeds. Please also note that I’m unable to provide further support from here if you use the snippet
I personally believe that vivino_price should have this price format forced. Because tiktok doesn’t allow other price formats, and there are countries that use this plugin that has different price format.
I hope you can add this as a feature.
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Price is not correctly displayed in tiktok’ is closed to new replies.