VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: PRO on September 12, 2011, 15:02:49 PM

Title: Attributes/Custom Fields Thread
Post by: PRO on September 12, 2011, 15:02:49 PM
There are no more simple attributes with 2.0.
They are now in the "custom fields".
Custom fields also handles child products.

This thread is for tips and questions on custom field administration.

http://dev.virtuemart.net/projects/virtuemart/wiki/Product_custom_fields_without_stock_control


attached pdf shows the custom field configuration for simple dropdown.



[attachment cleanup by admin]
Title: Re: No More Simple Product Attributes?
Post by: PRO on September 13, 2011, 18:35:10 PM
For a simple dropdown for color/size etc.

Click "Custom Fields" in vmart admin.
1)Add 1 just like the picture attached.
2)Go into the product/custom field tab
3)Click the dropdown and choose the custom field you just setup.
4) The field appears below with ajax.
5) You can now edit that field.
6) To add more sizes/colors. Repeat step 3.




[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: Studio 42 on September 15, 2011, 22:28:47 PM
Hi,

I have do it for you ;)
Add a language key if customprice = 0 :
COM_VIRTUEMART_CART_PRICE_FREE="Free";
Simply edit it you can set it to ""; then nothing is displayed
or - or +++ or wath you want but it set by lnaguage then change it in all selected language.

Greets,

Patrick
Title: Re: Attributes/Custom Fields Thread
Post by: Pisu on October 16, 2011, 17:55:30 PM
Did you remove "User Variant" field type in latest build (2.0.0-RC-2i ) ?

I found in customfields.php these commented lines:


// 'U'=>'COM_VIRTUEMART_CUSTOM_CART_USER_VARIANT',
// 'C'=>'COM_VIRTUEMART_CUSTOM_PRODUCT_CHILD',
// 'G'=>'COM_VIRTUEMART_CUSTOM_PRODUCT_CHILD_GROUP',
// 'R'=>'COM_VIRTUEMART_RELATED_PRODUCT',
// 'Z'=>'COM_VIRTUEMART_RELATED_CATEGORY',


Will you re-introduce them in final release?

Thanks
Title: Re: Attributes/Custom Fields Thread
Post by: virtue111 on November 04, 2011, 21:54:18 PM
Originally posted this here: http://forum.virtuemart.net/index.php?board=132.0 but if we get an answer we will put it here, vice versa:

We would like to make a custom field, with a preset of selections that will come with it. For simple sake let's say we want to make a "Color" variant, and have the options of "Red" "blue" and "green".

I have figured out how to get the Color attribute to show up on the product, and then I can type in "Red", "Blue", and "Green" into the Ajaxy fields. But we have a ton of products and don't want to have to go in and type them all manually.

Is there anyway to make "Color" a parent, and make "Red" "Blue" and "Green" be child items, so that they will always come up? And then we could use the Ajaxy thing to delete "Red" if we didn't want it for a certain product, or to add "Purple" if we needed it specifically for a product?

It seems like this should be easy to do, but we just can't get it to work.

I thought maybe adding the Parent item, and setting it to "Is a List" and then adding child items of "Strings" but this doesn't work either. Please help!

Title: Re: Attributes/Custom Fields Thread
Post by: Milbo on November 06, 2011, 10:21:11 AM
http://dev.virtuemart.net/projects/virtuemart/wiki/Product_custom_fields_without_stock_control

"How to group a set of Custom Fields?
You can group together a set of Custom Fields."
Title: Re: Attributes/Custom Fields Thread
Post by: zzsser on November 06, 2011, 12:59:47 PM
Thank you for your reply but this is not what we are trying to do.

What you mean is grouping custom fields, for example like this:

Inserting Parent "all_my_fields" add automatically:
       Child "colour" (showing a list with only one colour, all other colors have to be manually typed)
       Child "size" (showing a list with only one size, all other sizes have to be manually typed)
       Child "..." (showing a list with only one ..., all other ... have to be manually typed)

What we would like is inserting Field "Colour" with all its variables (blue, red, grey,...) automatically.


This way doesn't work:

Inserting Parent "Colour" doesn't add automatically:
       Child "blue"
       Child "red"
       Child "..."
Title: Re: Attributes/Custom Fields Thread
Post by: Patrick on November 20, 2011, 19:28:28 PM
Quote from: zzsser on November 06, 2011, 12:59:47 PM
Thank you for your reply but this is not what we are trying to do.

What you mean is grouping custom fields, for example like this:

Inserting Parent "all_my_fields" add automatically:
       Child "colour" (showing a list with only one colour, all other colors have to be manually typed)
       Child "size" (showing a list with only one size, all other sizes have to be manually typed)
       Child "..." (showing a list with only one ..., all other ... have to be manually typed)

What we would like is inserting Field "Colour" with all its variables (blue, red, grey,...) automatically.


This way doesn't work:

Inserting Parent "Colour" doesn't add automatically:
       Child "blue"
       Child "red"
       Child "..."

Same problem over here when I group field, I only get the parent with underlaying fields. not a multiple number of same fields.
If I want to group:
Parent    -Colour-RED
              -Colour-BLue
               -option-1
               -option-2
When I add parent I get:
Parent -Colour-XX
            -option-XX
When I add parent again
another Parent appears with same options.
Just want the colour and option added to multiple product with 1 CLICK...
Title: Re: Attributes/Custom Fields Thread
Post by: dbgold on January 10, 2012, 08:36:07 AM
What is it now? The WWW is full of the same questions there is a fault in the program!
all have the same problem and it is preparing a host of labor, but there has to be time for a solution

Google translation
Title: Re: Attributes/Custom Fields Thread
Post by: bepos on January 10, 2012, 08:41:30 AM
well i guess they don't see it as a problem. or they don't understand what the problem is.
Title: Re: Attributes/Custom Fields Thread
Post by: werden2000 on January 12, 2012, 23:42:37 PM
Same problem...

I want to create Parent field (Colors), and child fields (Black, white, red,...), so when im creating a new product just choose colors parent field and put all the colors in a dropdown list... i view all the links of previous posts and nothing solve this problem...

it displays...something like this...

dropdownlist-Colors
another dropdownlist-black
another dropdownlist-white
another dropdownlist-red...

and not what i need

ONLY ONE DROPDOWN LIST
BLACK
WHITE
RED...

hope someone can help me
Title: Re: Attributes/Custom Fields Thread
Post by: woonydanny on January 13, 2012, 11:22:53 AM
VM is useless without this as an easy to use feature. It seems so hard to add variants in VM2, and the descriptions on how to do it are so convoluted and complex this extension is not suitable for your average web shop owner to manage themselves.

This desperately needs to be overhauled in VM2!!
Title: Re: Attributes/Custom Fields Thread
Post by: woonydanny on January 13, 2012, 11:35:59 AM
Quote from: BanquetTables.pro on September 13, 2011, 18:35:10 PM
For a simple dropdown for color/size etc.

4) The field appears below with ajax.

No ajax area for me to edit/complete.  :(
Title: Re: Attributes/Custom Fields Thread
Post by: JJBW on January 13, 2012, 12:26:01 PM
This is a major problem which may cause users to move away which would be a huge shame especially after all the hard work that has gone into VM2.

Apart from this issue which seems to be the main issue everyone wants sorted VM2 is excellent, let's not let this issue dampen things.
Title: Re: Attributes/Custom Fields Thread
Post by: rossstudio on January 13, 2012, 15:54:01 PM
Can there be a text entry custom field? Seems like other carts have this but not VM2. I could use it.
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 13, 2012, 16:37:46 PM
Quote from: rossstudio on January 13, 2012, 15:54:01 PM
Can there be a text entry custom field? Seems like other carts have this but not VM2. I could use it.

yes, its in the plugins
Title: Re: Attributes/Custom Fields Thread
Post by: werden2000 on January 13, 2012, 18:08:55 PM
Quote from: JJBW on January 13, 2012, 12:26:01 PM
This is a major problem which may cause users to move away which would be a huge shame especially after all the hard work that has gone into VM2.

Apart from this issue which seems to be the main issue everyone wants sorted VM2 is excellent, let's not let this issue dampen things.

In the actual webpage im working is not representing a real big issue because is not absolut neccesary, but I want to implement the viertuemart in some others websites wich will be absolute neccesary this SIMPLE Color dropdown list.

Im looking some other options, Im new with virtuemart, did some know if the Virtuemart 1 does not have this issue?

Title: Re: Attributes/Custom Fields Thread
Post by: Smitten on January 15, 2012, 07:23:23 AM
This seems a little crazy.

I have about 80 bras to add to my site, in up to 4 colours and 21 sizes each.

Can you see the issue here VM?

Why is it not possible to create a saved list of attributes?

For example these are my fields:

Colour : White, Red, Black, Purple
Size: 32A, 32B, 32C, 32D, 32DD, 32E, 34A, 34B, 34C, 34D, 34DD, 34E, 36A, 36B, 36C, 36D, 36DD, 36E, 38C, 38D, 38DD

I have to manually add each size and colour for each of the 80 bras??????????????????

Don't get me started on combined brief/bra purchases each with different size combinations!

Is there likely to be an easier route for adding product attributes?
Title: Re: Attributes/Custom Fields Thread
Post by: Smitten on January 15, 2012, 07:27:55 AM
Quote from: werden2000 on January 13, 2012, 18:08:55 PM
Quote from: JJBW on January 13, 2012, 12:26:01 PM
This is a major problem which may cause users to move away which would be a huge shame especially after all the hard work that has gone into VM2.

Apart from this issue which seems to be the main issue everyone wants sorted VM2 is excellent, let's not let this issue dampen things.

In the actual webpage im working is not representing a real big issue because is not absolut neccesary, but I want to implement the viertuemart in some others websites wich will be absolute neccesary this SIMPLE Color dropdown list.

Im looking some other options, Im new with virtuemart, did some know if the Virtuemart 1 does not have this issue?



No, VM1 was easy...

One string was added.

Colour,Red,Black,White;Size,Small,Medium,Large

The above would have created two drop-downs for you. Easy. I had a text file ready to go with my attribute combinations and CTRL-V to paste made it simple.

The current method is nonsensical.
Title: Re: Attributes/Custom Fields Thread
Post by: cufe on January 15, 2012, 12:41:30 PM
I beg admins, show us an example to illustrate how to do.
When we drop down list with colors.
Example... color: (and choose from drop down) "blue" or "red" or "white" etc.
or 2. example with size: (and choose from drop down) "30" or "30,5" or "31" etc.
VERY, VERY PLEASE SHOW DEMO PAGE WITH THIS FUNCTION
AND PLEASE ADD PROCEDURE.  :-\

Thank you (1000 TIMES) very much!
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 15, 2012, 15:44:16 PM
Quote from: cufe on January 15, 2012, 12:41:30 PM
I beg admins, show us an example to illustrate how to do.
When we drop down list with colors.
Example... color: (and choose from drop down) "blue" or "red" or "white" etc.
or 2. example with size: (and choose from drop down) "30" or "30,5" or "31" etc.
VERY, VERY PLEASE SHOW DEMO PAGE WITH THIS FUNCTION
AND PLEASE ADD PROCEDURE.  :-\

Thank you (1000 TIMES) very much!

http://forum.virtuemart.net/index.php?topic=90833.msg298101#msg298101
Title: Re: Attributes/Custom Fields Thread
Post by: cufe on January 15, 2012, 20:49:13 PM
Thank you very much! Attached picture I hadn't seen before. I know how to do. Once again, thank you very much.  ;)
Title: Re: Attributes/Custom Fields Thread
Post by: woonydanny on January 16, 2012, 01:41:41 AM
Quote from: BanquetTables.pro on January 15, 2012, 15:44:16 PM
Quote from: cufe on January 15, 2012, 12:41:30 PM
I beg admins, show us an example to illustrate how to do.
When we drop down list with colors.
Example... color: (and choose from drop down) "blue" or "red" or "white" etc.
or 2. example with size: (and choose from drop down) "30" or "30,5" or "31" etc.
VERY, VERY PLEASE SHOW DEMO PAGE WITH THIS FUNCTION
AND PLEASE ADD PROCEDURE.  :-\

Thank you (1000 TIMES) very much!

http://forum.virtuemart.net/index.php?topic=90833.msg298101#msg298101

i don't get the ajax edit area, so this means this whole variant process doesn't work for me
Title: Re: Attributes/Custom Fields Thread
Post by: cufe on January 16, 2012, 02:11:12 AM
Quote from: Smitten on January 15, 2012, 07:23:23 AM
This seems a little crazy.

I have about 80 bras to add to my site, in up to 4 colours and 21 sizes each.

Can you see the issue here VM?

Why is it not possible to create a saved list of attributes?

For example these are my fields:

Colour : White, Red, Black, Purple
Size: 32A, 32B, 32C, 32D, 32DD, 32E, 34A, 34B, 34C, 34D, 34DD, 34E, 36A, 36B, 36C, 36D, 36DD, 36E, 38C, 38D, 38DD

I have to manually add each size and colour for each of the 80 bras??????????????????

Don't get me started on combined brief/bra purchases each with different size combinations!

Is there likely to be an easier route for adding product attributes?

Question for admins: Is there an easy solution?
Believe me, we want to use the VM2, but how? -> We can do drop down list with colors. Now we need to save the predefined drop down list and use it. But how?
Many products with manual settings? It is impossible and deadly for VM2.  :(
10000 TIMES PLEASE, SHOW DEMO PAGE WITH THIS FUNCTION
AND PLEASE ADD PROCEDURE.
Title: Re: Attributes/Custom Fields Thread
Post by: bepos on January 16, 2012, 13:49:05 PM
why isn't there any decent reply from the VM people?????? please let us know if you think this is a problem too. or that you 're working on a solution.
Title: Re: Attributes/Custom Fields Thread
Post by: zzsser on January 16, 2012, 15:07:08 PM
This was a big problem for me too (I discuss this problem a few weeks ago on this forum).

This was my solution:

I create a product normaly in the back-end, without custom fields.
I execute a mySQL code in PhpMyAdmin to add all custom fields area for this product.
I copy this code in a txt file to use it for all future products...

It's not a user-friendly solution but it's a solution...
Title: Re: Attributes/Custom Fields Thread
Post by: bepos on January 16, 2012, 15:53:51 PM
@zzsser : great solution. though i don't think i can explain this to my client. think he will reply with just one question : "have you gone totally mad????" and i guess he would be right ;-)))

it's really a bad thing that all the VM can do is reply to the solution to create dropdown-field per product and not just as a default field option. and if it would be possible to just clone a product WITH these dropdown-fields i would be a very happy VM-user again.

i'm really very confused and dissappointed. i can't sell this product anymore.

it's not that i don't want to pay for a solution, but no one is coming with any kind of decent solution for this.

hope somebody soon will or is the whole in crisis????

Title: Re: Attributes/Custom Fields Thread
Post by: jenkinhill on January 16, 2012, 18:13:15 PM
bepos, VM2 was only released 28 days ago, a period which included 2 major holiday periods. Until the software gets tested by thousands of users (over 103,000 downloads since release)  issues that only they need for their stores become known. A sub-release will be made soon, as more bugs are reported and fixed, but only one developer is working on the core. In addition function extending plugins will start to become available.

The fact that there are already a good number of live stores out there using VM2 is a good sign.
Title: Re: Attributes/Custom Fields Thread
Post by: bepos on January 16, 2012, 19:33:02 PM
@kevin : i totally agree with you and i don't want to push anyone. and i know VM2 is a huge step forward, but.... till now we only got the reply to create the dropdown-field. or did i miss something here?

not having this crucial(?) field in VM2 makes it very hard for me to sell this further great product. i can't tell my customer to do a SQL-query or to remake the dropdown field everytime he wants to add a new product.
maybe returning to VM1 would be a solution. but as far as i know this doesn't run on J! 1.7 Please correct me if i'm wrong.

so i'm really looking forward for the solution. if there's anything i can do please tell me.

kind regards,
Mark

Title: Re: Attributes/Custom Fields Thread
Post by: spacecoasttactical on January 17, 2012, 01:38:10 AM
Hi

I am pulling my hair out trying to get my head around attributes or custom fields in 2.0 :)

I am on a deadline to produce something by friday. What I need to do is have a product that has a date in a dropdown list. Basically, they buy it and choose a date to come get it. I am new to Virtuemart and it is making me crazy :)

John
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 17, 2012, 01:46:11 AM
Thee is a date in shopper fields u can use, during checkout
Title: Re: Attributes/Custom Fields Thread
Post by: spacecoasttactical on January 17, 2012, 02:53:12 AM
Quote from: BanquetTables.pro on January 17, 2012, 01:46:11 AM
Thee is a date in shopper fields u can use, during checkout

Hi

thanks for that. However, the requirement is to choose a date on the product page. Can it be done for example by having them choose a month and a dayfrom 2 drop down boxes?

Thanks

John
Title: Re: Attributes/Custom Fields Thread
Post by: matthewod01 on January 17, 2012, 05:36:45 AM
"bepos, VM2 was only released 28 days ago, a period which included 2 major holiday periods. Until the software gets tested by thousands of users (over 103,000 downloads since release)  issues that only they need for their stores become known. A sub-release will be made soon, as more bugs are reported and fixed, but only one developer is working on the core. In addition function extending plugins will start to become available.

The fact that there are already a good number of live stores out there using VM2 is a good sign."

Kelvyn - I appreciate all your contributions to VM along with all the team members.  However I just added 800+ products and now I get to the attributes and find none and no solution for the drop down issue with custom fields.  Typically with the launch of any package like this there should have been a solid substitute if VM was going to get rid of the attributes.  This is something that should have been accounted for and planned a little better. 

I will play around with the child products, but I have already spent all day working on just getting the products loaded along with all the content of the Joomla 1.7 site.  There is no way I can spend another full day (18 hours) to delete everything - install J 1.5 and VM 1.1!

If anyone has a simple solution to the drop down issue problem - Parent/child custom fields please let us know.

Thanks
Title: Re: Attributes/Custom Fields Thread
Post by: matthewod01 on January 17, 2012, 05:43:12 AM
OK I take back everything I said, though I wish I could get my hair that I pulled out back. 

This thread will show everyone how to create a drop down for size/color: http://forum.virtuemart.net/index.php?topic=90833.msg298101

Though there is no easy way to do this for 800+ products it works. 

Start the coffee...
Title: Re: Attributes/Custom Fields Thread
Post by: lt635 on January 17, 2012, 07:18:51 AM
Hi,

I am another Virtuemart user that needs the colour option in product listings.  I have created a custom field and added the field in product but it only accepts number value or it shows colour:free.  How can you change it to accept words (and without the word 'colour' in front of it)?

Thanks
Regards
Lene
Title: Re: No More Simple Product Attributes?
Post by: tim_ward99 on January 18, 2012, 17:38:49 PM
Quote from: BanquetTables.pro on September 13, 2011, 18:35:10 PM
1)Add 1 just like the picture attached.

For the benefit of those trying to figure out how to do this who don't have forum accounts:

(http://dl.dropbox.com/u/9309100/Pictures/cartvariant.png)
Title: Re: Attributes/Custom Fields Thread
Post by: lt635 on January 19, 2012, 01:26:47 AM
Excellent, got it working, needed a new day, fresh start.  I got stuck on the 'custom field' and did not think that the text I inserted in the 'default' field could be replaced when inserted in product listing, I kept trying to insert text in the price field (dah) which I am leaving blank.  I have also removed the word 'free' in the language file. 

One more thing, does anybody know how to remove the : after the text value in the dropdown box (White: )?

Thanks
Regards
Lene
Title: Re: Attributes/Custom Fields Thread
Post by: doberman31 on January 19, 2012, 23:23:27 PM
@ lt635

This character is located in line 565

administrator/components/com_virtuemart/models/customfields.php

just remove characters which are in red color below

$productCustom->text =  $productCustom->custom_value.' : '.$price;

BR and Thanks
Rafal
Title: Re: Attributes/Custom Fields Thread
Post by: lt635 on January 19, 2012, 23:28:20 PM
Wonderful. Thank you!  :D

Regards
Lene
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 20, 2012, 01:28:57 AM
Its better to just do strp with php on the $field-display. That way it wont get ovewritten when you update
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on January 23, 2012, 11:34:50 AM
To get a text attribute ----- I did this

WOW I do wonder why It is done this way but it worked for me.
* Go to the Joomla Plugins and find>>VM - Custom, customer text input>>enable for Public.
*Now Go to Virtuemart>>Products>>custom Fields>>click new>>and new Attribute appears blank.
* In the custom Field>> pick plugins>>a small box will appear at the bottom of the list and then click on it>>VM customer text>>
* Wait : in a moment you will see a few options appear>>Title of Imput text>> change to what you want eg, Name
* next change the size of input to under 50 >> leave the cost per letter.
* IN the places above in the empty fields just write a few words like text, name , write -- (you can change these later)
* Make sure that Cart and published are ticked yes.

Now save , save , save

* Not finished yet
Now you have to click on Products>>pick one>>go to custom fields>>custom field type>> and pick the attribute you just created >> save save save .

Test to see the attribute appear - and email to you.

OK, I saw a small problem but it did work for me.    OMG - they need to make this easier.


Title: Re: No More Simple Product Attributes?
Post by: spyderwebdesign on January 24, 2012, 21:44:42 PM
Quote from: BanquetTables.pro on September 13, 2011, 18:35:10 PM
For a simple dropdown for color/size etc.

Click "Custom Fields" in vmart admin.
1)Add 1 just like the picture attached.
2)Go into the product/custom field tab
3)Click the dropdown and choose the custom field you just setup.
4) The field appears below with ajax.
5) You can now edit that field.
6) To add more sizes/colors. Repeat step 3.

Is there a video anywhere showing how to do this? All I want to do is add custom fields to ALL ITEMS in category SHOES. These directions are missing steps. I also tried to follow directions on http://dev.virtuemart.net/projects/virtuemart/wiki/Product_custom_fields_without_stock_control
How to do it?
1. Go in Products > Custom Fields, and click on the "New" button
2. Select the Custom Field Type: String, Integer, Boolean, Date, Time, Image
3. and fill the Title, Description, Default, Tooltip.
4. Set the parameter Cart Attribute to "No"
5. Save your custom field
6. Go in the Products > Products, and click on the product you whish to add this custom field
7. Go on the Custom Field tab, and in the Custom Field Type area, select the custom Field you just created. The custom field is automatically added; Fill in the value.
8. Save your product

After I click the link for "Products" there is no link cor Custom Fields. The only Custom Fields link I can find is for an individual product. I have 10,000 pairs of shoes and do not want to have to add a custom size / color field to all 10,000 items manually.
Title: Re: Attributes/Custom Fields Thread
Post by: bepos on January 24, 2012, 21:58:22 PM
this is exactly the same problem i ran into. as i understand it now this is the only possibility at the moment.

last week they mentioned that this problem will be solved with the next release. so i'm very patiently waiting.

hoping for the best.
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 24, 2012, 23:11:25 PM
http://forum.virtuemart.net/index.php?topic=96945.0
Title: Re: Attributes/Custom Fields Thread
Post by: minijus on January 24, 2012, 23:42:04 PM
My main question for this new version of VM is there an easy solution for stock control of products with variants. I hope it is, else this VM release is useless for clothing and shoes' shops. For example my client sells shoes and he wants to add new product "very nice shoes", which has two colors blue and red. This is how the stock looks like:
Very nice shoes:
Color: blue | Size: 30 | Stock: 5
Color: blue | Size: 32 | Stock: 7
Color: red | Size: 32 | Stock: 6
Color: red | Size: 34 | Stock: 8

What should I tell to do for my client to insert this new product? I was searching for an hour how to do this, but came with nothing :( As I already said if there is no easy solution for this oparticular problem, VM will not compete with other carts, because it will be simply useless and a bunch of hard work the team did will be wasted.
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 24, 2012, 23:57:51 PM
there is a stockable variants plugin.

Thats all I can tell you, I dont use them.
Title: Re: Attributes/Custom Fields Thread
Post by: Markus Bender on January 25, 2012, 13:23:41 PM
Quote from: Electrocity on September 15, 2011, 22:28:47 PM
Hi,

I have do it for you ;)
Add a language key if customprice = 0 :
COM_VIRTUEMART_CART_PRICE_FREE="Free";
Simply edit it you can set it to ""; then nothing is displayed
or - or +++ or wath you want but it set by lnaguage then change it in all selected language.

Greets,

Patrick


This dosen't work in my installation.... In which file do i have to enter this string?

COM_VIRTUEMART_CART_PRICE_FREE=""

greetings
markus
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 25, 2012, 14:55:18 PM
Quote from: Markus Bender on January 25, 2012, 13:23:41 PM
Quote from: Electrocity on September 15, 2011, 22:28:47 PM
Hi,

I have do it for you ;)
Add a language key if customprice = 0 :
COM_VIRTUEMART_CART_PRICE_FREE="Free";
Simply edit it you can set it to ""; then nothing is displayed
or - or +++ or wath you want but it set by lnaguage then change it in all selected language.

Greets,

Patrick


This dosen't work in my installation.... In which file do i have to enter this string?

COM_VIRTUEMART_CART_PRICE_FREE=""

greetings
markus


http://forum.virtuemart.net/index.php?topic=92944.0
Title: Re: Attributes/Custom Fields Thread
Post by: woonydanny on January 26, 2012, 06:24:25 AM
Quote from: minijus on January 24, 2012, 23:42:04 PM
My main question for this new version of VM is there an easy solution for stock control of products with variants. I hope it is, else this VM release is useless for clothing and shoes' shops. For example my client sells shoes and he wants to add new product "very nice shoes", which has two colors blue and red. This is how the stock looks like:
Very nice shoes:
Color: blue | Size: 30 | Stock: 5
Color: blue | Size: 32 | Stock: 7
Color: red | Size: 32 | Stock: 6
Color: red | Size: 34 | Stock: 8

