VirtueMart Forum

VirtueMart 2 + 3 => Product creation => Topic started by: rayge on January 01, 2015, 14:02:37 pm

Title: VM3 Stockable variants for Size + Color?
Post by: rayge on January 01, 2015, 14:02:37 pm
I am trying to complete a clothing site for a client using VirtueMart 3.0.2 and Joomla 3.3.6

Since custom fields have changed how things work HOW do I accomplish this?
I would think i need a parent product with the main data and the child products with the size and colors. Then make the parent NOT selectable.

What custom field(s) would i use and what process to get this functioning?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: jjk on January 02, 2015, 18:52:18 pm
Did you have a look into the backend at demo.virtuemart.net? There should be examples for your case.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: rayge on January 03, 2015, 00:14:55 am
I did, and i didn't find anything matching what I wanted to do that functioned.
Child Variant is the only thing that COULD work but it doesn't work properly still..

There are issues with this custom field on both the admin side and the front end.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: jjk on January 03, 2015, 10:36:01 am
I thought on the demo site the 'Santa Cap' or 'Red Santa Cap' uses everything you need.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: rayge on January 03, 2015, 23:33:47 pm
The generic child variant doesn't handle things like size and color as stockable variants BUT if i put the size and color in the TITLE of each child it is a work around to handle it.
Thanks its atleast a functionable method for VM3 J3.X
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on January 05, 2015, 13:40:19 pm
As far as i see "Santa" and "Red Santa" are using a string for the size and a child variant for the color.
I cannot find a way to create a stockable variation using more than 1 option (e.g. Size and Color).

I decided to develop a plugin to create stockable variations from custom fields .
It will be completely free of charge.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sandstorm on January 09, 2015, 14:31:53 pm
I have questioned this before and I am with "RAYGE" on this.
There doesn't seem to be a way to set products up in VM3 with full stockable control? IN VM2 we used the stockable variants plugin, which no longer exists.  >:(

The Santa Cap in the demo (or the "Product using generic child and cart variant" in the sample data) will functionally work to a certain extent, but this doesn't allow products in this setup to be stockable as the stockable variants plugin worked in VM2.

Say you have a Red & Green T Shirt's in Small, Medium & Large. 
You can set up a product called T shirt & then 2 children named, Red T Shirt & Green T Shirt, then use the "Generic child Cart variant" against these.
In each of the Red & Green T shirt you then need to used the "Cart variant" to add the sizes - Small. Medium & Large.

This gives you the equivalent of the Santa Cap, but then none of the products have stock control.
Also when selecting the Generic Child variant the URL changes and the page refreshes. I understand that this was done to allow you to display different images for the variants, but is there a need to reload the page & change the URL.

Balai, I would be interested in having a look at your stockable variant plugin & testing it And think there should be another option in VM3 for fully stockable Parent/Child products


Ideally what I want/need to do is (using the above T shirt example) is to set up  Parent Product called T Shirt, which doesn't have to be orderable. Its almost a place holder & then create 6 Children products as below - Where in these children all I need to add is, Price, SKU, Stock Number, weight, Image

Parent - T Shirt
Children;
Red T Shirt Small
Red T Shirt Medium
Red T Shirt Large
Green T Shirt Small
Green T Shirt Medium
Green T Shirt Large

Then some sort of stockable variant plugin that will allow for 2 dropdowns in the front end, one for "Select Colour" & another for "Select Size"
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on January 09, 2015, 16:36:29 pm
Quote
Then some sort of stockable variant plugin that will allow for 2 dropdowns in the front end, one for "Select Colour" & another for "Select Size"

This is what i have in mind. To create variations/products from custom fields, using as many custom fields as you like.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sandstorm on January 09, 2015, 17:03:28 pm
This is what I have in mind. To create variations/products from custom fields, using as many custom fields as you like.
Using Parent & Child products, yes? The idea for me & I think "rayge" is that the products all need to be created separate tin order to have own SKU and stockble
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on January 12, 2015, 11:56:24 am
A screenshot can clarify the things
(http://snag.gy/7Z5th.jpg)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: bmw2182 on January 12, 2015, 21:01:43 pm
When might this plug in be available?  I would be interested as well!  Thanks!
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on January 19, 2015, 13:24:15 pm
Possibly there will be a beta before the end of the month. I will let you know
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on January 23, 2015, 12:57:07 pm
Guys, you wanna make fun on me?

You never tried the "child variant" ? which is much more mighty than the old "stockable plugin" ? just because there is no sample data yet? a come on.

Generic child variants != child variants
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sandstorm on January 23, 2015, 15:01:44 pm
I tried to have a play with "Child variant" but I couldn't seem to figure it out to get the (multiple) variants showing for a product, that needs stock control.
Like T shirt with colours as an option and sizes as an other option.

If I am missing something please can someone help/advise?

Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on January 23, 2015, 19:24:51 pm
I released a beta version
You can find details here
http://breakdesigns.net/extensions/stockable-custom-fields

Please send me your feedback
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GluckGroup on January 26, 2015, 02:09:14 am
Has somebody figured out how to use the "Child Variant" to achive this?

"Milbo" mentioned it is possible!
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GJC Web Design on January 26, 2015, 11:08:54 am
have you tried balai new plugin?  http://forum.virtuemart.net/index.php?topic=127500.msg438624#msg438624
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sandstorm on January 26, 2015, 13:03:43 pm
I am testing Balai's new plugin, but would also be very interested in how this can be done using just "Child variant" as suggested by Max
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GluckGroup on January 26, 2015, 19:09:04 pm
I am testing Balai's new plugin, but would also be very interested in how this can be done using just "Child variant" as suggested by Max

I'm also testing Balai's plugin but I would also like to know how it is possible to to achive this using the "Child variant"...  :P
Title: Re: VM3 Stockable variants for Size + Color?
Post by: escapezone on January 26, 2015, 23:53:30 pm
Hello everyone!

I tested Child variants and Generic Child variants and balai's plugin ... the only comment that i want to make for now is about the parent and children stock handle.

From VM 2xx i know this : when the parent product has 0 stock it takes the children's stock (correct me if i am wrong)

But as i can see at VM 3 When the parent product has 0 stock it doesn't take the children stock and it says "Notify me"

Why am i saying this ? Its simple, when you want to build a clothes store you want 2 things to build a product : 1) The parent product that will have the image, description, price and the childrens that would be the sizes (small, medium,large,xlarge)

