Support forum login

©2006-2010 IAAI Software

Contact Us

Index new fields

Submitted by dknck on Wed, 2010-01-27 11:49.

Hi David,

I just recently purchased the script, and I'm working on getting it to do what I have in mind.

I would like to index more fields (apart from Product Name, Product Description, Image URL, Buy URL and Price), and followed the instructions here, but I didn't manage to make it work.

I have added the new tables to the database, but I get lost after that. The lines and script mentioned in that thread does not correspond fully to the script I have, and I get errors all the time.

Could you please help me with that? I spent a whole evening trying to figure it out. I would like to add a Country and City fields, as I need to perform a hotel search.

Another question: Does the forum not have a "search" function?

Many thanks,
Charlie.

Submitted by support on Wed, 2010-01-27 13:08.

Hi Charlie,

Welcome to the forum!

I'm really sorry for any wasted time - the thread you mentioned described an earlier method for adding fields relating to the previous distribution of Price Tapestry. Instructions for the new version - it's much easier now, can be found here...

I hope you don't have any problems undoing the changes you made in relation to the old thread; don't hesitate to email me any files you get stuck with of course; although if these are the first changes you've made you can always re-install from the distribution. Your database changes won't have been a waste of time as they are the same - field_xxxx in the `feeds` table and xxxx in the `products` table.

The forum is well indexed by Google - you'll find a site search form here...

http://www.pricetapestry.com/forum/

Cheers,
David.

Submitted by dknck on Wed, 2010-01-27 13:29.

Million thanks, it looks much easier now!

I´ll give it a try and let you know. It's no problem to re-install from the distribution, and the time spent was useful to get used to the script anyway.

Thanks for the quick answer, really appreciate it.

Submitted by dknck on Wed, 2010-01-27 15:14.

Hi again,

It worked like a charm, so easy this way.

Just a thing: In Registration Step 2 I get 3 "notices", it still works, but I guess they shouldn't be there at all.

- Under 'Merchant name' or use field.. I get the following notice: Notice: Undefined index: merchant in \admin\feeds_register_step2.php on line 133

- Under the new created 'country' field: Notice: Undefined index: country in \admin\feeds_register_step2.php on line 133

- Under the new created 'city' field: Notice: Undefined index: city in \admin\feeds_register_step2.php on line 133

Any idea as to why?

Thanks again, just had the script for one day, but I find it extremely useful.

Submitted by support on Wed, 2010-01-27 15:20.

Hi,

Thanks for pointing that out - it is only happening because of the maximum warning level configured in your PHP installation; I will fix it in the distribution but the modification is straight forward. On line 133 you will find...

if (is_array($config_commonFields[$name]))

...simply REPLACE with;

if (isset($config_commonFields[$name]))
if (is_array($config_commonFields[$name]))

(no semi-colon on the end of the first line as the entire second IF statement needs to be conditional upon it)

Cheers,
David.

Submitted by dknck on Wed, 2010-01-27 16:05.

Yes, that solved it!

Thanks David, you're a star.

Regards,
Charlie