Index new fields
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.
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.
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.
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.
Yes, that solved it!
Thanks David, you're a star.
Regards,
Charlie
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.