Support is online

Import product types #7234

Open Digitalconnect opened this topic Thursday, 19 March 2015 · 31 replies
Author

Hello,

Im trying to import product types for cherrypicker. For example i would like to add the following;

product_type_name,$,parameter_name,$,parameter_label,$,kleur

The above line is a part of the header (sku is also included) Now iam looking for a way to add these fields in to the import template but even when i updated the available fields, these are not available.

Iam sure iam missing something but the documentation about adding product types for cherrypicker is a bit tiny. Could you explain me how to do this or help me started? i checked product-types-import-tutorial allready but it seems iam missing something.

Best regards, M

Support

Hello,

Product types exist of 3 imports as you have seen in the tutorial. Looking at your header line, you are going wrong there. You can't have the kleur field in the product type parameters, it comes in the last import product type names.

Have you made the 3 required import files? That would help to oversee the process, by creating the product types file, the product types parameter file, and the product types names file.

With those files, you can see if all is set correct.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Dear Rolandd, Thanks a lot for your response :)

Okee sorry i have to be more clear.

I created the product types and values by hand. Now iam trying to import products and everything works fine. Only i need for every product to set which product type to use and which value this product type should be.

For example i have a producttypename color with a parameter color which can be blue white and more. Now for example i have product A which should use color blue. - Product B should use color white - Product C use another producttypename, parameter and value. Now which fields should i add so cherrypicker knows which products should use parameters and values?

Hope you understand my question :)

Best regards, M

Support

Only i need for every product to set which product type to use and which value this product type should be.

So you only need to run the Product type names import, this is the last step in the tutorial.

Your CSV file will need to look like the example, the first 2 columns are fixed, the rest are the field names you created. As you can see not all fields have a value, that will be the same as yours. You can either create one file for product A and B and another file for product C or just make one file with all the product types and leave the ones empty that do not apply to that product.

Hopefully that is clear :)

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thanks for your response again.

Well, in that case (making just one file), the headerline i placed in the first post should be oke right?:

product_type_name,$,parameter_name,$,parameter_label,$,kleur,$

product_type_name and parameter_name are fixed as i understand. I also like to add the label (parameter_label) and in my case: kleur (color) is a field name i created. But how can i add these fields to a import template? Because even when i updated the available fields, these are not available in my import template.

Best regards, M

Support

the headerline i placed in the first post should be oke right?:

This is not right, compare it to the example CSV file, it starts with product_sku and product_type_name. In your case the file should be "product_sku","product_type_name","kleur". Is the kleur field not available either?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

PS: i forgot to mention that of course i also added the sku at the start of the file. Just dont understand how i can add these fields to my import template. Installed the plugin and updated the available fields. Still i can not add them to my template.

btw thanks for your help. I know its possible, just need to know how :)

Best regards, M

Author

No also kleur is not available

Support

Hello,

If you don't see the parameters as available fields, I wonder if things are setup correctly. You could just do the 3 imports as explained in the document, if anything already exists, it would simply update it. If it doesn't exist, it will create it.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello,

Yes i will give this a try, but even at the first step it seems i need to add PRODUCT_TYPE_NAME and this is not possible as you can see here:

http://goo.gl/r8IB1l

Best regards, M

Support

Hello,

It is clear where it goes wrong. You have chosen the Import -> VirtueMart -> Product while you should be choosing Import -> Cherry Picker Product Types -> ... As you stated in your first post, you want to import for the cherry picker.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi Rolandd,

Thanks again for your response. Sry for my late replay (i was on short holidays this weekend). I think you are right. thats exactly what i did.Only problem here is i can not import/update cherrypicker fields and i publised the plugin (VM Cherry Picker addon for CSVI Pro). I need to think for a moment.

Best regards, M

Support

Hello,

The VM Cherry Picker addon for CSVI Pro is of no use in CSVI 5, this is an addon for CSVI 6 Pro beta. I assume you are not using CSVI 6 Pro beta, in that case you can uninstall the plugin.

Only problem here is i can not import/update cherrypicker fields

Do you even have any tables that start with vm_producttype_?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello,

Your right again. Iam using 5.21.1. No i do not have any tables with product types. Searching for days but i still dont know how to get these. Should i create them by hand in phpmyadmin?

Best regards, M

Support

Hello,

To create the tables manually, you need these 3 statements if I remember correctly.