Plz @Milbo i don't know if this a bug or if i am doing something wrong but look how the parents products was at VM2.xx and look how are they now at VM 3.xx

Thank you!
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GJC Web Design on January 27, 2015, 00:46:23 am
Quote
From VM 2xx i know this : when the parent product has 0 stock it takes the children's stock (correct me if i am wrong)

afaik in my experience VM2 parents always had to have a stock level > 0 - otherwise the children never displayed
And with the std. stockable variants plugin it took the parent stock for children - so was never accurate
Title: Re: VM3 Stockable variants for Size + Color?
Post by: VopoloS on February 02, 2015, 12:14:03 pm
What is the number to put in the parent item when you use your plugin? Tried your plugin in different settings, the results:

1. deducted from the warehouse (decrease inventory balance) the parent item, not a child!

2. In the cart does not transmit data subsidiary goods.

It seems to me that the plugin does not take into account the balance in stock of subsidiaries in general :)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 02, 2015, 12:36:57 pm
What is the number to put in the parent item when you use your plugin? Tried your plugin in different settings, the results:

1. deducted from the warehouse (decrease inventory balance) the parent item, not a child!

2. In the cart does not transmit data subsidiary goods.

It seems to me that the plugin does not take into account the balance in stock of subsidiaries in general :)

1. I think that this happens generaly with the parent products. It is not related with the plugin itself. So better put a high number of stock
2. What does this means? It does not add the child product to the cart? Does the child product loaded after you select custom fields?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: VopoloS on February 02, 2015, 13:48:16 pm
What is the number to put in the parent item when you use your plugin? Tried your plugin in different settings, the results:

1. deducted from the warehouse (decrease inventory balance) the parent item, not a child!

2. In the cart does not transmit data subsidiary goods.


It seems to me that the plugin does not take into account the balance in stock of subsidiaries in general :)

1. I think that this happens generaly with the parent products. It is not related with the plugin itself. So better put a high number of stock
2. What does this means? It does not add the child product to the cart? Does the child product loaded after you select custom fields?

1. Rather, it is a bug Virtuemart 3.0.2 ... Because, logically, if there are child items, the parent item in stock should be 0 pcs.
2. Child products are created with this plugin, but no more .. When ordering reduces the number of parent item, although the design is chosen child.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 02, 2015, 13:54:21 pm
I am not getting the 2nd point.
Can you describe it further or give me the url and let me know how to reproduce it?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: VopoloS on February 02, 2015, 19:23:48 pm
RE:
" I am not getting the 2nd point.
Can you describe it further or give me the url and let me know how to reproduce it? "

Local video: https://yadi.sk/d/acf1pMCGeRGPy
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 03, 2015, 05:37:47 am
I am not getting the 2nd point.
Can you describe it further or give me the url and let me know how to reproduce it?

There are 2 specific issues here I think.

First, understand that there is a parent product that is generally not orderable in a clothes store. The children of that product are the orderable variants of the product.
So, with regard to maintaining stock, how many t-shirts (for example) that you have is not useful or relevant either to the customer or the supplier.
What is relevant is how many Red t-shirts in small, how many green t-shirts in medium and how many blue in x-large. You might have 30 t-shirts left in stock, but only in those colour and size combinations.

So, if the parent product has zero stock, the product is displayed as out of stock, despite the fact you have 30 t-shirts available.

If the parent product is set to a stock of 1, then it is then shown as 'in-stock'. But, if someone wants x-large t-shirt in Red, it is not in stock.

Therefore, the display of the parent product SHOULD show if there are any child products in stock, i.e. the sum of all child products, and its own stock is not relevant. This is probably a template issue rather than a plug-in issue, but I do not profess to know where it is best implemented.

Here's an example
http://elanvape.com/index.php/en/shop/liquids/eve-guava-e-liquid-detail
the parent product says 1 available and prompts to choose a variant

You can choose between strength at 0, 6 or 12 and size between 5 and 15
There are a total of 15 available, 5 of each
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on February 03, 2015, 08:53:14 am
I tried to have a play with "Child variant" but I couldn't seem to figure it out to get the (multiple) variants showing for a product, that needs stock control.
Like T shirt with colours as an option and sizes as an other option.

If I am missing something please can someone help/advise?

Did you try the sample product? With the child variant, I can quite easily controll 50 different t-shirts in one view and it is shown as one product. You can have atm 5 rambification and theoretically a lot more.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on February 03, 2015, 09:06:56 am
Hello everyone!

I tested Child variants and Generic Child variants and balai's plugin ... the only comment that i want to make for now is about the parent and children stock handle.

From VM 2xx i know this : when the parent product has 0 stock it takes the children's stock (correct me if i am wrong)

But as i can see at VM 3 When the parent product has 0 stock it doesn't take the children stock and it says "Notify me"

Actually this is almost correct behaviour. It just interferes with the "notify me" option. There are options in the vm config to finetune this. So either you just disable the option
"Displays 'Notify Me' instead of 'Add To Cart' button" and use "Do not Display Product, if child products also out of stock"

or "Products Out of Stock are orderable, no special action". If you need the option "Displays 'Notify Me' instead of 'Add To Cart' button", then you must enter at the parent at least a 1.
 
First, understand that there is a parent product that is generally not orderable in a clothes store.
Yepp, and therefore the parent product, should have stocking 0 if not orderable . For the stock display the advantage in vm3 is that it even adds the stocking of the childs on the parent. So it IS a lot more exact now then before.

Actually I think none of you considered the different vm config options. The new child variants are very, very mighty.

There may be a small bug with the inventory, because I rewrote it and it should consider all arguments you wrote down here (in special the thoughts of sonickev). The child variant is also not done yet. The architecture allows it easily to extended it.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 03, 2015, 10:21:30 am
Hi and thanks a lot for the feedback.
I am willing to make this work as good as possible and i am sure that Max can help in that direction as VM handles a big part of that

@SolopoV
RE:
" I am not getting the 2nd point.
Can you describe it further or give me the url and let me know how to reproduce it? "

