Itinerary in DB

Hi,

The post I made a few days ago was answered an deleted, but I would like to do a more specific question about this.

We made the script to insert travels from our system to the Wordpress site with Entrada, and everything is working fine but the itinerary. There seems to be an issue with the way we are building the itinerary string, that’s why we asked how it was build.

Using dummy data the string Entrada stores in the database is

s:852:“a:6:{i:0;a:3:{s:13:“itinerary_txt”;s:6:“Día 1”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:1;a:3:{s:13:“itinerary_txt”;s:6:“Día 2”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:2;a:3:{s:13:“itinerary_txt”;s:6:“Día 3”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:3;a:3:{s:13:“itinerary_txt”;s:6:“Día 4”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:4;a:3:{s:13:“itinerary_txt”;s:6:“Día 5”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:5;a:3:{s:13:“itinerary_txt”;s:6:“Día 6”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}}”;

and the string we build is

s:846:“a:6:{i:0;a:3:{s:13:“itinerary_txt”;s:5:“Día 1”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:1;a:3:{s:13:“itinerary_txt”;s:5:“Día 2”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:2;a:3:{s:13:“itinerary_txt”;s:5:“Día 3”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:3;a:3:{s:13:“itinerary_txt”;s:5:“Día 4”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:4;a:3:{s:13:“itinerary_txt”;s:5:“Día 5”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}i:5;a:3:{s:13:“itinerary_txt”;s:5:“Día 6”;s:15:“itinerary_title”;s:12:“BUENOS AIRES”;s:14:“itinerary_desc”;s:24:“Hotel en ARGENTINA-CACHI”;}}”;

The problem seems to be the way it counts the characters with acute like á, é, í, ú ,ó and ñ, thats why we like to know how the count is done or where in the entrada files the itineray string is build to do it the same way.

Thanks

Hello,

You will find the itinerary data on entrada >> woocommerce >> content-single-product.php from line 348 onwards.

You can search for “itinerary” or actual string itinerary_title, itinerary_desc to see how this is built.

Thank you