CREATE TABLE `X_vm_product_product_type_xref` (
	`product_id` INT(11) NOT NULL DEFAULT '0',
	`product_type_id` INT(11) NOT NULL DEFAULT '0',
	INDEX `idx_product_product_type_xref_product_id` (`product_id`),
	INDEX `idx_product_product_type_xref_product_type_id` (`product_type_id`)
)
COMMENT='Maps products to a product type'
;
CREATE TABLE `X_vm_product_type` (
	`product_type_id` INT(11) NOT NULL AUTO_INCREMENT,
	`product_type_name` VARCHAR(255) NOT NULL DEFAULT '',
	`product_type_description` TEXT NULL,
	`product_type_publish` CHAR(1) NULL DEFAULT NULL,
	`product_type_browsepage` VARCHAR(255) NULL DEFAULT NULL,
	`product_type_flypage` VARCHAR(255) NULL DEFAULT NULL,
	`product_type_list_order` INT(11) NULL DEFAULT NULL,
	PRIMARY KEY (`product_type_id`)
)
COLLATE='utf8_general_ci'
;
CREATE TABLE `X_vm_product_type_parameter` (
	`product_type_id` INT(11) NOT NULL DEFAULT '0',
	`parameter_name` VARCHAR(255) NOT NULL DEFAULT '',
	`parameter_label` VARCHAR(255) NOT NULL DEFAULT '',
	`parameter_description` TEXT NULL,
	`parameter_list_order` INT(11) NOT NULL DEFAULT '0',
	`parameter_type` CHAR(1) NOT NULL DEFAULT 'T',
	`parameter_values` VARCHAR(255) NULL DEFAULT NULL,
	`parameter_multiselect` CHAR(1) NULL DEFAULT NULL,
	`parameter_default` VARCHAR(255) NULL DEFAULT NULL,
	`parameter_unit` VARCHAR(32) NULL DEFAULT NULL,
	PRIMARY KEY (`product_type_id`, `parameter_name`),
	INDEX `idx_product_type_parameter_product_type_id` (`product_type_id`),
	INDEX `idx_product_type_parameter_parameter_order` (`parameter_list_order`)
)
COMMENT='Parameters which are part of a product type'
;

Change the X to your own prefix.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thanks again for your response. I will try this and keep you informed. btw, do you know where it go wrong? Its not the normal way right?

Best regards, M

Support

Hello,

It has been a while since someone asked about using this but I kind of recall this had to happen last time as well. Yes it is normal because most people are not using VM1 anymore, so the tables no longer exist by default. I am planning to take a closer look as well, perhaps improve the instructions if this is really needed.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Aa okee, Now before i created this tables. I was thinking that csvi was importing values for the tables from fastseller to make use of the cherrypicker. Because i now created all product types and names by hand in fastseller so these tables exists somewhere. Just needed to import the values. Asked Galt also some questions but he refers to csvi support.Iam now a bit stuck with importing values for cherrypicker. If i created this tables by hand in phpmyadmin, i think that thi swont work with fastseller and cherrypicker. Iam i right or should it work?

Thanks in advance.

Support

If i created this tables by hand in phpmyadmin, i think that thi swont work with fastseller and cherrypicker. Iam i right or should it work?

It should work if you are using the Cherry Picker for Virtuemart using Product Types version from Galt.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Okee super. I keep you informed.

Author

mm, still working on this. Let you know the results

Author

Okee. Seems i now have the tables in mysql database. Still in CSVI import template i can not add fields according product types. So what happens here is that i buyed the system but its not working. Lot of custom things need to be done right? I now tried a lot to fix this but it seems i can't. You always respond to my questions so thats a good thing but its not enough to get me up and running. I just can not import product types, names and parameters because these fields can't be added to a import template.

Support

Lot of custom things need to be done right?

If you want to use Product Types, which is a feature of VirtueMart 1, it is usually a manual table creation unless you already have the tables. Installing a VirtueMart 2 or 3 version, won't give you these tables. This is going to change in CSVI 6, where product types as such won't be supported anymore but simply FastSeller will be supported, then you don't have to create those tables anymore either.

I just can not import product types, names and parameters because these fields can't be added to a import template.

Let's focus on the first import. The product type import. How does your import file look like for that?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

This is going to change in CSVI 6, where product types as such won't be supported anymore but simply FastSeller will be supported

That would be the perfect solution. Any suggestion when this (beta) is ready? 2015, 2016?

Let's focus on the first import. The product type import. How does your import file look like for that?

That would be something like this:

PRODUCT_SKU,PRODUCT_TYPE_NAME,PRODUCT_TYPE_PUBLISH,PARAMETER_NAME,PARAMETER_LABEL

Only these fields are not available at the import template. So i can not upload them.

Best regards, M

Support

Any suggestion when this (beta) is ready? 2015, 2016?

Last week :) I just have been unable to create a new beta release due to ill health. I can e-mail you the files if you are interested. Let me know.

I have just re-read this thread again and something caught my eye.

Because i now created all product types and names by hand in fastseller so these tables exists somewhere. Just needed to import the values.

This information exists in the fastseller tables and not in the vm_product_type tables. That is why you will need to run all 3 product type imports via CSVI if you want to use the vm_product_type tables. The question is if you still want to go this route or give the FastSeller implementation of CSVI 6 a go.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thanks again.

At the end i dont care which way but iam sure the best solution is to use fastseller. If you could send me the files and a small explanation, i will figer that out :)

Thanks in advance

Support

I will send you the packages and description later today.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Super. I will wait for it.

Best regards, M

I also have cherry picker, fastseller, installed on J3.x vm3 and am trying to get product types to work. I don't see any place to get CSVI6 to try it out.

In the end though I want to automate the import of products and product types through a cron job as the data will be automatically created for CSVI to process.

Support

Hello,

CSVI 6 is available from the Download section just where you get all other downloads. However CSVI 6 with Fastseller support is not yet up for download due to sickness on my part. However I can send you the package if you are interested, let me know and I will do so. Otherwise the download will be made available later this week.

Running the import via a cron job is no problem as it will be a regular import like any other.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Hey Roland sorry you've been sick. Actually if you don't mind sending it that would be great. it would give me a jumpstart on coding in what i need to and seeing if it will work how i need it to.

Support

Hello,

I managed to get CSVI 6 beta 5 out the door yesterday. This is now available from the Downloads and you can also download the FastSeller addon to get started with FastSeller.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Log in to reply to this topic.