On 12/7/2018 at 6:41 PM, El Patron said:There really is no magic bullet. To be honest we did large url migration and unless you can write scripts to build the rewrites....it's a very time consuming effort. They hired us just for that bit of work and to big dog review their new shop.
best case scenario is you can keep same URI's....from old to new for say cat products, in which case you would need to investigate module for PS that could support non-native url's, i.e. with id's.
note: problem with url 301 rewrite module above is it does not keep a counter of hits...then you would know if used, last used or if ever used.
maybe give example of existing product link as we already know what a native ps link looks like lol. Then maybe we come up with something.
el
Okay,
Let's start!
First question is basic:
How can I do insert a product with a specific ID? (I want to keep product's id as original). Like this: X product id = 234 at old DB, I want to insert to P.S with 234. (just for XML import)
My codes for insert:
$product = New Product();
$name = (string)$xml->name;
..
bla bla
..
$product->save();
If I send id product such as Product($id_product), it will be updated.
I think; If I can keep IDs the same, I can re-direct all product url types and it will be okay. ?
In addition to these, the URL sets like this at old script:
elpatron.com/baby-set-red--3041 (uniqe product ID)
Thanks a lot!