News:

Looking for documentation? Take a look on our wiki

Main Menu

VM3 Stockable variants for Size + Color?

Started by rayge, January 01, 2015, 14:02:37 PM

Previous topic - Next topic

balai


sonickev

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?

balai

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

sonickev

Thank you.

my apologies but I don't understand your response...
Quote1m 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.

sonickev

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.

balai

@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.

GJC Web Design

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


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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

dslove

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! :)

sonickev

Quote from: 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.

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.

sonickev

Quote from: balai on February 10, 2015, 12:49:02 PM
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.

alextor

Quote from: 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

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.

Menace

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?

balai

@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

spi7fire

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?

balai

QuoteOn 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