You are here:  » Two minor questions


Two minor questions

Submitted by ivohofland on Fri, 2013-05-17 14:12 in

Hi David,

I've two minor questions, I think regarding the pt installation and admin.

When I'm mapping products with a product search for alternatives there seems to be a difference in results. The product helper doesn't care about upper or lower case characters but the real mapping process looks like it does.

Product Mapping Helper Search:
bsp boa 2013
result in

=BSP Boa 2013 Laguna groen Remnaaf
=BSP Boa 2013 Smoothy wit Remnaaf
=BSP Boa 3 2013 Laguna groen Nexus 3
=BSP Boa 3 2013 Smoothy wit Nexus 3
=BSP BOA N3 2013 Dames
=BSP BOA RN 2013 Dames

But when I use "bsp boa 2013" in the alternatives field for mapping nothing happens. When I change this in "BSP Boa 2013" (note the letter caseing) some products are mapped.

The second question is regarding the slow import tool link in the admin page. When I use this link no more than 500 products are mapped per feed. It's not starting an other import block for the same feed. Any ideas how this can be or am I just be to impatient?

Kind regards,

Ivo

Submitted by support on Sat, 2013-05-18 10:24

Hi Ivo,

To make Product Mapping case insensitive, edit includes/admin.php and look for the following code at line 463:

  $admin_importProductMappings[$alternate] = $productsmap["name"];

..and REPLACE with:

  $admin_importProductMappings[strtolower($alternate)] = $productsmap["name"];

And then the following code at line 272:

    if (isset($admin_importProductMappings["=".$importRecord["name"]]))
    {
      $importRecord["name"] = $admin_importProductMappings["=".$importRecord["name"]];
    }

...and REPLACE with:

    if (isset($admin_importProductMappings["=".strtolower($importRecord["name"]])))
    {
      $importRecord["name"] = $admin_importProductMappings["=".strtolower($importRecord["name"])];
    }

...and finally the following code at line 290:

  if (strpos($importRecord["name"],$word) !== FALSE) $found++;

...REPLACE with:

  if (stripos($importRecord["name"],$word) !== FALSE) $found++;

The Slow Import Tool should refresh to start the next block immediately, which is done by sending a meta refresh in the output. The latest version defaults to a sleep period of zero, it might be worth making this 1 second in case there is some kind of browser issue regarding a zero refresh period - in config.advanced.php change this as follows at line 39:

  $config_slowImportSleep = 1;

If it still doesn't seem to be refreshing properly, if the page does not refresh anywhere (either to the next block or back to the Slow Import Tool main page, could you perhaps capture the HTML output using your browser's View > Source menu and paste into a reply and I'll check the markup; otherwise if it is refreshing back to the Slow Import Tool main page let me know that's the case and I'll investigate further...

Cheers,
David.
--
PriceTapestry.com

Submitted by ivohofland on Sat, 2013-05-18 17:28

Thx for de respons, regarding the slow import tool. Maybe I had to specify it was about the slow import tool > import all. Everything seems to work fine, except there is only one block imported per merchant. The refreshing between differente merchants seems to go fine. In this image you see the result before and after:

{link saved}

Submitted by support on Sat, 2013-05-18 18:17

Thanks Ivo,

The Slow Import Tool was modified significantly in 13/03A with support XML as well as CSV slow import. I've run a number of tests with different block sizes against both CSV and XML feeds but so far I've not been able to re-create the problem i'm afraid;

Please could you

- confirm that you are running the latest distribution 13/03A (displayed on Support Info page)
- let me know whether your feeds are all CSV, all XML, or a mixture of the two...

Thanks,
David.
--
PriceTapestry.com

Submitted by ivohofland on Sat, 2013-05-18 18:59

I'm running 13/03A and my php version is 5.3.18. The feeds are all XML.

Submitted by support on Sat, 2013-05-18 19:05

Thanks Ivo,

Last question, sorry I should have included this previously; does slow importing an individual feed rather than Import All work correctly?

Thanks,
David.
--
PriceTapestry.com

Submitted by support on Sat, 2013-05-18 19:16

Hi Ivo,

I've just followed up by email...

Cheers,
David.
--
PriceTapestry.com