i have the module for extra field and this is Ean. Now my question is:
Does the program compair the products automaticly with the ean, or only with the product name?
Automatic Product Mapping by UID is an import time process that changes the name of all products with the same EAN to have the same name. This is because at the front-end, comparison is by name only as this gives the benefit of search engine friendly URLs e.g. /product/Product-Name.html without any clutter or unique IDs as part of the page address.
I saw when I checked your site when I was helping with your installation that the uidfix table had been created, so all that is left for you to complete the automatic mapping setup is to get /scripts/uidmap.php to run after your cronjob as per the second part of step 3 of the instructions.
However, if you are just getting started and have a couple of feeds set-up with EAN values being imported you can just run the script through the browser by going to /scripts/uidmap.php and you should see the products matched together once completed. You will also be able to see the output showing what has been matched...
must i run /scripts/uidmap.php only once, or every time i import new products?
Thank you very much, Peter
It needs to run after every full import - so it should really be made part of your cronjob...
...and then once you have your cronjob set-up, you can add uidmap.php to the command as described in step 3 of Automatic Product Mapping by UID
maybe im stupid, but where do i write what. Or is it possible to run the cron from the hosters cpanel?
Thank you for your patience, Peter
Yes - it may well be part of your hosting control panel (e.g. cPanel).
Look for a section called "CRON" or "cronjobs" or maybe "Scheduled Tasks".
Normally, there is a form for you to enter the time of day to run, and a box for the command to run, which you can copy from the /admin/ area of your Price Tapestry site by going to Setup > CRON. If there is no Option 1 showing as available let me know and I will advise what to change to see if that can be made available as it is the best way to run cron with uidmap.php, otherwise you should see something like:
cd /home/username/public_html/scripts/;/usr/bin/php cron.php
...that's just for the normal cron.php which runs all your Automation Tool jobs and then imports all feeds. You can then add uidmap.php to that by adding on to the end after a semi-colon, so you have:
cd /home/username/public_html/scripts/;/usr/bin/php cron.php;/usr/bin/php uidmap.php
Hope this helps!
ok, now i put in the code at the end of /scripts/cron.php
Is this correct?
There's no modification to the code required at all, it's the cronjob command line that you need to change.
From your Price Tapestry /admin/ area, can you go to Setup > CRON and then copy / paste what you see into a reply (I'll remove any host or usernames that show up in the command line) and I'll check it out further with you...
thats the problem i cant put in somethin in Setup>CRON
I have only two examples, but not more.
That's all you should be seeing in Setup > CRON (in the Price Tapestry installation) - can you copy the Option 1 example that you are seeing, then I can describe the next step over in your hosting control panel with your actual command line...
the first Line is
cd /www/htdocs/w014f82d/example.com/scripts;/usr/bin/php cron.php
Perfect - i've just changed your site domain to example.com, so this makes your cronjob command line including uidmap.php as follows:
cd /www/htdocs/w014f82d/example.com/scripts;/usr/bin/php cron.php;/usr/bin/php uidmap.php
So now if you login to your hosting control panel (cPanel) and go to Advanced > Cron Jobs. There you should see an "Add new Cron Job" section. It looks like cPanel has a "Common Settings" box and you can select "Once per day". You should also see a box to enter the "Command" - and that is where you enter the above command line (don't forget to change example.com back to your domain name!)
(I don't use cPanel but I got the above from this page)
Hope this helps - let me know once you have it set-up and I'll add some more tips regarding automation...
at my cpanel i can put in the whole URL like https://example.com/scripts/uidmap.php
If this is ok, do i need to run more cronjobs for the script?
Thank you, Peter
At your cpanel, in the command box put in:
(but change example.com to your domain)
Then you should be all set-up for automation...
sry, i have only the option to put in an URL and i wrote
Its not possible to put in the code. Is this not ok?
Ah, in that case - yes almost that but instead, it's easy to make a cron.php that also runs uidmap.php. Also, your admin password is required in the URL.
1. Make a copy of scripts/uidmap.php and save as scripts/cron_uidmap.php
2. Edit scripts/cron_uidmap.php and look for the following code beginning at line 2:
...and DELETE those lines.
3. Edit scripts/cron.php and look for the following code at line 115:
...and REPLACE with:
Now you have a URL for cron.php that you can enter in your cPanel and will run the UID mapping process afterwards, but you also need to include your password so this is what you need to put in:
(where YOUR_PASSWORD is your password for Price Tapestry /admin/ as configured in config.advanced.php)
ok everything works, but...
why i need the password? It works without the password too.
Everything i changed is in the /script/ folder.
And do i need other cronjobs?
Sry, my last post was wrong, i entered the wrong php
but do i need more cronejobs?
Thanks a lot
No more cronjobs required - you're all set-up!
So now, the time that you set it to run (in cPanel), it will
1) Run all Automation Tool jobs to update your feeds
2) Import all feeds
3) Run the Automatic Product Mapping by UID process
If you have the option in cPanel to set the time of day that it runs, I would suggest early morning e.g. 6AM. That way, if your merchants update their feeds overnight you will get the latest prices...