Author Topic: Attributes/Custom Fields Thread  (Read 333664 times)

spyderwebdesign

  • Jr. Member
  • **
  • Posts: 132
Re: Attributes/Custom Fields Thread
« Reply #255 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

mowgs

  • Beginner
  • *
  • Posts: 48
Re: Attributes/Custom Fields Thread
« Reply #256 on: April 29, 2012, 14:42:05 pm »
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?


spyderwebdesign

  • Jr. Member
  • **
  • Posts: 132
Re: Attributes/Custom Fields Thread
« Reply #257 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.

quadbsys

  • Beginner
  • *
  • Posts: 9
Re: Attributes/Custom Fields Thread
« Reply #258 on: May 01, 2012, 21:16:04 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!

bambarbia

  • Beginner
  • *
  • Posts: 5
Re: Attributes/Custom Fields Thread
« Reply #259 on: May 01, 2012, 21:31:00 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!
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.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: Attributes/Custom Fields Thread
« Reply #260 on: May 03, 2012, 00:55:56 am »
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



cristina

  • Beginner
  • *
  • Posts: 19
    • Collector Avenue
Re: Attributes/Custom Fields Thread
« Reply #261 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
VM 4.0.6 10690 - Joomla! 3.10.11 - php 7.4

spyderwebdesign

  • Jr. Member
  • **
  • Posts: 132
Re: Attributes/Custom Fields Thread
« Reply #262 on: May 10, 2012, 16:07:00 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.

Actlas

  • Jr. Member
  • **
  • Posts: 69
Re: Attributes/Custom Fields Thread
« Reply #263 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>"}

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3751
  • using Matomo instead of Google Analytics
Re: Attributes/Custom Fields Thread
« Reply #264 on: May 17, 2012, 13:59:33 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
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Actlas

  • Jr. Member
  • **
  • Posts: 69
Re: Attributes/Custom Fields Thread
« Reply #265 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...

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.6+
Re: Attributes/Custom Fields Thread
« Reply #266 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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10545
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Attributes/Custom Fields Thread
« Reply #267 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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Actlas

  • Jr. Member
  • **
  • Posts: 69
Re: Attributes/Custom Fields Thread
« Reply #268 on: May 19, 2012, 09:51: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?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10545
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Attributes/Custom Fields Thread
« Reply #269 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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/