What should I tell to do for my client to insert this new product? I was searching for an hour how to do this, but came with nothing :( As I already said if there is no easy solution for this oparticular problem, VM will not compete with other carts, because it will be simply useless and a bunch of hard work the team did will be wasted.

i want to know exactly same issue. It is so complex and confusing, there is no way an average shop keeper will be able to do this on their own. I am an experienced joomla user and i cant even figure it out.
PLEASE FIX THIS ASAP!!!!

Can someone please do a video or a step by step tutorial in how to add
Very nice shoes:
Color: blue | Size: 30 | Stock: 5
Color: blue | Size: 32 | Stock: 7
Color: red | Size: 32 | Stock: 6
Color: red | Size: 34 | Stock: 8



Title: Re: Attributes/Custom Fields Thread
Post by: mrmug on January 28, 2012, 13:06:11 PM
Same problem here ... and even if you were able to add attributes, you'll loose them when you clone the product ...
This feature would be fixed in the sbv 2.01, but I tested this and it still is not working ...

My deathline is arriving, I think I'm in deep shit.
Maybe I should reinstall version 1 and work with the custom fields ...

the 'cart variant' option is also gone, now there is a plugin with 'stockable variants' who neither works :(
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on January 28, 2012, 14:03:44 PM
Quote from: mrmug on January 28, 2012, 13:06:11 PM
Same problem here ... and even if you were able to add attributes, you'll loose them when you clone the product ...
This feature would be fixed in the sbv 2.01, but I tested this and it still is not working ...

My deathline is arriving, I think I'm in deep shit.
Maybe I should reinstall version 1 and work with the custom fields ...

the 'cart variant' option is also gone, now there is a plugin with 'stockable variants' who neither works :(


do you have csv improved? you can do the customs via csv upload
Title: Re: Attributes/Custom Fields Thread
Post by: mrmug on January 28, 2012, 14:56:31 PM
What do you mean with 'csv improved'? How can I import a list using csv if the the attributes are not working correctly and even products cannot be cloned without losing the attributes?

Check also http://forum.virtuemart.net/index.php?topic=93804.msg319819#msg319819

normally there was a fix before end 2011, but even in version 2.01 it is not fixed ...
I use virtuemart since 3 years, but for my new client, I think I have to search another component :(
This is getting really urgent ... I will lose my client if I have nothing to show her next week ...
Title: Re: Attributes/Custom Fields Thread
Post by: makovka on January 29, 2012, 04:03:09 AM
I see some modification in 2.0.1. I need add custom field with "attribute id" and "product size" but I need hide "attribute id" on product pages (not in confirmation mail). Is it possible?

OMG. I am playing with VM 2.0.1 custom fields. I can't setup product size. If I choose stockable variants, it overrides names and sku (i try modify my xml import). If I choose product specification I can't add more then one specification (size) - after save product page have all product specification same name. And I don't understand "Is a list?" check box - I want list but if I check yes I can't edit customs on admin product page.

I can use stockable variations and import data in xml but one attribute = one new product. I have 5000 product with 5 variations :( Most VM users need list  with product atributes only (size, color, weight, custom, etc). It is 2.0.1 problem...
Title: Re: Attributes/Custom Fields Thread
Post by: lyrictech on January 30, 2012, 18:25:46 PM
So disappointed! Went through time and effort to install virtuemart and countless hours spent searching for an answer to the attribute problem. Was hoping to use virtuemart for clothing store which need sizes and colors. Your wiki said to use 'Stockable Variants' plugin which does not work. Plus wiki doc and manuals are for old version of virtuemart. I hope they have a fix soon to easily enter product attributes for size and color - but for now I have to use a different shopping cart.
Title: Re: Attributes/Custom Fields Thread
Post by: mrmug on January 30, 2012, 20:15:28 PM
same problem here :(
a possibility is to use version 1 again ... but how long will it be supported ...

it's the third time I'll have to tell my client the wait one week more ...
Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 01, 2012, 15:26:18 PM
Nothing does not work. impossible to use attributes with control of inventories.
Title: Re: Attributes/Custom Fields Thread
Post by: mangotti on February 01, 2012, 15:43:03 PM
Quote from: SergioBo on February 01, 2012, 15:26:18 PM
Nothing does not work. impossible to use attributes with control of inventories.

Same here so far. I have another thread started here to hopefully get VM attention that this is absolutely needed and should be addressed.
/index.php?topic=97257.msg320620#msg320620 (http://forum.virtuemart.net/index.php?topic=97257.msg320620#msg320620)
Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 01, 2012, 15:53:01 PM
Frankly I am disappointed by the project which I think is really nice but there is a constant development. problems remain unresolved. The new version 1.7 is compatible with the output after a year. I hope you do not pass the same time. In any case, try alternative solutions.
Title: Re: Attributes/Custom Fields Thread
Post by: mangotti on February 01, 2012, 16:30:57 PM
Quote from: SergioBo on February 01, 2012, 15:53:01 PM
Frankly I am disappointed by the project which I think is really nice but there is a constant development. problems remain unresolved. The new version 1.7 is compatible with the output after a year. I hope you do not pass the same time. In any case, try alternative solutions.
Couldn't agree more. I'm giving this 2 more weeks and if these major issues are not simply addressed or acknowledged by the team then I'm going to jump ship and switch to a product that works properly.
Title: Re: Attributes/Custom Fields Thread
Post by: lyrictech on February 01, 2012, 18:53:20 PM
If someone from VM could just reply to let us know what is going on with this issue, we'd appreciate it. Even a "we are working on the issue", or "'we are working on documentation to explain exactly how to do it" --- ANY kind of reply would be great. Thanks!

what is the issue?
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on February 01, 2012, 19:21:10 PM
Quote from: lyrictech on February 01, 2012, 18:53:20 PM
If someone from VM could just reply to let us know what is going on with this issue, we'd appreciate it. Even a "we are working on the issue", or "'we are working on documentation to explain exactly how to do it" --- ANY kind of reply would be great. Thanks!



what is the issue?
Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 01, 2012, 19:46:02 PM
The problem is that the attributes do not work, and specifically not the plugin VMCUSTOM_STOCKABLE.

Inserted products, children products and assigned classes will not appear on the selection of variants will drop down menu ... the photo shows what comes out ..

I think we tried every way possible, please check and give us feedback. thanks

[IMG=http://img52.imageshack.us/img52/2948/errorvm2.jpg][/IMG] (http://imageshack.us/photo/my-images/52/errorvm2.jpg/)
Title: Re: Attributes/Custom Fields Thread
Post by: mangotti on February 01, 2012, 20:02:50 PM
Also, what about inventory tracking for custom attributes? I've seen on here that it's possbile and even a thread on how to do it but it doesn't even work. I have that posted in another thread that VM Team will not answer. The community needs answers. This is frustrating for all of us and just as lyrictech posted
Quote from: lyrictech on February 01, 2012, 18:53:20 PM
If someone from VM could just reply to let us know what is going on with this issue, we'd appreciate it. Even a "we are working on the issue", or "'we are working on documentation to explain exactly how to do it" --- ANY kind of reply would be great. Thanks!


It would be nice to be addressed by the team with something instead of dead end posts and BARELY any documentation!  >:(
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on February 01, 2012, 21:20:01 PM
Quote from: SergioBo on February 01, 2012, 19:46:02 PM
The problem is that the attributes do not work, and specifically not the plugin VMCUSTOM_STOCKABLE.

Inserted products, children products and assigned classes will not appear on the selection of variants will drop down menu ... the photo shows what comes out ..

I think we tried every way possible, please check and give us feedback. thanks

[IMG=http://img52.imageshack.us/img52/2948/errorvm2.jpg][/IMG] (http://imageshack.us/photo/my-images/52/errorvm2.jpg/)


what happens when you switch the custom field to "cart" variant?

I see by the position it is suposed to be in it is assigned to the "normal" position.

Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 02, 2012, 00:13:00 AM
does not work. putting the cart custom field variation is not possible to manage inventory for variants will select products son. I attach image.
There is a solution to manage inventory and variations? I think it does not work. Furthermore, we have no confema by staff or other useful information

[IMG=http://img842.imageshack.us/img842/1616/vmerror2.jpg][/IMG] (http://imageshack.us/photo/my-images/842/vmerror2.jpg/)
Title: Custom Attributes for Product - a solution
Post by: adamjakab on February 02, 2012, 08:47:46 AM
Ok! I have a solution 4 u!
And since just to understand how to add a select box to a product took me 4hrs I thought I'd share this with you.

I don't know if this is the right/only way to do this but it works.
Moreover this way you don't need to setup child products (obviously you won't have stock control on variants).

It will give you the possibility to:
1) define options for custom variables for your product in back-end (modifying products price if u need),
2) display custom variables as select boxes on product's page,
3) add product to cart with options selected

Let's say we want to add a product "CAT" and we want user to be able to select "SIZE" attributes.

I'll wal you through:
1) create product CAT (duh?!)
2) go to VM/PRODUCTS/Custom Fields
3) Add new
4) SET:
- Custom Field Type: Cart Variant
- Title: SIZE
- Description: Select the size of your cat
- Default: (don't put anything)
- Tooltip: (put whatever u want)
- Parent: (don't put anything - leave it "Please Select")
- Published: YES
- Admin only: NO
- Is a list: NO (this option is obscure for me)
- Hidden: NO
- Cart Attribute: YES

5) Save
6) go back to your CAT product and edit it
7) go to last "Custom Fields" tab
8) from the select box under "Custom Field Type" select "SIZE" (the name of your custom field added in #4)
9) repeat step #8 as many times as many options you want to add to SIZE field
10 (I do it 3 times and in the value boxes I put "Skiny", "Medium", "Fat")
11 (...for ordering you can just drag the lines up/down if u need)
12 (if you put +/-[number] into Price field the option will modify your product's price)
13 Save product
14 Go to front-end to your product's page
15 Enjoy.

ADVANCED/OPTIONAL: For my needs I actually modified 3 VM files (NOTE: this version ov VM2 is much better written and organized than v1) and so I can actually add custom parameters on each custom field option. This, for what I have seen is NOT supported, so needs some modding.
Let's say each variant of your CAT has different product code that needs to be shown on products page when option is selected and needs to be evidenced in Cart when product is added. like:
"CAT.S" = "Skiny Cat"
"CAT.M" = "Medium Cat"
"CAT.F" = "Fat Cat"
It can be done - but i must run now - i you're interested drop a line here and i'll write it up (maybe som VM Admin will shout me for that - but meybe it is a good idea and could be integrated into base functionallity)

ciao

PS: I am using J!1.5.18 with VM2.0.0



Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on February 02, 2012, 09:28:59 AM

Hi adamjakab,

Just to let you know and ask maybe a silly question but - You like all the others using VM2 tell us to choose the "custom field" Cart Variant and you actually have it highlighted in red.

I am using 2.0.1 and JM1.7.3 and there is no option to choose "cart variant" we have adrop down box that gives us , string,integer,parent,boolean,date. time, image and plug in ( if you choose plug in) another box appears - with 3 options. Do you have these or is yours different?
This might be the cause of some - like me as "cart Variant" the actual words  is not in my options.
Thus we are having great difficulty making simple - drop down boxes.
Title: Re: Attributes/Custom Fields Thread
Post by: Lexiboy on February 02, 2012, 11:35:44 AM
I do not want to sound obnoxious but are you sure that the option cart variant is not in the list? I use the same version. I first totally overlooked it, but it is in between image and plugins. I was looking for Variant instead of Card Variant.

Apart from that, I cannot say that it works well.

Is there a way to solve this?
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on February 02, 2012, 11:52:55 AM

Lexiboy

Just so you can see - Version exact - 2.0.1 and JM 1.7.3 -
( You say you are using an earlier version 1.5? 

No choice -?

Am I looking in the wrong place - this just seems odd to me and thus we will both know why others might not see what others migh see.

No harm in double checking.

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: jenkinhill on February 02, 2012, 12:16:41 PM
John download 2.0.1b - that includes Cart Variant.
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on February 02, 2012, 12:59:55 PM
Thanks Jenkinhill - look in the first Forum message - it is not really clear that 2.0.1 is(a) and 2.0.1b are two separate downloads.

It appears to me that the release of 2.0.1 was released and then one was called a and then b. ( as an updated forum post)

But thanks _ I'll download and update now -

j 1.7.3 and VM now 2.0.1b

I can now see the cart variant -and I'll play with that tomorrow

Sitting here late at night - 11.19 pm - Actually playing on the computer trying to get my site right -
* now all I needs is Paypal payment to send correctly - an invoice from the shop, but if it doesn't work Paypal will still send an invoice. 
* on a basic level my shop will work --

* just as by line I'm up waiting for my house to flood - as the river has just broken its banks and will flood my street and house in about 6 hours.
Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 02, 2012, 20:09:24 PM
there is no way to create attributes with stock control even with the version 2.0.2b. No one can tell you there is a problem or providing a solution ....
Title: Re: Attributes/Custom Fields Thread
Post by: nickybutler on February 04, 2012, 02:58:46 AM
Quote from: zzsser on November 06, 2011, 12:59:47 PM
Thank you for your reply but this is not what we are trying to do.

What you mean is grouping custom fields, for example like this:

Inserting Parent "all_my_fields" add automatically:
       Child "colour" (showing a list with only one colour, all other colors have to be manually typed)
       Child "size" (showing a list with only one size, all other sizes have to be manually typed)
       Child "..." (showing a list with only one ..., all other ... have to be manually typed)

What we would like is inserting Field "Colour" with all its variables (blue, red, grey,...) automatically.


This way doesn't work:

Inserting Parent "Colour" doesn't add automatically:
       Child "blue"
       Child "red"
       Child "..."


Is it possible to do this yet and if so how? If not when is it planned to be available?
Title: Re: Attributes/Custom Fields Thread
Post by: Jeff on February 04, 2012, 23:04:11 PM
this will be a deal breaker for many if it cannot work in a simple fashion.
Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 04, 2012, 23:44:40 PM
can anyone able to give a clear and decisive. The plugin custom variants stockable works or not?
Title: Re: Attributes/Custom Fields Thread
Post by: SergioBo on February 05, 2012, 14:22:53 PM
After years of working with virtuemart component are sorry to leave but you can not continue. Version 2 is full of errors and should not be released, also no response from the staff. Step by Magento and we hope that the situation is different.
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on February 05, 2012, 21:55:04 PM
Sergiobo,

I'm replying just so you know that i', sure they are trying to get the attributes correct.  I see some people are limiting the way their stock variants are done- I'm not sure what you are selling but sizes and colours are maybe the easy variants to set up.
* I'm using joomla 1.7.5 and MV2.0.1 (d) that's d not (b) as you mentioned in a previous post.  ( they have done 4 updates since 2.0.0 came out)

* I'm just saying try that version and they might release a new update soon. I think they are doing a new one almost every 3 to 4 days. I know vm1 had easy variants.

* We are all having small problems with some shop attribute so stick at it.
Title: Re: Attributes/Custom Fields Thread
Post by: beevo on February 09, 2012, 22:29:08 PM
I got this to work for my needs - finally. See post here
http://forum.virtuemart.net/index.php?topic=97794.0
Title: Re: Attributes/Custom Fields Thread
Post by: matthewod01 on February 14, 2012, 21:03:07 PM
Just to put this out there here is what I did:
1) In language/overrides/en-GB.override.ini I pasted this: COM_VIRTUEMART_CART_PRICE_FREE=" "
2) In administrator/components/com_virtuemart/models/customfields.php on or around line I deleted ":" on this line: $productCustom->text =  $productCustom->custom_value.'  '.$price;

So now my color or size options that have no price variation will only show up as the option!

I hope this helps someone because I feel like I spend more time on the forum then actually getting anything done! 

Thanks

Matt
Title: Re: Attributes/Custom Fields Thread
Post by: blans on February 16, 2012, 14:16:28 PM
Can someone please explain why it's so complicated to do simple things with Virtuemart 2.0?

http://www.amazon.com/Inmates-Are-Running-Asylum/dp/0672316498 (http://www.amazon.com/Inmates-Are-Running-Asylum/dp/0672316498)

A basic webshop has 250+ products and these products have children. If you sell T-shirts you sell them in different colors and sizes with multiple different pictures per product.

I've been fighting with VM2.0 after using VM since it's beginning to do those simple things but what a hell of job this turns out to be. Just finding out how to add and display children is almost impossible (see this thread here).

Please please, please! Forget all the extra functionality and difficult (custom fields) language. Just make VM2 do basic things in the blink of an eye and see the popularity grow exponentially. Apple did it... So can Virtuemart!






Title: Re: Attributes/Custom Fields Thread
Post by: lipes on February 18, 2012, 00:56:36 AM
I totally agree with you, blans.
Make a new topic with a Poll to see what users answer about this. :)
Title: Re: Attributes/Custom Fields Thread
Post by: mabeall32 on February 18, 2012, 03:35:07 AM
I would like to know whether it works and there is no documentation on how to make it work or  it does not work and I am spinning my wheels trying to make it work.  if it doesn't work,  are they working on it and if they are when will it be available (apx). I just want to hear something from one of the developers on the status of this features.  Everything else works beautifully and I appreciate their hard work on this extension.
Title: Re: Attributes/Custom Fields Thread
Post by: fazzfarrell1969 on February 22, 2012, 15:11:32 PM
In the old virtumart you could add a custom field for say 'size'

it would automatically use the default price unless you added a new price for each size - now it does not and you have to add the individually for each size.

I just want a list of sizes as the product is the same price whatever size, an I missing something?
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on February 22, 2012, 21:54:19 PM
Hi fazzfarrell1969,

I am using VM 2.0.1  n  and JM 2.5.1 -

I added cutomised varients to my product .
Eg colour : I added 4 colours - no cost involved in each
                  I added left or right hand no cost
                  I added 4 "strength" or tensions in bow (Archery.

I still have one cost 3 varients with several options each.
They are drop 3 down boxes and you can choose what you want as a customer

The price stays the same they just choose their options - You do not have to add costs -

I did not do anything special when adding a new varient.
Title: Re: Attributes/Custom Fields Thread
Post by: dron_gr on February 22, 2012, 22:11:51 PM
Dear Developers,
Please could you add the DATEPICKER in custom fields so it can have a cart attribute and affect a price. A DATE custom field is not ok - because a client cannot choose a date by himself. I think for developers it pretty easy to create something like that, but its SO important!

Respectfully!
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on February 23, 2012, 21:53:42 PM
Quote from: fazzfarrell1969 on February 22, 2012, 15:11:32 PM
In the old virtumart you could add a custom field for say 'size'

it would automatically use the default price unless you added a new price for each size - now it does not and you have to add the individually for each size.

I just want a list of sizes as the product is the same price whatever size, an I missing something?

Look at the pdf here
http://forum.virtuemart.net/index.php?topic=90833.msg297872#msg297872

You do not ave to add a new price when its not going to change.
Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on February 28, 2012, 20:26:58 PM
Does anyone get the custom fields with stock control working ?

If you ask the question here on the forum the only thing the answer is a direct to this link, but this isn't still not finished.

http://dev.virtuemart.net/projects/virtuemart/wiki/Product_custom_fields_with_stock_control

I created the custom field "size" with XL, L, M, S
Created 2 child product of my main product.
Than i added this custom field to my main product and add the 2 child products in the plugin area.
Now i have 3 products. All published.
But if i look at my site i also see 3 products. That's not correct. So i disabled the main product. But than i see 2 child products with each a dropdown with only 1 option. I need ONE product with TWO options to select.

Why is this so hard to get this working and why isn't this still fully documented ?????

So many questions about custom fields.




Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on February 29, 2012, 14:32:03 PM
TBoele: I'm not seeing that at all, my child products aren't showing up, just the parent product with the children as product options. This is on VM 2.0.2 on J!2.5.1.

I am seeing another strange problem though. I've set up a custom attribute with stock control and it's showing up fine with the dropdown in the frontend and backend. However, the additional charge is always doubled.

So I have a base price of 4.99, a custom field with additional charge of 1.00 and the resultant price is 6.99, not 5.99. This seems to be consistent behaviour with every product that I've set up and is consistent across products with a single custom field or multiple custom fields assigned to them.

The other problem I'm seeing is that it always says "Price: : No additional charge" under the dropdowns on the frontend. When I select an option in the dropdowns with an additional charge, nothing changes. The only way to see the actual cost is to add it to your cart and look in the shopping cart (where the additional charges are all doubled)

Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on February 29, 2012, 18:18:10 PM
The problem with the doubling of the additional charges seems to be in getProductPrices() in administrator/components/com_virtuemart/helpers/calculationh.php:

                if (!empty($variant)) {
                        $basePriceShopCurrency = $basePriceShopCurrency + doubleval($variant);
                        $prices['basePrice'] = $prices['basePriceVariant'] = $basePriceShopCurrency;
                }

The product_price that is sent to getProductPrices() in the $productId object already has the additional charge added to it. why does this function need to add it again?

Looking at code for the stockable custom plugin, it seems that 'No additional charge' string underneath the dropdowns is added with no intention of changing it when one of the dropdown items is selected. What is the point of this? the price either needs to be displayed in the dropdown or calculated with JS/Ajax to update the 'No additional charge' string underneath.

Whilst VM 2.0.2 is definitely much more stable than VM 2.0 it seems that the custom fields still needs more work to get it to a usable state. I'd like to help as much as possible because I can see so much potential in VM2 over VM1, but custom fields is an essential part of any e-commerce system so this needs be fixed before VM2 can be called anything more than beta.

Title: Re: Attributes/Custom Fields Thread
Post by: vigier on February 29, 2012, 23:26:11 PM
Did anyone get the Customer_text_input running? Yes, it shows on your site, but on my site it doesn't save the value typed in that input box to the database/order... The dropdownlists work fine on my site (2.0.2).
Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on March 01, 2012, 22:11:27 PM
Quote from: John2400 on February 22, 2012, 21:54:19 PM
I added cutomised varients to my product .
Eg colour : I added 4 colours - no cost involved in each
                  I added left or right hand no cost
                  I added 4 "strength" or tensions in bow (Archery.

I still have one cost 3 varients with several options each.
They are drop 3 down boxes and you can choose what you want as a customer

The price stays the same they just choose their options - You do not have to add costs -

I did not do anything special when adding a new varient.

Yes this works, but how do you now handle stock control ?
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 02, 2012, 01:14:58 AM
Quote from: TBoele on March 01, 2012, 22:11:27 PM
Quote from: John2400 on February 22, 2012, 21:54:19 PM
I added cutomised varients to my product .
Eg colour : I added 4 colours - no cost involved in each
                  I added left or right hand no cost
                  I added 4 "strength" or tensions in bow (Archery.

I still have one cost 3 varients with several options each.
They are drop 3 down boxes and you can choose what you want as a customer

The price stays the same they just choose their options - You do not have to add costs -

I did not do anything special when adding a new varient.

Yes this works, but how do you now handle stock control ?

u have to use the stockable variants for stock control
Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on March 02, 2012, 07:02:57 AM
Yes i know but suppose that i wanna sell Shirts.
Than i have 1 parent Shirt product en 2 child products for Medium and Small.
Medium i have 3 shirt and Small i have 2 shirt and this i fill in at the child products. The parent product you can't order so i leave this at 0 in stock.
The dropdown now shows up on the product details page but also the "Notify me" button. So the product detail page doesn't see that i have the child products in stock.

Do i also have to set the stock level in the parent product (5), or is this a bug ?
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on March 02, 2012, 10:29:02 AM
This is definitely a bug.

I've created a main product with three child products. Only one of the child products has any stock.

If the config is set to "Products Out of Stock are orderable, no special action", then everything is fine.
If the config is set to "Do not Display Product", then the main product is not shown at all and access the page manually gives a 404 error.
If the config is set to "Displays 'Notify Me' instead of 'Add To Cart' button" then I get an Add to Cart button still but the out of stock products are missing from the drop down.

Can someone tell me what test framework is being used for Virtuemart because whatever it is needs changing. This is basic FVT stuff which shouldn't be getting to beta level products let alone fully released versions.
Title: Re: Attributes/Custom Fields Thread
Post by: jcyphert on March 02, 2012, 15:57:22 PM
Has there been any progress on this yet? I need this ability. :'(
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 03, 2012, 03:41:51 AM
Hi guys,
You might read these??
http://forum.virtuemart.net/index.php?topic=98648.0
http://forum.virtuemart.net/index.php?topic=96694.msg318290#msg318290

( actually I do not know What is meant when Milbo says ""use layout position "ontop", add it to your parent, done"  ?

I think we are now up to trying to explain the steps you took to set up the stock variants - nearly 10, 000 have viewed this post.( maybe we can help each other or try and copy one suggestion and post an Idea)
I would like this to work well for all of us.

TBoele ,  could you ( write)  the steps you are taking and see If others have a suggestion to  add. ( maybe we could follow what you did and see if we can suggest something)

ie _ you have a parent product shirts with a special logo on it you wish to sell and you might have "XL, L, M , S  - you have a set number of shirts you wish to sell ( that's all the stock you have) - so you make a child product that keeps track of your stock.

what exactly did you do in VM to create this main product and two children?

Step one 1) you created a product >>parent>> shirts>> no stock> save >> you now added a stock variant ( how?) ( what option did you choose) >> this is you first child product.

if we get this right we might be able to help - openglobal- and see what happens when stoc get to 0 levels.
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on March 03, 2012, 11:15:03 AM
Quote from: John2400 on March 03, 2012, 03:41:51 AM
You might read these??
http://forum.virtuemart.net/index.php?topic=98648.0
http://forum.virtuemart.net/index.php?topic=96694.msg318290#msg318290

These are nothing to do with stockable variants and the problems described by TBoele.

From looking at the code, stockable variants just don't work. (In fact to be honest, the whole custom fields area is quite rusty, but let's not get into that right now.)

At the moment, the stock control is dependent on the parent product even though child products are being used to manage the stock levels.

Quote from: openglobal on March 02, 2012, 10:29:02 AM
I've created a main product with three child products. Only one of the child products has any stock.

If the config is set to "Products Out of Stock are orderable, no special action", then everything is fine.
If the config is set to "Do not Display Product", then the main product is not shown at all and access the page manually gives a 404 error.
If the config is set to "Displays 'Notify Me' instead of 'Add To Cart' button" then I get an Add to Cart button still but the out of stock products are missing from the drop down.

Because of this, the stock control just won't work.

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: JSullivan903 on March 07, 2012, 16:09:51 PM
vmError: TableCustoms: :store failed
Unknown column 'layout_pos' in 'field list' SQL=INSERT INTO `xlefz_virtuemart_customs` (`virtuemart_custom_id`,`custom_parent_id`,`virtuemart_vendor_id`,`admin_only`,`custom_jplugin_id`,`custom_element`,`custom_title`,`custom_tip`,`custom_value`,`custom_field_desc`,`custom_params`,`field_type`,`is_list`,`is_hidden`,`is_cart_attribute`,`layout_pos`,`published`,`ordering`,`created_on`,`created_by`,`modified_on`,`modified_by`) VALUES ('0','0','1','0','0','0','Nicotine Strength','','Please Choose','Nicotine Strength','0','V','0','0','1','no','1','0','2012-03-07 15:06:41','42','2012-03-07 15:06:41','42')

This is what I get everytime I try to make a custom field. Any help would be greatly appreciated. As a side note, the attributes system from VM1 was an invaluable tool and much easier to use IMO.
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on March 07, 2012, 16:18:20 PM
It looks like your database is corrupt to me. The layout_pos field is present in my DBs. It might have been an upgrade issue...

You could either add the field in manually:

layout_pos    char(24)    utf8_general_ci    NULLABLE

Or start again from a fresh install.

Quote from: JSullivan903 on March 07, 2012, 16:09:51 PM
As a side note, the attributes system from VM1 was an invaluable tool and much easier to use IMO.

You're not the only person thinking that :-)

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 07, 2012, 18:25:48 PM
Quote from: openglobal on March 07, 2012, 16:18:20 PM
It looks like your database is corrupt to me. The layout_pos field is present in my DBs. It might have been an upgrade issue...

You could either add the field in manually:

layout_pos    char(24)    utf8_general_ci    NULLABLE

Or start again from a fresh install.

Quote from: JSullivan903 on March 07, 2012, 16:09:51 PM
As a side note, the attributes system from VM1 was an invaluable tool and much easier to use IMO.

You're not the only person thinking that :-)

OpenGlobal

there is a button in "tools and migration" install or update tables.
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on March 07, 2012, 19:03:45 PM
Quote from: openglobal on March 07, 2012, 16:18:20 PM

It might have been an upgrade issue...


Quote from: BanquetTables.pro on March 07, 2012, 18:25:48 PM

there is a button in "tools and migration" install or update tables.


Is there an echo in here? :-)

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: JSullivan903 on March 07, 2012, 19:33:20 PM
You guys are awesome! Got it all fixed up and understand it, mostly, still like the old way better.
Title: Re: Attributes/Custom Fields Thread
Post by: jltalavera on March 11, 2012, 11:16:54 AM
Hi there

Starting with Virtuemart 2.0.2, some problem with pricing calculations.......

1.- Product with 2 prices, no price in the price section. Price introduced in custom field-cart variant. 1 price is 1600, the other is 1675, why is showing in the drop-down 1920, the other 2010??

2.- Is there anyway that the lowest price shown in custom filed - cart variant is shown as main price?

Thanks for your help

Cheers

Jose

Title: Re: Attributes/Custom Fields Thread
Post by: lipes on March 11, 2012, 22:47:34 PM
jltalavera: you got a tax of 20%
BASE PRICE (1600) + (20%) TAX  = (1920) FINAL PRICE
BASE PRICE (1675) + (20%) TAX = (2010) FINAL PRICE

is for these type of things that I think we should always have the Final Price for default in the VM :P
Title: Re: Attributes/Custom Fields Thread
Post by: jltalavera on March 12, 2012, 22:51:27 PM
Hi Lipes

Thanks for your reply
This would be ok, but the tax in my country (and in my Virtuemart shop) is 18%....................

Any ideas?

Besides, as I asked, is there any way that the chepest price in the custom field is shown in the product price listings?

Thanks!
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 13, 2012, 18:51:27 PM
Quote from: jltalavera on March 11, 2012, 11:16:54 AM
Hi there

Starting with Virtuemart 2.0.2, some problem with pricing calculations.......

1.- Product with 2 prices, no price in the price section. Price introduced in custom field-cart variant. 1 price is 1600, the other is 1675, why is showing in the drop-down 1920, the other 2010??

2.- Is there anyway that the lowest price shown in custom filed - cart variant is shown as main price?

Thanks for your help

Cheers

Jose



change your rate to "tax per bill"
Title: Re: Attributes/Custom Fields Thread
Post by: jltalavera on March 13, 2012, 19:43:54 PM
Thanks! Sorted

Now, how can I automatically bring the lowest custom field price to the main price screen, to show at least the cheapest?

Cheers

Jose
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 15, 2012, 06:04:24 AM
In vm 1.1 it was so easy to add a child product with a specific attribute  - eg size

1) create a parent, say 'face cream' sku 'facecream' ,
2) then you would simply add an attribute 'Size', save then
3) click on the product name in the following page
4) - than add your children ('new item')

