News:

Support the VirtueMart project and become a member

Main Menu

What bugs do you know of in stockable variants plugin

Started by OpenGlobal, May 24, 2012, 14:36:59 PM

Previous topic - Next topic

dsrpmedia

I find this new VM just mind-bogglingly difficult to comprehend (I`ve built over 50 vm 1.1 sites will little or no problems - even when having to heavily customize them)

how do I find this "dynamic child variants" option? - it`s not listed as a plugin, & is not listed on the 'Custom Field Type' dropdown

opsin

I second the "it doesn't work at all in GoDaddy"
Godaddy - Linux Server
mysql-5.0.92
PHP 5.3

dsrpmedia

not just godaddy - I`ve tried to load it on greengeeks too - doesn `t work there either, though it did work (sort of - lots of weird bugs) locally.

Panayiotis Fafakos

#18
Quote from: OpenGlobal on May 26, 2012, 00:25:28 AM
I think that might be beyond the scope of this plugin, where the child products are just placeholders and none of the information is used (except name and SKU).

OpenGlobal

This should be in the scope of this plugin.

The reason is that if a customer is going to buy a variation of a product  i.e. a ring with different materials, then the customer must see the new picture of the product. The desing is the same only the colours will be different.

So we think this is a must for this plugin.

From what we have seen we only have to tamber with the recalculation function inside stockable.php.
We should extend the funtion recalculate(Opt) in /plugins/vmcustom/stockable/stockable.php
so as to change the picture according to the selected variants.

This way we can do the following:
For example:
1. Create a parent which has  the variations of the product.
2. The parent itself is not published. Moreover, only one of its children is published and belongs to a product category. This way on the frontend only one variation is displayed.
We have attached the images that show the configuration for the above
(backend-CustomField-StockableVariants.jpg, backend-parent-product-custom-fields.jpg, backend-parent-product-information.jpg, backend-product-list.jpg)
and some images of the frontend.
(frontend-bracelets-category.jpg, frontend-product-details.jpg)

The problems of the VM-Custom, Stockable Variants field are below:
1. When we enter to view product details, the DropDownList boxes are not synchronized with the product chosen.
2. The image does not correspond to the image of the selected child product.
3. The SKU is not synchronized also.
4. In case we have different names for the child products, the name is also wrong.

All the above could be changed with a modification of the recalculation function inside stockable.php.

We are using Joomla 2.5 &  VM2.0.7d. Would anyone be willing to help us do such a modification?
Since we have a running project, we would welcome anybody who would help us...

Kind regards to all,

Panos.



[attachment cleanup by admin]
Panayiotis Fafakos
Electronics & Software Engineer

OpenGlobal

Quote from: dsrpmedia on May 30, 2012, 22:51:21 PM
how do I find this "dynamic child variants" option? - it`s not listed as a plugin, & is not listed on the 'Custom Field Type' dropdown

It's just called Child Variants IIRC

OpenGlobal

OpenGlobal

Quote from: Panayiotis Fafakos on May 31, 2012, 10:21:34 AM
This should be in the scope of this plugin.

Maybe, but that's a debate for another thread. Let's get the bugs fixed before adding new features.

OpenGlobal

KarlRanseier

I have a product with different sizes (with price differences) and colors.
So i added a custom stackable plugin for the sizes. Worked ok except the price calculations for add to card, i had to hack the stackable.php plugin file.
Then the different sizes are available with different colors, so i tried to add a custom stackable color plugin to the child. not working at all.

Adding a custom stackable plugin to a product works very weird:
what do i have to do? add->save? add->fill out->press new and then save?
sometimes clicking the new button, adds two or more childs.

Adding a different stockable plugin (like colors) to a child of size variants doesn't work at all. It always returns the size plugin and not the color plugin.

The additional charges are without taxes and are added automatically. very difficult to calculate your products.
Joomla 2.5.4 - VM 2.0.8c - custom template

OpenGlobal

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Worked ok except the price calculations for add to card, i had to hack the stackable.php plugin file.

What was the actual problem?

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Then the different sizes are available with different colors, so i tried to add a custom stackable color plugin to the child. not working at all.

You can only have one variation configuration per product. You need to set up ONE custom field for both size and colour.

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Adding a custom stackable plugin to a product works very weird:
what do i have to do? add->save? add->fill out->press new and then save?
sometimes clicking the new button, adds two or more childs.

You should be able to just select the custom field and start adding the variations to the custom field.

OpenGlobal

KarlRanseier

#23
VM 2.0.6 with joomla 2.5.4


Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Worked ok except the price calculations for add to card, i had to hack the stackable.php plugin file.

What was the actual problem?

It doubled the addition charge. see stockable.php line 508

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Then the different sizes are available with different colors, so i tried to add a custom stackable color plugin to the child. not working at all.

You can only have one variation configuration per product. You need to set up ONE custom field for both size and colour.
ah ok, not very comfortable. so have to add a long list of variations. like:
size: s, color: blue
size: s, color: red
size: s, color: green
...
size: m, color: blue
size: m, color: red
size: m, color: green
....
am i right? if yes, that would me generate just one dropdown in the detail view. not one for size and one for color.

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Adding a custom stackable plugin to a product works very weird:
what do i have to do? add->save? add->fill out->press new and then save?
sometimes clicking the new button, adds two or more childs.

You should be able to just select the custom field and start adding the variations to the custom field.

My workflow:
In a Product i go to custom fields
1. choose size variants
2. fill out the ski, title, price, stock, etc
3. I press the new button right next it -> nothing happens
4. Press Save

First i have to choose size variants, then press save and then i am able to start with step 2. and step 3. works

After Step 4. some informations are available but not the Additional charge.
5. activate the added size
6. choose the size from the drop down list
7. re-enter the additional charge


Why is there an extra input field with default 0 and a star at the bottom of the custom field form?

Also i am missing ordering for the added fields.

karl

[attachment cleanup by admin]
Joomla 2.5.4 - VM 2.0.8c - custom template

OpenGlobal

Quote from: KarlRanseier on June 03, 2012, 17:37:44 PM
It doubled the addition charge. see stockable.php line 508

That has already been fixed.

Quote from: KarlRanseier on June 03, 2012, 17:37:44 PM
ah ok, not very comfortable. so have to add a long list of variations. like:
size: s, color: blue
size: s, color: red
size: s, color: green
...
size: m, color: blue
size: m, color: red
size: m, color: green
....
am i right?

Correct

Quote from: KarlRanseier on June 03, 2012, 17:37:44 PM
if yes, that would me generate just one dropdown in the detail view. not one for size and one for color.

Incorrect.


Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
My workflow:
In a Product i go to custom fields
1. choose size variants
2. fill out the ski, title, price, stock, etc
3. I press the new button right next it -> nothing happens
4. Press Save

First i have to choose size variants, then press save and then i am able to start with step 2. and step 3. works

After Step 4. some informations are available but not the Additional charge.
5. activate the added size
6. choose the size from the drop down list
7. re-enter the additional charge

That looks like a bug (or bugs), could you provide some screenshots?

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Why is there an extra input field with default 0 and a star at the bottom of the custom field form?

No idea. I've just been ignoring it for now.

Quote from: KarlRanseier on June 03, 2012, 17:01:28 PM
Also i am missing ordering for the added fields.

Yes, this has been mentioned before so I'll look into this too.

OpenGlobal

KarlRanseier

Quote from: OpenGlobal on June 03, 2012, 18:12:49 PM

Quote from: KarlRanseier on June 03, 2012, 17:37:44 PM
if yes, that would me generate just one dropdown in the detail view. not one for size and one for color.

Incorrect.

OpenGlobal

ah yes sorry, there are more option fields, not just one. my fault.
ok, but then the price calculation doesn't work correct.
When i choose a color (color prices are always the same) and the size changes automatically because of availabilty, the price is not calculated correctly.

can i send you a pm with a link?


[attachment cleanup by admin]
Joomla 2.5.4 - VM 2.0.8c - custom template

OpenGlobal

I've attached my first bug fixes. Simply extract the stockable.php file and overwrite your copy at plugins/vmcustom/stockable/stockable.php. This fixes the following:

Duplicated options when more than 2 dropdown lists used (vanekmichal).
Dropdown list ordering is now as specified in the backend product config.

I've also included my previous fixes so it is now no longer necessary to populate the option values in the custom field config. You can just give the option names and then type in the option values for the individual products.

If I've added any new issues, please let me know.

OpenGlobal

[attachment cleanup by admin]

OpenGlobal

KarlRanseier,

The version I've attached to this one improves the New button functionality. Now, when you click on New, it creates the child variant and adds it to the list, then clears the "new" fields to create another one.

What do you think?

OpenGlobal

[attachment cleanup by admin]

KarlRanseier

#28
Yes, very nice, works very well, thanks for the good job.

One little tiny mistake happens in the frontend, when you load the page the price isn't calculated right on the default selected dropdowns. When you use the dropdowns, the prices are fine.

Ordering in the Backend would be really nice. gets kind of messy when you have lots of color and size combinations.

Thanks a lot again, nice peace of work. i will have a look at your code later.
Joomla 2.5.4 - VM 2.0.8c - custom template

KarlRanseier

Found another BUG

Adding a product more than once to the cart. it is displayed as an own product and not counted to the existing one.


[attachment cleanup by admin]
Joomla 2.5.4 - VM 2.0.8c - custom template