Thanks
kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Thanks for your modification. Well done, well done!!
kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah
This is modification to you as your request. I hope you enjoy and sorry to wait long time.
kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah
... whenever I try to import the updated spreadsheet with the new fields entered. I guess something else needs to be edited for that to work?Uploaded file is not a valid spreadsheet file or its values are not in the expected formats!
But whenever I IMPORT the Excel file, it gives this error:
Code: Select all
Notice: Undefined offset: 13 in .../htdocs/catalog/admin/model/tool/export.php on line 266Notice: Undefined offset: 16 in .../htdocs/catalog/admin/model/tool/export.php on line 269Notice: Undefined offset: 23 in .../htdocs/catalog/admin/model/tool/export.php on line 275Notice: Undefined offset: 24 in .../htdocs/catalog/admin/model/tool/export.php on line 276Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''felina','0','0','0','','in',1,'testing agai',0,and finally,'data/felina-parchme' at line 1
Error No: 1064
INSERT INTO `product` (`product_id`,`quantity`,`sku`,`location`,`stock_status_id`,`model`,`cleaning_code`,`repeat_dir`,`xroll_dir`,`fabric_dir`,`roll_width`,`manufacturer_id`,`image`,`shipping`,`price`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`,`cost`) VALUES (1,0,'','',,'felina','0','0','0','','in',1,'testing agai',0,and finally,'data/felina-parchment-500x500.jpg','','yes',0,0,0,0,lb,0,1,,'0','1','1','1',0);
The five new fields I'm trying to add are "cleaning_code", "repeat_dir", "xroll_dir", "fabric_dir", and "roll_width"... I've got them saving in the database via the backend product form, but not through the Excel. The Excel is critical though; these clients can export their products from the software they run into an OpenCart-readable format... If I can just get this going it'll be smooth sailing for the rest of the project...! Anybody understand this SQL? lol
Here is some of the code from admin/model/tool/export.php, the error seems to be here (dateModified is line 266):
Code: Select all
// generate and execute SQL for storing the products
foreach ($products as $product) {
$productId = $product[0];
$productName = $database->escape($product[1]);
$categories = $product[2];
$quantity = $product[3];
$model = $database->escape($product[5]);
$manufacturerName = $product[6];
$manufacturerId = ($manufacturerName=="") ? 0 : $manufacturerIds[$manufacturerName];
$imageName = $product[7];
$shipping = $product[9];
$shipping = ((strtoupper($shipping)=="YES") || (strtoupper($shipping)=="Y")) ? 1 : 0;
$price = trim($product[10]);
$dateAdded = $product[12];
$dateModified = $product[13];
$dateAvailable = $product[14];
$weight = ($product[15]=="") ? 0 : $product[15];
$unit = $product[16];
$weightClassId = (isset($weightClassIds[$unit])) ? $weightClassIds[$unit] : 0;
$status = $product[17];
$status = ((strtoupper($status)=="TRUE") || (strtoupper($status)=="YES") || (strtoupper($status)=="ENABLED")) ? 1 : 0;
$taxClassId = $product[20];
$viewed = $product[21];
$productDescription = $database->escape($product[23]);
$stockStatusId = $product[24];
$meta_description = $database->escape($product[25]);
$length = $product[26];
$width = $product[27];
$height = $product[28];
$keyword = $database->escape($product[29]);
$lengthUnit = $product[30];
$cleaning_code = $database->escape($product[31]);
$repeat_dir = $database->escape($product[32]);
$xroll_dir = $database->escape($product[33]);
$fabric_dir = $database->escape($product[34]);
$roll_width = $database->escape($product[35]);
$lengthClassId = (isset($lengthClassIds[$lengthUnit])) ? $lengthClassIds[$lengthUnit] : 0;
$sku = $database->escape($product[36]);
$location = $database->escape($product[37]);
$storeIds = $product[38];
$related = $product[39];
$tags = $database->escape($product[40]);
$subtract = $product[41];
$subtract = ((strtoupper($subtract)=="TRUE") || (strtoupper($subtract)=="YES") || (strtoupper($subtract)=="ENABLED")) ? 1 : 0;
$minimum = $product[42];
$cost = trim($product[43]);
$meta_keywords = $database->escape($product[44]);
$sort_order = $product[45];
$sql = "INSERT INTO `".DB_PREFIX."product` (`product_id`,`quantity`,`sku`,`location`,";
$sql .= "`stock_status_id`,`model`,`manufacturer_id`,`image`,`shipping`,`price`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,";
$sql .= "`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`cleaning_code`,`repeat_dir`,`xroll_dir`,`fabric_dir`,`roll_width`,`sort_order`,`subtract`,`minimum`,`cost`) VALUES ";
$sql .= "($productId,$quantity,'$sku','$location',";
$sql .= "$stockStatusId,'$model',$manufacturerId,'$imageName',$shipping,$price,";
$sql .= ($dateAdded=='NOW()') ? "$dateAdded," : "'$dateAdded',";
$sql .= ($dateModified=='NOW()') ? "$dateModified," : "'$dateModified',";
$sql .= ($dateAvailable=='NOW()') ? "$dateAvailable," : "'$dateAvailable',";
$sql .= "$weight,$weightClassId,$status,";
$sql .= "$taxClassId,$viewed,$length,$width,$height,'$lengthClassId','$cleaning_code','$repeat_dir','$xroll_dir','$fabric_dir','$roll_width','$sort_order','$subtract','$minimum',$cost);";
$sql2 = "INSERT INTO `".DB_PREFIX."product_description` (`product_id`,`language_id`,`name`,`description`,`meta_description`,`meta_keywords`) VALUES ";
$sql2 .= "($productId,$languageId,'$productName','$productDescription','$meta_description','$meta_keywords');";
$database->query($sql);
$database->query($sql2);
if (count($categories) > 0) {
$sql = "INSERT INTO `".DB_PREFIX."product_to_category` (`product_id`,`category_id`) VALUES ";
$first = TRUE;
foreach ($categories as $categoryId) {
$sql .= ($first) ? "\n" : ",\n";
$first = FALSE;
$sql .= "($productId,$categoryId)";
}
$sql .= ";";
$database->query($sql);
}
if ($keyword) {
$sql4 = "INSERT INTO `".DB_PREFIX."url_alias` (`query`,`keyword`) VALUES ('product_id=$productId','$keyword');";
$database->query($sql4);
}
foreach ($storeIds as $storeId) {
$sql6 = "INSERT INTO `".DB_PREFIX."product_to_store` (`product_id`,`store_id`) VALUES ($productId,$storeId);";
$database->query($sql6);
}
if (count($related) > 0) {
$sql = "INSERT INTO `".DB_PREFIX."product_related` (`product_id`,`related_id`) VALUES ";
$first = TRUE;
foreach ($related as $relatedId) {
$sql .= ($first) ? "\n" : ",\n";
$first = FALSE;
$sql .= "($productId,$relatedId)";
}
$sql .= ";";
$database->query($sql);
}
if (count($tags) > 0) {
$sql = "INSERT INTO `".DB_PREFIX."product_tags` (`product_id`,`tag`,`language_id`) VALUES ";
$first = TRUE;
$inserted_tags = array();
foreach ($tags as $tag) {
if ($tag == '') {
continue;
}
if (in_array($tag,$inserted_tags)) {
continue;
}
$sql .= ($first) ? "\n" : ",\n";
$first = FALSE;
$sql .= "($productId,'".$database->escape($tag)."',$languageId)";
$inserted_tags[] = $tag;
}
$sql .= ";";
if (count($inserted_tags)>0) {
$database->query($sql);
}
}
}
Notice: Undefined variable: column_price in D:\wamp\www\cbz\admin\view\template\catalog\product_list.tpl on line 35
---------
Notice: Undefined index: special in D:\wamp\www\cbz\admin\view\template\catalog\product_list.tpl on line 85 Notice: Undefined index: price in D:\wamp\www\cbz\admin\view\template\catalog\product_list.tpl on line 88
I did modification in below files
a. admin/controller/catalog/product.php
b. admin/language/english/catalog/product.php
c. admin/model/catalog/product.php
d. admin/view/template/catalog/product_form.tpl
Thanks in Advance
Hi Kumar,testingbykumar wrote :
Version 1.4.9.4
Notice: Undefined variable: column_price in D:\wamp\www\cbz\admin\view\template\catalog\product_list.tpl on line 35
---------
Notice: Undefined index: special in D:\wamp\www\cbz\admin\view\template\catalog\product_list.tpl on line 85 Notice: Undefined index: price in D:\wamp\www\cbz\admin\view\template\catalog\product_list.tpl on line 88
This is modification for OC 1.4.9-1.4.9.2 not suitable for 1.4.9.4. Yous must adapted that code in order to work at OC 1.4.9.4. Not only overwrite file.
kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah
I modified each files and For Extra fields Value is gets inserted. I do not change anything in product_list.tpl
I do not know why it shows error.
Hi there..Xsecrets wrote:It's not easy and takes some coding knowledge. There is the Product Extra Fields module which adds a new tab with admin definable fields. It modifies lots of core files because it pretty much has to. This functionality will be built into 1.5.0, but currently you either have to go with the Product Extra Fields mod or get your hands dirty coding.
I'm also looking for adding additional fields like Size to be shown to customers.
Just to confirm if version 1.50 will have it? I'm trying to decipher the meaning of this feature: Option Text Field as mentioned by Daniel.
My guess is this is it.
Another option I have I guess is to rename the Misc Location and then mod the core to have this field shown to the customers.
Please enlighten if I'm correct?
Thank you
No more using Apsona, as they are not updated.
- Every upgrade -- rem. 2 reinstall vqmod & mindful of modules w/ VQmod -- E.g Import / Export Tool by MHC
http://forum.opencart.com/viewtopic.php ... ld#p106587
So is my guess correct that the 1.5.0 version will have this function?
No more using Apsona, as they are not updated.
- Every upgrade -- rem. 2 reinstall vqmod & mindful of modules w/ VQmod -- E.g Import / Export Tool by MHC
Hi nosecret.nosecret wrote:Yes, My modification not suitable for 1.4.9.3 or above. But, you can adapted that code in order to work at 1.4.9.3 or above. Just search word color or size in my file and copy paste to your file.
I would very much like to do it on my own, but I'm not very confident in changing codings...
Would you be so kind to have it modified to suit 1.4.9.3 & above?
Thank you.
Rgds
Faustine
No more using Apsona, as they are not updated.
- Every upgrade -- rem. 2 reinstall vqmod & mindful of modules w/ VQmod -- E.g Import / Export Tool by MHC
Users browsing this forum: No registered users and 2 guests