eg 'face cream' sku 'fc1' , attribute - size '15ml'   etc. eezee-peezee

someone was kind enough to post simple instructions here http://forum.virtuemart.net/index.php?topic=41605.0

I `ve been banging my head for days to get this to work in vm 2 but I`m at a loss

if someone could post some very easy to understand instructions for this I would really appreciate it.

Thank you
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 17, 2012, 11:14:17 AM
This is what I did and it still does not work but you can see my steps -
1) I created a parent product called shirts -
2) I created two child products from the shirts product and called them , small and large .
Thus I have now three products.
3) I created a custom field using the Generic Child Varient and called it size of shirt
4) I went back to my parent product and >> custom fields and chose two custom fields I just created.
5) I then went to the myparent >>product information and there appeared two child products within the parent product.
6) I then went to the front page and looked at my product -
7) - yes I could see the drop down boxes and the costs >> I thought I only needed one drop down option (as you can see in the image I have two)??so I went back to the parent product and deleted one custom field hoping that I would end up with one drop down box and two options.
8) What happened was that I then ended up with just one varient small shirts and one button - that was no good.
9 ) I replaced the varient in the parent >> now back to where I was. a product with too many buttons and options.
10 ) Besides the prices adding and driving me crazy - I then tried changing price option in the child products(inside the parent product) , the custom fields, and then in the actual chilld products themselves.

Then I took all the T shirts placed them in a pile and jumped on them. ( or I thought If I washed the large T shirts in hot water)) they would all be small and I wouldn't have to sell big ones or use varients.)
* I only used T-shirts as a test - I do not sell them at all.

I have put up images of each of the options I spoke of - I know they are not correct but at least it might create a discussion. or others might try for suggestions.
10)

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on March 17, 2012, 12:49:11 PM
Can someone from the VM team give an reaction about this discussion here.
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on March 17, 2012, 21:09:40 PM
Steve Jobs should be rolling in his grave.  He excelled with taking complicated features that were virtuaallu impossible to use and simplifying them until a child could use it.  VM seesm to be gpoing the opposite direction.   The 1.1.x attributes and parent/child features were simple to understand and implement.  The new version is as complicated as Rubik's cube, so much in fact that i have not seen a single instance where anyone has been able to make it work as intended, in fact the intentions are even unclear.  This seems to be the Achilles Heel of VM2.x

Bruce
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 17, 2012, 21:23:18 PM
I agree

