You are here:  » Bulk Product Mapping Script?


Bulk Product Mapping Script?

Submitted by npaitken on Mon, 2010-09-13 15:55 in

Hi David,

I'm just about to embark on an extensive product mapping exercise and was thinking about possible ways to lighten the load!

To start with I'll be doing quite a bit of data trudging work using the helper.php file you created. I'll then be left with a long list of master product titles & corresponding alternative names. Some will be NEW master products and some will be existing master products I've already mapped that need to be tweaked.

Rather than have to load these new & modified master products in one by one using the usual product mapping interface I was wondering if there was a clever way of doing this with the long list I'll be creating.

Regarding the existing master product mappings, I was hoping I could somehow overwrite the existing alternative names with new tweaked alternatives.

Hope this makes sense and is possible!

Many thanks,
Neil

Submitted by support on Mon, 2010-09-13 16:05

Hi Neil,

Sure is - I have a couple of support scripts; pmexport.php and pmimport.php that should help - will email them to you now..

Cheers,
David.
--
PriceTapestry.com

Submitted by npaitken on Mon, 2010-09-13 16:47

Brilliant Dave - this is going to make life so much easier :-)

Cheers,
Neil

Submitted by redspark on Fri, 2010-09-17 08:02

Hi David,

Could you send me the support scripts as well? (pmexport.php and pmimport.php?

regards,

B.

Submitted by support on Fri, 2010-09-17 08:16

On way...

Cheers,
David.
--
PriceTapestry.com

Submitted by stevewales20 on Sat, 2011-02-26 23:31

Can i request a copy of these as well.

Cheers :)

Submitted by ICH on Mon, 2011-03-07 04:32

can i have a copy as well? ;-)

Submitted by support on Mon, 2011-03-07 08:59

Hi KGP,

Seems to be a popular one so I've posted the files to the Downloads page...

Upload both to the /admin/ folder of your site. pmexport.php generates the productmapping.txt file for download. You can then edit and maintain this file on your local computer, either in a text editor or spreadsheet. The format is

Master Product Name
Alternative 1
Alternative 2

^ TAB character

Just use a single TAB in front of each alternative, so using a spreadsheet to edit the file, when you save (File > Export), use Tab Separation (and unquoted text).

If you have a large number or product mappings already in place use the Database Tool to create a backup of your existing mappings first!

Cheers,
David.
--
PriceTapestry.com

Submitted by Perce2 on Thu, 2011-03-24 18:31

"Upload both to the /admin/ folder of your site. pmexport.php generates the productmapping.txt file for download"

Just tried that and all I get is an empty .txt file!

I'm using the latest version of PT, any suggestions what I might be doing wrong ?

Thanks.

Graham

Submitted by support on Thu, 2011-03-24 19:20

Hi Graham,

Assuming there are entires included in Product Mapping, if you enable database debug mode by changing line 7 of config.advanced.php to:

  $config_databaseDebugMode = TRUE;

...and then download the output from pmexport.php that should give some indication as to the problem - if you're still not sure if you could let me know what is displayed I'll take a look..

(don't forget to disable debug mode again by setting $config_databaseDebugMode back to FALSE) after running the test...)

Cheers,
David.
--
PriceTapestry.com

Submitted by Perce2 on Thu, 2011-03-24 20:01

Hi David,
the process seems to work as it should, it's just that the resulting productmapping.txt file is empty ! There are no error's as such.

Thanks.

Submitted by support on Fri, 2011-03-25 08:45

Hi Graham,

I just double checked the script from the downloadExtras page and seems to be working fine when browsing to pmexport.php from the /admin/ folder.

If it's still not working for you could you possibly email me a link to the installation and any password required for /admin/ and I'll take a look for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by xslinx on Mon, 2012-03-26 15:17

Hi David,

I've got a question for you regarding productmapping via pmexport.php and pmimport.php.
The scripts all work fine, however is it also possible to include the other product mapping feelds in the scripts such as: Custom Description: & Custom Category & Custom Brand & Custom Image URL?

At this moment only the manual product description and the =alternative are ex- en imported. Hopefully this can be expanded with the other feelds.

Thanks in advance!

Kindest regards,
Jaimy

Submitted by support on Mon, 2012-03-26 16:24

Hello Jaimy,

Apologies for the delay in your comment appearing I moderate all posts before publishing in order to protect customer information , URLs etc.

I have just posted an updated version of the pmexport.php and pmimport.php scripts to the more downloads page in the file ProductMappingImportExportCustom.zip

Cheers,
David.
--
PriceTapestry.com

Submitted by xslinx on Tue, 2012-03-27 08:06

Hi David,

This script is absolutely wonderful now, exactly what I need and it will save a lot of work.
Thanks for your quick response and brilliant service!

Best regards,
Jaimy

Submitted by technoarenasol on Sat, 2013-03-16 08:54

Hi David

How to use ProductMappingImportExportCustom ??..I know used TAB for alternate name but how can enter custom field like category etc.

Submitted by support on Sat, 2013-03-16 10:05

Hi Amin,

The custom fields are tab separated along the first row of each mapping, with the alternatives on subsequent rows indented by a single tab, e.g.

MasterProductName[TAB]Description[TAB]Category[TAB]Brand[TAB]ImageURL[TAB]
[TAB]Alternate1
[TAB]Alternate2

The easiest thing to do is probably to do an export, then you can see the exact format from that...

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Sat, 2013-04-06 08:36

Hello David,

This script only overwrite alternate name ...but can be possible to add alternate with existing alter name (Not be overwrite)

Example :

Nokia Asha 302
=Nokia asha 302(Black)
=Nokia asha 302 mobile phone
=Nokia asha 302 Phone

This alter name already in productsmap table ..

After that I created one file .....this export file looks like

Nokia Asha 302
=Nokia asha 302(white)
=Nokia asha 302(Pink)

After that I export productsmap.txt .......

So in database can me made like :

Nokia Asha 302
=Nokia asha 302(Black)
=Nokia asha 302 mobile phone
=Nokia asha 302 Phone
=Nokia asha 302(white)
=Nokia asha 302(Pink)

not only two altername

Thanks

Submitted by support on Sat, 2013-04-06 09:39

Hello Amin,

Sure - I'll email you a version of pmimport.php that merges the export file with the existing `productsmap` table rather than overwriting it...

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Sat, 2013-04-06 11:43

Hi,

Tnx for Modified Version........I try this version but does not adding any new alternate names.
...............

Thanks

Submitted by support on Sun, 2013-04-07 08:51

Hi Amin,

I'll check it out on my test server and follow up by email for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by mlepisto on Sun, 2018-02-11 20:36

Hi David,

I wanted to see if this is still viable or if there's some other method? I was considering building something to handle this and bulk ASIN mapping but wanted to check what might already be available before I start down that road.

Submitted by support on Mon, 2018-02-12 10:43

Hello and welcome to the forum!

I've enabled the Product Mapping Import / Export download - link updated in this comment above...

Cheers,
David.
--
PriceTapestry.com