Local video: https://yadi.sk/d/acf1pMCGeRGPy


I think that the problem you describe is related with the template.
It seem that it does not load the child product after selecting a variant. This could happen either because of a js error or because the layout has not the corresponding css selectors where the ajax results should be loaded.

Check here a working example:
http://test2.ixnes.gr/index.php/front-page/default-products/new-product-1-detail
You can see that after selecting the variants, it loads a new product (The product name change)

@sonickev
I cannot see the drop-downs. I think that this is related with the classes we are using for the drop-downs and the way your template handles them
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Jörgen on February 03, 2015, 11:15:24 am
Hello Balai

Thanks for the demolink. It is Always good to see a wrking example. :)

Is it possible to also see the SKU for the child on the details page? I never managed to get this working in the old VM 1.1.x.

regards

Jörgen @ Kreativ Fotografi
Title: Re: VM3 Stockable variants for Size + Color?
Post by: franayala on February 03, 2015, 13:15:47 pm
Child Variant is working for me.

Maybe is not the best and more intuitive mode to do a stockable custom field, but works like Milbo says.

If you install 3.0.4 version with demo data you can see how to do this. It is easy after try a minute. And very powerfull.

Thanks!!
Title: Re: VM3 Stockable variants for Size + Color?
Post by: escapezone on February 03, 2015, 14:53:36 pm
[quote author=Milbo Yepp, -->and therefore the parent product, should have stocking 0 if not orderable<-- . For the stock display the advantage in vm3 is that it even adds the stocking of the childs on the parent. So it IS a lot more exact now then before.

Actually I think none of you considered the different vm config options. The new child variants are very, very mighty.

There may be a small bug with the inventory, because I rewrote it and it should consider all arguments you wrote down here (in special the thoughts of sonickev). The child variant is also not done yet. The architecture allows it easily to extended it.
[/quote]

Hello @Milbo !

I agree with you but are you sure that the vm is working like that? or am i doing something wrong ? (and therefore the parent product, should have stocking 0 if not orderable)


I build a parent product with 0 stock, and this product has two children the size Small (stock=1) and the size Medium (stock=1) .

The parent products says notify me becuase of the zero stock . see example here http://www.pawdiakopes.gr/index.php/component/virtuemart/default-products?Itemid=101

The RED body product is build with Generic Child Variant.

Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on February 04, 2015, 11:53:45 am
Are you aware that we have this options?

Products Out of Stock are orderable, no special action
Do not Display Product
Do not Display Product, if child products also out of stock
Displays 'Notify Me' instead of 'Add To Cart' button
Products Out of Stock are orderable, and the field 'Availability' below is displayed

and

Show uncategorised parent products in search results and modules    
Show uncategorised child products in search results and modules    
Show products which are only in unpublished categories.

All this settings can affect the feature and change the behaviour.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: escapezone on February 04, 2015, 14:00:36 pm
Are you aware that we have this options?

Products Out of Stock are orderable, no special action
Do not Display Product
Do not Display Product, if child products also out of stock
Displays 'Notify Me' instead of 'Add To Cart' button
Products Out of Stock are orderable, and the field 'Availability' below is displayed

and

Show uncategorised parent products in search results and modules    
Show uncategorised child products in search results and modules    
Show products which are only in unpublished categories.

All this settings can affect the feature and change the behaviour.

Hello @Milbo !

Yes i know these options.. Lets do it your way... I want the parent not to be orderable, which option should i choose ?
Right now i have "Displays 'Notify Me' instead of 'Add To Cart' button"

Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on February 04, 2015, 14:09:18 pm
Give it 0 inventory, use "Do not Display Product, if child products also out of stock". Use in the first row of the "child variant", at least one unknown position, so it cannot preselect a child.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 04, 2015, 16:22:58 pm
@escapezone
I think that there is a setting named "parent not orderable" both in the VM plugin and in my stockable plugin
Title: Re: VM3 Stockable variants for Size + Color?
Post by: escapezone on February 04, 2015, 16:42:06 pm
@escapezone
I think that there is a setting named "parent not orderable" both in the VM plugin and in my stockable plugin

I know @balai i have seen that... but as i understand the setting "Display stock level" at VM  backend configuration shows only the "parent stock"
By the way have you considered to change the "thing" with the "select" that i wrote you at my last email? I like your plugin very much, but this is the only thing that i don't like

@Milbo I tried your settings but i disable the Display stock level because as i understand it's shows only the parent stock. you can see example here http://www.pawdiakopes.gr/index.php/component/virtuemart/default-products?Itemid=0?tmpl=component (the red body product , witch is build with the Generic Child Variant)

Also i have a suggestion to add an option at "Child Variant" do you want me to share with you?

Thank you!!!
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 04, 2015, 17:56:20 pm
Quote
By the way have you considered to change the "thing" with the "select" that i wrote you at my last email? I like your plugin very much, but this is the only thing that i don't like
You mean to remove the select option after loading a child product?

There are a lot of chances to implement that. Possibly there will be a new beta before the end of the week. Stay tuned
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on February 04, 2015, 22:47:40 pm
Is it possible to also see the SKU for the child on the details page? I never managed to get this working in the old VM 1.1.x.
Standard with the new "child variants"
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Jörgen on February 05, 2015, 08:10:43 am
Hello Milbo

Thanks for Your reply. This sounds great. The reason for asking was that I can´t see any SKU beeing displayed neither on the details nor on the browse page in the official demo. The child variant (Child variant 1 .. 3) product has a blank SKU field. The only thing I can see changing is the product name and so far this is good. I will try to add the product_sku on the details page view and see if this also changes. All of my child variants are real products that has its own SKU.

regards

Jörgen @ Kreativ Fotografi
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 05, 2015, 10:04:48 am
Code: [Select]
The reason for asking was that I can´t see any SKU beeing displayed neither on the details nor on the browse page in the official demoJorgen i think that this is mostly a question related with the template. If you display the sku together with the other product details, this will be updated as well. I think it is pretty easy to display the sku.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 05, 2015, 13:27:46 pm
@Max

I think there is a case with stock management that is not covered by the settings.

A shop has both parent-child products and products without children
When the parents have zero stock there is no any way to display in the shop only the products (without children) with stock and only the parent products that have childern with stock.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Milbo on February 06, 2015, 17:34:06 pm
I just explained that this should be possible, because the inventory of the children is added to the parent
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 06, 2015, 20:59:30 pm
I have tried various options and only really have one solution that is close to my needs.

I tried the stockable plugin, but could not get the dropdowns to work (they kept appearing behind my addtocart existing section)

If you follow this link - http://elanvape.com/index.php/en/shop/liquids/eve-guava-e-liquid-detail

This is a 'Child Variant' with 3 children
The Children are selected using a custom field of 0mg, 6mg and 12mg
They all have different prices
The parent is NOT orderable, though I see no way of telling Virtuemart that

Choosing each variant does not update the price or stock availability

I can still order the parent

When I choose a different variant and try to order it, it still places the parent product (which is not orderable) into the cart.

So...I'm a little bit lost.

Only the generic child variant gives the frontend behavior I require, but offers no stock control.

Right now, I don;t have a working solution.

(http://elanvape.com/child.png)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 09, 2015, 13:21:21 pm
New beta released. Please test and let me know

http://breakdesigns.net/extensions/stockable-custom-fields
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 10, 2015, 01:26:00 am
I've tried out the beta plugin - here is a live example -
http://elanvape.com/index.php/en/shop/liquids/eve-guava-custom-detail

The parent product displays as zero stock

The correct options are available in the pulldowns

All child products have stock and are varied pricing

Thats about it really - nothing happens - choose an option - nothing. No combination can be added to the cart

Any ideas?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 10, 2015, 12:49:02 pm
It's a template issue.
Your template alters the drop-down lists (select) to ul lists.
That makes our scripts useless.

Try altering template (1m that displays drop-downs as drop-downs) and will probably work
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 11, 2015, 02:12:53 am
Thank you.

my apologies but I don't understand your response...
Quote
1m that displays drop-downs as drop-downs

The template works with all other Virtuemart Custom Fields..they all update the picture and pricing...can you suggest how to resolve this?

Otherwise it seems sensible to stay within Virtuemart standard and wait for generic child to be fixed.

The lack of a standard within Virtuemart, for the cart/checkout, is starting to look like it isn't a viable solution for a clothing store.

I've supported it until now, but basic functionality of color/size for a stocked item really should be a basic requirement shouldn't it?

Realistically, if you have a t-shirt in black and white and in medium and large - each with its own quantity in stock - isn't that REALLY REALLY basic for an e-commerce solution?

Right now, on a Virtuemart forum, where on this thread everyone is looking for a basic ability...I'm shocked.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 11, 2015, 03:37:06 am
At the moment we have -

http://elanvape.com/index.php/en/shop/liquids/eve-guava-e-liquid-detail
which uses a child variant

Then we have -
http://elanvape.com/index.php/en/shop/liquids/eve-guava-custom-detail
which uses balai's stockable plugin

Then -
http://elanvape.com/index.php/en/shop/liquids/eve-guava-generic-parent-detail
which is a generic child variant

All of them show the parent product as out of stock, despite the parent product not being orderable - wrong
generic child updates the page with the correct status but then offers stock beyond the child variant
stockable and child variant do not update price or stock (though I am told that this is because my template uses ul rather than dropdown...ongoing)

Right now, I do not have a stock-true option from an e-commerce solution that is in its third major release.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 11, 2015, 11:50:08 am
@sonickev
Besides the stock issue, which Max is most appropriate to answer, i don't understand where is the blame of the ecommerce solution when you have a template that renders all the scripts useless.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GJC Web Design on February 11, 2015, 17:01:24 pm
haven't had time to test these different methods but noticed on another project that the $this->product->product_in_stock in the default details template is always the parent even after the ajax reload

dirty fix in models/products.php ~ line 792


Code: [Select]
if (!$child->published && $onlyPublished) {
self::$_products[$productKey] = false;
return FALSE;
}
//GJC  fix for child stock
$child->child_stock = $child->product_in_stock;
//GJC
if(!isset($child->orderable)){
$child->orderable = TRUE;
}

then in template $this->product->child_stock  is always correct
Title: Re: VM3 Stockable variants for Size + Color?
Post by: dslove on February 11, 2015, 20:18:57 pm
Balai, just tried your plugin and I find it excellent.
VM3 might be very powerful and offer new possibilities (great work VM Team!) but this part is not very intuitive. Thanks for making it so!
Will notify you of any bugs I might discover! :)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 12, 2015, 03:44:23 am
@sonickev
Besides the stock issue, which Max is most appropriate to answer, i don't understand where is the blame of the ecommerce solution when you have a template that renders all the scripts useless.

Changing the ul to dropdown as you described...do you think there is an easy way to do that, or will I need the template rewritten? The template appears to work with the current virtuemart custom fields. I wonder if there is simply a plugin or perhaps I can backtrack to some standard VM3 code for the product area.

Any suggestions?

Thanks.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 12, 2015, 04:04:24 am
Try altering template (1m that displays drop-downs as drop-downs) and will probably work

Sorry, I don't understand your comment here, I don't understand "1m"

thank you for your assistance. I have asked the developers if it can be changed.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: alextor on February 17, 2015, 23:14:44 pm
I released a beta version
You can find details here
http://breakdesigns.net/extensions/stockable-custom-fields

Please send me your feedback

Hi, I installed your extension, I followed your instructions, everything seems ok, but in product nothing happens when i select a variant, the click on select variant does not work.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Menace on February 18, 2015, 10:27:11 am
I tested balais plugin und even with the beta3 version I have the problem, that the assigned custom field string of the childs show up as soon as a variant is selected additionally to the parents dropdown select box. This happens on all test sites even with blank vm setups.

Anyone else?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 18, 2015, 10:49:19 am
@Menace
I suppose that you did not follow the manual.
http://breakdesigns.net/stockable-customfields-manual

Please follow it carefully and you will see that this does not happen
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 18, 2015, 14:39:30 pm
I've tried both with Balai Plugin and with VM Child Variants as explained by Milbo,
But i cant figure out how to fix the problem of reselecting item from the drop-down. 
On the first time i select size it works fine, but if i try to select again another size it changes the URL to the number i've selected and doesn't change the product.
Any suggestions?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 18, 2015, 16:28:19 pm
Quote
On the first time i select size it works fine, but if i try to select again another size it changes the URL to the number i've selected and doesn't change the product.
It is possibly a template issue related with the scripts
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 18, 2015, 17:26:22 pm
There are few people who've tested it with several templates, you think ALL templates doesn't support this kind of feature correctly?  i dought that.
Can you show me a working version of this feature on a default template?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: jenkinhill on February 18, 2015, 17:56:43 pm
I don't see your problem here:
http://demo.virtuemart.net/default-products/vm-t-shirt-multi-child-detail?limitstart=0&limit=int&showall=1
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 18, 2015, 18:09:43 pm
That's because it is working on version 3.0.6 which isn't released yet
If anyone has a website which runs on 3.0.4 version and using a stockable custom fields, i'll be happy to see it in action, cause until now i havn't seen any.
If anyone has a solution for how to fix this problem it will be even greater
meanwhile i am stuck and its a crucial part of my fashion store website.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 18, 2015, 18:17:02 pm
Get 1 more of my Stockable Custom Fields Plugin
http://test2.ixnes.gr/index.php/front-page/default-products/new-product-1-detail
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 18, 2015, 18:28:22 pm
(http://srv214.gif.co.il/images/108190Untitled.png)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on February 19, 2015, 05:19:18 am
That's because it is working on version 3.0.6 which isn't released yet
If anyone has a website which runs on 3.0.4 version and using a stockable custom fields, i'll be happy to see it in action, cause until now i havn't seen any.
If anyone has a solution for how to fix this problem it will be even greater
meanwhile i am stuck and its a crucial part of my fashion store website.

exactly how it feels to me.

I am using what I believe to be a very professional and quality template, but the authors of the template are trying hard to meet with undocumented standards in the product presentation that appears to be a moving target with VM3.

I really appreciate what Balai is trying to present, but being told that my template is wrong does not really sit well with the Virtuemart ethic.

A successful plugin is flexible and configyarble to fit with what people are doing out in the real world. A plugin needs to work with other plugins and methods.

Right now...with all the latest examples and templates from (some of) the best engineers - there isn't an available working solution.

I'm using a T3 based template and I'm told my markup isn't right, that I need to do 'this and that'. I don't think that is how this is meant to work.
I'm looking and hoping for something that works and doesn't break as soon as I install something else.

Fantastic work by all involved. I never want to take away from that. really great and fast!...but not there yet.

Title: Re: VM3 Stockable variants for Size + Color?
Post by: advergroup on February 19, 2015, 08:06:12 am
Are there any official instructions provided by VM on this new process for custom fields?

Does admin realize there are many wishing to deploy VM on live sites?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 19, 2015, 08:13:08 am
I'm willing to pay for a fix for that bug in my website, Balai/anyone else, if you're interested please PM me
I must go live within a week and this is what holds me.. 
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 19, 2015, 11:01:11 am
@sonicev
Quote
Right now...with all the latest examples and templates from (some of) the best engineers - there isn't an available working solution.

I am using the new js handler introduced by VM3 to add my scripts
http://docs.virtuemart.net/tutorials/development/196-the-vm-javascript-handler.html

Nothing related with the plugin itself. Simply what added with that method is ignored by the template and i assume that it has to do with the place that this is loaded into the markup.
I am looking to make the plugin more flexible with that but any template intending to be compatible with VM3 has to work with those methods, otherwise there will be other problems ahead.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 20, 2015, 12:21:31 pm
I've wrote to my template support team, and this is what they answered:

--

Joomla-monster:
Hello,

Ok, now I see.
It seems the child product is loaded on the first try only.
I disabled our theme override for VirtueMart and the same issue appeared.
So the problem is related to the VirtueMart core files.


--

So Balai, it's not a Template problem.

Also, they told me that the functions on dynupdate.js aren't being called after first selection.
Where does the code who listens to changes and fires the call to dynupdate methods exists? i couldn't find it

I found this change in 3.0.6: http://dev.virtuemart.net/projects/virtuemart/repository/revisions/8689
But when i change it in my local env. it doesnt affect anything..   any suggestions?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 20, 2015, 22:15:25 pm
I've installed version 3.0.6 from this link: http://dev.virtuemart.net/projects/virtuemart/files
But it still doesn't work in my website.
Left with no ideas.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: spi7fire on February 20, 2015, 23:37:07 pm
OK i have a solution, the problem is that dynupdate.js doesn't recalls cvfind.js after we select item from the dropdown.  I guess that because it calls AJAX, we lose the cvfind binding.
So to solve it i added two things to the code:
1.  on /virtuemart/administrator/components/com_virtuemart/models/customfields.php
after line 869 i added a function:
$j = "
                  function getSelectorVariants() { return [".$jsVariants."]; }
                  jQuery('#".implode(',#',$tags)."').off('change',Virtuemart.cvFind);
                  jQuery('#".implode(',#',$tags)."').on('change', { variants:[".$jsVariants."] },Virtuemart.cvFind);
";
so the php will compile the needed list.
and then on /virtuemart/components/com_virtuemart/assets/js/dynupdate.js
after line 72 i've added a variable that gets the above list, and re-binded the cvFind:
    Virtuemart.updateDynamicUpdateListeners = function() {
      $__list = getSelectorVariants();
 
      jQuery('*[data-dynamic-update=1]').each(function(i, el) {
            var nodeName = el.nodeName;
            el = jQuery(el);
            console.log('updateDynamicUpdateListeners '+nodeName, el);
            switch (nodeName) {
                case 'A':
               el[0].onclick = null;
                    el.off('click',Virtuemart.updL);
                    el.on('click',Virtuemart.updL);
                    break;
                default:
               el[0].onchange = null;
               el.off('change',Virtuemart.cvFind);
                    el.on('change', { variants: $__list  },Virtuemart.cvFind);
               el.off('change',Virtuemart.upd);
                    el.on('change',Virtuemart.upd);
Title: Re: VM3 Stockable variants for Size + Color?
Post by: korpithas on February 27, 2015, 16:37:37 pm
Hi all,

So to sum up on this confusing topic,

At this very moment is VM3.0.6 able to provide child products with different stock and different price while at the same time parent product are not orderable?

As far as i can tell if ''multi variants'' had an option ''Parent orderable  Yes or No''  like the ''Generic child variant '' has, case would be closed.

I am trying using VM3.0.6 and Joomla 3.4.0 but at the moment cant make that happen.

Anyone any progress?

Thanks
Title: Re: VM3 Stockable variants for Size + Color?
Post by: korpithas on February 27, 2015, 17:05:31 pm
I just explained that this should be possible, because the inventory of the children is added to the parent

Hi Milbo,

This function is not working as you describe.
The Stock level of child products is not added to the parent stock. Unless i miss something.
Can you please clarify?
thanks
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 27, 2015, 17:40:02 pm
Quote
As far as i can tell if ''multi variants'' had an option ''Parent orderable  Yes or No''  like the ''Generic child variant '' has, case would be closed.
Have you tried my plugin?
http://breakdesigns.net/extensions/stockable-custom-fields

This feature is there
Title: Re: VM3 Stockable variants for Size + Color?
Post by: korpithas on March 01, 2015, 02:15:31 am
Have you tried my plugin?

No.
But i just did and its working excellently.
Congrats.
I think its fine.
Is there a specific reason its in beta?

I also noticed that if you assign to a product a custom field from your plugin with empty data  and if you set the cart attribute and cart input to no.
Then even the built in virtuemart multi variants custom filters work as expected (without parent to be ordereable) only this time you get an error because of the empty fields in your plugin.

I hope i am clear enough, there is nothing wrong with the plugin. I just did some tests with multi variants.

Here is the errot I got.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '),pc.ordering' at line 5 SQL=SELECT *,pc.virtuemart_customfield_id AS id,pc.customfield_value AS value FROM x6s34_virtuemart_product_customfields AS pc LEFT JOIN x6s34_virtuemart_customs AS customs ON pc.virtuemart_custom_id=customs.virtuemart_custom_id WHERE pc.virtuemart_custom_id=21 ORDER BY FIELD(pc.virtuemart_product_id, ),pc.ordering - See more at: http://localhost/kemeta/index.php/el/women/dresses/%CF%83%CF%84%CF%85%CE%BB%CF%8C-big-1-detail.html#sthash.B92iUFyu.dpuf


Thanks for pointing me your plugin and thanks for creating it and sharing it.
Are there any known bugs? (because its still in beta)

Thanks again
Title: Re: VM3 Stockable variants for Size + Color?
Post by: lindapowers on March 03, 2015, 05:55:07 am
So we have 2 developers here working in the same plugin with slight differences instead of making a unique plugin for the core while the ***obscenity removed*** system still redirects all the child products and variants to the detail view making this and all the plugins useless till someone with brain decides to solve the issue.

Fantastic.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on March 03, 2015, 10:31:58 am
Quote
So we have 2 developers here working in the same plugin with slight differences instead of making a unique plugin for the core
I don't think that the 2 plugins are doing the exactly the same. If you look closer you will realize that they have different features pros/cons.
Quote
system still redirects all the child products and variants to the detail view
This actually requires changes to the scripts rather than the functionality of the variants
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on March 09, 2015, 20:53:28 pm
As per the OP, I am also trying to create two different web sites each with the Size+Color type choice.

The virtuemart demo at http://demo.virtuemart.net/default-products/vm-t-shirt-multi-variant-detail does exactly this (Joomla 3 and VM 3.0.6.4)

My site is virtually the same and I have configured my multivariant exactly the same as the demo.

But...I can only choose the first option out of my 2 options

My option is for "size" and "strength" of a bottle of liquid. I can choose the size and the in-stock strengths become available in the second dropdown, but regardless of what I choose in the second dropdown, it reverts back to the first item in the list.

Here is an example on my site - second drop down can't be selected further into the list, always reverts to first option - http://elanvape.com/index.php/en/shop/liquids/vlad-detail

Joomla 3.0.4 and VM 3.0.6.4

Anyone have any ideas what might be causing this?
Thank you in advance.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Gretch on March 09, 2015, 21:15:42 pm
@sonickev
Do you have, or have had, any other custom fields in the product?  I found that if I added any other custom fields like a string for warranty, BEFORE I add added the multi-variant and at least ONE child, I could not change to a variant other than the parent - similar to your problem.  I had to delete the whole product and start over.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on March 09, 2015, 21:59:06 pm
@sonickev
Do you have, or have had, any other custom fields in the product?  I found that if I added any other custom fields like a string for warranty, BEFORE I add added the multi-variant and at least ONE child, I could not change to a variant other than the parent - similar to your problem.  I had to delete the whole product and start over.
No, I didn't do that. I just created another from scratch, using the VM 3.0.6.4 Multi-Variant. I added about 5 children, plugged in their values and went to the Front End and selected the product - exactly the same behavior.

I have a clothing store also, where I have created a T-Shirt product - Small, medium and Large, then Green, Red and Blue. I can choose the size (and the price updates) but I cannot choose the colour - always Green :)

Because the first drop down works correctly, but the second does not, I'm confused.

I added a third custom label - just a Y or N...the smae thing happens - neither of the latter two options are selectable - only the size. I added it to that same product above, so I have a thread and consistent example.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Gretch on March 10, 2015, 01:50:18 am
Joomla 3.4, VM 3.0.6.2
I sympathize.  I spend at least 10 hours of net searching before I got it right.  I will try to summarize what I learned from all that searching.  You may be well beyond this detail, but maybe it will help some other struggling person.

Add a custom field that is type multi-variant.  I named mine the 2 variants I wanted like "size - color" because this title shows up above the input fields.  You will only have one multi-variant custom-field in a product.  It is kind of a "mega" field with the variant fields defined within it - called ramifications.

1. Add an new product and in Info tab put in product name, sku & price (take them out later if you don't want them but handy to test with)
2. Go to custom field tab.  Add the custom field that you created for multi-variant.
3. A big box will open up. At the first dropdown, where it says product name, drop down and choose custom label.  In the text area next to it, enter the label, e.g. size.  (I found somewhere that if you are using built in attributes such as weight, you pick that label from the dropdown box - I haven't tried it.)
4. Enter the choices for the variant, one per line in the larger textbox to the right of the label text box.  So if you are doing sizes, enter the S,M,L,XL one per line.
5. SAVE - This seems to be important at this step and sets things up to add the next variant.
6. A bit lower on the screen you should see "New Ramification."  Click the little green round button just left of the text  "New."  Don't try to enter anything into the dropdown or the text box for the custom label until you have clicked the green button and it comes back with empty text boxes for the custom label and the choices for the variant.
7. Now you should have a new dropdown with product name (select custom label,) a text box for the custom label and a large textbox for the variants, say the colors.  So you repeat steps 3-4 for the next variant.
8. SAVE

At this point you should have 2 variants, along with their choices, and a "New Ramification" box.  Under the New Ramification should be a Add a Child Product button.  If you had other variants, you could add them now by clicking the "New" button under the New Ramification.  You could also add them later.

9. Add the child products.  Click the Add a Child Product button as many times as you have child products.  Or just start with 2 to test.  You can add more later. The first time you click it, it will add a line for the parent and one child.  Then each additional time for another child.
10.  You should see a line for each child product that has a place for info like sku, price and also a drop down for each variant you added.  The drop down will have the choices you entered in step 4.
11. Fill in the SKU & price if you want and select the variant combinations for each child.
12. SAVE.  Note - when you go back to the product list, the child products will show "no price set."  This is a small bug, if you open the child you will see the price carried over from the entries you just did.

This worked for me. I erred on my first try and added the multi-variant custom field for each variant - that was wrong.  I needed to add a "new ramification" for the other variants after the first.  And I found I needed to add the multi-variant custom fields and at least one child before doing anything else like adding other custom fields like string fields.

Hope this helps, but if you are already creating your product like this, then sorry, I can't help.  Good Luck.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: sonickev on March 10, 2015, 05:00:12 am
Thanks Gretch,

yes I am already doing all of this, but I think it is noble and appreciated that you took the time to write down that list of steps...it will help many many people.

The virtuemart 3 demo website allows you to log into the backend and see how everything has been set up for the products in the frontend. It is a great resource at this point in time, but your step by step instructions definitely tell you how to get there.

Right now, I have exactly what the VM3 demo has, but mine doesn't work.
The biggest and most obvious difference is that the VM3 demo runs on Joomla 2.6 while my site runs on Joomla 3.

I can't see anything else that is different.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: Gretch on March 19, 2015, 02:34:06 am
@sonickev
This suddenly started happening to me too - that is, a new product would not show child data when different variants were selected.  I finally tracked it down to a quote mark in the variant data.  One of my variants is diameter and I was putting a quote (") to symbolize inches.  When I took that out, the data for the children (price, etc) changed correctly.  I don't know about other special symbols. Maybe this will help in your case.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: uniqbuy on April 19, 2015, 02:22:22 am
Thanks Gretch,

yes I am already doing all of this, but I think it is noble and appreciated that you took the time to write down that list of steps...it will help many many people.

The virtuemart 3 demo website allows you to log into the backend and see how everything has been set up for the products in the frontend. It is a great resource at this point in time, but your step by step instructions definitely tell you how to get there.

Right now, I have exactly what the VM3 demo has, but mine doesn't work.
The biggest and most obvious difference is that the VM3 demo runs on Joomla 2.6 while my site runs on Joomla 3.

I can't see anything else that is different.

You are using the VM Reviver Theme. So is elanvape and so am I. There are a few basic but serious issues with that template but I cannot get the developer to understand me so that he can fix them. The product orderable on VM3 is one of them. I got around the problem in VM2 by using stockable but that is not an option in VM3

On VM demo out of the box, if parent product orderable is set to no, there is a button showing "Choose a variant" which cannot be pressed. On the Reviver template, it has the Add to Cart button regardless of what parent orderable is set to. It is a template problem. I am hoping the developer might fix it but I am not particularly hopeful he will. Can't blame him really unless enough people that bought it complain.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GrahamDEK on May 26, 2015, 23:04:38 pm
Quote
As far as i can tell if ''multi variants'' had an option ''Parent orderable  Yes or No''  like the ''Generic child variant '' has, case would be closed.
Have you tried my plugin?
http://breakdesigns.net/extensions/stockable-custom-fields

This feature is there

Hi balai

I tried your plugin, set it up but from the frontend when I select the product I get this error:

Fatal error: Call to undefined method vmJsApi::addJScript() in /home/definhost/public_html/sites/heavenly/plugins/vmcustom/stockablecustomfields/stockablecustomfields.php on line 854

Do you know how I can fix this?

Thank you
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on May 27, 2015, 08:55:19 am
Possibly you have no supported VM version
https://breakdesigns.net/stockable-customfields-manual/62-minimum-requirements-62
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GrahamDEK on May 27, 2015, 10:20:52 am
Here is the info from my server and Joomla version, it does meet the requirements.
I want to purchase the "Custom Fields for All", but I need to have this working with it.

PHP Built On    Linux sh02-pta.za-dns.com 2.6.32-531.23.3.lve1.3.6.el6.x86_64 #1 SMP Mon Sep 29 16:27:54 CEST 2014 x86_64
Database Version    5.5.40-MariaDB-cll-lve
Database Collation    latin1_swedish_ci
PHP Version    5.3.29
Web Server    LiteSpeed
WebServer to PHP Interface    litespeed
Joomla! Version    Joomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Title: Re: VM3 Stockable variants for Size + Color?
Post by: lindapowers on May 27, 2015, 20:40:47 pm
Довели бы лучше до нормального состояния редактирования заказов...
Вы представьте магазин: 4 off-line склада, оплата через Visa возможна только после того как заказ ставится на резерв администратором.
Когда вы заходите в заказ со стороны администратора, Вы не можете исправить ни размер ни цвет! Вот жопа! Клиент ошибся.... Что делать?
Убили проект следуя желаниям PalPay.
Либо разработчики одумаются, либо проект останется только для виртуальных товаров.
Переводить на английский не буду. Пусть догадаются.
Работал с Virtuemart больше 10 лет, думаю перейти на другой движок.
И не надо удалять мой пост!

(http://s23.postimg.org/glbx2zhx7/524b18bae691b20c24c4428d_736.jpg)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: GrahamDEK on May 27, 2015, 22:13:36 pm
I updated to the latest version of Virtuemart and the error is gone.  :)
Title: Re: VM3 Stockable variants for Size + Color?
Post by: NZSlashman on July 06, 2015, 12:57:09 pm
I have just come across this problem today and I wanted to post to say thanks to Break Designs for making this add on.

I am using Virtuemart 3.0.9 and Joomla 3.4.1 and It installed without issue.

I followed the documentation on the developers website and it works flawlessly to add different sizes to products.

Thanks again!
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on July 06, 2015, 17:47:06 pm
Thanks! It is motivating to get such messages.
Btw. If you like you can share it in the the JED as well, by writing a review
http://extensions.joomla.org/extensions/extension/extension-specific/virtuemart-extensions/stockable-custom-fields-for-virtuemart
Title: Re: VM3 Stockable variants for Size + Color?
Post by: luciosergio on July 20, 2015, 18:54:53 pm
Hi Balai. I am using your plugin and I have a doubt about it.

Joomla! 3.4.3
VirtueMart 3.0.9

If I create a product with 100 units in stock. I create four child products each with 25 units in stock. If I make test purchases, the stock of products children is subtracted without problem but  don´t  substract from parent product. Is this a mistake?

Another thing is that don`t display the name of the field in the product. The title display option is activated.

Can you help me?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: deuce4884 on July 21, 2015, 06:16:41 am
@Milbo:
I have created a multi-variant parent product with 4 children. The only ramification is color (4 colors). I created a sublayout to render in overrides where the stock is actually shown as a number. I have it rendering in the products sublayout and in the productdetails default view. I have attached screenshots of the sublayout and of the parent product where it says "In Stock: 0" and 1 of the children where it says "In Stock: 20".

Yepp, and therefore the parent product, should have stocking 0 if not orderable . For the stock display the advantage in vm3 is that it even adds the stocking of the childs on the parent. So it IS a lot more exact now then before.

My parent product is a stock of 0, so my question is why is it not adding the quantity of the 4 children, which should be 89, as in stock? Is this possible? If so, what am I missing and what do I need to change?
Title: Re: VM3 Stockable variants for Size + Color?
Post by: antho on November 10, 2015, 09:30:46 am
A screenshot can clarify the things
(http://snag.gy/7Z5th.jpg)
Hi,
I have a problem with this plugin,
The specifications of product is not updated after choosen a variations.
I have VM3
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on November 10, 2015, 11:11:05 am
You need to address it to the breakdesigns site
Title: Re: VM3 Stockable variants for Size + Color?
Post by: antho on November 10, 2015, 21:58:43 pm
You need to address it to the breakdesigns site

Yes but when I add other product to cart it not change a price
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on December 01, 2015, 13:27:46 pm
This thread is for the "Stockable Custom Fields" plugin NOT for the multi variant
Title: Re: VM3 Stockable variants for Size + Color?
Post by: MAD King on July 02, 2016, 23:24:56 pm
Hello,

after hours of trying to figure out how to do stock inventory in VM 3, I was glad to find this module. VM makes it very difficult for such a simple thing. A tutorial is non-existent.

So I installed this module and followed the manual, but it is not working as supposed to do, I think.
When I try to create custom fields at the products it gives me the note Please modify that only from the parent product
At the parent product it gives me the parent category name in the Product Name and SKU field.

This is the same when I have a parent product only.

Otherwise, it would be a great module.
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on July 04, 2016, 10:59:34 am
The plugin is assigned to the parent product, hence modifications for the variants can be done from the parent product only.
If you want some support on that, please use the support section at breakdesigns.net
https://breakdesigns.net/support
Title: Re: VM3 Stockable variants for Size + Color?
Post by: ereallstaff on March 11, 2017, 15:02:11 pm
Hello is there anyway to display in the sample of t-shirts with color, all single colors in category page and search results? Or I will need to display always the parent ? if a t.shirt have many colors, how to display all childrens? thank you
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on March 11, 2017, 16:52:44 pm
Quote
is there anyway to display in the sample of t-shirts with color, all single colors in category page and search results?

You need to assign category to your child products as well
Title: Re: VM3 Stockable variants for Size + Color?
Post by: ereallstaff on March 12, 2017, 11:01:58 am
Using your plugin or native , the children are
Red size s
Red size m
Red size L
Yellow size M

And all this will be seen in category. I want to see in category only red and yellow

Title: Re: VM3 Stockable variants for Size + Color?
Post by: kogos on February 15, 2018, 06:53:08 am
I know this is an old topic, but i cannot find any answer on breakdesigns page.
I use the free stockable custom field vm plugin, to create color/size variations. Everything is working great except one thing. I cannot display the custom field in cart view. I enabled cart input and cart attribute in the plugin configuration page, but i cannot see it in cart view.
All other custom fields are working as intended. It's just this one that seems to ignore my setting to show in cart.

I am using latest virtuemart, latest joomla and latest stockable custom fields, so all versions are updated. I also tried with no overrides at all, using default virtuemart/joomla layout, with no luck.

Any help would be appreciated.

Thanks in advance

Edit: it seems i managed to show stockable fields in cart. I enabled cart attribute in "size" and "color" string fields, and now it's showing in cart. I'll put it to the test and get back if any problems appear. Thanks again
Title: Re: VM3 Stockable variants for Size + Color?
Post by: balai on February 15, 2018, 11:27:32 am
I know this is an old topic, but i cannot find any answer on breakdesigns page.
I use the free stockable custom field vm plugin, to create color/size variations. Everything is working great except one thing. I cannot display the custom field in cart view. I enabled cart input and cart attribute in the plugin configuration page, but i cannot see it in cart view.
All other custom fields are working as intended. It's just this one that seems to ignore my setting to show in cart.

I am using latest virtuemart, latest joomla and latest stockable custom fields, so all versions are updated. I also tried with no overrides at all, using default virtuemart/joomla layout, with no luck.

Any help would be appreciated.

Thanks in advance

Edit: it seems i managed to show stockable fields in cart. I enabled cart attribute in "size" and "color" string fields, and now it's showing in cart. I'll put it to the test and get back if any problems appear. Thanks again

You don't have to enable the sub-custom fields as cart attributes. Possibly the reason that the stockable is not added, is that it is loaded in a position outside the product form.