One of the things I LOVED about virtuemart was the ability to show it to a client with no computer skills & a half hour later they could do anything they would ever need to do as far as running their shop. (I`ve built well over 50 virtuemart shops)

With VM 2 I have been trying since January to recreate a simple parent/child relationship which took me less than 5 minutes to set up in VM 1.1 -and I`m beginning to suspect that it isn `t even possible - and even if it is possible the required procedure is so convoluted & complicated I can `t imagine trying to show someone without programming skills how to do it.

In fact I may need to hire a programmer just to show ME how to do it.

Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on March 17, 2012, 21:37:29 PM
I also agree.

We are now at version VM 2.0.3E and i think it's still not possible to create what everyone wants.
That's why we don't hear anything from the VM team.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 17, 2012, 22:44:43 PM
1. Create a parent product called Shirt and give it a category.
2. create children products of shirt (small, medium, large) Do not give these children a category.
3. create your custom field, type = generic child variant. Title = Size. Cart Attribute= Yes.
4. add this custom field to your parent product.

When you view the product, all children will show in one dropdown. when you select an item in the dropdown, it will send you to the product details page of the child product selected.

The major issue still present is that the dropdown box is wrapped in a radio button element. which don't make sense.
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 17, 2012, 23:11:29 PM
Quote from: corymp on March 17, 2012, 22:44:43 PM
When you view the product, all children will show in one dropdown. when you select an item in the dropdown, it will send you to the product details page of the child product selected.

AFAIK, this technique has a major flaw. Now let's say you want to sell a shirt sized A, B & C. Because you have to set one of these items as the parent item, also the name containing one of these attributes will be shown when viewing the list of products.

I simply want to have the name "Shirt" shown when browsing products and A, B, C options shown only when viewing the product details.

I invented a crazy work-around as I was very desperate, I can post it if needed. Please let us know if you have a good solution for this!
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 17, 2012, 23:15:11 PM
that`s the theory - but hasn `t worked so well in practice.

here`s an example

here is a parent/child setup in vm 1.1 http://nutrawholesale.com/nutra-organic-plant-acids-opa/opa-daily-protection?page=shop.product_details&flypage=flypage_default.tpl&product_id=30&category_id=44
notice how you can see the prices / sizes in the dropdown
- and how the parent is not being added to the dropdown
-and how the parent itself has no price

now here is a vm 2.0 setup http://ch25.rejuvasolutions.com/store/handtools/hand-shovel-g02-detail

-there is no way of discerning between the various options (no size info or price) and the parent is being added to the dropdown

- there does not seem to be a way of having no price on the parent, with all the pricing options on the children - if you remove the price from the parent the children disappear altogether.

also for some reason there is a line 'no additional charge' being added - I can `t figure out where that comes from either

do you know how to resolve this?
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 17, 2012, 23:30:31 PM
dsrpmedia ,
The actual line 'no additional charge'  lives in the language files - you can just delete this line
in en-GB.com_virtuemart.ini
(or the language you use) --
* the rest I am still working on as you can see my posts - previously.

corymp: you know I tried in my post to just add the varient like you said- It must be the order that I add the varients.
I'll try again and use the order you set.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 17, 2012, 23:41:39 PM
Quote from: John2400 on March 17, 2012, 23:30:31 PM
dsrpmedia ,
The actual line 'no additional charge'  lives in the language files - you can just delete this line
in en-GB.com_virtuemart.ini
(or the language you use) --
* the rest I am still working on as you can see my posts - previously.

corymp: you know I tried in my post to just add the varient like you said- It must be the order that I add the varients.
I'll try again and use the order you set.

see http://test2.firenl.com/store/eliquid/fruit-flavors/almond-detail as an example
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 17, 2012, 23:54:07 PM
how did you get the size attribute in the dropdown?
would be nice to get the price there as well

I notice all sizes are $30.00 - is that the way you have it set, or is the dropdown not updating the price?
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 17, 2012, 23:57:48 PM
by the way corymp I really like that product info tabs box - where is that from?
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 17, 2012, 23:58:49 PM
That is where it gets limited it seems. I literally named the title of the child products "Almond 24mg" "Almond 16mg" etc.... I haven't tried the prices because for me, I sell all strengths at the same price. I would like to have just 24mg, 16mg, 11mg but then the title of the page would be just 24mg or 16mg etc.

Edit:

It's the glasslab template from Linelab to get parameters working takes a bit of modifying the php. I'm trying to get related products working now....
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 00:28:51 AM
very nice template.

that`s what I was saying about vm2 seeming to be a step back in so many ways - something so simple in VM 1.1 is apparently not possible to recreate in VM2

I`ve got a bunch of clients who want to upgrade their joomla 1.5 / vm 2.0 shops & I`m stuck telling them all 'you can `t get there from here...'

now with 1.5 reaching end of life I have no answer when they ask 'so what am I supposed to do?

just last week I built 2 shops based on 1.5 / vm 1.1 even though that is going to cause me problems later -  I couldn `t in good conscience set them up with this vm2.0 setup

if it`s not hopelessly buggy & it`s just that no-one understands it, I hope someone understands it soon (someone who can explain it that is)
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 00:35:08 AM
I think the problem was that joomla changed to a new system of views and so VM had to follow suit. Causing them to have to go back to the drawing board and start basically from scratch. Now that all the work is done, they have to work with what they got. Obviously they never thought this completely through when building their framework
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 00:41:59 AM
I agree - and it`s completely understandable.

Over the years one of the things I have come to love about working with virtuemart is the community - incredibly brilliant, helpful people - I probably wouldn `t be working in web development today if I hadn `t stumbled across virtuemart a few years ago.

That being said it is very frustrating none the less that things as basic as parent/child relationships & migration from the old system haven `t been more fully worked out
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 00:48:42 AM
Two things that are missing right now.
1. I would like an option for children to inherit the product name from the parent
2. I would like an option to hide the parent product's price.

That would fix things for me......for now...until the next problem arises

Edit:

And get rid of that stupid radio button as well as the parent product from the dropdown!
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 18, 2012, 01:41:24 AM
Hi corymp ,
That looks almost what we are looking for -
Yep a few issues in regards to set out and that radio button.

Site - looks great - the template.

Could you confirm what happens when you get to 0 products in one of your options and does the stock go down correctly.

* different prices for different sizes -dsrpmedia asked about the prices option - does different prices work?
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 01:49:28 AM
Quote from: John2400 on March 18, 2012, 01:41:24 AM
Hi corymp ,
That looks almost what we are looking for -
Yep a few issues in regards to set out and that radio button.

Site - looks great - the template.

Could you confirm what happens when you get to 0 products in one of your options and does the stock go down correctly.

* different prices for different sizes -dsrpmedia asked about the prices option - does different prices work?
Please check this URL. I have different prices set for each child for example http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-tobacco-detail

Different prices does work. but the parent has to have a price and is independent of the children. Which is a problem, there should be no price displayed for the parent. In my case anyway

I have almost figured out how to fix the radio button. If I can style that particular radio to display:none, it will indeed disappear and leave the drop-down intact.

Stock, I haven't tested. All my products are 0 stock right now anyway. I have it set to allow selling of products with no stock in the back-end. I can definitely check it out for you though
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 01:53:33 AM
QuoteTwo things that are missing right now.
1. I would like an option for children to inherit the product name from the parent
2. I would like an option to hide the parent product's price.

That would fix things for me......for now...until the next problem arises

Edit:

And get rid of that stupid radio button as well as the parent product from the dropdown!

I would add one more to that

3)  to have the child products size /color attribute & price visible in the dropdown the way it is in VM1.1 (that is a huge one for me)


those 3 things & I could move on to figuring out the shipping.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 01:59:55 AM
 :) I got rid of the radio button

make this the last line of your templates stylesheet

.product-field-display input { display:none; }

I'm not sure what this will do if there are other custom field types in there. but the dropdown is still there so that says something
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 18, 2012, 02:04:43 AM
corymp

I'm sure in one forum there was a post about setting prices and a hack that got rid of the add to feature-
so the parent had a price and the varient had a price - independent of each other . (sorry that appears to be Ok on your site)

Thus you might be able to set the parent price to 0  and then your product description and cost will match each other.

I'm sure Bruce - was really after the issue of what happens when products get to 0 and does 'notify' appear or other options-

Thus - is you sell out of a size will that option disappear. or have any affect on the over selling , or have an affect on the other products.

I see you got rid of the radio button - in your post - well done.
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 18, 2012, 02:15:29 AM
corymp

Could you post your solution on this forum

http://forum.virtuemart.net/index.php?topic=99590.0

I'm sure Milbo reads this thread but I think you are very close to solving the issue.

* This will just add a  little support to helping solve the attribute issue.

* Try and explain in some detail what you did and see if that helps the team.

We apprecite you time and skill in this matter.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 02:41:18 AM
Quote from: John2400 on March 18, 2012, 02:15:29 AM
corymp

Could you post your solution on this forum

http://forum.virtuemart.net/index.php?topic=99590.0

I'm sure Milbo reads this thread but I think you are very close to solving the issue.

* This will just add a  little support to helping solve the attribute issue.

* Try and explain in some detail what you did and see if that helps the team.

We apprecite you time and skill in this matter.

I will write something up and post it there. In the meantime, my fix for the radio button DID work in safari... I was browsing the wrong product  :o It's late and I've been at this too long tonight. At least we have a workaround for that

As for tracking stock. It works correctly. When set to show notify instead of add-to-cart button on 0 stock. That doesn't seem to be working. but if you add it to cart, a popup states it is out of stock
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 03:47:06 AM
Quotedsrpmedia ,
The actual line 'no additional charge'  lives in the language files - you can just delete this line
in en-GB.com_virtuemart.ini
(or the language you use) --
* the rest I am still working on as you can see my posts - previously.

I removed that line from the languge file & it is now gone - but that leaves the question - why was it there? it is the text for 'COM_VIRTUEMART_CART_PRICE_FREE' - there is nothing free there - in fact if you try to make the parent free the children disappear!

what happens if somewhere else in the store I actually have something which is free? (I`ve removed the  'no additional charge' text option so that it doesn `t appear under the child product drop downs)
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 03:50:30 AM
create this file languages/overrides/en-GB.override.ini
add this line to it:
COM_VIRTUEMART_CART_PRICE_FREE=""

That's how I did it. That way if you update virtuemart your change will hold
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 03:58:34 AM
much better solution, thank you

hopefully soon someone will address why it is showing up in the first place  8)
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 04:26:18 AM
I `m getting so close

http://ch25.rejuvasolutions.com/store/handtools/hand-shovel-detail

now
-the dropdown is working,
-the child products images, prices, descriptions etc are working

but

-I need to remove the price from the Parent
-I need to remove the Parent from the dropdown
-I need to add the child attribute detail  (size) + child product price to the dropdown items so that you can tell at a glance what they are the way it is in vm 1.1

(having a list of

hand shovel
hand shovel
hand shovel

is not very user friendly)

If anyone knows how to do this is I would be ever so greatful
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 04:34:03 AM
I think we are as close as they can expect us to get. at this point we are getting into core modification. I've spent most of the night chasing my tail trying to find where $this->product->customsChilds and echo $field->display is pulling its html from. The answer to all of this is in that
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 05:24:19 AM
I guess so - it`s just so disappointing that such an easy thing to do in vm 1.1 appears to be impossible in vm 2

the nuts & bolts of how the core works is beyond me, I do hope you figure it out, I know there are a LOT of people in the forums asking these same questions
Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on March 18, 2012, 12:47:19 PM
Quote from: dsrpmedia on March 18, 2012, 05:24:19 AM
I guess so - it`s just so disappointing that such an easy thing to do in vm 1.1 appears to be impossible in vm 2

I agree.

And very disappointing nobody from the VM team give any reaction on the hole customfields discussion.
They don't take us seriously or they know about this problem, that it's not working in VM 2.0.3 and it's hard to get it fixed.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 18:37:04 PM
I know they have worked very hard to get it to the point where it is, unfortunately for me & probably a lot of people with similar requirements it is still not usuable
- I think perhaps they don`t realize how big a problem it is
- especially for shops which are already live with VM1.1 & need to migrate to the EXACT layout in VM2

If you cannot recreate your layout how do you migrate?
Title: Re: Attributes/Custom Fields Thread
Post by: TBoele on March 18, 2012, 19:00:16 PM
Read in the other thread how they react on this problem. Unbelievable.

http://forum.virtuemart.net/index.php?topic=99590.30
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 18, 2012, 19:37:52 PM
seems like they are evading the issue
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on March 18, 2012, 20:21:01 PM
More like denial.  They seem reluctant to admit there is a problem until there is overwhelming evidence to the contrary.  I have been using the J/VM platform for almost 8 years and some of the most fundamental problems never get resolved.  Meanwhile the level of complexity has gone completely out of control, which would okay except the developers seem to presume that all shop owners are going to be versed in php coding.  What is going by the wayside is easy-to-use functionality "right out of the box".

Bruce
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 18, 2012, 20:43:21 PM
One thing you can do (not that I would recommend it) is:

Product Status -> In Stock: 0 for the parent.
Then enable: Configuration -> Shopfront -> Core settings -> Displays 'Notify Me' instead of 'Add To Cart' button.
Then make it show something else instead of that 'notify me' button. I put a box the same size saying something like: "select size/available product".

Which is a "good enough" solution until a real fix comes.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 18, 2012, 20:56:16 PM
that would be 'almost' good enough

1) the parent would still be showing up in the drop down
2) when a product actually is out of stock you would get the "select size/available product" notice instead of the notify.

------------------------------------------------------------
almost as important - any thoughts on how we could display the child product attribute (size / colour, whatever) + price in the dropdown (the way it is in vm 1.1)
having a drop down with

hand shovel
hand shovel
hand shovel

is not very helpful, and I would love to avoid putting the child attribute/price in the product name if possible
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 18, 2012, 21:37:03 PM
Yes, your observation is correct. Well good enough in the sense that I have no other choice at the moment but to do that and come here everyday to check if a solution pops up.  :P

Insert DB rows to (almost SQL/CSV ) get PRODUCT CHILDS working (2.5+2.0.2) (http://forum.virtuemart.net/index.php?topic=99688.0)

Did you all see this? Seems like the only fix at the moment to get stockable products working. I'm not intimidated by MYSQL code but those instructions are a bit too much for me.... with a dummy explanation I would be willing to learn.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 19, 2012, 00:59:52 AM
argh

I `ve been so focused on trying to get the child products displaying properly I hadn `t had a chance to look at the inventory control

you are right  (joomla 2.5.2 / vm 2.0.3.E) the inventory control is not working in the front end

I have it set to
1) Display stock level (not working)
2) Displays 'Notify Me' instead of 'Add To Cart' button (not working)

I haven `t got to the point of actually putting something in a cart & checking out to see if the stock count itself is working - but the front-end display is not working at all - or is there something esle you have to do besides setting those 2 parameters on the configuraTION?
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 19, 2012, 01:02:49 AM
I have made some more progress.

I have successfully set up the children to display the Parent's Title. It involves creating a custom field type string, Custom field type parent,

1. Change the code in /templates/yourtemplate/html/com_virtuemart/productdetails/default.php to this below:

You are looking for <h1  id="product_name"><?php echo $this->product->product_name ?></h1>

<h1  id="product_name">
<?php
if (!empty(
$this->product->customfieldsSorted['Product'])) { 
       
$custom_title null;
       foreach (
$this->product->customfieldsSorted['Product'] as $field) {
if ($field->display) {
if ($field->custom_title != $custom_title) { 
echo $field->display;
}

else {
echo $this->product->product_name;
}
}


else {
echo $this->product->product_name;
}?>

</h1>


2. Once that is done, check your product details page in your browser to make sure the page loads correctly. Choose a page with no custom fields.

3. Once that is done, create a custom field type Parent with these settings:

Type=Parent
Title="Parent"
Published="yes"
Cart Attribute="No"
Layout Position="ontop"

4. Next step, Create a custom field type String with these settings:

Type="String"
Title="anything you want" (it wont be displayed)
Published="yes"
Parent="Parent"
Cart Attribute="No"
Layout Position="Product" Case sensitive if you copied my script

5. Now.. whatever attributes you made to show in the add to cart area (ie. the dropdown), you must set the custom fields to have the same parent as the custom string we just created.

6. Once that is done, go to your parent product, remove all custom fields and add the custom field parent we just created.

7. Type in the name of the parent product and save. All children of this product will get the custom string to show up as the product title.

This script/setup will inject That product name as the title of all children product pages and if there are no custom fields for this product, the original product title will show.

I hope this was easy to understand. if you follow precicely, it will work as you can see here -> http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-tobacco-detail (http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-tobacco-detail)

Any questions you can contact me, but just to let you know, I am very busy and it may be a while for me to get back to you during a work week. My day job actually is designing fire protection sprinkler systems. web design is just a weekend hobby for me.... :)

Title: Re: Attributes/Custom Fields Thread
Post by: Syn on March 19, 2012, 10:45:49 AM
Having gone through this thread is it safe to assume I'll have to make some core mods and spend a good amount of time to get basic attributes in dropdowns working?

If that's the case I might have no other choice than to use another cart.  I can't spend time working on what should be a basic, easy to use feature that existed as such in VM 1.1.
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 19, 2012, 12:27:08 PM
What about this :

Thinking out of the box  http://forum.virtuemart.net/index.php?topic=99786.0

I don't know if it works
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 19, 2012, 12:47:38 PM
Quote from: John2400 on March 19, 2012, 12:27:08 PM
What about this :

Thinking out of the box  http://forum.virtuemart.net/index.php?topic=99786.0

I don't know if it works

I'm not sure if I understand what is being said there, but it sounds almost exactly like what we have now..

I've made more progress, removing the parent product from the dropdown. I'm not really removing it, the idea is that the parent is really the first atribute. so together with my mod for changing the titles, solves the price on parent issue and odd parent product in dropdown at the same time.

see this link -> http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-24-detail (http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-tobacco-detail)
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 19, 2012, 17:57:07 PM
quick question - when you add say the 24mg size to the cart does it say what product you are ordering or just the size?
(I tried on your site but I got the message '24mg out of stock')
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 19, 2012, 18:50:37 PM
Try it again, I turned off special action for out of stock. You are right it just says 24mg. It seems the more headway I make the more problems that arise. You will see the sku though. I am planning to make good use of the SKU fields and hope that it is acceptable until I can find another solution
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 19, 2012, 19:11:44 PM
I know the feeling.

I`m really hoping they get it together so that we don `t have to do a bunch of core hacks just to achieve basic functionality.

You`ve come a lot further than I on this, but until I can figure out how to get the price to display in the drop down I`m still dead in the water
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 20, 2012, 03:35:11 AM
More progress.... The cart now shows everything correctly, categories, category and product pages all work the way you would expect from a normal cart...... At this point, I can't explain everything I've done... but it is possible. The only thing I have left to do now I think is modify the email templates because right now they list the products as what shows in the dropdown. in the end, i'm using the different available fields for different things... the backend is a bit weird for working with products. I have to use the small description as the title for the category page, the title as the attributes in the dropdown, and add a custom field as the title for the product details page. small description acts as the product name on the cart page. man what a clusterfuc*.

It is pretty easy to manage if you can remember to treat products with custom variants different that products without.   check out flue cured and try the cart -> http://test2.firenl.com/store/eliquid/tobacco-flavors (http://test2.firenl.com/store/eliquid/tobacco-flavors)

@dsprmedia

still no progress on prices in the dropdown. maybe a few string type custom fields telling the prices for various options?
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 20, 2012, 04:29:05 AM
wow

great work

you have been making all your changes in your templates override folder? (when you update VM are you going to have to do it all over again?)
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 20, 2012, 11:06:24 AM
This is for anyone willing to make the necessary changes to make your shop look and act like a normal shop with stockable variants....
This is all done in template overrides, so it should hold after a update. No core files were modified.
Maybe I'm wasting my time, but it's working for me, so I might as well write it up while I'm at it.


This is all based on naming your products as if they are the attribute.

Example: These are all product titles This will fix the odd looking Parent as the first option in the dropdown

Parent: Long Sleeved Shirt (unpublished, and not for sale)
Child: Red (Give your first child a category such as "Shirts", this will be the product you navigate to from the category page)
Child: Green
Child: Blue

First Problem: Now your page titles will be Red, Green, Blue...etc.

Will do write up on this with pictures

Second Problem: Now the product title on the Category page will be Red (the main product that was given the category "Shirts")

Change the product titles on the category page to the short description:
You will then have to enter the title of all Parent products into the short description field

/templates/yourtemplate/html/com_virtuemart/category/default.php

You will be using the short description as the product name on the category page.... (If I can find a way to show custom fields from the product on the category page, I can avoid throwing away the short description)

If there is no short description, it will display the product title like normal (this will make sure theres no extra work for products with no children. just don't use the short description)

You will then lose the short description, so it would be wise to comment out the lines that displays it under the product image as well



Find the code <h2><?php  echo JHTML::link($product->link, $product->product_name); ?></h2> and replace with code below;

<?php /*  If Short Desc is set change Product Title to Short Description     */ ?>
<h2><?php // Product Short Description
if (!empty($product->product_s_desc)) {
   echo JHTML::link($product->link$product->product_s_desc);

else {
   echo JHTML::link($product->link$product->product_name);
?>

        </h2>



Third Problem: Your Cart will display product name as Red, Green, Blue etc. (But you still want to show the option with the actual product name)

Making your shopping cart load correct titles

Will be using short description, the same way as above for product name:

templates/yourtemplate/html/com_virtuemart/cart/default_pricelist.php  -  Around line 139:
Replace <?php echo JHTML::link($prow->url, $prow->product_name).$prow->customfields; ?> with this:

<?php if(!empty($prow->product_s_desc)){ echo JHTML::link($prow->url$prow->product_s_desc). ' - ' .$prow->product_name; }  else { echo JHTML::link($prow->url$prow->product_name);}//.$prow->customfields; ?>
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 21, 2012, 08:56:11 AM
Thanks corymp, perfect timing for saving my day! Looks like a decent solution, nothing too nasty in this and if it works:)

Quote from: corymp on March 20, 2012, 11:06:24 AM
First Problem: Now your page titles will be Red, Green, Blue...etc.

Will do write up on this with pictures

Great, looking forward! :)
I'm going to try the others now.
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 21, 2012, 10:33:33 AM
Problem: The first child item that has the category selected doesn't show in the drop down menu when viewing the item.

edit##

Solution: If you do the same to the parent item as you would to the "main child item" and disable that child item, it works. However like that the solution becomes too messy, relying only on "Product SKU" order for the backend management.
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 21, 2012, 11:09:51 AM
I still don't want to see the children when I do a search. I want to click on the parent and be able to select the variants. Am I missing something really basic?
Edit: I missed the categories instructions (assign category to only one of the children).
I still can't see a selection menu for the variants. :(

Plus, can anyone point me in the direction of the templates location? I can't find those files.
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 21, 2012, 11:21:26 AM
It's Virtuemart that's missing something really basic.

They are in your components dir. I have no idea how can they be in his templates directory?

/templates/yourtemplate/html/com_virtuemart/category/default.php -->

/components/com_virtuemart/views/category/tmpl/default.php

/templates/yourtemplate/html/com_virtuemart/cart/default_pricelist.php -->

/components/com_virtuemart/views/cart/tmpl/default_pricelist.php

##edit.

besides these need to edit AT LEAST the email template, mini cart & product view files
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 21, 2012, 11:28:46 AM
Quote from: karbono on March 21, 2012, 11:09:51 AM
Edit: I missed the categories instructions (assign category to only one of the children).
I still can't see a selection menu for the variants. :(

You are missing the custom field Generic Child Variant (http://forum.virtuemart.net/index.php?topic=98648.0).

Actually this is suppose to be done with the Stock Control custom field (http://dev.virtuemart.net/projects/virtuemart/wiki/Product_custom_fields_with_stock_control) but it is obvious that it doesn't work. So using generic child variants is pretty much desperation at this point.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 21, 2012, 11:29:34 AM
Yes, you would have to manage everything by SKU.

This is a very messy method of achieving something that should be native to the system. I'm almost ready to ditch this whole idea. It seems the more progress I make, the more templates I need to modify.... Stop me now, if there's no point to this...
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 21, 2012, 11:36:41 AM
Quote from: chiappa on March 21, 2012, 11:21:26 AM
It's Virtuemart that's missing something really basic.
;D

Thanks for the pointers. I'm going to try and get this to work with CSVI
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 21, 2012, 11:45:00 AM
Yes, this could become complicated. I wont follow you on this path unless there is a breakthrough but please keep us posted if you do choose to go on:)

I'm gonna stick to my crappy custom attributes solution (http://forum.virtuemart.net/index.php?topic=90833.msg329755#msg329755), which is at least easy and a semi-working... ;) and continue refreshing this forum every day....
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 21, 2012, 11:55:43 AM
I'm importing data directly from MSSQL and I'll be generating a different SKU than the parent. Something like child_sku='parent_sku'+'sizeid'+'colorid'. This should work while noone creates a different attribute like "material" on the ERP side, which would mess up this whole system...
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 21, 2012, 12:08:05 PM

If "Do not Display Product" is set in "Actions when product is out of stock", I still see the product in the dropdown list and get a 404 page when I select it.

Unfortunately, something similar also happens with joomla's search. the products still appear in the results regardless of whether or not they are visible.
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 21, 2012, 12:43:59 PM
Another interesting issue/feature (?):

If the parent product has stock = 5, and a child product has stock = 0, it will ignore the childs lack of stock and allow 5 units to be ordered. I can't forget to keep the parent's stock=0 (no reason it should be 0, anyway).
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 22, 2012, 11:16:37 AM
Did you find out how to sort your Generic Child Variants in the product views drop down?

The product order settings has no effect and weirdly enough looks like it's not sorting by ID either.. Saving new child variants in the correct order worked so far but it's not really a good system is it....
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 22, 2012, 11:34:47 AM
Quote from: chiappa on March 22, 2012, 11:16:37 AM
Did you find out how to sort your Generic Child Variants in the product views drop down?

The product order settings has no effect and weirdly enough looks like it's not sorting by ID either.. Saving new child variants in the correct order worked so far but it's not really a good system is it....

I didn't get that far and didn't even notice that issue. Yesterday I went back to Drupal/Ubercart, but Drupal's bulk import has it's own set of issues (variants with specific sku, inability to import stock via feeds, etc, etc). CSVI is a God-send... I just need those variables with stock.
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 22, 2012, 11:49:53 AM
Quote from: chiappa on March 22, 2012, 11:16:37 AM
Did you find out how to sort your Generic Child Variants in the product views drop down?

The product order settings has no effect and weirdly enough looks like it's not sorting by ID either.. Saving new child variants in the correct order worked so far but it's not really a good system is it....

Would this help?
http://forum.virtuemart.net/index.php?topic=90362.30
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 22, 2012, 11:56:53 AM
Quote from: chiappa on March 22, 2012, 11:16:37 AM
Did you find out how to sort your Generic Child Variants in the product views drop down?

The product order settings has no effect and weirdly enough looks like it's not sorting by ID either.. Saving new child variants in the correct order worked so far but it's not really a good system is it....

if you go into your product parent in backend and scroll down on the main tab, you will see all your child variants. you can sort them there
Title: Re: Attributes/Custom Fields Thread
Post by: mowgs on March 22, 2012, 15:33:14 PM
Quote from: corymp on March 19, 2012, 01:02:49 AM
I have made some more progress.

I have successfully set up the children to display the Parent's Title. It involves creating a custom field type string, Custom field type parent,

1. Change the code in /templates/yourtemplate/html/com_virtuemart/productdetails/default.php to this below:

You are looking for <h1  id="product_name"><?php echo $this->product->product_name ?></h1>

<h1  id="product_name">
<?php
if (!empty(
$this->product->customfieldsSorted['Product'])) { 
       
$custom_title null;
       foreach (
$this->product->customfieldsSorted['Product'] as $field) {
if ($field->display) {
if ($field->custom_title != $custom_title) { 
echo $field->display;
}

else {
echo $this->product->product_name;
}
}


else {
echo $this->product->product_name;
}?>

</h1>


2. Once that is done, check your product details page in your browser to make sure the page loads correctly. Choose a page with no custom fields.

3. Once that is done, create a custom field type Parent with these settings:

Type=Parent
Title="Parent"
Published="yes"
Cart Attribute="No"
Layout Position="ontop"

4. Next step, Create a custom field type String with these settings:

Type="String"
Title="anything you want" (it wont be displayed)
Published="yes"
Parent="Parent"
Cart Attribute="No"
Layout Position="Product" Case sensitive if you copied my script

5. Now.. whatever attributes you made to show in the add to cart area (ie. the dropdown), you must set the custom fields to have the same parent as the custom string we just created.

6. Once that is done, go to your parent product, remove all custom fields and add the custom field parent we just created.

7. Type in the name of the parent product and save. All children of this product will get the custom string to show up as the product title.

This script/setup will inject That product name as the title of all children product pages and if there are no custom fields for this product, the original product title will show.

I hope this was easy to understand. if you follow precicely, it will work as you can see here -> http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-tobacco-detail (http://test2.firenl.com/store/eliquid/tobacco-flavors/flue-cured-tobacco-detail)

Any questions you can contact me, but just to let you know, I am very busy and it may be a while for me to get back to you during a work week. My day job actually is designing fire protection sprinkler systems. web design is just a weekend hobby for me.... :)

Hi, thanks for your work so far!  Just gone through to find the file you talked about, and I don't have 1!  I'm just using beez5 at the moment, and have Virtuemart set to use -default- as its template.

**EDIT - found it!  found it in /httpdocs/components/com_virtuemart/views/productdetails/tmpl/default.php
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 22, 2012, 16:19:46 PM
Quote
Hi, thanks for your work so far!  Just gone through to find the file you talked about, and I don't have 1!  I'm just using beez5 at the moment, and have Virtuemart set to use -default- as its template.

components/com_virtuemart/views/productdetails/tmpl/default.php     copy to   templates/yourtemplate/html/com_virtuemart/productdetails/default.php

components/com_virtuemart/views/category/tmpl/default.php     copy to   templates/yourtemplate/html/com_virtuemart/category/default.php

components/com_virtuemart/views/cart/tmpl/default_pricelist.php     copy to   templates/yourtemplate/html/com_virtuemart/cart/default_pricelist.php


This will override the default views for those pages
Title: Re: Attributes/Custom Fields Thread
Post by: mowgs on March 22, 2012, 16:33:24 PM
Thank you - think I found them not long before you posted.

Its getting there, the one thing now, is I had 3 custom fields, one for colour, one for bra size and one for Brief size.

I've done the edits as detailed in this post for the Colour field, and this works brilliantly!

But, Now in the cart, I cant see the detail for the Bra Size or Brief Size that has been chosen?

Does the prow->customfields that has been commented out show this?

Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 22, 2012, 17:13:49 PM
The short description will be the product name at this point you have to inject the product short description where the product name would be. Please keep in mind, you will have to do the same thing with order emails, and the orders page as well, I haven't gotten that far yet...
Title: Re: Attributes/Custom Fields Thread
Post by: b.adams91 on March 23, 2012, 06:46:56 AM
Hi,

I have figured out how to add custom attributes to my products using sizes, however when I include the sizes it always shows "no additional charge" beside the size.
Could someone please help me out.

Thanks,
Brandon
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on March 23, 2012, 07:50:11 AM
 b.adams91,
Hi ,

You can delete and change the message 'No additional charge.. "
There is a file in the public or home section of your server that is the 'language' folder.
Open that file >> find the language you use and then open the file 'de-DE.com_virtuemart.ini' file and you will be able to edit that file and delete any wording you wish.. Might just be best to just delet the words and mot the whole line in the file leave it as "" .
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 23, 2012, 10:14:45 AM
I just read the "Virtuemart News" e-mail. I got slightly excited when reading
QuoteThe use of child variants got strongly enhanced.
, but thinking about it, I'm sure they don't mean stockable variants functionality...

I'm giving it a shot with the VM2.0.4-RC version...
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 23, 2012, 17:04:07 PM
QuoteI have figured out how to add custom attributes to my products using sizes, however when I include the sizes it always shows "no additional charge" beside the size.
Could someone please help me out.

Do you mean you figured out how to include the size attribute info in the child product dropdown?

eg

hand shovel - small
hand shovel - medium
hand shovel - large

etc?

IF so could you please tell me how?

when I add child products using a sizr attribute I am just getting

hand shovel
hand shovel
hand shovel

in the dropdowns
Title: Re: Attributes/Custom Fields Thread
Post by: amytuggey on March 24, 2012, 19:55:00 PM
Did you ever get a resolution on this? I need the same thing
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 24, 2012, 19:56:48 PM
no unfortunately it would appear that vm2 still does not have the basic functionality of vm 1.1
Title: Re: Attributes/Custom Fields Thread
Post by: Loris on March 26, 2012, 20:01:38 PM
Hi there... requiem for VM2 development?  ???
someone has a simple, user friendly and reproducible procedure to create a working product with his children?
Title: Re: Attributes/Custom Fields Thread
Post by: karbono on March 26, 2012, 20:02:47 PM
Quote from: Loris on March 26, 2012, 20:01:38 PM
Hi there... requiem for VM2 development?  ???
someone has a simple, user friendly and reproducible procedure to create a working product with his children?

Try Magento  ::)
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on March 26, 2012, 20:19:25 PM
Quote from: karbono on March 26, 2012, 20:02:47 PM
Try Magento  ::)

Unless the developers formally withdraw VM2 as an official release and put it back into beta until they fix this, that's the only realistic advice that can be given at the moment.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 26, 2012, 20:23:28 PM
magento is very robust. but it has a steep learning curve.
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on March 26, 2012, 20:25:20 PM
Quote from: corymp on March 26, 2012, 20:23:28 PM
magento is very robust. but it has a steep learning curve.

And they don't release beta quality products as final releases :-)
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 26, 2012, 20:39:29 PM
It's very polished. not much is missing when it comes to features for an online store. The only downside is that it's very time consuming. and the supported version costs like 12 grand annualy
Title: Re: Attributes/Custom Fields Thread
Post by: chiappa on March 29, 2012, 08:40:24 AM
Quote from: corymp on March 22, 2012, 11:56:53 AM
Quote from: chiappa on March 22, 2012, 11:16:37 AM
Did you find out how to sort your Generic Child Variants in the product views drop down?

The product order settings has no effect and weirdly enough looks like it's not sorting by ID either.. Saving new child variants in the correct order worked so far but it's not really a good system is it....

if you go into your product parent in backend and scroll down on the main tab, you will see all your child variants. you can sort them there

Coming back to this... There I can see a list of the child variants in the actual order (except in one case I have a parent that is ordering itself BETWEEN the child variants... *sigh*). But I cannot see how I could change the order of the child variants?
Title: Re: Attributes/Custom Fields Thread
Post by: thekalle on March 29, 2012, 12:06:07 PM
I've been trying out corymps solution and got it all working except for the actual parent product showing up in the dropdown menu. How did you solve this on your site?

Thanks!

Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 29, 2012, 12:57:30 PM
You have to rename the parent as if it is the first child
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on March 29, 2012, 18:10:43 PM
Corymp, could you give your web site URL (if it is live) or post a screen shot so we can see how you solution looks.  Ideally, I would like to see the whole attributes/custom fields re-designed to make it more user friendly, but for now I would accept any solution that works.

Bruce
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on March 29, 2012, 18:21:11 PM
I am using Banquet.Tables.pro's dropbox plugin right now with no stock control. Honestly, I gave up on this solution, It works, But it starts to get difficult when you get to modifying the confirmation email... I cannot figure out how to display the correct product names. This solution took up so much time, and energy for me, I felt it might be a waste of time. I was hoping someone else could take a stab at finishing it, or even take it and find a better way.

for what it's worth here is my test site right now, but i am using Banquet's dropbox plugin with no stock control. It would function exactly the same though.

http://test2.firenl.com
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on March 29, 2012, 19:43:51 PM
I installed BTP's plug in an hour ago but have not figured out how to use it.  I do not care about stock control which may be an advantage for me.  I am not sure how the confirmation email comes into play.  On my 1.1 live site the conormation email includes a copy of the order page.  Is it different for 2.0?

Bruce
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 29, 2012, 19:48:47 PM
BTP`s plugin looks to be very close - unfortunately all my attributes have to have their own SKU reference which I don `t see as an option - this is promising though, if it can be done for basic attributes one would think that it can be done for parents/children?
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 29, 2012, 20:17:25 PM
Quote from: dsrpmedia on March 29, 2012, 19:48:47 PM
BTP`s plugin looks to be very close - unfortunately all my attributes have to have their own SKU reference which I don `t see as an option - this is promising though, if it can be done for basic attributes one would think that it can be done for parents/children?

It can,

I cannot do it though, because I do not use childs, I made this plugin for me, because I have to migrate my shop ASAP. and I was very used to 1..1 attributes.


I made this plugin in a couple days. BUT::::: to make it to where OTHER people can use it, it has taken at least another week.

It would take a week or so worth of work for me to add child functionality (that i wont use) and I am not charging for it.

Thats the value that paid developers bring to the table, is they make their component/module/plugin work in many scenarios. countries, languages, currencies, if this, is that.



Title: Re: Re: Attributes/Custom Fields Thread
Post by: corymp on March 29, 2012, 22:00:25 PM
Quote from: BanquetTables.pro on March 29, 2012, 20:17:25 PM

Thats the value that paid developers bring to the table, is they make their component/module/plugin work in many scenarios. countries, languages, currencies, if this, is that.
Why don't you put a price tag on it. A well developed plugin to work with stock control is in pretty high demand around here
Sent from my Galaxy Nexus
Title: Re: Attributes/Custom Fields Thread
Post by: mowgs on March 30, 2012, 14:50:16 PM
+1 on the paid BTP plugin.

No pressure, If you havn't got the time or particular need to do it then  no worries, but I for one would be happy to donate/pay towards it!
Title: Re: Attributes/Custom Fields Thread
Post by: jochem8 on March 30, 2012, 17:28:28 PM
Same here!
It is quite sad that we need a plugin for something that should be standard, though.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 30, 2012, 17:45:57 PM
exactly - this basic functionality has been a part of Virtuemart since the very beginning, I have no idea why they would cut it out of the new version - makes no sense
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 30, 2012, 19:14:49 PM
Quote from: dsrpmedia on March 30, 2012, 17:45:57 PM
exactly - this basic functionality has been a part of Virtuemart since the very beginning, I have no idea why they would cut it out of the new version - makes no sense

cut what out?
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 30, 2012, 20:32:16 PM
the basic functionality which seems to have been cut out is the ability to include the actual attribute & price of the child product in the dropdown the way you used to (vm 1.1)

eg (old version dropdown contents - see http://www.nutrawholesale.com/nutra-organic-plant-acids-opa/2-step-anti-flu-program?page=shop.product_details&flypage=flypage_default.tpl&product_id=27&category_id=43 for a live page example)

hand shovel - Type (plastic) - $2.99
hand shovel - Type (metal) - $5.99
hand shovel - Type (aluminum) - $7.99

is now just

hand shovel
hand shovel
hand shovel

also,
- you can `t have a parent product without a price the way it used to be - all the children disappear if you remove the parent price
-and, the parent is added to the dropdown with apparently no option to remove it

I`ve been trying for months to replicate this (simple in VM 1.1) setup.

And I know from monitoring the forums there are a LOT of people in my position.
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 30, 2012, 21:43:48 PM
Quote from: dsrpmedia on March 30, 2012, 20:32:16 PM
the basic functionality which seems to have been cut out is the ability to include the actual attribute & price of the child product in the dropdown the way you used to (vm 1.1)

eg (old version dropdown contents - see http://www.nutrawholesale.com/nutra-organic-plant-acids-opa/2-step-anti-flu-program?page=shop.product_details&flypage=flypage_default.tpl&product_id=27&category_id=43 for a live page example)

hand shovel - Type (plastic) - $2.99
hand shovel - Type (metal) - $5.99
hand shovel - Type (aluminum) - $7.99

is now just

hand shovel
hand shovel
hand shovel

also,
- you can `t have a parent product without a price the way it used to be - all the children disappear if you remove the parent price
-and, the parent is added to the dropdown with apparently no option to remove it

I`ve been trying for months to replicate this (simple in VM 1.1) setup.

And I know from monitoring the forums there are a LOT of people in my position.

does this thread help?

http://forum.virtuemart.net/index.php?topic=100480.0
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 30, 2012, 23:42:40 PM
I really appreciate your help, but I am am having no luck at all, with this new format these tasks which used to be so simple just seem to be mind bendingly difficult.

I tried my best to follow the steps, but at the end I wound up getting a bunch of errors

'Warning: Invalid argument supplied for foreach() in /path-to-site/plugins/vmcustom/stockable/stockable.php on line 187

it still does not appear that you can have a parent without a price with the children orderable....

this is a nightnmare... it used to be soooo easy

has anyone else manage to get this to work?
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 31, 2012, 02:25:45 AM
Quotedoes this thread help?

it appears that HG as well cannot replicate the basic parent / child functionality from VM 1.1 (see thread http://forum.virtuemart.net/index.php?topic=100480.0 )

with his technique you cannot have the parent as a 'shell' with no price & the children being the actual products you order as in VM 1.1 (parent must have price or child products do not appear in VM 2)

also you cannot simply put the price of the child product, you must make your potential customers do math to figure out your pricing

(parent product $1.37, child product is displayed as '+$2.68' client has to figure out on their own that the cost is $4.05)

whereas in VM 1.1 you could simply say 'child product name + attribute + price' in the dropdown.

If none of that is a concern then HG`s technique is great, unfortunately I have built several VM 1.1 shops which I need to switch to a cart which runs on joomla 2.5 & downgrading the basic display/functionality of these sites will be unacceptable to my clients.
Title: Re: Attributes/Custom Fields Thread
Post by: phonky on March 31, 2012, 10:05:14 AM
OK, so first of all thanks for all the great work done on this. I was starting to write a whole cart and ordering app from scratch...

I have been asked to update a pizza shop to provide online ordering.
It is running on joomla1.5 so I'll probably want to stick to that to not complexify my life further :)

Now, I am creating pizzas as products.
We need to provide the user the possibility to choose additional ingredients.
So I created custom fields, and instinctively created them as boolean type.

However, when I look at my pizza, the options appear fine, but there is only one radio saying "Yes" and it is preselected.
I can't see no way to deselect the option.
I need to be able for the user to select/deselect the ingredient / custom field.

How to do that? Is that a bug for the boolean custom field, or should I use something else?
thanks
Title: Re: Attributes/Custom Fields Thread
Post by: jenkinhill on March 31, 2012, 17:52:43 PM
Quote from: phonky on March 31, 2012, 10:05:14 AM
It is running on joomla1.5 so I'll probably want to stick to that to not complexify my life further :)

You need to think seriously about that. J1.5 goes end of life in 3 weeks time, with the possibility (not confirmed) that there may be security updates for critical issues only until September this year. After that you will be on your own.
Title: Re: Attributes/Custom Fields Thread
Post by: phonky on March 31, 2012, 19:31:12 PM
jenkinhill, thanks for your consideration.

Thing is, I am taking over a project someone else did a few years ago to extend the pizza shop with an online ordering option.
I have worked in php and used other CMS, but it's my first project in joomla.
And I have enough experience to know what it means to do a migration from a 1.5 to a 2.5 -rarely things just work out of the box.
I already checked the guide for upgrading. For example, my project is using CKForms, for which apparently there's no 2.5 version...
That holds me back to even try.
So lots of variables I am not willing to touch - also because I have been contracted to do the online ordering part, not a full upgrade...

I might need to talk to the client though and tell them.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on March 31, 2012, 20:08:05 PM
if all you are being paid to do is add ordering to a joomla 1.5 site you should perhaps think about using vm 1.1

I have several clients in the same position, a couple have asked me to upgrade to vm 2.0 - and after several weeks I am still not able to get the basic functionality of vm 1.1 working in vm 2 - there are several people here with the same problem

see for example this thread (which if you can get it working will actually solve your problem - but I am not alone in having zero success)

http://forum.virtuemart.net/index.php?topic=100480.new#new

-bottom line if you are going to try to get a vm2 shop going get paid for the upgrade (and factor in a lot of ARGHHH time)
-if they won `t pay for the upgrade vm 1.1 is sooooo much easier / bugfree - and at a later (more mature) time you can do the upgrade when absolutely neccessary.

I still have clients using joomla 1.0 / vm 1.0 & they are in no hurry to upgrade (if it aint broke why fix it? is their attitude)
Title: Re: Attributes/Custom Fields Thread
Post by: webdesignforyou on March 31, 2012, 22:16:42 PM
Hello,

i am having a little trouble with my custom field wondering if you could help. i am getting an error message like this; Warning: Missing argument 4 for plgVmCustomStockable::plgVmOnViewCart() in /homepages/40/d376259668/htdocs/fightstore/plugins/vmcustom/stockable.php on line 345

when i try and add a field for sizes. please help :-)
Title: Re: Attributes/Custom Fields Thread
Post by: phonky on April 01, 2012, 00:15:13 AM
dsrpmedia: this is a very good response, thank you very much!

I will approach the client and let her decide, that is the cleanest way.
If they do not want to do pay for the upgrade, I will stick to vm1.1

Thanks again!
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 01, 2012, 01:46:44 AM
glad to help 8)
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 01, 2012, 02:33:46 AM
Quotei am having a little trouble with my custom field wondering if you could help. i am getting an error message like this; Warning: Missing argument 4 for plgVmCustomStockable::plgVmOnViewCart() in /homepages/40/d376259668/htdocs/fightstore/plugins/vmcustom/stockable.php on line 345

Myself & a couple others are having a similar issue - there is a thread where we are discussing it here http://forum.virtuemart.net/index.php?topic=100480.new#new

Title: Re: Attributes/Custom Fields Thread
Post by: PRO on April 01, 2012, 02:38:55 AM
Quote from: dsrpmedia on April 01, 2012, 02:33:46 AM
Quotei am having a little trouble with my custom field wondering if you could help. i am getting an error message like this; Warning: Missing argument 4 for plgVmCustomStockable::plgVmOnViewCart() in /homepages/40/d376259668/htdocs/fightstore/plugins/vmcustom/stockable.php on line 345

Myself & a couple others are having a similar issue - there is a thread where we are discussing it here http://forum.virtuemart.net/index.php?topic=100480.new#new




Try the latest version of the file here
https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart//plugins/vmcustom/stockable/

MAKE: sure to backup that file before replacing
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 01, 2012, 02:54:37 AM
I am still getting my error

'Warning: Invalid argument supplied for foreach() in /path-to-site/plugins/vmcustom/stockable/stockable.php on line 187'

-------------------------------------------------------------------------------------------------------------------
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 01, 2012, 03:18:00 AM
QuoteI am still getting my error

'Warning: Invalid argument supplied for foreach() in /path-to-site/plugins/vmcustom/stockable/stockable.php on line 187'

Steps I have done to get there

fresh joomla 2.5.3 install
fresh VM 2.0.3.H install

installed the sample data

went to 'Custom Fields' (under 'Products')
selected 'New'


Custom Field Type: Plugins
Title - I used ' Additional Sizes'
Published - Yes
Parent - please select
Cart Attribute - Yes
Description - blank
Default   - blank
Tooltip   - blank
Layout position - blank
Admin only - no
Is a list? - no
Hidden - no
Select a plug-in: VM Custom stockable variants

save

then under
'Option name' i put 'Sizes'

15ml
30ml
60ml

save
save & close

go  to 'Products'

I chose "ladder" (parent of Metal Ladder, Wooden Ladder, Plastic Ladder in the standard sample products installed)
go to 'custom fields' in the product details page

under Custom Field Type: I choose 'Additional Sizes' (the custom Attribute I created in step 1)

save

here what is apparently supposed to happen is the child products are supposed to load, and I can then map the child to the custom attribute option.

but what actually happens is I get a message 'Please, add new child product! Thereafter you can select the option for each product' with the option to add children (see attched)

if I try to add a new product I am told I did - but no product is actually created

then I get that error message in the front



[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: cmalo on April 07, 2012, 18:16:51 PM
I am getting the error :
Invalid argument supplied for foreach() in /plugins/vmcustom/stockable/stockable.php on line 187

someone knows what this could be?
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on April 08, 2012, 11:54:59 AM
How has the product parent/child been set up?

The line referenced is:


foreach($field->child as $child_id => &$attribut) {


So it looks like $field->child hasn't been set up for some reason.
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on April 08, 2012, 13:28:00 PM
Quote from: openglobal on April 08, 2012, 11:54:59 AM
How has the product parent/child been set up?

The line referenced is:


foreach($field->child as $child_id => &$attribut) {


So it looks like $field->child hasn't been set up for some reason.
Actually this error only happens on certain servers.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 08, 2012, 19:51:13 PM
QuoteActually this error only happens on certain servers.

I`ve tried setting up VM 2 on 2 different hosts - GoDaddy & GreenGeeks - & encountered the same issue on both servers, so I think the problem must be fairly widespread
Title: Re: Attributes/Custom Fields Thread
Post by: corymp on April 08, 2012, 22:04:59 PM
And I get the same error on 1and1. But I don't get the error on zend server that  I installed locally.
Title: Re: Attributes/Custom Fields Thread
Post by: thomaska on April 10, 2012, 10:31:42 AM
Well after a week of being trying to find a solution in my problems with custom fields i would like to say that nothing works as i was expecting too.
I am developing an eshop and there is a simple requirements. Some of the products has different colors and different strength in ml. For some of them i have to add additional cost. Suppose that i have an item which has two colors, Black and Silver, and for the Silver color i would like to add additional cost of 2 euros. The requirement is also these two colors must be stockable. What i tried?

1. Cart Variant: It works as a drop down, without child products, it has the additional cost but it does is not stockable. So a customer can submit for a product color that it is not in stock.
2. Child Variant: It works as a drop down, with child products, it has the additional cost and it is stockable. The problem is that in the drop down box, the parent product appears, which is not for sale because it is the parent product and the customer must choose a color. In case i will unpublish the parent or make it stock unavailable the in the products category either does not appears (in case of unpublished) or it says that it is not in stock which is wrong. Then i tried to make the parent item, as the first child item. Again there is a problem when the parent item (suppose the black) will be out of stock. In the products category will be as out of stock which is wrong because the silver color is in stock.
3. Stockable Variant. It works as i was expecting, dropdown with the available colors, a dropdwn item is dissaperaed when the child item is out of stock, everything was fine except one. It has a text box with additional cost. As soon as the customer adds the product to the cart this additional cost is calculated. What i want? To be visible in the dropdown also next of the color. In order for the customer to know for the additional cost. Now, it does not show anything.

I believe that if the dropdown shows the additional cost also with the color name, it will be great. Any suggestions where that dropdown is filled and how to add next to the description the additional cost?

Best Regards

Thomas
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on April 13, 2012, 15:10:27 PM
Quote from: openglobal on March 02, 2012, 10:29:02 AM
This is definitely a bug.

I've created a main product with three child products. Only one of the child products has any stock.

If the config is set to "Products Out of Stock are orderable, no special action", then everything is fine.
If the config is set to "Do not Display Product", then the main product is not shown at all and access the page manually gives a 404 error.
If the config is set to "Displays 'Notify Me' instead of 'Add To Cart' button" then I get an Add to Cart button still but the out of stock products are missing from the drop down.

Can someone tell me what test framework is being used for Virtuemart because whatever it is needs changing. This is basic FVT stuff which shouldn't be getting to beta level products let alone fully released versions.

As of 2.0.5, nothing has changed in the (dis)functionality. Is anyone working on this?

It seems that the one thing that the stockable variants aren't.....is "stockable"

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on April 13, 2012, 16:27:09 PM
Quote from: openglobal on April 13, 2012, 15:10:27 PM
If the config is set to "Do not Display Product", then the main product is not shown at all and access the page manually gives a 404 error.

From just looking at the code at this stage, it looks like the problem for this bug lies at line 250 of /administrator/components/com_virtuemart/models/product.php:


if($app->isSite() && !VmConfig::get('use_as_catalog',0) && VmConfig::get('stockhandle','none')=='disableit' ){
$where[] = ' p.`product_in_stock`>"0" ';
}


If we're using stockable variants, we're not interested in the parent stock level, just the child. For any other type of variants, we'll be interested in either, or both. This line needs to change.


if($app->isSite() && !VmConfig::get('use_as_catalog',0) && VmConfig::get('stockhandle','none')=='disableit' ){
$where[] = ' (p.`product_in_stock`>"0" OR children.`product_in_stock` > "0") ';
}


And we need to add another outer join for the child variants (line 413):


$joinedTables .= ' LEFT OUTER JOIN `#__virtuemart_products` children ON p.`virtuemart_product_id` = children.`product_parent_id` ';


This gets the product_ids but then the out of stock parents are rejected again at line 528:


if($app->isSite() && VmConfig::get('stockhandle','none')=='disableit' && ($child->product_in_stock-$child->product_ordered)<=0){
vmdebug('STOCK 0',VmConfig::get('use_as_catalog',0), VmConfig::get('stockhandle','none') , $child->product_in_stock);
return false;
}


I'm not sure yet how to get around this bit. Does the stock check need to be done twice? Can this block in getProduct just be commented out?

In this specific case, this check is redundant. Are there any other instances where the getProduct() function will receive a product_id that hasn't already been stock checked? If so, we'll need to come up with some way of checking the child variant stock here too.

OpenGlobal


*Mod note Combined Posts by BTP*

Bingo! Got it!

If necessary, we can update the product_in_stock variable with the true value in getProductSingle() around line 676:


$q = 'SELECT SUM(children.`product_in_stock`) + p.`product_in_stock` FROM `#__virtuemart_products` p LEFT OUTER JOIN `#__virtuemart_products` children ON p.`virtuemart_product_id` = children.`product_parent_id`
WHERE p.`virtuemart_product_id` = "'.$this->_id.'"';
$this->_db->setQuery($q);
// change for faster ordering
$product->product_in_stock = $this->_db->loadResult();



Are any Devs reading this thread to get this code (or similar) into the next release?

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on April 13, 2012, 16:39:51 PM
Bingo! Got it!

If necessary, we can update the product_in_stock variable with the true value in getProductSingle() around line 676:


$q = 'SELECT SUM(children.`product_in_stock`) + p.`product_in_stock` FROM `#__virtuemart_products` p LEFT OUTER JOIN `#__virtuemart_products` children ON p.`virtuemart_product_id` = children.`product_parent_id`
WHERE p.`virtuemart_product_id` = "'.$this->_id.'"';
$this->_db->setQuery($q);
// change for faster ordering
$product->product_in_stock = $this->_db->loadResult();



Are any Devs reading this thread to get this code (or similar) into the next release?

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: Studio 42 on April 13, 2012, 17:43:53 PM
Hi,
Zip your file and post it(attach). it's more clear, because some line change from one release to another and we can do a file compare to see the changes you made.
If this is a right solution we try add it in virtuemart.
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on April 13, 2012, 18:48:07 PM
Attached.

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 13, 2012, 18:56:08 PM
QuoteIf this is a right solution we try add it in virtuemart.

I`m not sure I`m quite following - this will allow us to have parent products as a template (not orderable, not in dropdown) and the children as the actual products? (like in VM 1.1 - which was AWESOME)
Title: Re: Attributes/Custom Fields Thread
Post by: Studio 42 on April 13, 2012, 21:14:50 PM
forgot VM1.1, can be this display the same but the method is not same.
Sure for now the gui is a little to enchance but the code is only 1 year old, Vm1.1 was herited from 8 year dev.
BUt i found you can do more then vm1.1 but it's only not finish in some case. And many enchancement are simply not "visible".
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 13, 2012, 22:04:35 PM
I guess

I`m trying very hard not to be tooo bitchy, but it does get frustrating.

I `ve been trying for several weeks now to replicate a basic vm 1.1 site with parents/children etc & as far as I can tell - and from what I`ve been able to discover spending time every day in the forums is that it`s just not possible - so I have several sites I cannot upgrade from joomla 1.5 to 2.5 because there is not a viable ecommerce option.

see this page http://nutrawholesale.com/nutra-organic-plant-acids-opa/2-step-anti-flu-program?page=shop.product_details&flypage=flypage_default.tpl&product_id=27&category_id=43

do you think you could replicate in vm 2.0?

main points:
-parent has no price /  cannot be added to cart
-child has to be selected before the 'add to cart' option is available
- child product name + attribute (size) + price are all included in the drop down (parent is not in drop down)

----------------------------------
also, in many cases (every host I have tried) the stockable variants plugin (as limited as it is) causes errors & does not work.

when I load the site locally the plugin works but I get weird anomalies like the price in the cart being different than the price on the product page (eg on the order page it is 48.00 + tax, in the cart it shows up as 59.00 + tax) etc.

& I haven `t even gotten to the next level (shipping, taxes order email etc) - can `t wait to see what I find there
-----------------------------------

If you could make 1 sample product (parent with children) work as described on godaddy
- even just a clean joomla 2.5.4 install with sample data only, and a clean vm 2.0.4 install sample data only - say the 'ladder' and it`s children

I would gladly pay you for your time
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on April 13, 2012, 22:25:36 PM
I agree.  You combine software that is complex and extemely difficult to use, coupled with numerous bugs and weekly updates and it is almost impossible to know where the dividing line is between "difficult to configure" and "just plain broken".  I can afford to wait a few more months to find out which it is, but it has been an inauspicious beginning.
Title: Re: Attributes/Custom Fields Thread
Post by: jjk on April 13, 2012, 23:06:11 PM
Quote from: dsrpmedia on April 13, 2012, 22:04:35 PM
main points:
-parent has no price /  cannot be added to cart
-child has to be selected before the 'add to cart' option is available
- child product name + attribute (size) + price are all included in the drop down (parent is not in drop down)

In your case I would just create one parent including the attribute and price and one child product into which you only need to enter the title (what you want to see in the dropdown) and the price. Attach a custom field labled "Please select an item" which is set up as 'Generic custom variant" to both. The result will be an automatically generated dropdown selection of your two product variants in the product details page.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 13, 2012, 23:21:50 PM
Quote
In your case I would just create one parent including the attribute and price and one child product into which you only need to enter the title (what you want to see in the dropdown) and the price. Attach a custom field labled "Please select an item" which is set up as 'Generic custom variant" to both. The result will be an automatically generated dropdown selection of your two product variants in the product details page.

couple questions
- are these 'Generic custom variants' stockable?
-would this parent have the price on the main page / be addable to the cart, or could it be set so that you had to choose one of the children?
- so the child product name would have to include the price?
(if so then wouldn `t the price be displayed twice once the child product was selected?)
-I would have to create a custom field set for every product?  ( I was rather hoping to be able to have some preset custom fields - one for products that come in 10ml, 15ml, 30ml, another for products that com in 100g 200g 500g etc)
Title: Re: Attributes/Custom Fields Thread
Post by: bunglehaze on April 16, 2012, 12:15:25 PM
I too am having difficulty with custom fields which is getting hugely frustrating now as a large section of my site has effectively been broken since v2.0, initially I migrated to the new version and had to re-input prices for each attribute, annoying but no dealbreaker, essentially though I could set a zero price for the parent product and then a set price per variant in the custom fields - this is a very basic requirement for ANY e-commerce shop and I am gobsmacked it is still not working.

As far as I can see I cannot have an absolute price for each of my variant's in the product, I have to setup a rate for the product and then +/- price for each variant, if I set a zero rate the products prices are all hidden. I first reported this issue after updating to one of the development releases between 2.0 and 2.0.1.

If any of you guys know of a way that makes this work as it should (ie in the very much working 1.1) I would be grateful, I am all for software being developed differently but missing out key functions is plain stupid.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 16, 2012, 18:27:50 PM
I hear you bunglehaze - it is astonishing to me that they did not think to give vm 2.0 the ability  to replicate a vm 1.1 site.



Title: Re: Attributes/Custom Fields Thread
Post by: Steo on April 17, 2012, 13:33:36 PM
I'm experiencing a big problem since I updated from VM 2.0 to 2.0.4.
I'm selling pictures printed on canvas, and for each product i have 16 custom sizes eaxh one with a price modificator.

If with the previous version I was easily able to set this thing up from the back end, now i'm not anymore

In the back end, when trying to add custom sizes with price modificator as I use to, nothing happen, no new field is created.
I tried also creating plug-in, but same problem.
I can create the rule, but when i go to apply it to the product, can't anymore

Here is the link of what I want to achieve: http://www.annybarlowimages.com/test/collections/my-favorites/colorfulvisions-shop

And I attach a back-end picture of this product (with all the custom fields)

Please help
Joomla 1.7
VM 2.0.4
Mac
Firefox

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 17, 2012, 19:21:46 PM
Join the club Steo

your link - is it a vm 2.0 site?
are those children products stockable?
Title: Re: Attributes/Custom Fields Thread
Post by: Steo on April 17, 2012, 20:42:39 PM
Quote from: dsrpmedia on April 17, 2012, 19:21:46 PM
Join the club Steo

your link - is it a vm 2.0 site?
are those children products stockable?

VM 2.0.4

I don't hold any stock
Title: Re: Attributes/Custom Fields Thread
Post by: [n]atalie on April 18, 2012, 23:51:40 PM
I haven't been able to find an answer for this so I'm hoping someone can help or link me to the proper documentation.

In VM 1 when you had an attribute you could do +/-5 to add/subtract $5 to/from the price if the option was selected, which still seems to work fine, but there was also an option to write =5 which would change the base price of the item to $5. I this option still available? Maybe the syntax is just different?

Any help would be really appreciated.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on April 18, 2012, 23:58:56 PM
no, another awesome feature from VM 1.1 which seems to have been removed
Title: Re: Attributes/Custom Fields Thread
Post by: gothamcity on April 25, 2012, 23:32:12 PM
Hi all,
I'm a complete Newby and like many of yours I tried for days to find out a solution to deal with the product variants in VM2 (2.0.6 exactly). I read tons of posts/threads read people attacking Milbo who is doing a great job, in my opinion.
As you see it's my firt thread, but as I finally found a solution for my shop; I loved to give somethin back to the community.

So, what was my issue?
My shop has products with different scopes of supply (e.g. you have the basic product, a shovel (set A), another option with the shovel and a spare handle (set B)).
What I wanted was
a) a drop-down in the add-to-cart area that refreshes the price depending on the option chosen
b) as my sets have different SKUs I needed the SKU to be taken into the shopping cart (and the invoice later on), as otherwise order processing would be difficult

1) Solution A: a cart variant.
(+) easy to set up
(+) price refreshes
(-) only works with extra price for the option (so, e.g. Set B comes with an extra of +5 EUR)
(-) the only possibility to take over the SKU to the cart would be to manually type the SKU in the cart variant Field. As a result both SKUs (the SKU of the parent + the cart variant text) would show up in the cart overview (which is confusing)

2) Solution: Generic Child Variant.
First you create the child. open the "shovel" product, go to product details and create the child product. For the child product, which I named "shovel with extra handle", I put the separate SKU and the separate price (the full price, not an additional price like in the shopping cart variant).
Then you go to custom fields, create a generic child variant (published: yes, cart attribute: yes, admin only: no, list: no, hidden: no).
Go to your parent product and add the generic child variant field. Save.

Result:
(+) Options are shown in drop down
(+) page and price refreshes when different options are chosen
(+) SKU of the variant and separate price is taken to shopping cart
(-) almost perfect, however, when changing the options in the dropdown to "shovel with spare handle" it shows the product details of the child with the title "shovel with spare handle" (as the values in the drop down menu for generic child variants is the product title) which I didn't want. I wanted just "shovel", so the name of the parent to be displayed for both, child and parent.

The solution to this is basically a hack in the product details view, which displays a custom string (which will be "shovel") for all child products. I found this nice explanation how to do it (thanks mowgs!): https://forum.virtuemart.net/index.php?topic=90833.170;wap2

As said, I'm a complete beginner and I managed to do it. Fo me it does what it should, and i am SOOOO HAPPY that I finally found a solution. Maybe it helps you as well.

Best
Title: Re: Attributes/Custom Fields Thread
Post by: gothamcity on April 25, 2012, 23:57:03 PM
Hi mowgs,
thank you so much, your post with the overwrite really helped a lot!!! I have been searching for ages to find a solution to set up generic child variants to work this way.
I think it would help a lot of users to take this further and implement basically a shell parent - I am quite sure it in principle works with your overwrite. I created a parent with child products, did not publish the parent and assigned the category to one child. However, in the "category view" now the child title is being displayed (of course).
I see the default php of the category has
<h2><?php echo JHTML::link($product->link, $product->product_name); ?></h2>
in it. I have to admit I am a complete beginner (especially php), it would be very nice if you could give me a hint how to adapt your code to also work for the category view. I already tried several times, but I could not find out how to set the second parameter of the link to display the custom title.

Best
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on April 26, 2012, 07:16:23 AM
I believe I have the Generic Cart Variants working. Are there any bugs I should know about? Here is the site I am currently working on. Planning to setup paypal sandbox tomorrow so I can do test ordering to see if stock gets reduced. If that works, then I just have a ton of formatting changes to make.

http://www.likdancewear.com/component/virtuemart/4-1-2-heel.html
Title: Re: Attributes/Custom Fields Thread
Post by: bunglehaze on April 26, 2012, 11:03:14 AM
Quote from: gothamcity on April 25, 2012, 23:32:12 PM
Hi all,
I'm a complete Newby and like many of yours I tried for days to find out a solution to deal with the product variants in VM2 (2.0.6 exactly). I read tons of posts/threads read people attacking Milbo who is doing a great job, in my opinion.
As you see it's my firt thread, but as I finally found a solution for my shop; I loved to give somethin back to the community.

So, what was my issue?
My shop has products with different scopes of supply (e.g. you have the basic product, a shovel (set A), another option with the shovel and a spare handle (set B)).
What I wanted was
a) a drop-down in the add-to-cart area that refreshes the price depending on the option chosen
b) as my sets have different SKUs I needed the SKU to be taken into the shopping cart (and the invoice later on), as otherwise order processing would be difficult

1) Solution A: a cart variant.
(+) easy to set up
(+) price refreshes
(-) only works with extra price for the option (so, e.g. Set B comes with an extra of +5 EUR)
(-) the only possibility to take over the SKU to the cart would be to manually type the SKU in the cart variant Field. As a result both SKUs (the SKU of the parent + the cart variant text) would show up in the cart overview (which is confusing)

