I’ve tried everything to connect osCommerce to this plugin. The DB host keeps converting to ‘localhost’ please can you help enable this plugin to transfer the site data as it won’t export from osCommerce database.
]]>Hello,
I would like to use this plugin to migrate an oscommerce on a woocommerce but is the link of the product sheet are rewritten ? so this module does it manage the url rewriting ?
thank you
]]>First, thank you for this add-on, it is a tremendous help and does more than the paid migration services.
The only issue I am finding is that it does not handle product variations properly. It creates the variations properly but does not bring over the price. Is there a way to bring over this information for variable products?
]]>Hi,
all I tested result in one sentence:
“Could not connect to the osCommerce database”
Even I tested wether this database is reachable and it succedded with success. It is for the test routine accepted.
And I tried to put a new database wih same content at another hosters place but this database is also unreachable with same mistake log:
“Could not connect to the osCommerce database”
What else left to try?
Thanks in advance for your advice
]]>Hi Alejandro,
I used your plugin before and it worked ok.
Now i need to use it again but import doesn’t work as it should be.
Categories are imported but product are not in de Categories.
Images import doesn’t work.
Orders and Customers import is Ok.
Can you help please.
Best Regards, Hakob.
]]>Hi,
I’m experincing a problem with importing orders. Everything is fine except the order totals are always zero when viewed in Woocommecre after the import. Any ideas ?
]]>Select Imports not work. Can not select.
]]>Great plugin but I keep getting this error: “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”
I tried to set offset and limit to as low as 50 but the plugin imported +1800 items before it threw this error. Have emptied the database and tried several times.
Same error every time.
There is no email in the admin inbox so can’t look for the problem.
Running latest WordPress and Woocommerce.
Thanks!
]]>Hello,
when select a variable product to add to cart it is not selected and says invalid value for attribute.
if i am missing something or need to modify please let me know
if ($attributes = $oscdb->get_results(“select pa.price_prefix, pa.options_values_price, po.products_options_name, pov.products_options_values_name FROM products_attributes pa, products_options po, products_options_values pov WHERE pa.products_id='”.$product[‘products_id’].”‘ AND pov.products_options_values_id = pa.options_values_id AND pov.language_id=po.language_id AND po.language_id=1 AND pa.options_id=products_options_id”, ARRAY_A)) {
wp_set_object_terms($product_id, ‘variable’, ‘product_type’);
$attrib_array = array();
$attrib_combo = array();
$max_price = $product[‘products_price’];
$min_price = $product[‘products_price’];
foreach ($attributes as $attribute) {
$slug = sanitize_title($attribute[‘products_options_name’]);
$attrib_array[$slug] = array(
‘name’ => $attribute[‘products_options_name’],
‘value’ => ltrim($attrib_array[$slug][‘value’] . ‘ | ‘ . $attribute[‘products_options_values_name’], ‘ | ‘),
‘position’ => 0,
‘is_visible’ => 1,
‘is_variation’ => 1,
‘is_taxonomy’ => 0);
if($attribute[‘price_prefix’] == ‘-‘)$attributeprefix = ‘-‘;
else if($attribute[‘price_prefix’] == ‘+’)$attributeprefix = ‘+’;
else $attributeprefix = ”;
$attrib_combo[$slug][] = array($attribute[‘products_options_values_name’], $attributeprefix . $attribute[‘options_values_price’]);
}
// Now it gets tricky…
$combos = otw_cartesian_product($attrib_combo);
foreach ($combos as $combo) {
$variation_id = wp_insert_post(array(
‘post_title’ => ‘Product ‘ . $product_id . ‘ Variation’,
‘post_content’ => ”,
‘post_status’ => ‘publish’,
‘post_type’ => ‘product_variation’,
‘post_author’ => 1,
‘post_parent’ => $product_id
));
$opt_price = $product[‘products_price’] .$attributeprefix. $attribute[‘options_values_price’];
$special_price = $special[‘specials_new_products_price’];
foreach ($combo as $k => $v) {
update_post_meta($variation_id, ‘attribute_’ . $k, $v[0]);
$opt_price += $v[1];
$special_price += $v[1];
}
update_post_meta($variation_id, ‘_sku’, ” );
update_post_meta($variation_id, ‘_regular_price’, $opt_price);
update_post_meta($variation_id, ‘_price’, $opt_price);
update_post_meta($variation_id, ‘_thumbnail_id’, 0);
update_post_meta($variation_id, ‘_stock’, $product[‘products_quantity’]);
if ($special) {
update_post_meta($variation_id, ‘_sale_price’, $special_price);
if ($special[‘expires_date’] > time()) {
update_post_meta($variation_id, ‘_sale_price_dates_to’, date(“Y-m-d”, $special[‘expires_date’]));
update_post_meta($variation_id, ‘_sale_price_dates_from’, date(“Y-m-d”));
}
}
if ($opt_price > $max_price) {
$max_price = $opt_price;
}
if ($opt_price < $min_price) {
$min_price = $opt_price;
}
}
update_post_meta($product_id, ‘_product_attributes’, $attrib_array);
update_post_meta($product_id, ‘_max_variation_regular_price’, $max_price);
update_post_meta($product_id, ‘_min_variation_regular_price’, $min_price);
update_post_meta($product_id, ‘_max_variation_price’, $max_price);
update_post_meta($product_id, ‘_min_variation_price’, $min_price);
}
Hi Alejandro
We have installed the Woocommerce OsCommerce Sync plugin, which ran the first time which was great. Unfortunately trying to run it again is giving a “Could not connect to the osCommerce database “error
This is despite using the same credentials as the first attempt which worked.
The site is being built at https://skatkatzdesign.basicsitedesign.com.au and pulling from https://skatkatz.com.au
Is this something you have seen before/can help with resolving?
Thanks!
Adam
]]>Hola,
Tenemos esta tienda en OsCommerce https://www.tpvcenter.com que queremos pasar a Woocommerce y hemos encontrado tu fantástico plugin que nos puede ayudar a importar la base de datos. Pero nos gustaría saber si también importa de la tabla “Products” la columna “Products weight” que almacena el peso del producto y que para nosotros es importante porque usamos para el tema de los gastos de envío. Hemos mirado en la página del plugin y no lo mencionas.
Muchas gracias y un saludo.
]]>Hi, I have a website based on osCommerce and I want to switch to WordPress.
I saw that you have developed this plugin Woocommerce osCommerce Sync.
I’m not so expert with this kind of things, It is possibile to copy the entire website and transfer to WordPress?
How much it will be cost? To transfer all clients, images, products, information, order etc
This is described as not tested with WordPress 5.0. Does it actually work with 5.0?
]]>Dear support,
first of all thanks for the great and usefull plugin.
I am migrating an old oscommerce to worpress.
I sucessfully copy everithing except product images.
I followed the steps as suggested:
Customers
Categories
Products
Products delete images
Products Prefered image
Products gallery
Orders
But all product have a placeholder.png instead of the image.
Do i need to do a sort of reindex?
I saw that in table _postmeta tehre is no thumbnail_id information.
But the importImagelog shows all images are imported:
2019-01-28 10:57:12 Start Import
2019-01-28 10:57:12 Image new: 2722 New Media [https://www.domain.org/os/image/bandiera futurista.jpg]
2019-01-28 10:57:12 Image new: 2797 New Media [https://www.domain.org/os/image/ettoremuti.jpg]
2019-01-28 10:57:12 Image new: 2798 New Media [https://www.domain.org/os/image/RITORNO–A-CAMELOT_2006AAAAAAAAAAAAAA.jpg]
I am not able to figure out where the images where copied (folder in woocommerce)
Anyway no information of images was added to product page.
I have Worpress 5.0.3
Woocommerce 3.5.4
Am I missing something?
Geetings
]]>Hola Alejandro,
Primeramente mucho gusto y respeto como buen programador que eres.
Tengo una pregunta sobre tu plugin Woocommerce osCommerce Sync:
– Nosotros tenemos un Sitio A que lanzaremos pronto que es una tienda online. Ese sitio está construido y optimizado bien frecuente y ligero. Queremos mantenerlo lo menos cargado de plugins posibles Mara que mantenga su eficiencia.
– Adicionalmente queremos hacer un Sitio B para dar servicio al cliente. En ese sitio instalaremos dos plugins: unos para tickets y atención a clientes con problemas con sus órdenes ( usando este plugin: https://elextensions.com/plugin/wsdesk-wordpress-support-desk-plugin/ ) más otro plugin específico para construir un Knowledge Base )
El plugin de customer service necesita estar instalado donde estén las órdenes de los productos y clientes para poder leer datos e integrarse con WooCommerce.
Mi pregunta es: A través de tu plugin, no podríamos instalar el plugin de servicio al cliente en el Sitio B y seguir leyendo los mismos datos ya que serían importados del sitio A
La otra pregunta sería si tu plugin ejecutaría las sincronizaciones automáticamente para mantener al sitio B constantemente actualizado con el Sitio A
Un millon de gracias de antemano y apreciaría tu respuesta y experiencia.
Saludos,
Hansel
Very great plugin and helpful.
I need help becuase the many products have same images
can the function woocommerce_osc_import_image modified so that if image exist used their attachment id instead of upload same product for new product. please take a look the function if it works.
function woocommerce_osc_import_image($url){
$attach_id = 0;
$wp_upload_dir = wp_upload_dir();
$filename = $wp_upload_dir[‘path’].’/’.sanitize_file_name(basename($url));
if(file_exists($filename)){
$image_url = $filename;
$attach_id = attachment_url_to_postid($local_url);
require_once(ABSPATH . ‘wp-admin/includes/image.php’);
$attach_data = wp_generate_attachment_metadata( $attach_id, $filename );
wp_update_attachment_metadata( $attach_id, $attach_data );
}else{
//Encode the URL
$base = basename($url);
$url = str_replace($base,urlencode($base),$url);
if($f = @file_get_contents($url)){
file_put_contents($filename,$f);
$wp_filetype = wp_check_filetype(basename($filename), null );
$attachment = array(
‘guid’ => $wp_upload_dir[‘url’] . ‘/’ . basename( $filename ),
‘post_mime_type’ => $wp_filetype[‘type’],
‘post_title’ => preg_replace(‘/\.[^.]+$/’, ”, basename($filename)),
‘post_content’ => ”,
‘post_status’ => ‘inherit’
);
$attach_id = wp_insert_attachment( $attachment, $filename, 37 );
require_once(ABSPATH . ‘wp-admin/includes/image.php’);
$attach_data = wp_generate_attachment_metadata( $attach_id, $filename );
wp_update_attachment_metadata( $attach_id, $attach_data );
}
}
return $attach_id;
}
Hello
I have a oscommerce website in portuguese and english, the main language is portuguese.
the language_id of portuguese is 6 and english is 5.
When i put 6 on the plugin language field, only imports the products in english.
Thanks for the great plugin.
Can you please let me know where is the plugin looking for the images? It has successfully copied categories images but not the product images and both the images are in the same folder \images under the root
Thanks
Sam
]]>Everything is working super great except our product images do not get imported. I have manually transferred over our images directory which I was not sure if we needed to do this or not, but the image url will not come with the SQl product transfer.
We also have a OSC sub image addon but I am not too concerned with that right now, just the main picture URL at least.
Thank you so much for your time,
Chris
Is there any way to import the orders only from specific year? to deal in some way with the timeouts.
Thank you for your time!
Note: I’ve contacted you through your personal site with more details about this in Spanish.
]]>Would be awesome if you guys add this. I’m having timeouts and I need to import a big database with 10,000+ orders.
Or there is a way to import the most recent orders first?
Thank you!
]]>