Author Topic: What bugs do you know of in stockable variants plugin  (Read 129827 times)

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: What bugs do you know of in stockable variants plugin
« Reply #15 on: May 30, 2012, 22:51:21 pm »
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

  • Beginner
  • *
  • Posts: 2
Re: What bugs do you know of in stockable variants plugin
« Reply #16 on: May 31, 2012, 04:04:50 am »
I second the "it doesn't work at all in GoDaddy"
Godaddy - Linux Server
mysql-5.0.92
PHP 5.3

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: What bugs do you know of in stockable variants plugin
« Reply #17 on: May 31, 2012, 05:21:32 am »
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

  • Beginner
  • *
  • Posts: 8
    • Wisdom Software
Re: What bugs do you know of in stockable variants plugin
« Reply #18 on: May 31, 2012, 10:21:34 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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 316
    • OpenGlobal E-commerce Web Design in Gloucester
Re: What bugs do you know of in stockable variants plugin
« Reply #19 on: May 31, 2012, 10:40:24 am »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 316
    • OpenGlobal E-commerce Web Design in Gloucester
Re: What bugs do you know of in stockable variants plugin
« Reply #20 on: May 31, 2012, 11:33:51 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

  • Beginner
  • *
  • Posts: 32
Re: What bugs do you know of in stockable variants plugin
« Reply #21 on: June 03, 2012, 17:01:28 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 316
    • OpenGlobal E-commerce Web Design in Gloucester
Re: What bugs do you know of in stockable variants plugin
« Reply #22 on: June 03, 2012, 17:17:12 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?

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.

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

  • Beginner
  • *
  • Posts: 32
Re: What bugs do you know of in stockable variants plugin
« Reply #23 on: June 03, 2012, 17:37:44 pm »
VM 2.0.6 with joomla 2.5.4


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

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.

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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 316
    • OpenGlobal E-commerce Web Design in Gloucester
Re: What bugs do you know of in stockable variants plugin
« Reply #24 on: June 03, 2012, 18:12:49 pm »
It doubled the addition charge. see stockable.php line 508

That has already been fixed.

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

if yes, that would me generate just one dropdown in the detail view. not one for size and one for color.

Incorrect.


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?

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.

Also i am missing ordering for the added fields.

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

OpenGlobal

KarlRanseier

  • Beginner
  • *
  • Posts: 32
Re: What bugs do you know of in stockable variants plugin
« Reply #25 on: June 03, 2012, 18:49:09 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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 316
    • OpenGlobal E-commerce Web Design in Gloucester
Re: What bugs do you know of in stockable variants plugin
« Reply #26 on: June 04, 2012, 01:22:56 am »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 316
    • OpenGlobal E-commerce Web Design in Gloucester
Re: What bugs do you know of in stockable variants plugin
« Reply #27 on: June 04, 2012, 11:56:55 am »
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

  • Beginner
  • *
  • Posts: 32
Re: What bugs do you know of in stockable variants plugin
« Reply #28 on: June 04, 2012, 12:17:43 pm »
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

  • Beginner
  • *
  • Posts: 32
Re: What bugs do you know of in stockable variants plugin
« Reply #29 on: June 04, 2012, 16:35:39 pm »
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