2) Solution: Generic Child Variant.
First you create the child. open the "shovel" product, go to product details and create the child product. For the child product, which I named "shovel with extra handle", I put the separate SKU and the separate price (the full price, not an additional price like in the shopping cart variant).
Then you go to custom fields, create a generic child variant (published: yes, cart attribute: yes, admin only: no, list: no, hidden: no).
Go to your parent product and add the generic child variant field. Save.

Result:
(+) Options are shown in drop down
(+) page and price refreshes when different options are chosen
(+) SKU of the variant and separate price is taken to shopping cart
(-) almost perfect, however, when changing the options in the dropdown to "shovel with spare handle" it shows the product details of the child with the title "shovel with spare handle" (as the values in the drop down menu for generic child variants is the product title) which I didn't want. I wanted just "shovel", so the name of the parent to be displayed for both, child and parent.

The solution to this is basically a hack in the product details view, which displays a custom string (which will be "shovel") for all child products. I found this nice explanation how to do it (thanks mowgs!): https://forum.virtuemart.net/index.php?topic=90833.170;wap2

As said, I'm a complete beginner and I managed to do it. Fo me it does what it should, and i am SOOOO HAPPY that I finally found a solution. Maybe it helps you as well.

Best


I dont think any of us are attacking Milbo actually, the devs have put a lot of work into remaking VM into a new version which is commendable, BUT when massive sections of the software have had catastrophic failures and errors from the first stable release it is expected that those of us who adopted early, helped find bugs etc are going to feel let down at certain aspects. In this case the old version of VM had a pretty basic functionality that most ecommerce sites use, the first iteration of VM2 needed things altering, but then used it just fine and then all of a sudden in the third or 4th stable release 'bugfix' the functionality disappears.

Not only is this frustrating, but in a lot of cases it is a site breaker. In order to make my site work again I have to totally redevelop huge sections, then following on from the way these simple bugfixes have massively altered functionality (remember we are supposed to be stable) there is no guarantee that the original, preferred function is made to work again and the version I spent so much time switching to breaks.

No doubt there is a way to make the cart variant work, but it is not the way we have already setup based on VM2 and rebuilding an existing site can and does take a while.
Title: Re: Attributes/Custom Fields Thread
Post by: mowgs on April 26, 2012, 13:24:12 PM
Quote from: gothamcity on April 25, 2012, 23:32:12 PM
Hi all,
I'm a complete Newby and like many of yours I tried for days to find out a solution to deal with the product variants in VM2 (2.0.6 exactly). I read tons of posts/threads read people attacking Milbo who is doing a great job, in my opinion.
As you see it's my firt thread, but as I finally found a solution for my shop; I loved to give somethin back to the community.

So, what was my issue?
My shop has products with different scopes of supply (e.g. you have the basic product, a shovel (set A), another option with the shovel and a spare handle (set B)).
What I wanted was
a) a drop-down in the add-to-cart area that refreshes the price depending on the option chosen
b) as my sets have different SKUs I needed the SKU to be taken into the shopping cart (and the invoice later on), as otherwise order processing would be difficult

1) Solution A: a cart variant.
(+) easy to set up
(+) price refreshes
(-) only works with extra price for the option (so, e.g. Set B comes with an extra of +5 EUR)
(-) the only possibility to take over the SKU to the cart would be to manually type the SKU in the cart variant Field. As a result both SKUs (the SKU of the parent + the cart variant text) would show up in the cart overview (which is confusing)

2) Solution: Generic Child Variant.
First you create the child. open the "shovel" product, go to product details and create the child product. For the child product, which I named "shovel with extra handle", I put the separate SKU and the separate price (the full price, not an additional price like in the shopping cart variant).
Then you go to custom fields, create a generic child variant (published: yes, cart attribute: yes, admin only: no, list: no, hidden: no).
Go to your parent product and add the generic child variant field. Save.

Result:
(+) Options are shown in drop down
(+) page and price refreshes when different options are chosen
(+) SKU of the variant and separate price is taken to shopping cart
(-) almost perfect, however, when changing the options in the dropdown to "shovel with spare handle" it shows the product details of the child with the title "shovel with spare handle" (as the values in the drop down menu for generic child variants is the product title) which I didn't want. I wanted just "shovel", so the name of the parent to be displayed for both, child and parent.

The solution to this is basically a hack in the product details view, which displays a custom string (which will be "shovel") for all child products. I found this nice explanation how to do it (thanks mowgs!): https://forum.virtuemart.net/index.php?topic=90833.170;wap2

As said, I'm a complete beginner and I managed to do it. Fo me it does what it should, and i am SOOOO HAPPY that I finally found a solution. Maybe it helps you as well.

Best

Thanks GothamCity - It was all corymp's work, I just linked to it???

Things are starting to get working now for some people, just the stockable bit thats causing problems!
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on April 26, 2012, 17:16:20 PM
Spyderwebdesign, I like the look of your test site.  I like the help menu and may use it as a model for my own site. 

Bunglehaze, I agree, with you.  Atrributes/custom fields is the "achilles heel" of the new VM.  It is over the top complex layered with numerous bugs so that I have been stymied in my attemopts to really evaluate this feature.  My conslusion so far is that it is a complete dud and should be preority one for re-working by the development team.  It is the largest obstacle i can see in transitioning my live site to the new platform.  Ironically, I have had the best luck using the "dropbox" plugin written by Banquest Table Pros.

I appreciate the work you guys are doing.  I hope it will help lead me to a solution down the road.
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on April 26, 2012, 17:22:40 PM
Quote from: Bruce Morgan on April 26, 2012, 17:16:20 PM
Spyderwebdesign, I like the look of your test site.  I like the help menu and may use it as a model for my own site. 

Thank you. Feel free to use anything you like from my site and feel free to ask any questions.
Title: Re: Attributes/Custom Fields Thread
Post by: bambarbia on April 27, 2012, 01:41:05 AM
Good evening to everybody.

I also met this annoying 'feature' in VM 2 today, when I was needed to create parent+several children products, where each of relatives has different custom fields.
So when I found out that after going to child product from the parent's generic child list, there were no more other 'families'  :-\

VM crew making their best for sure. Let's don't blame them ;)

I made core hack before they will add this functions in future. My VM version is 2.0.4.

Steps (some comments in code):
1. Changes in administrator\components\com_virtuemart\models\customfields.php

// line 571 from:
public function getProductCustomsFieldCart($product) {
// to
public function getProductCustomsFieldCart($product, $relatives = false) {

// line 673 from:
$group->display .= $this->displayType($productCustom->custom_value,$group->field_type,0,'',$row,1) ;
// to:
if($relatives) return $this->displayType($productCustom->custom_value,$group->field_type,0,'',$row,1);

// added after line 755:
return count($uncatChildren) > 1 ? $uncatChildren : '';


2. Changes in administrator\components\com_virtuemart\models\product.php

// right after line 661 added:
$product->relatives = $customfields->getProductCustomsFieldCart($product, true);

// line 1534 query fix - from:
$q = 'SELECT * FROM `#__virtuemart_products` as p

// to (for me it's enough to have only this):
$q = 'SELECT virtuemart_product_id, product_name FROM `#__virtuemart_products` as p

// and the last one for core - after line 1560 (here we adding to our array images and links of products):
$mediaModel = VmModel::getModel('Media'); // *** OPTIONAL ***
$i = 0;
foreach($res as $v){
$res[$i]["images"] = $mediaModel->getFiles(true, false, $v["virtuemart_product_id"]); // *** OPTIONAL ***
$res[$i]["link"] =  'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id='.JFactory::getSession()->get('vmlastvisitedcategoryid', 0, 'vm').'&virtuemart_product_id='.$v["virtuemart_product_id"];
$i++;
}


*** OPTIONAL *** - only if you need pictures\thumbs of the products. Remove for more perfomance.

Now we can use $product->relatives array in our views. You can see contents of it by using php print_r function.
For example add this code somewhere in views\productdetails\tmpl\default_addtocart.php :
print_r($this->product->relatives);
It'll be easy now to make any kind of buttons\dropdown lists etc.

That's all, I guess, hope you'll find it helpful ;)
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on April 27, 2012, 02:11:08 AM
Not really sure what you have done here.  Do you have a live site where we can see what you have done?  If not a few screen shots would be great.
Title: Re: Attributes/Custom Fields Thread
Post by: bambarbia on April 27, 2012, 13:42:38 PM
Sorry, can't give live example site right now, but can describe it more detailed.

This changes will give you ability to switch between parent and its child product(s) even if child product(s) has\have their own custom fields which differs from parent fields (i.e. "Overwrite plugin values of the parent" in product's tab "Custom Fields" must be checked).

Attached some screenshots, this is after working a bit with $this->product->relatives Array in default_addtocart.php.


[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: Bruce Morgan on April 27, 2012, 16:52:57 PM
Still has me a little confused.  The two images look quite similar and if the frst one is a child should'nt it be either metal plastic or wood?  It seems that you could click the add to cart button and the material type would not be specified.  Are satisfied with the modification you have made?
Title: Re: Attributes/Custom Fields Thread
Post by: bambarbia on April 27, 2012, 17:26:15 PM
They are similar because of no page styling. I thought it's enough understandable :-\

Each link leading to the product flypage, as if you were selecting from usual dropdown list, i.e. ladder little image above "Add to cart" (it's image link, because I write code in default_addtocart.php for rendering images of products, if they exist, instead of just text links), and other 3 links (Wooden, Plastic, Metal) to the child products (they don't have images, so only text links).

Yes, I'm quite satisfied :)
Title: Re: Attributes/Custom Fields Thread
Post by: leFlea on April 28, 2012, 01:36:48 AM
Great things happening on this thread!

@bambarbia, with your hack can we do this?

ex. I have one t-shirt type, offered in different sizes for each color. I wan't to track inventory for each color and size but I only want them in a single product page (meaning one entry in category view). Each product attribute must be a drop down menu.

Product: Round Neck T-Shirt
Color Variants:
1. White, available in size: XXL, XS, S, M, L, XL, XXL
2. Black, available in size: XXS, XS, S, M, L, XL, XXL
3. Red, available in size: XS, S, M, L, XL
4. Blue, available in size: XS, S, M, L, XL
5. Purple, available in size: S, M, L
6. Green, available in size: L
Title: Re: Attributes/Custom Fields Thread
Post by: bambarbia on April 28, 2012, 02:37:53 AM
Yes, theflea, you can do this with this hack ;) It won't be AJAX (I think it's easy to add, but not required in my current project, so I skipped this for now), like in default VM1 theme, but it will be possible to switch between parent and its children (children will be uncategorized, so category view will show only parent).

P.S. If you want to track inventory separately for color and inventory for 1 product (product or child doesn't matter), I mean, for example:
T-Shirt - White, available in size: XXL(3 in stock), XS(6 in stock), S(don't have now, give us email to inform when we'll) and so on. So we don't show how many white T-Shirts we have, because it's not important, but their sizes instead.
It's more complex and not possible to do this in 1 product without adding this functionality to core  (as I know, maybe I just missed something) or use some trick with custom fields. Btw, using Custom Fields Plugin - stockable variants is not a solution in this case, a little bit "dirty" game for me  ;)
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on April 29, 2012, 00:07:47 AM
Quote from: corymp on March 20, 2012, 11:06:24 AM
/templates/yourtemplate/html/com_virtuemart/category/default.php

I do not have the folder com_virtuemart/ in /templates/yourtemplate/html/ Did you custom make that? I am scared that if I make changes in the category/default.php that I will lose them when vm updates.

My goal is to remove the Parent item from the first item in the drop down list and replace with "Please choose a size".
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on April 29, 2012, 00:18:29 AM
I am pretty close everyone. Since the stockable variants don't work correctly yet, I used Generic Child Variants. I need to allow the user to select size and color. I decided to make each color option for the style its own product. Then I used the Size as the Generic Child variant.

If you have any questions, feel free to ask, but this method seems to work.

I just need to replace the parent item that is listed as the first option in the drop down menu with "Choose a size".

Here is a sample page.
http://www.likdancewear.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=5893&virtuemart_category_id=146
Title: Re: Attributes/Custom Fields Thread
Post by: mowgs on April 29, 2012, 14:42:05 PM
Quote from: spyderwebdesign on April 29, 2012, 00:18:29 AM
I am pretty close everyone. Since the stockable variants don't work correctly yet, I used Generic Child Variants. I need to allow the user to select size and color. I decided to make each color option for the style its own product. Then I used the Size as the Generic Child variant.

If you have any questions, feel free to ask, but this method seems to work.

I just need to replace the parent item that is listed as the first option in the drop down menu with "Choose a size".

Here is a sample page.
http://www.likdancewear.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=5893&virtuemart_category_id=146

Thats getting somewhere! - Thanks for that, I take it you have size 5 out of stock and the rest in stock? - is it updating the stock count when items are ordered?

Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on May 01, 2012, 05:41:15 AM
yes size 5 is out of stock and I will to test the stock count for you. I don't need vm to track the stock because I have a cron job that imports the new stock count from the manufacture ever single hour.
Title: Re: Attributes/Custom Fields Thread
Post by: quadbsys on May 01, 2012, 21:16:04 PM
Quote from: virtue111 on November 04, 2011, 21:54:18 PM
Originally posted this here: http://forum.virtuemart.net/index.php?board=132.0 but if we get an answer we will put it here, vice versa:

We would like to make a custom field, with a preset of selections that will come with it. For simple sake let's say we want to make a "Color" variant, and have the options of "Red" "blue" and "green".

I have figured out how to get the Color attribute to show up on the product, and then I can type in "Red", "Blue", and "Green" into the Ajaxy fields. But we have a ton of products and don't want to have to go in and type them all manually.

Is there anyway to make "Color" a parent, and make "Red" "Blue" and "Green" be child items, so that they will always come up? And then we could use the Ajaxy thing to delete "Red" if we didn't want it for a certain product, or to add "Purple" if we needed it specifically for a product?

It seems like this should be easy to do, but we just can't get it to work.

I thought maybe adding the Parent item, and setting it to "Is a List" and then adding child items of "Strings" but this doesn't work either. Please help!
IS THERE AN ANSWER to this?? We want to do this same thing. We DONT have the time or ability to go into EVERY single product, select 'color' and use the stupid ajax thing to write "red" "blue" "green" for every single product we offer, There has to be another solution to group custom fields. It is bad enough that we have to go into every product and SET the custom field to it, but to have to set what all the options are is a pain and what if the options change?? We have to go in every product to add that we can now make a yellow tshirt? Ridiculous!
Title: Re: Attributes/Custom Fields Thread
Post by: bambarbia on May 01, 2012, 21:31:00 PM
Quote from: quadbsys on May 01, 2012, 21:16:04 PMIS THERE AN ANSWER to this?? We want to do this same thing. We DONT have the time or ability to go into EVERY single product, select 'color' and use the stupid ajax thing to write "red" "blue" "green" for every single product we offer, There has to be another solution to group custom fields. It is bad enough that we have to go into every product and SET the custom field to it, but to have to set what all the options are is a pain and what if the options change?? We have to go in every product to add that we can now make a yellow tshirt? Ridiculous!
Read "How to group a set of Custom Field?" section here http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_product_customfields (http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_product_customfields).
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on May 03, 2012, 00:55:56 AM
Quote from: quadbsys on May 01, 2012, 21:16:04 PM
IS THERE AN ANSWER to this?? We want to do this same thing. We DONT have the time or ability to go into EVERY single product, select 'color' and use the stupid ajax thing to write "red" "blue" "green" for every single product we offer, There has to be another solution to group custom fields. It is bad enough that we have to go into every product and SET the custom field to it, but to have to set what all the options are is a pain and what if the options change?? We have to go in every product to add that we can now make a yellow tshirt? Ridiculous!

You can try my custom field plugin.

It will allow you to apply a set of colors with a click.

If the option has price though, they have to be filled in manually in the product


Title: Re: Attributes/Custom Fields Thread
Post by: cristina on May 04, 2012, 17:52:05 PM
Hi there,
I'm developing a site using VM 2.0.6 and I have a simple question (I hope it's simple)

I have configured a VM Custom stockable variant and it works fine.
The only thing I would like to change is the way the field is diplayed in the cart.

If I look at the product details I correctly see the variant "Option Name" and the select list of available options, while in the cart it shows the "Title" of the variant instead of the "Option name".

Can someone tell me what I need to modify to obtain the result I want?

I already spent half a day looking into the various files, but I did non figure out which one is responsible of formatting the custom field in the cart view.

Thanks a lot

Cristina
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on May 10, 2012, 16:07:00 PM
Quote from: cristina on May 04, 2012, 17:52:05 PM
I have configured a VM Custom stockable variant and it works fine.
The only thing I would like to change is the way the field is diplayed in the cart.
Cristina

Cristina, can you please put a link to your site? I am curious to see if your page reloads to the child when you select a variant from the select box.
Title: Re: Attributes/Custom Fields Thread
Post by: Actlas on May 17, 2012, 13:20:16 PM
We have defined a custom field as a "VM Custom - customer text input".

You can see how this text input looks at the front-end here: http://dev.actual-laser.be/index.php/e-shop/deurbellen-diepgegraveerd/california-cnc-detail

The custom fields which are a dropdown work. What the customer inputs in the text input fields is not stored in the virtuemart product order though!

How can this be fixed?

If I check the DB the text does seem to be stored under virtuemart_order_items - product_attribute like this:

{"61":{"textinput":{"comment":"mytext sdfg"}},"60":{"textinput":{"comment":"my text qsdgsq"}},"68":" <span class=\"costumTitle\">Font:<\/span><span class=\"costumValue\" >Comic Sans<\/span>","64":" <span class=\"costumTitle\">Colored text?<\/span><span class=\"costumValue\" >Yes<\/span>"}
Title: Re: Attributes/Custom Fields Thread
Post by: jjk on May 17, 2012, 13:59:33 PM
Quote from: Actlas on May 17, 2012, 13:20:16 PM
What the customer inputs in the text input fields is not stored in the virtuemart product order though!
How can this be fixed?

Which version are you using? There have been one or two fixes related to custom text input fields.
Latest developer (test) version is 2.0.7.c
Title: Re: Attributes/Custom Fields Thread
Post by: Actlas on May 18, 2012, 10:51:08 AM
I updated to 2.0.7.c and that doesn't fix it. The custom field title isn't displayed at all now...
Title: Re: Attributes/Custom Fields Thread
Post by: John2400 on May 18, 2012, 11:10:06 AM
I am confirming that my text - did not hold in the field either.

It showed in the cart but did not come in the emails to either buyer nor vendor

It did not show up in the invoice nor the print options.

versions 2.0.7 c
Title: Re: Attributes/Custom Fields Thread
Post by: Milbo on May 18, 2012, 11:38:17 AM
Okey, I need to take a look.

I am sorry, but I had to change a bit the customfields plugin system.
Title: Re: Attributes/Custom Fields Thread
Post by: Actlas on May 19, 2012, 09:51:17 AM
Quote from: Milbo on May 18, 2012, 11:38:17 AM
Okey, I need to take a look.

I am sorry, but I had to change a bit the customfields plugin system.

Is this fixed now?
Title: Re: Attributes/Custom Fields Thread
Post by: Milbo on May 20, 2012, 16:32:46 PM
I rechanged, latest svn should work now. but I am not sure. The one who wrote this plugin is atm at jab12
Title: Re: Attributes/Custom Fields Thread
Post by: iomiom on May 24, 2012, 13:56:31 PM
Hello, what you have done with your drop down boxes is excellent.
Could you be so kind to explain to me a little how do you prosses?
Becaus i'm trying to do the same but we see only one line in my drop down box of my custom fields...

Thank you in advance.
Title: Re: Attributes/Custom Fields Thread
Post by: Actlas on May 24, 2012, 14:49:31 PM
Look here: http://forum.virtuemart.net/index.php?topic=98714.msg325933#msg325933
Title: Re: Attributes/Custom Fields Thread
Post by: vigier on May 27, 2012, 03:04:43 AM
This really drove me mad. What I found out is that when I create 2 different fields of type custom_text_plugin and add them to a product, it works.
When I for example add other things like cart variant and fill them with some options, it doesn't work anymore. Then it only stores the values that I select from the cart variant dropdowns.

So I decided to complete change my productset. All the options that I had on my products are now different articles. Not the way I wanted it, but if that's the only thing that works...
Now I have a set of products that have two fields based on the custom_text_plugin and a bunch of other products.
They do save to the database now and are shown everywhere. It even looks like as if since version 2.0.7 (no suffix) it doesn't show the field names twice anymore.
EDIT Just installed 2.0.7d this morning and now it's double again.

What is left for me is:

I checked the values written to product_attribute in tblsr_virtuemart_order_items and it says {"29":{"textinput":{"comment":"1234"}},"28":{"textinput":{"comment":"4567"}}}
That means it contains just the values of both custom_text_plugins, which is good. So, it's somewhere in the code that shows the contents....
Title: Re: Attributes/Custom Fields Thread
Post by: maketheweb on May 28, 2012, 20:05:32 PM
Hi, I'm using Virtuemart 2.0.7c and Joomla 1.5.26 with no problems whatsoever but when I ad a custom field with 2 values, for example, Option A €1 and Option B €0,50 it always adds €1 to the price no matter which option I choose... so Virtuemart always chooses the first option, even if one of the options is free...

Am I the only one with this problem? Am I doing something wrong here?

Thanks!
Title: Someone can help?! (custom fields)
Post by: lipes on May 29, 2012, 14:29:10 PM
custom fields are working strange.... the price in 2.0.7D is always the same.. doesnt change...
i.e. if anyone had the Sample Data instaled, please select the Size 50 in the Circular Saw and you'll see the problem that what i am talking.... Then add to the Cart... and go to "Show Car" .. compare the prices for different sizes.. You cant because the price it's always the same.

Quote from: BanquetTables.pro on September 13, 2011, 18:35:10 PM
For a simple dropdown for color/size etc.

Click "Custom Fields" in vmart admin.
1)Add 1 just like the picture attached.
2)Go into the product/custom field tab
3)Click the dropdown and choose the custom field you just setup.
4) The field appears below with ajax.
5) You can now edit that field.
6) To add more sizes/colors. Repeat step 3.

I've tryed to create all  kinds of types in Custom Fields .. but none of them worked ..
CF works fine in stable 2.0.6,
2.0.7 (is a version just to test) ... CF doesnt work...
so we must wait for next stable release.. maybe 2.0.8
Title: Re: Attributes/Custom Fields Thread
Post by: razvanadrian on June 11, 2012, 01:25:30 AM
Quote from: quadbsys on May 01, 2012, 21:16:04 PM
Quote from: virtue111 on November 04, 2011, 21:54:18 PM
Originally posted this here: http://forum.virtuemart.net/index.php?board=132.0 but if we get an answer we will put it here, vice versa:

We would like to make a custom field, with a preset of selections that will come with it. For simple sake let's say we want to make a "Color" variant, and have the options of "Red" "blue" and "green".

I have figured out how to get the Color attribute to show up on the product, and then I can type in "Red", "Blue", and "Green" into the Ajaxy fields. But we have a ton of products and don't want to have to go in and type them all manually.

Is there anyway to make "Color" a parent, and make "Red" "Blue" and "Green" be child items, so that they will always come up? And then we could use the Ajaxy thing to delete "Red" if we didn't want it for a certain product, or to add "Purple" if we needed it specifically for a product?

It seems like this should be easy to do, but we just can't get it to work.

I thought maybe adding the Parent item, and setting it to "Is a List" and then adding child items of "Strings" but this doesn't work either. Please help!
IS THERE AN ANSWER to this?? We want to do this same thing. We DONT have the time or ability to go into EVERY single product, select 'color' and use the stupid ajax thing to write "red" "blue" "green" for every single product we offer, There has to be another solution to group custom fields. It is bad enough that we have to go into every product and SET the custom field to it, but to have to set what all the options are is a pain and what if the options change?? We have to go in every product to add that we can now make a yellow tshirt? Ridiculous!

Well that's the main problem the way i see it, and is the first problem everybody noticed since the 2.0 got out, we are at 2.0.6 now and the main problem is still here. I think the guys coding stuff should read the forums too.

we should be able to set up the values and prices of different attributes for a costume field while we are still in costume fields MENU, not later when we get to a product and we are on the costume fields TAB of that product. this way we would have like a template and just add it to a product by one click, AND IF LATTER U HAVE TO CHANGE SOMETHING U JUST CHANGE IT IN THE TEMPLATE so you dont have to take all your products again from one end to the other.

GOD HELP US! :)
Title: Re: Attributes/Custom Fields Thread
Post by: razvanadrian on June 11, 2012, 01:27:57 AM
Quote from: quadbsys on May 01, 2012, 21:16:04 PM
Quote from: virtue111 on November 04, 2011, 21:54:18 PM
Originally posted this here: http://forum.virtuemart.net/index.php?board=132.0 but if we get an answer we will put it here, vice versa:

We would like to make a custom field, with a preset of selections that will come with it. For simple sake let's say we want to make a "Color" variant, and have the options of "Red" "blue" and "green".

I have figured out how to get the Color attribute to show up on the product, and then I can type in "Red", "Blue", and "Green" into the Ajaxy fields. But we have a ton of products and don't want to have to go in and type them all manually.

Is there anyway to make "Color" a parent, and make "Red" "Blue" and "Green" be child items, so that they will always come up? And then we could use the Ajaxy thing to delete "Red" if we didn't want it for a certain product, or to add "Purple" if we needed it specifically for a product?

It seems like this should be easy to do, but we just can't get it to work.

I thought maybe adding the Parent item, and setting it to "Is a List" and then adding child items of "Strings" but this doesn't work either. Please help!
IS THERE AN ANSWER to this?? We want to do this same thing. We DONT have the time or ability to go into EVERY single product, select 'color' and use the stupid ajax thing to write "red" "blue" "green" for every single product we offer, There has to be another solution to group custom fields. It is bad enough that we have to go into every product and SET the custom field to it, but to have to set what all the options are is a pain and what if the options change?? We have to go in every product to add that we can now make a yellow tshirt? Ridiculous!

Well that's the main problem the way i see it, and is the first problem everybody noticed since the 2.0 got out, we are at 2.0.6 now and the main problem is still here. I think the guys coding stuff should read the forums too.

we should be able to set up the values and prices of different attributes for a costume field while we are still in costume fields MENU, not later when we get to a product and we are on the costume fields TAB of that product. this way we would have like a template and just add it to a product by one click, AND IF LATTER U HAVE TO CHANGE SOMETHING U JUST CHANGE IT IN THE TEMPLATE so you dont have to take all your products again from one end to the other. And of course u could have more templates for the whole store but still is better to modify 10 templates then to modify 1100 products.

GOD HELP US! :)
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on June 17, 2012, 03:42:24 AM
I have my child variants working, but the parent is listed as the first item in the drop down. How can I remove the parent and hard code "Please choose a..." as the first item?

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on June 17, 2012, 04:07:39 AM
in this thread http://forum.virtuemart.net/index.php?topic=100330.0 a couple people seemed to get that working, but I could n`t figure it out
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on June 17, 2012, 04:08:37 AM
Thanks, I will check it out right now. If I get it to work, I'll make a video for you showing how I did it.
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on June 17, 2012, 04:30:48 AM
that would be great.
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on June 17, 2012, 05:09:19 AM
I posted in their thread. I followed there directions, but the parent still displays in 2.0.6

This is so annoying. At this point I am willing to pay someone $1000 to go back in time and tell me not to use VM 2.0 for this project. I feel like I have wasted 6 months of my life.
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on June 17, 2012, 05:27:34 AM
HOLY CRAP!!! - I think I found it with my fundamental php skills.

This appears to work, but I need to test ordering a product to see what happens.

in administrator\components\com_virtuemart\models\customfields.php
around line 763

foreach($uncatChildren as $k => $child){
   $options[] = array( 'value' => JRoute::_('index.php?   option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']) ,'text' =>$child['product_name']);

change to

foreach($uncatChildren as $k => $child){
   $options[] = array( 'value' => JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']) ,'text' =>$child['product_name']);
   $options[0]['text'] = "Please choose a size";
               }
or just add
   $options[0]['text'] = "Please choose a size";
on the line before the
}
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on June 17, 2012, 10:52:35 AM
This has been fixed for 2.0.8 anyway.

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on June 17, 2012, 13:12:27 PM
Quote from: OpenGlobal on June 17, 2012, 10:52:35 AM
This has been fixed for 2.0.8 anyway.

OpenGlobal

2.0.8? I never saw 2.0.7 released. My site has been cusomtized / hacked so much, I don't think I can upgrade off of 2.0.6
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on June 17, 2012, 13:43:22 PM
2.0.7 is the current development stream, not due for general release. 2.0.6 is the latest public release.

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: dsrpmedia on June 17, 2012, 20:57:40 PM
Quote2.0.8? I never saw 2.0.7 released. My site has been cusomtized / hacked so much, I don't think I can upgrade off of 2.0.6

lol I was just thinking the same thing - I`m really hoping all the changes I`ve had to make to 2.0.6 to get it to the point where it is almost as functional as vm 1.1 work on the next version. (or better yet all the things I`ve had to fix are now fixed in the core)
Title: Re: Attributes/Custom Fields Thread
Post by: spyderwebdesign on June 17, 2012, 23:11:20 PM
Quote from: OpenGlobal on June 17, 2012, 10:52:35 AM
This has been fixed for 2.0.8 anyway.

In 2.0.8 does the "notify me" text show for the parent items with stock set to 0? If so, does the "add cart" but still show for the parent item that has stock defined?
I currently set the parent stock to 0 because I don't want people ordering a shoe without a size.
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on June 18, 2012, 09:50:48 AM
In 2.0.8 (assuming stockable cart variants hasn't been replaced by Generic Child Variants), everything will be based on the child product stock levels, not the parents. The Generic Child Variants will also have options to work this way.

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: rvbgnu on June 20, 2012, 12:33:58 PM
And what about cart variant multi-langual?
When the HTML menu (select / option) is built, the strings are not translated. But once in the cart, or other view, they are...

Probably something very simple for php skilled programmer, but not for a beginner  :-\

Please have a look here to see what I mean exactly:
[EDIT: URL removed because page layout changed and uses now DropBox plugin]
http://REMOVED/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=9&virtuemart_category_id=7&Itemid=173&lang=en

and other tread here:
http://forum.virtuemart.net/index.php?topic=100784.msg344154#msg344154
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on June 20, 2012, 14:30:04 PM
That one's on my list so should hopefully make it into 2.0.8 in one way or another.

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: rvbgnu on June 20, 2012, 15:33:59 PM
That's great OpenGlobal !
Let me know if you need any test, I will be more than happy to help (I am helping a bit in the Joomla Bug Squad as well, so testing is ok with me).
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on June 22, 2012, 11:02:32 AM
rvbgnu,

Please try out the attached changes. Simply drop the (unzipped) file into plugins/vmcustom/stockable/.

It also includes the fixes for all of the other problems with it that I've been dealing with.

OpenGlobal

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: rvbgnu on June 22, 2012, 15:59:28 PM
Thank you OpenGlobal.
Just tried your file, but no changes at all for me... well, I am not using stock control.
I think I will look into other custom field type, and try something else. I did not want menu select/option anyway, but rather radio button, and a list in a text area. I am a bit confused now. I am fixing something else, and then I might have a better idea ;-)

Keep on the good work, and I keep you posted too!
Title: Re: Attributes/Custom Fields Thread
Post by: Maxim Pishnyak on June 29, 2012, 06:57:43 AM
Quote from: spyderwebdesign on June 17, 2012, 05:27:34 AM
HOLY CRAP!!! - I think I found it with my fundamental php skills.

This appears to work, but I need to test ordering a product to see what happens.

in administrator\components\com_virtuemart\models\customfields.php
around line 763

foreach($uncatChildren as $k => $child){
   $options[] = array( 'value' => JRoute::_('index.php?   option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']) ,'text' =>$child['product_name']);

change to

foreach($uncatChildren as $k => $child){
   $options[] = array( 'value' => JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']) ,'text' =>$child['product_name']);
   $options[0]['text'] = "Please choose a size";
               }
or just add
   $options[0]['text'] = "Please choose a size";
on the line before the
}
any luck to use such construction?
if (sizeof($options) > 1) {
    $options[0]['text'] = JText::_('COM_VIRTUEMART_SET_PRODUCT_TYPE');
}
cos we already this have language constant
COM_VIRTUEMART_SET_PRODUCT_TYPE="Choose product type"
in en-GB.com_virtuemart.ini
or better to ask svn about some fresh constant like:
COM_VIRTUEMART_SET_Size="Please choose a size"
COM_VIRTUEMART_SET_Simple_Chooser="Choose"
COM_VIRTUEMART_SET_Smart_Developer="Choose you destiny, Virtuemart"
How da you think, guys?  :P
Title: Re: Attributes/Custom Fields Thread
Post by: ccvid on June 29, 2012, 18:04:38 PM
Maybe this is where I need to ask this question:  I'm working on a cart for a ministry.  We'd like customers to be able to add a donation when they place their product in the cart.  In other words, a little text field where they type in the amount they want to donate.  Then that amount is added into the cart as a donation.  How would I do this?
Title: Re: Attributes/Custom Fields Thread
Post by: rvbgnu on July 12, 2012, 11:39:44 AM
Quote from: OpenGlobal on June 20, 2012, 14:30:04 PM
That one's on my list so should hopefully make it into 2.0.8 in one way or another.

OpenGlobal
Hi OpenGlobal,
I have been confused with stock control and without stock control cart variant. And now with child product, it looks not good to me with all my 150 products with custom fields and language constant that are not displayed...
I just want to display, in two different languages, the product options on the product detail page, with choice of size and colour (for clothes).

Any update, please?
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on July 12, 2012, 18:17:59 PM
I believe the translations are now fixed in 2.0.8. If you want stock control, use stockable cart variant, if you don't want stock control, just use a customfield with cart variant.

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: accessvirus on July 13, 2012, 10:50:34 AM
I have a product of a wooden board with all different sizes and different prices. All prices need to be including 19% VAT. What I did was adding a "shopping cart variable" at "custom fields" and put in a line at "standard" inputbox and "in list?" and "add to shopping cart" ticked.

at "standard" I put in:
1,9x20x40;2,9x20x40;3,9x20x40;4,9x20x40; (etc etc... untill I unfortunatly cannot exceed the 255 chars. Or I am doing something not intended here, I suppose. Or the line needs to become a textbox) Anyway... for this part it works functionally except for getting stocked, but happily I don't need that with this customer, else I was screwed... ) Now... I made a VAT amount of 19% as mentioned earlier. This amount is calculated correctly on the prices except for discounts for "shopping cart variable".

When I put in for:
1,9x20x40 -> 1.10 (1.10 euro added ON the default product price.)
2,9x20x40 -> 1.20 (1.20 euro added ON the default product price.)
3,9x20x40 -> 1.30 (1.30 euro added ON the default product price.)
4,9x20x40 -> 1.40 (1.40 euro added ON the default product price.)

the price in those above here needs to be put in EX VAT. So if I put in 1 there, the frontend tells me 1.19 (oke, not the biggest deal, but it whould be handy if I could put in the amount INCL. VAT also optionally like in the article page itself is possible)

Untill here I don't meet much problems..... but then shit happens :)

When I make a discount for the product, for instance lets say 2 euro. I want to be able to choose on which of these wooden boards the fixed discount applies to. (with a check marker?) It now seems that all other dropdown menu items have an increased discount amount?!. So my 2 euro discount for default product becomes 2.20 for the second instance. Oke... what I did was, assuming the above shopping cart variable method isn't suited for this matter. I choose another custom field to test.... "plugin". I noticed 3 options with childs etc... But then I can't seem to manage, reading all obove posts, to exclude the child items. I don't need child items. I just need a container with variable products. Preferably with no root price and discounts on choosen variable products.

For now I met 2 problems:

1. with shopping cart variable the amount of input at standard is 255.
2. with shopping cart variable the discount is miscalculated for all other "shopping cart variable" products.
3. with shopping cart variable the amount put in at the product its custom field is ex VAT only. (even hikashop has this option to choose between inc, exc)
4. maybe the most important when choosing a discount is that the price amount stays the same, also with a larger size of wooden board :) (can;t be good :))

note: (instead of using the custom fields I tried sub products, but those are buggy and doesn't show up in the website at some child level below the product or in the categorie, it doesn't show me a price in the overview but does in the details and is also to complex for every different size being put in for each different type of wood)
Title: Re: Attributes/Custom Fields Thread
Post by: rvbgnu on July 19, 2012, 15:51:53 PM
Quote from: OpenGlobal on July 12, 2012, 18:17:59 PM
I believe the translations are now fixed in 2.0.8. If you want stock control, use stockable cart variant, if you don't want stock control, just use a customfield with cart variant.

OpenGlobal

Hi OpenGlobal,
I am using custom fields with cart variant. I tracked down into JHtml select.genericlist with XDebug, and found a weird issue:
- the same custom field WITHOUT cart variant is well translated (but of course no displayed in a dropdown list)
- with cart variant enabled, no translation: the JText method is called and entered just before the building of <option> tags as it should be, BUT the value string is not returned translated... I have tried to put the language constant value in all the main .ini files, to check a wrong file loading of the language override, but to no avail.

Getting a bit crazy, so my workaround will be to use the DropBox plugin
http://forum.virtuemart.net/index.php?topic=99678.msg350054#msg350054

I have still an issue with cart variant, but at least I've got a nice formatted dropdown list for my options (choice of colour and size for clothes).

And I feel that the custom fields implementation for multi lingual may change again, so I cannot afford to update all the products again...

Any hint on the JHtml select.genericlist / JText issue?


PS: not use to report/contribute with the VM team, where should I post this issue to help find a solution?
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on July 20, 2012, 12:37:48 PM
Quote from: rvbgnu on July 19, 2012, 15:51:53 PM
- the same custom field WITHOUT cart variant is well translated (but of course no displayed in a dropdown list)
- with cart variant enabled, no translation

That sounds like a bug to me. What file/line did you find this?

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: rvbgnu on July 20, 2012, 23:10:09 PM
Hi OpenGlobal,

Thank you for having a look at it.
I tested with the same Custom Field Type:    Cart Variant.
- First test with Cart Attribute set to "No" => language strings translated (both constant and value)
- Second test with Cart Attribute set to "Yes" => language constant translated (label) but value NOT translated

Call from
index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=82&virtuemart_category_id=16&Itemid=181&lang=en

Debug stack:
WEBROOT/libraries/joomla/language/language.php.JLanguage->_ : lineno 345() WEBROOT/libraries/joomla/language/language.php at line 345
WEBROOT/libraries/joomla/methods.php.JText::_ : lineno 160() WEBROOT/libraries/joomla/methods.php at line 160
WEBROOT/libraries/joomla/html/html/select.php.JHtmlSelect::options : lineno 622() WEBROOT/libraries/joomla/html/html/select.php at line 622
WEBROOT/libraries/joomla/html/html/select.php.JHtmlSelect::genericlist : lineno 122() WEBROOT/libraries/joomla/html/html/select.php at line 122
WEBROOT/libraries/joomla/html/html.php.call_user_func_array : lineno 0() WEBROOT/libraries/joomla/html/html.php at line 0
WEBROOT/libraries/joomla/html/html.php.JHtml::call : lineno 222() WEBROOT/libraries/joomla/html/html.php at line 222
WEBROOT/libraries/joomla/html/html.php.JHtml::_ : lineno 135() WEBROOT/libraries/joomla/html/html.php at line 135
WEBROOT/administrator/components/com_virtuemart/helpers/html.php.VmHTML::select : lineno 340() WEBROOT/administrator/components/com_virtuemart/helpers/html.php at line 340
WEBROOT/administrator/components/com_virtuemart/models/customfields.php.VirtueMartModelCustomfields->getProductCustomsFieldCart : lineno 876() WEBROOT/administrator/components/com_virtuemart/models/customfields.php at line 876
WEBROOT/administrator/components/com_virtuemart/models/product.php.VirtueMartModelProduct->getProductSingle : lineno 820() WEBROOT/administrator/components/com_virtuemart/models/product.php at line 820
WEBROOT/administrator/components/com_virtuemart/models/product.php.VirtueMartModelProduct->getProduct : lineno 574() WEBROOT/administrator/components/com_virtuemart/models/product.php at line 574
WEBROOT/components/com_virtuemart/views/productdetails/view.html.php.VirtueMartViewProductdetails->display : lineno 80() WEBROOT/components/com_virtuemart/views/productdetails/view.html.php at line 80
WEBROOT/components/com_virtuemart/controllers/productdetails.php.VirtueMartControllerProductdetails->display : lineno 51() WEBROOT/components/com_virtuemart/controllers/productdetails.php at line 51


Let me know if you need more details.

Enjoy the week-end  ;)
Title: How to add costom attribute for file attachment
Post by: Kanasagra Jaydip on July 25, 2012, 08:42:53 AM
Hello All Friends,

I want to add custom field for attachment.
link when select custom field -> plugins -> (in dropdown VM - Custom, customer text input) so same this here i want to add file input.
so how can i make plugin for that.
in sort i want to add image file when user add to cart.

Thanks,
Jaydip Kanasagra
Title: Re: Attributes/Custom Fields Thread
Post by: OpenGlobal on July 25, 2012, 10:31:52 AM
It sounds like you're looking for this:

http://www.openglobal.co.uk/shop/joomla/virtuemart/virtuemart-upload-custom-field-detail.html (http://www.openglobal.co.uk/shop/joomla/virtuemart/virtuemart-upload-custom-field-detail.html)

OpenGlobal
Title: Re: Attributes/Custom Fields Thread
Post by: benstapleton on July 26, 2012, 16:01:09 PM
Hi all,

Does anyone know if it's possible to override the output of child products on the productdetails page?

What I'm after is converting the select box into rows of a table, with an 'add to cart' button in the last column for each child.

I've spent the better part of this afternoon trying to find (in the code and online) where this can be overridden, but with no luck.

Has anyone stumbled upon the answer while seeking something similar?

Thanks!
Title: Re: Attributes/Custom Fields Thread
Post by: MidiTom on July 29, 2012, 14:47:41 PM
Hi everyone!

I'd like to know if it is possible somehow to prevent displaying Boolean custom field values on cart display?
I want to use Boolean fields to sign some product properties, like "second hand" or "discounted". It is comfortable to use a Boolean custom field to
this and Customfilter plugin can manage this well, but it is unnecessary and misleading to display these field's value, in this case a "1". It is enough to display the field's name.
Has anybody an idea?

Thanks


[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: mrooks1984 on July 30, 2012, 23:07:34 PM
hello all, hoping someone can help me.
i have tried find the line of code that shows the price in dropdown menus in the front end of the product details, but cant seem to find the section of code to remove it so its not displayed, not sure why its in be default as i have yet to see any online stores with this, seen ones with + then the price in dropdown menus.
if someone could tell me what i need to edit the line of code and the file and i be really greatful.
i amm running the latest version of joomla and virtuemart.
many thanks all.
Title: Re: Attributes/Custom Fields Thread
Post by: monkeybutt on July 31, 2012, 23:31:07 PM
I have custom fields created using the plugin allowing users to enter custom text to be associated with a product (in this case youth sports registrations). The custom field labels all appear one after the other and then the input data. I was able to use CSS to have each appear on a new line by using Float: left but I need this to have the data appear right after the label with a line break after each.

Currently, it looks like the attached in the cart and even worse (no line breaks using float) in the order info. Which makes this difficult to sort through when adding participants to teams

I am using Joomla 2.5.4 and VM 2.0.6

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: Fintan on August 16, 2012, 08:29:57 AM
I have two questions:
- My default currency is CHF (Swiss Francs). when I cart variants to the product->custom fields with no price added that variant shows the euro sign in the drop down on the product page. All other prices show in CHF.. When I add a price like 0.000001 to the "no price" variant I get my CHF again with 0 as its price.
Where/what can I edit so that CHF (Default currency) always shows and I don't have to do the 0.0000001 step?
This would be very confusing for my customer.

- Is there ANY way to add cart variants with a check box (multiple choice) instead of the default radio box? This is a deal maker/breaker function for any food (or other) shop.
Title: Re: Attributes/Custom Fields Thread
Post by: jthrongard on August 16, 2012, 17:55:30 PM
Awmergawd!  I finally found a solution to my custom fields problem and I think it's the same for alot of people.  Anyone having problems with custom fields that are a dropdown of many options - see this!
http://www.kaizenmediaworks.com/virtuemart-2-0-custom-field-dropbox-plugin   (http://www.kaizenmediaworks.com/virtuemart-2-0-custom-field-dropbox-plugin)
It works perfectly and I'm super happy.  Look at the screenshots.
(http://www.kaizenmediaworks.com/images/thumbnails/images/files/custom-field-400x332.png)
(http://www.kaizenmediaworks.com/images/thumbnails/images/files/drop-box-400x316.png)

So all I did was create the custom field one time and then cloned it 12 times.  Now my customers can choose multiple varieties of products.  It's AWESOME.  This guy just saved me a ton of money in custom development and no VM2 hacks!!!!
Title: Re: Attributes/Custom Fields Thread
Post by: Fintan on August 17, 2012, 11:35:59 AM
@jthrongard: thank you for that link. I have tried that plugin, but it doesn't support multiple choice (with check box, ctrl key, etc).
Title: Re: Attributes/Custom Fields Thread
Post by: acuweb on September 12, 2012, 04:15:08 AM
I cant believe something so common and needed was left out. I've used virtuemart for YEARS and hesitantly switched to V2.... I've only done 2 sites with it so far and cant believe the hassels. I know programming is tough and something on this scale is never easy, but something like product attributes? You guys stripped out so many user friendly features from the previous for what gains? I just dont get it and ever time I open up my current project to make some progress VM2 takes me two steps back. I'm trying the plugin provided above and pray it works, this is nuts. :-[


edit: @jthrongard THANK YOU! - I HAVE ATTRIBUTES

dev team - please add it back on a product level like the good ol' days - or something else easy to use....
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on September 26, 2012, 12:51:51 PM
Quote from: acuweb on September 12, 2012, 04:15:08 AM
I cant believe something so common and needed was left out. I've used virtuemart for YEARS and hesitantly switched to V2.... I've only done 2 sites with it so far and cant believe the hassels. I know programming is tough and something on this scale is never easy, but something like product attributes? You guys stripped out so many user friendly features from the previous for what gains? I just dont get it and ever time I open up my current project to make some progress VM2 takes me two steps back. I'm trying the plugin provided above and pray it works, this is nuts. :-[


edit: @jthrongard THANK YOU! - I HAVE ATTRIBUTES

dev team - please add it back on a product level like the good ol' days - or something else easy to use....


what "features" do you think are stripped out?

The custom fields in 2.0 are way better than 1.1.


Title: Re: Attributes/Custom Fields Thread
Post by: crisware on September 29, 2012, 02:16:54 AM
Hello!!!
I use Virtuemart 1 since the last 2 years and I like it a lot... I have made an online ordering system for pizza. In VM1 I had made a modification for having checkbox attributes.
Now I have to update to VM2. I have already made modifications to have Checkbox custom fields but I cannot make it calculate properly the price. It calculates only the price of
the last selected checkbox and not the SUM from all the selected checkboxes...

It would be nice if you could help me solve this problem...
Title: Re: Attributes/Custom Fields Thread
Post by: abzamon on October 19, 2012, 14:05:16 PM
Hello,

After the reading of these 21 pages post I'm not reassured at all, no clear answer yet.

I need the classical package:  color select / size select with stock control
Constraints :

The parent product has one child per colour
Each child (colour) has one child per size these childs control the stock.
To create the first childs, in their custom fields I checked the box "override parent value" then I remove the generic chid variant from the list (red cross on the right) and then I saved and only then I began creating the second childs (for the size).

These settings allow to have different images for each color (first child's images) but how can I update the stocks ?

I will have to use ajax I think, or perhaps am I doing things wrong.

Thanks for your answers,

Sylvain

I use VM 2.0.12b and joomla 2.5
Title: Re: Attributes/Custom Fields Thread
Post by: stuffdone on October 26, 2012, 17:06:19 PM
None of the screen shots even match what I see on my back end?

The tabs talked about in the WIKI and others don't even exist!!

Can someone post a STICKY topic with exact step-by-step to add attributes to products please?  After trying to read over 20 pages of replies I am no closer.
VM 2.0.1f

It used to be easy...why break something that was not broken?

Perhaps I need to check out another cart since VM seems to be working over time to make things harder and harder to manage.
Title: Re: Attributes/Custom Fields Thread
Post by: blans on November 05, 2012, 16:36:02 PM
I don't think you'll receive any feedback stuffdone. This subject is avoided in any way possible.
Join the club: https://forum.virtuemart.net/index.php?topic=107411.15 (https://forum.virtuemart.net/index.php?topic=107411.15)

I've reached the point of visiting the Milbers Virtuemart Seminar the 23th in Germany and asking him what the hell they are doing there.
Giving Virtuemart Silver Certification lessons when the could better use that time to get the software to work in the first place.

The timing with the Joomla updates is awful. Anyone with a stable running 1.5 webshop that is needed for there income will stay far away from VM2 until these problems are solved. But you need to switch to Joomla 2.5... AAAARRRRRGGGGGHHHHHH....!!!

Also attending a Opencart gathering this month to check my options. After using Joomla and VM since it's Mambo days... This is crazy!






Title: Re: Attributes/Custom Fields Thread
Post by: wpompen on November 15, 2012, 14:12:45 PM
I've installed this extension, problem solved!
http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-products-display/22355?qh=YToxOntpOjA7czoxMDoiY2F0cHJvZHVjdCI7fQ%3D%3D
Title: Re: Attributes/Custom Fields Thread
Post by: WebStuff on November 16, 2012, 15:03:16 PM
How to add Custom items and fields from Articles and Modules.
http://forum.virtuemart.net/index.php?topic=110001.msg368585#msg368585 (http://forum.virtuemart.net/index.php?topic=110001.msg368585#msg368585)
Title: Re: Attributes/Custom Fields Thread
Post by: alanbagl;ey on November 28, 2012, 15:22:36 PM
Quote from: John2400 on March 17, 2012, 23:30:31 PM
dsrpmedia ,

here`s an example

here is a parent/child setup in vm 1.1 http://nutrawholesale.com/nutra-organic-plant-acids-opa/opa-daily-protection?page=shop.product_details&flypage=flypage_default.tpl&product_id=30&category_id=44
notice how you can see the prices / sizes in the dropdown
- and how the parent is not being added to the dropdown
-and how the parent itself has no price



Hi dsrpmedia,

in your example given above you seemed to have found a solution for not being able to add a product to cart without a drop down selection, could you explain how you did this?

I have a project I am working on that has a child parent relationship. At the moment there does not seem to be a way of making the child attributes mandatory, so example, house paint is the parent item, then K2 paints as child, the child product has attributes of volume, year and colour that need to be mandatory before adding to cart, this is for custom paint being made to order so the vendor needs to have the mandatory fields to be able to for fill the order.

Dev site example is here: http://integrousdemo.co.uk/ccs/shop/painting/paint/k2-paint-detail

I have been going through this http://forum.virtuemart.net/index.php?topic=100330.0 thread but to no avail, any pointers or help would be great.

Using: Joomla! 2.5.7 & VM 2.0.10

Kind regards
Alan
Title: Re: Attributes/Custom Fields Thread
Post by: qme1ster on December 02, 2012, 18:37:02 PM
I'm a VM 1.0/1.1 user and have been for years. I've set up many online stores with it and have been quite pleased with the results but I thought it time to try out VM 2.0. After many excruciating hours trying I've reached the conclusion that this product (VM 2.0)  is no longer economically viable for me. The time required to achieve basic functionality is mesmerizing. It's counter-intuitive and is simple not user friendly. Why so many complicated steps to be able to create child products with stock control? In earlier versions I managed to get my head around it despite it having its limitations, but this new version in its current for is rather unsellable from my point of view. What client is going to want to battle with it? In contrast, today, in a matter of MINUTES I set up a store with MijoShop and had a product with child variants set up WITH STOCK CONTROL. A child could do it, and that's really how this should be. Yes it's a commercial extension but when you balance the price with the hours saved ( it just simply works out of the box AND THERE ARE INSTRUCTIONAL VIDEOS) it's really a no-brainer. VM 2.0 I wish you well but I for one have to bid you farewell for now.
Title: Re: Attributes/Custom Fields Thread
Post by: blans on December 03, 2012, 16:04:16 PM
Thank you qme1ster for the Mijshop link. I hadn't seen it before and it makes sense to integrate Opencart into Joomla.

What I don't like is that this setup would make one dependent on 3 software parties. Joomla/Mijshop/Opencart. I have the same trouble with Joomla/K2/Virtuemart.
Besides that the bad temper and constant scolding of the Opencart developer also concerns me. But his software is certainly one of the very best in usability and like you say, it simply works!

I think you statement is very legitimate and it hurts me to see you have to leave the software you have used with so much pleasure for so long.

I have checked out Opencart and CS-Cart and both have their pros and cons however I still think Virtuemart outperforms them if only these basic E-commerce needs would work.

Come on Virtuemart Team! You guys are losing users like a leaky faucet loses water...

Title: Re: Attributes/Custom Fields Thread
Post by: bunglehaze on December 18, 2012, 00:40:39 AM
I am sorry to say this, especially after using VM extensively for many, many years and having donated a few times for projects during VM1.1 days. I will be stopping developing any sites using VM2 for the forseeable future and on the next opportunity for each client will look to migrate to a new ecommerce software once chosen.

This decision has not been taken lightly either, having jumped on the first releases of VM2 eagerly, and assisted in the bugfixing forum finding some of the numerous early problems I expected a lot of usability issues to have been dealt with by now and for my general experience to have improved enough to feel confident to donate yet again for each client site I create using the software - this has not been the case.

The whole custom fields system is still a joke, a dealbreaker for almost all users apart from those that have learned the 'trick' to using it. NO ecommerce system should be this badly thought out that a year after it launches the majority of complaints are for one, quite frankly, huge area of usability that users in general cannot work out. The terminology used is overcomplicated, the options are overcomplicated and too rigid, the actual functionality is poor at best - it does not work as it should.

The shame here is that most of the really annoying, but only annoying, bugs have now been ironed out. There are lingering ones like the lack of ordering on certain sections - payment systems don't seem to obey the ordering you set and of course it goes without saying that the custom fields section behaves like IT wants to. 90% of the typical functionality of top level ecommerce systems is there - nailed, the problem is the final 10%, where people want to offer more complex options than 1 product SKU, 1 option, 1 price.

I have two client sites, migrated from VM1.1 which was working great but done because Joomla 1.5 was coming up to EOL and they were due a bit of modernisation. One had a very simple multiple dropdown with options either plus or minus priced from the parent, others had to have a dropdown where the prices changed so often that plus and minus would not work so the equals function worked flawlessly to keep a track on prices - why on earth was this removed - totally and with no viable replacement? I can no longer have a parent product priced at zero and products individually priced - why not? That is a fundamental function.

A second site I have needs much more complex configuration, ideally instead of dropdowns of manually created items I would use sku codes to pick up already existing products in the shop, instead I am trying to use PRO's plugin to create dropdowns because a third party plugin that actually, as good as it is, still does not allow price input within the plugin config, is the best option available. It is almost as if the custom fields was disregarded for being too difficult and hashed together without thinking through how it is used. I cannot figure out how I am supposed to offer a customer the option of paint finish or powder coat finish with two completely different colour ranges - if powder coat is chosen, paint is disallowed and vice-versa. That should be a simple function.

The final nail in the coffin for me though im afraid is just how few threads get resolved with a genuine developer response rather than the mutterings of a handful of frustrated, amateur coders who are just trying to make their sites work. If documentation and usability are not working to help questions to problems the user will always jump on a forum as a port of call but it seems that the forum is less answered here than ever before, I am not really a poster for problems, but I read pages and pages of single 'please help me I cant do....' threads that go unanswered by people that would know (hopefully) and unfortunately the custom fields and product creation side of it suffers particularly badly for being ignored or avoided.

To those of you who use VM and have never donated anything but still feel like complaining, that is one of the issues with a large open source project like this. Developers on these projects can only afford to spend time if they can balance bills and home life which usually means having to work, every time you start a project or get a little help how about sending a little funding back to help them move the project along? I must confess to not donating anything since the launch of VM2 - purely because it has actually cost me more money and time to try and configure than I have made for a few clients, I did want to give something back to the project but for now I am left looking for a cost effective way to migrate clients and spend my own time learning an new ecommerce software, VM2 has not got easier to use in a year and I feel it is going to stay this way.
Title: Re: Attributes/Custom Fields Thread
Post by: Milbo on December 18, 2012, 01:12:53 AM
Quote from: bunglehaze on December 18, 2012, 00:40:39 AM
The whole custom fields system is still a joke, a dealbreaker for almost all users apart from those that have learned the 'trick' to using it. NO ecommerce system should be this badly thought out that a year after it launches the majority of complaints are for one, quite frankly, huge area of usability that users in general cannot work out. The terminology used is overcomplicated, the options are overcomplicated and too rigid, the actual functionality is poor at best - it does not work as it should.

This the only valid point. The customfield system is already completly rewritten for the core itself, now we start to rewrite the handling and will make it a lot more intuitiv. For the other points I just can say that vm2 is not soo old like vm1. The 2.0.8c, 2.0.10, 2.0.14 are really fine versions. The 2.0.16 will be also really good. Check the release notes http://forum.virtuemart.net/index.php?topic=110743.msg371394

Ahja manual, we finally managed to port the old docs.virtuemart.net
Title: Re: Attributes/Custom Fields Thread
Post by: bunglehaze on December 18, 2012, 01:18:46 AM
Milbo, I have not said that VM1 is old at all? Far from it. Infact I praise the work you have done since the early release of VM2 in getting most of the issues fixed but for me, as with a lot of users, the custom fields is just unusable. You say the code is rewritten for the core which is great news but when is this 'likely' to be integrated into a relatively stable release and the handling sorted for me to test? If I can be convinced that the work of migrating all my customer sites to another system is not going to be needed I can make what I have work temporarily.

I have supported VM since I started building sites, it is only pure frustration and increased workload from trying to make it behave as it should that makes me want to look elsewhere, I am sure you already appreciate this or you would not have rewritten the custom fields code already.
Title: Re: Attributes/Custom Fields Thread
Post by: Milbo on December 18, 2012, 02:02:58 AM
The customfields were the only thing not mainly directed or done by me. They are rewritten how they work (reduced queries for productdetails with 2 customfields from 200 to 140). Now they can handled a lot easier (from programming point). So now we will make them easier to use. And of course all with migrator. A normal user without hacked vm should just update.
Title: Re: Attributes/Custom Fields Thread
Post by: Milbo on December 20, 2012, 13:02:08 PM
Quote from: stuffdone on October 26, 2012, 17:06:19 PM
The tabs talked about in the WIKI and others don't even exist!!
VM 2.0.1f

I am sorry, but 2.0.1f is a beta version and 10 months old, come on.
Title: Re: Attributes/Custom Fields Thread
Post by: bluebeachdesign on December 26, 2012, 20:47:49 PM
Thanks to VM2 I am also having issues setting up a simple size list. I am about to uninstall and go back to the VM1
Title: Re: Attributes/Custom Fields Thread
Post by: afterglow80 on December 31, 2012, 20:29:58 PM
How do you make parent unorderable when it has stockable children? Plllleeeeaaassseeee!!!! :(
Title: Re: Attributes/Custom Fields Thread
Post by: blans on January 07, 2013, 12:09:11 PM
QuoteThe customfields were the only thing not mainly directed or done by me.

Then please do everything yourself from now on. Bunglehaze is spot on with his remarks! Why haven't you mentioned before that you were rebuilding the customfields?

That is another point Bunglehaze makes, the communication should be better. I don't care if it takes you multiple years to come up with a solution as long as there is communication. He also asks for an estimated date that we can see the new custom fields in action.

So simple questions:

1. When will the new custom fields section be ready for review?

2. Can we then finally sort the children?




Title: Re: Attributes/Custom Fields Thread
Post by: noblefx on January 22, 2013, 23:04:06 PM
Hello
You guys are really doing a great job help us here... I have gone through the thread but i want the details view to be tabbed like the one below:

http://www.boohoo.com/restofworld/sale/dresses/icat/saledresses/dresses/florence-lace-trim-shift-dress/invt/azz58820

I also want to change the positions of "related products" and "Recently viewed" as it is in the link above.

Thanks
Title: Re: Attributes/Custom Fields Thread
Post by: zbabyface on January 24, 2013, 20:00:44 PM
Quote from: noblefx on January 22, 2013, 23:04:06 PM
Hello
You guys are really doing a great job help us here... I have gone through the thread but i want the details view to be tabbed like the one below:

http://www.boohoo.com/restofworld/sale/dresses/icat/saledresses/dresses/florence-lace-trim-shift-dress/invt/azz58820

I also want to change the positions of "related products" and "Recently viewed" as it is in the link above.

Thanks

I see your site, and I need to do the same as you, I have 4 colors of dresses with multiple sizes.  How can I achieve stock check with color & sizes?
Title: Re: Attributes/Custom Fields Thread
Post by: bunglehaze on January 25, 2013, 13:50:30 PM
Quote from: noblefx on January 22, 2013, 23:04:06 PM
Hello
You guys are really doing a great job help us here... I have gone through the thread but i want the details view to be tabbed like the one below:

http://www.boohoo.com/restofworld/sale/dresses/icat/saledresses/dresses/florence-lace-trim-shift-dress/invt/azz58820

I also want to change the positions of "related products" and "Recently viewed" as it is in the link above.

Thanks

For that I simply use the Joomlaworks tabs and slides plugin which is free.

You enable the plugin in Joomla, allow the use of Joomla plugins in VM config and then on the description page just use their tags to display the different tabs on the page.

{tab=description}
The first tab for general description goes in here
{tab=tab1}
tab 1 would go in here
{tab=tab2}
the second tabbed section
{tab= tab3}
Here would be a third tab section


Hope this helps
Title: Re: Attributes/Custom Fields Thread
Post by: noblefx on January 26, 2013, 18:31:26 PM
Quote from: bunglehaze on January 25, 2013, 13:50:30 PM
Quote from: noblefx on January 22, 2013, 23:04:06 PM
Hello
You guys are really doing a great job help us here... I have gone through the thread but i want the details view to be tabbed like the one below:

http://www.boohoo.com/restofworld/sale/dresses/icat/saledresses/dresses/florence-lace-trim-shift-dress/invt/azz58820

I also want to change the positions of "related products" and "Recently viewed" as it is in the link above.

Thanks

For that I simply use the Joomlaworks tabs and slides plugin which is free.

You enable the plugin in Joomla, allow the use of Joomla plugins in VM config and then on the description page just use their tags to display the different tabs on the page.

{tab=description}
The first tab for general description goes in here
{tab=tab1}
tab 1 would go in here
{tab=tab2}
the second tabbed section
{tab= tab3}
Here would be a third tab section


Hope this helps

THANKS FOR THE REPLY
Ii really helps. It was awesome. once again i appreciate. But i have an issue, when I viewed the product details page on the front end of the site, i get the following still showing below the tabs "{tab=description} The first tab for general description goes in here {tab=tab1} tab 1 would go in here {tab=tab2} the second tabbed section {tab= tab3} Here would be a third tab section "
same goes for the slides "{tab=description} The first tab for general description goes in here {tab=tab1} tab 1 would go in here {tab=tab2} the second tabbed section {tab= tab3} Here would be a third tab section "
Is there a way I can display the color textures on the product page just as it is shown on the site above?
Thanks for your quick response
Title: Re: Attributes/Custom Fields Thread
Post by: bunglehaze on January 27, 2013, 19:57:50 PM
That would suggest you have the syntax wrong - have a look on the Joomlaworks site for that plugin as they have the documentation you need to sort that, as for the other - not sure what else you can do with it, I would assume you can as the tabs plugin just deals with tabbing the data so you will need to just style textures using html and css

Quote from: noblefx on January 26, 2013, 18:31:26 PM
Quote from: bunglehaze on January 25, 2013, 13:50:30 PM
Quote from: noblefx on January 22, 2013, 23:04:06 PM
Hello
You guys are really doing a great job help us here... I have gone through the thread but i want the details view to be tabbed like the one below:

http://www.boohoo.com/restofworld/sale/dresses/icat/saledresses/dresses/florence-lace-trim-shift-dress/invt/azz58820

I also want to change the positions of "related products" and "Recently viewed" as it is in the link above.

Thanks

For that I simply use the Joomlaworks tabs and slides plugin which is free.

You enable the plugin in Joomla, allow the use of Joomla plugins in VM config and then on the description page just use their tags to display the different tabs on the page.

{tab=description}
The first tab for general description goes in here
{tab=tab1}
tab 1 would go in here
{tab=tab2}
the second tabbed section
{tab= tab3}
Here would be a third tab section


Hope this helps

THANKS FOR THE REPLY
Ii really helps. It was awesome. once again i appreciate. But i have an issue, when I viewed the product details page on the front end of the site, i get the following still showing below the tabs "{tab=description} The first tab for general description goes in here {tab=tab1} tab 1 would go in here {tab=tab2} the second tabbed section {tab= tab3} Here would be a third tab section "
same goes for the slides "{tab=description} The first tab for general description goes in here {tab=tab1} tab 1 would go in here {tab=tab2} the second tabbed section {tab= tab3} Here would be a third tab section "
Is there a way I can display the color textures on the product page just as it is shown on the site above?
Thanks for your quick response
Title: Re: Attributes/Custom Fields Thread
Post by: noblefx on January 27, 2013, 23:30:06 PM
Thanks for the response... I've tried the documentation on the joomlaworks site... same thing applies.
i don't know if it has to with the latest version of vm2
Will keep searching for solution and will keep u posted.
Your help is highly appreciated
thanks

Quote from: bunglehaze on January 27, 2013, 19:57:50 PM
That would suggest you have the syntax wrong - have a look on the Joomlaworks site for that plugin as they have the documentation you need to sort that, as for the other - not sure what else you can do with it, I would assume you can as the tabs plugin just deals with tabbing the data so you will need to just style textures using html and css

Quote from: noblefx on January 26, 2013, 18:31:26 PM
Quote from: bunglehaze on January 25, 2013, 13:50:30 PM
Quote from: noblefx on January 22, 2013, 23:04:06 PM
Hello
You guys are really doing a great job help us here... I have gone through the thread but i want the details view to be tabbed like the one below:

http://www.boohoo.com/restofworld/sale/dresses/icat/saledresses/dresses/florence-lace-trim-shift-dress/invt/azz58820

I also want to change the positions of "related products" and "Recently viewed" as it is in the link above.

Thanks

For that I simply use the Joomlaworks tabs and slides plugin which is free.

You enable the plugin in Joomla, allow the use of Joomla plugins in VM config and then on the description page just use their tags to display the different tabs on the page.

{tab=description}
The first tab for general description goes in here
{tab=tab1}
tab 1 would go in here
{tab=tab2}
the second tabbed section
{tab= tab3}
Here would be a third tab section


Hope this helps

THANKS FOR THE REPLY
Ii really helps. It was awesome. once again i appreciate. But i have an issue, when I viewed the product details page on the front end of the site, i get the following still showing below the tabs "{tab=description} The first tab for general description goes in here {tab=tab1} tab 1 would go in here {tab=tab2} the second tabbed section {tab= tab3} Here would be a third tab section "
same goes for the slides "{tab=description} The first tab for general description goes in here {tab=tab1} tab 1 would go in here {tab=tab2} the second tabbed section {tab= tab3} Here would be a third tab section "
Is there a way I can display the color textures on the product page just as it is shown on the site above?
Thanks for your quick response
Title: Re: Attributes/Custom Fields Thread
Post by: juanfer2k on February 08, 2013, 16:57:13 PM
Quote from: rossstudio on January 13, 2012, 15:54:01 PM
Can there be a text entry custom field? Seems like other carts have this but not VM2. I could use it.

What if we need the input field text for a product, one that the user chooses, like name or a sinlge message?

How to place tis text field close to the product on the front page. and not using the mail function?
Title: Lists of Custom fields
Post by: iustin2009 on February 20, 2013, 21:52:53 PM
Hello everyone! First i want to apologise for my bad English.

I'm trying to make a online shop for selling computers but i have a problem with the custom fields.
I want to make a list of custom fields for, lets say, Laptop Specifications.
This will be like:
Laptop specifications (parent)->>Processor (also parent)->>Producer
                                                                                                Family
                                                                                                Clock Speed (GHz)

                                                ->>RAM Memory (also parent)->>Capacity  (GB)
                                                                                                   Memory type (DDR...)
                                                                                                   Frequency

                                                ->>Display(also parent)->>Diagonal measurement
                                                                                   Resolution
                                                                                   Format (HD, Full HD...)


When trying to create a product and assigning the custom fields all i get is the first "parent" custom field (not able to select a 2nd "parent" CF or a "child" CF)
Please recommend me a solution!

Thankyou for your help!
VM 2.0.18a
Joomla! 2.5.6

Apache version:   2.2.3
PHP version:   5.3.14
MySQL version:   5.5.28
Operating System   Linux
Title: Re: Attributes/Custom Fields Thread
Post by: jenkinhill on February 24, 2013, 00:11:56 AM
@iustin2009
Check Product Builder
http://breakdesigns.net/extensions/vm-product-builder
Title: Re: Attributes/Custom Fields Thread
Post by: iustin2009 on February 24, 2013, 08:04:09 AM
@jenkinhill thank you for your answer but Product Builder is not what I need right now. I want to create lists of  custom fields to be easier for me when populating the shop with products  (not editable or configurable by the clients).

Virtuemart only saves the second "parent" CF, not further.
I will probably use small lists of CF (with only one "parent"CF) and with ordering option allready in the backend of VM.
If this small project will be successful and I will receive some budget for it (right now its 0) then i will thinking about Product builder and Custom Filters extensions because it seems to be great tools for online shops!!!

PS: Sorry for my bad English and for a long post.
Title: Re: Attributes/Custom Fields Thread
Post by: jenkinhill on February 24, 2013, 12:28:18 PM
@iustin2009  make a proper message in this forum, start your own thread rather than tag onto this one where people are more likely to be ignored.
Title: Re: Attributes/Custom Fields Thread
Post by: frandevelop on March 04, 2013, 11:46:42 AM
Is possible set different prices for each property? As in virtuemart for J1.5:

Colors:
Red = 15 €
Green = 20 €
Blue = 30 €

Without product base price? in 2.5 can not find the option :(
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 05, 2013, 14:35:23 PM
Quote from: frandevelop on March 04, 2013, 11:46:42 AM
Is possible set different prices for each property? As in virtuemart for J1.5:

Colors:
Red = 15 €
Green = 20 €
Blue = 30 €

Without product base price? in 2.5 can not find the option :(


you can try my plugin to see if it works for you.
http://forum.virtuemart.net/index.php?topic=99678.0

Title: Re: Attributes/Custom Fields Thread
Post by: syntalk on March 07, 2013, 22:27:12 PM
Hi all,

Is it possible to make a custom field (cart variant in my case) required?
Any help is appreciated..
Title: Re: Attributes/Custom Fields Thread
Post by: Anirudh on March 13, 2013, 23:31:34 PM
You are the MAN!
Quote from: John2400 on January 23, 2012, 11:34:50 AM
To get a text attribute ----- I did this

WOW I do wonder why It is done this way but it worked for me.
* Go to the Joomla Plugins and find>>VM - Custom, customer text input>>enable for Public.
*Now Go to Virtuemart>>Products>>custom Fields>>click new>>and new Attribute appears blank.
* In the custom Field>> pick plugins>>a small box will appear at the bottom of the list and then click on it>>VM customer text>>
* Wait : in a moment you will see a few options appear>>Title of Imput text>> change to what you want eg, Name
* next change the size of input to under 50 >> leave the cost per letter.
* IN the places above in the empty fields just write a few words like text, name , write -- (you can change these later)
* Make sure that Cart and published are ticked yes.

Now save , save , save

* Not finished yet
Now you have to click on Products>>pick one>>go to custom fields>>custom field type>> and pick the attribute you just created >> save save save .

Test to see the attribute appear - and email to you.

OK, I saw a small problem but it did work for me.    OMG - they need to make this easier.
Title: Re: Attributes/Custom Fields Thread
Post by: programador.5 on March 15, 2013, 01:28:28 AM
Hello. I've been reading the thread so far, and I have the following issue with custom fields: Our client has asked us to add certain fields to the products (mostly string and textarea types), so he can fill additional information about the product. I've already created these custom fields and tried adding them to one test product, and they're working fine.

However, I need to add the custom fields to all of the products in the store. Is there any easy way to do this?

(The values of the custom fields I'll add them through a CSVI import, but first I need all the products to have the fields)

I'm using Joomla 2.5.7 and virtuemart 2.0.18b
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 15, 2013, 03:55:42 AM
programador.5

if you do the import right it will add it with csv improved (I think)
Title: Re: Attributes/Custom Fields Thread
Post by: programador.5 on March 15, 2013, 04:39:32 AM
 So far, I haven't been able to make it work. I add the custom_title and the custom_value fields. But when I do the actual import, only those productz that had the fields added manually get the values updated. The rest don't...
I'll take another look at the csvi manual, though.
Title: Re: Attributes/Custom Fields Thread
Post by: programador.5 on March 15, 2013, 14:39:45 PM
As far as I can see, CSV Improved updates the custom values only as long as the given product has the custom fields. I've tried to add both the custom_field and the custom_value to products with no custom fields and it isn't working... So far, it seems that indeed you have to add first all of the custom fields to the products before being able to mass import the values.

Taking a look at the database, it seems that each custom field has a product id field, which tells each custom field to which product is assigned... It seems the easiest option to be able to add this information would be to modify the product creation rules to include all of the custom fields, so when a new product is created, it already has assigned said custom fields.

I'm rather new to virtuemart, is there any guide as to which files handle the product creation rules?

Thanks!
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on March 15, 2013, 18:31:16 PM
you can also import straight into database

You export via csv improved.

Then change the column names etc.

also, and see attached for custom fields for csv improved

[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: programador.5 on March 15, 2013, 19:57:07 PM
Thanks for the databse tip, PRO. Although I managed to get it working by accident.
I imported all my products as usual through CSV Improved, and then imported another CSV with only product_sku, custom_title and custom_value, and worked allright.

I've been testing it for a couple of hours and it works every time I do both imports, but doesn't works if I only import the file with all of the product data... I admit I have no idea what's going on, but since it's working so far, I'm not going to complain too much  ;D
Title: Re: Attributes/Custom Fields no dropdown appears
Post by: Rittermann on March 29, 2013, 11:04:48 AM
Hi,

Yesterday my custom fields worked just fine, but today I get what is on the attached image?

I don't know what I have done to make the change?  ???

I'm running Virtuemart 2.0.20b on Joomla 2.5.9

[attachment cleanup by admin]
Title: How to add multiple fields?
Post by: Adam Bazaroff on April 19, 2013, 11:11:59 AM
For example:
I have jewelry item. It has an pearl, silver & a bead.Another item has a diamond, silver & a gold.
Can I make list of all variations in custom field, and then select some of it for every product.

List of possible materials is: metal; gold; silver; bead; chain; stone; wood; pearl; diamond; etc...
But I want to select multiple fields for every product.

And it only for customer information & product description, no needs to price variations or stock control. Any help?
Title: Re: Attributes/Custom Fields Thread
Post by: walkout_ on May 02, 2013, 12:41:59 PM
Hi,

I have a Custom Field Type: Cart Variant ; for a Product Size (XS, S, M, L, XL, etc.).

Custom field shows in productdetails view (default_addtocart.php) but not in category view (default.php) even files contains a same code:

<?php // Product custom_fields
if (!empty($this->product->customfieldsCart)) {  ?>

<div class="product-fields">
<?php foreach ($this->product->customfieldsCart as $field)
?>
<div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-fields-title" ><b><?php echo  JText::_($field->custom_title?></b></span>
<?php echo JHTML::tooltip($field->custom_tip,  JText::_($field->custom_title), 'tooltip.png'); ?>
<span class="product-field-display"><?php echo $field->display ?></span>

<span class="product-field-desc"><?php echo $field->custom_field_desc ?></span>
</div>
<?php
}
?>

</div>
<?php ?>


What do do to get my custom filed show in Add Chart Button in category view?
Title: Re: Attributes/Custom Fields Thread
Post by: Ninjab on May 02, 2013, 14:50:54 PM
hi there,

I am having a problem with the generic child variant feature. It is not showing my child products in my parent product when I add the generic child variant custom field. My steps are as follows:

1. Create parent product.

2. Create 2-3 child variant products under the parent product.

3. Goto custom fields menu (from the main menu, not the parent product submenu) and create a new custom field. I select generic child variant, give it a title and then click save.

4. Go to the parent product again and then to custom fields. I select the generic cart variant I just made and add it, click on the drop down but there is no child products in the list.

Can someone please advise if I have been doing it wrong? I have read various tutorials and I followed what they did and I cannot get it to work. Thanks.
Title: Re: Attributes/Custom Fields Thread
Post by: Ninjab on May 03, 2013, 04:20:42 AM
Can someone please help on my issue above? I cannot go any further into doing my website if the generic child variant doesnt work.

Thanks.
Title: Re: Attributes/Custom Fields Thread
Post by: PRO on May 10, 2013, 14:06:43 PM
Quote from: Ninjab on May 03, 2013, 04:20:42 AM
Can someone please help on my issue above? I cannot go any further into doing my website if the generic child variant doesnt work.

Thanks.

its better to create a thread about this
Title: Re: Attributes/Custom Fields Thread
Post by: t68 on June 19, 2013, 20:29:27 PM
I want to use a custom field were customers add their own lettering and pay per character when ordering a product with text printed on it. Got it almost working but the character limitation of the input that i define in VM admin doesn't work on the front end. I can ad infinite number of characters there.

I'm on j2.5.9 and vm2.0.1. Is there any fix/coding i can apply to sort this?

Skickat från min HTC One via Tapatalk 2

Title: Re: Attributes/Custom Fields Thread
Post by: PRO on June 21, 2013, 21:25:37 PM
Quote from: t68 on June 19, 2013, 20:29:27 PM
I want to use a custom field were customers add their own lettering and pay per character when ordering a product with text printed on it. Got it almost working but the character limitation of the input that i define in VM admin doesn't work on the front end. I can ad infinite number of characters there.

I'm on j2.5.9 and vm2.0.1. Is there any fix/coding i can apply to sort this?

Skickat från min HTC One via Tapatalk 2



I think its the version you have
Title: Re: Attributes/Custom Fields Thread
Post by: t68 on June 23, 2013, 22:16:43 PM
Quote from: PRO on June 21, 2013, 21:25:37 PM
Quote from: t68 on June 19, 2013, 20:29:27 PM
I want to use a custom field were customers add their own lettering and pay per character when ordering a product with text printed on it. Got it almost working but the character limitation of the input that i define in VM admin doesn't work on the front end. I can ad infinite number of characters there.

I'm on j2.5.9 and vm2.0.1. Is there any fix/coding i can apply to sort this?

Skickat från min HTC One via Tapatalk 2



I think its the version you have

Thanks for answering!
... And damn, have to stick to this version since my payment module doesn't support newer versions of vm :-(.

Skickat från min HTC One via Tapatalk 2

Title: Re: Attributes/Custom Fields Thread
Post by: notanothernumber on July 08, 2013, 04:37:32 AM
I was having a similar problem and found both the forum posts and virtuemart documentation incredibly confusing on how to do what seems like the simplest of functions. Hopefully you let external URLs to be posted here as once I found this on youtube - http://www.youtube.com/watch?v=6stZ-kMmxqc - it became a whole lot clearer.
Title: Re: Attributes/Custom Fields Thread
Post by: en jie rudd on October 24, 2013, 08:39:37 AM
I have a development site that is being upgraded/migrated from Joomla 1.5 to 2.5, Virturmart 1.1 to 2.0.

After created a custom field type (Size: 50g; 100g) from VM component main menu and returned to the parent product custom field tab, there were no options/properties as drop down or of any kind displaying (which have been created) by clicking the custom field type.

I have spent days reading trying to work it out without luck. Please help.

best regards

En Jie
Title: Re: Attributes/Custom Fields Thread
Post by: maxispin on October 24, 2013, 22:54:07 PM
Quote from: prudd on October 24, 2013, 08:39:37 AM
I have a development site that is being upgraded/migrated from Joomla 1.5 to 2.5, Virturmart 1.1 to 2.0.

Version 2 number ?
Title: Re: Attributes/Custom Fields Thread
Post by: en jie rudd on October 25, 2013, 10:15:40 AM
Hi,

the version is 2.0.24 (just updated, the issue was the same when it was on 2.0.22)

thank you in advance.

enjie
Title: Re: Attributes/Custom Fields Thread
Post by: AH on October 25, 2013, 11:00:47 AM
Is the a link to your site for me to look at?

I think you might benefit from the use of a frre plugin for attributes that PRO created ?
Title: Re: Attributes/Custom Fields Thread
Post by: en jie rudd on October 25, 2013, 23:34:53 PM
Hi Hutson

Thank you for the reply.

The site is currently down (sever issue) and we are working at getting it up again. There is however an earlier version developed by a developer on her sever that is manifesting the similar problem: http://www.website-bg.net/valleygreentea (screen shot attached)

I am able to create custom fields from the main menu under VM component, but not being able to execute it from product editor: click the custom field type and nothing happens!

Thanks in advance

regards

En jie


[attachment cleanup by admin]
Title: Re: Attributes/Custom Fields Thread
Post by: AH on October 26, 2013, 10:43:44 AM
Hmm

Everything seems to be ok from the front end.

The plugin is unlikely to make any difference
Title: Child products with text plugin custom field breaks dropdown menu
Post by: t68 on October 29, 2013, 09:51:39 AM
Hi all!
Got a tricky one (maybe):
I have a parent product with 4 child products in a dropdown custom field (generic child variant). And that works ok. But thing is that each child has it´s own
customer text input custom field in order for customers to ad their own texting on the product. Child 1 has 1 field and child 2 has 2 fields and so on.

But in order to ad these custom text inputs on the child products it seems as if I in admin have to check the option to override parent product custom field.

This in its turn seems to have the effect that I no longer on the product page can choose between the child products in the first drop down menu - once I have chosen one of the child products in the first place. So if I customer first chose child 2 and than changes his mind and want to chose child 3 he has to go all the way back and open the parent product from the category page.

On the product child page the child product dropdown is still there but the only option visible is the child product that you have chosen.

Hope I could explain my problem so you get it. Wonder if I have done something wrong in setting this up or if there is a limitation s that if child products have certain custom fields added, the ability to switch between the child products no longer works?

Thank´s for any input and help to solve this!
Title: Re: Attributes/Custom Fields Thread
Post by: Maxim Pishnyak on November 07, 2013, 19:06:56 PM
Did you solve it?
Title: Re: Attributes/Custom Fields Thread
Post by: Robert_ITMan on November 21, 2013, 16:42:51 PM
FYI - I just posted a new topic 'VM2 Custom Fields Integration - IT WORKS!' here:
http://forum.virtuemart.net/index.php?topic=120445.0
Title: custom fields Drop Down Box / Radio Buttons ???
Post by: MaritimeLobsterExpress on December 15, 2013, 08:10:30 AM
2.0.24c

Could someone please tell me if there is an option for radio buttons in the latest version. I cannot find it and have been searching and reading the forum for the last 2 hrs. Some people talk about radio buttons and some refer to the drop down list. It appears to me that the option for radio buttons may have been removed in the last version because I see posts regarding them in earlier versions. If they are possible in the current version please let me know how or if not then I will just get a plug. Im just confused because there is so much talk about radio buttons but I don't see this as an option in the current version. I'm very confused.
www.maritimelobsterexpress.com


Title: Re: Attributes/Custom Fields Thread
Post by: raunhar on January 21, 2014, 09:29:29 AM
Is there any possibility that the attributes can be choices.
For eg.
In Blue colour, the size available is 36" and 38"
In Green colour, the size available is 22",24" & 28".

So, when a customer selects Blue colour, only the available choices are shown. Same with other colour

Under blue, 22, 24 and 28 are not displayed.
Title: Re: Attributes/Custom Fields Thread
Post by: slinks on March 23, 2014, 16:33:27 PM
Hello

Can somebody tell me what the limit is for cart attributes please.  I have a list of flavours (60 in total) but it wont let me add them all in one list.  Can i change this setting somehow?
Title: Re: Attributes/Custom Fields Thread
Post by: anniemacbee on March 25, 2014, 20:03:22 PM
Quote from: notanothernumber on July 08, 2013, 04:37:32 AM
I was having a similar problem and found both the forum posts and virtuemart documentation incredibly confusing on how to do what seems like the simplest of functions. Hopefully you let external URLs to be posted here as once I found this on youtube - http://www.youtube.com/watch?v=6stZ-kMmxqc - it became a whole lot clearer.

The video was very helpful. It still took me ages..  I sell products by weight, each weight has a different price. To stop the parent price being added to the child products I set the price of the parent to 0.0001 and took out the weight. Otherwise the parent disappears.

I agree that the documentation is sorely lacking, and what is available is confusing. There is no tutorial either. I moved from ZenCart because I thought it was cumbersome. There have been moments I really wish I hadn't...
Title: Re: Child products with text plugin custom field breaks dropdown menu
Post by: rido21 on May 04, 2014, 12:13:18 PM
Any solution to this problem?
I use vm 2.6.0 and I can't  select differnet custom fields on childlren products from these on parent product.


Quote from: t68 on October 29, 2013, 09:51:39 AM
Hi all!
Got a tricky one (maybe):
I have a parent product with 4 child products in a dropdown custom field (generic child variant). And that works ok. But thing is that each child has it´s own
customer text input custom field in order for customers to ad their own texting on the product. Child 1 has 1 field and child 2 has 2 fields and so on.

But in order to ad these custom text inputs on the child products it seems as if I in admin have to check the option to override parent product custom field.

This in its turn seems to have the effect that I no longer on the product page can choose between the child products in the first drop down menu - once I have chosen one of the child products in the first place. So if I customer first chose child 2 and than changes his mind and want to chose child 3 he has to go all the way back and open the parent product from the category page.

On the product child page the child product dropdown is still there but the only option visible is the child product that you have chosen.

Hope I could explain my problem so you get it. Wonder if I have done something wrong in setting this up or if there is a limitation s that if child products have certain custom fields added, the ability to switch between the child products no longer works?

Thank´s for any input and help to solve this!
Title: Re: Attributes/Custom Fields Thread
Post by: millermulti on July 25, 2014, 17:00:39 PM
I have been waiting for over a year for VirtueMart 2.6 to come out as the developers had written on how the new version would handle custom fields for Parent/Child products much better then VM 2.0 did. Today I updated my VM 2.0 to 2.6.6. I then set up a child product and using the over-ride option in the Custom Field tabs I defined a few custom fields for my child product. As stated earlier in this thread, this in turn is breaking the relationship between the parent/child for the Generic Child Variant field on the Child product. By overwriting the custom fields the generic child variant field will not populate for child products. Was the fix for this issue not implemented in VM 2.6 or am I missing something?

*** Update ***

I was searching the forum and found a recent update posting from one of the VM moderators. Looks like the fix for the custom fields issue has now been pushed out to VM 3. Ughh!!! I won't hold my breath.
Title: Re: Attributes/Custom Fields Thread
Post by: rdharma on May 16, 2015, 16:41:24 PM
how to change the dropdown listing to text or buttons.
http://darkwearuk.com/j259/womens/range-1/g054s011-the-watchers-detail.html
Title: Re: Attributes/Custom Fields Thread
Post by: Cr3ativ3 on June 09, 2015, 14:02:41 PM
Ok, just a heads up for anyone still having mass update issues.

Well Globacides Mass Updater is one hell of a piece of kit, when it worked, developers have seemingly vanished and no responses to ANY messages for over a year, lots of people very p****d and rightly so.

In light of this i personally called in the big guns and asked one of the best developers my company has ever employed (i have used many and have many i use), but this guy is....well....frankly my main #1 go to guy and as always, he smashed it. Fixed known issues and applied his usual amazing skills to get VM Mass Updater working for J2.5 and VM3 only, but, that's not an issue, yes i know J3 is preferred, no support for J2.5 but i run a ton of sites on J2.5 still and for the trade off this solution has been an invaluable solution to maintaining existing eCommerce and building new ones.

If anyone is interested just drop me a line.

It's working and fully functional and an amazing product, just a shame the developers fell off the face of the earth, and also terrible that people are still buying it and it fails INSTANTLY without support!

I HAVE A WORKING VERSION.
Title: Re: Attributes/Custom Fields Thread
Post by: fboloorieh on June 21, 2015, 01:56:14 AM
Hi every body. I am a bit confused as I can't find integer custom field.
I wants to make a book printing service with VM.So the customer should have the possibility to choose the number of book pages then choose how many books he would order.
I am looking froward for your urgent kind help and advice.
Regards
Farid
Title: Re: Attributes/Custom Fields Thread
Post by: Studio 42 on June 21, 2015, 02:14:04 AM
Hi,
You can modify the text input plugin for this.

You have price by lettter settings, this can be the Number entered by the customer.
Show in the plugin  file : JOOMLAROOT/plugins\vmcustom\textinput\textinput.php
plgVmPrepareCartProduct (in vm3)
or plgVmCalculateCustomVariant(in vm2)

Greets,
patrick
Title: Re: Attributes/Custom Fields Thread
Post by: fboloorieh on June 23, 2015, 19:30:50 PM
Hi Patrick.
First of all I would like to thank you for your kind attention. unfortunately I am not a PHP expert to modify the plugin.
would you mind informing me of what has happened to integer custom field?  and if it had been working in same case as mine?
Is there any other solution?
looking forward for you kind advice.
Regards
Farid




Title: Re: Attributes/Custom Fields Thread
Post by: Studio 42 on June 23, 2015, 20:29:06 PM
The standard input fields do not check for the value you entered to change the price.
This mean you have to use a custom plugin(on modify existing or making a new one) if you need to calculate a price by the number you entered.
Perhaps the quantity plugin for virtuemart can solve your problem :
demo here http://istraxx.com/index.php?option=com_virtuemart&view=category&virtuemart_category_id=12&Itemid=435
to buy here : http://extensions.virtuemart.net/products/custom-size-detail