Author Topic: Is it possible to display products by size?  (Read 3228 times)

shakir

  • Jr. Member
  • **
  • Posts: 66
Is it possible to display products by size?
« on: November 12, 2011, 16:26:57 pm »
Is it possible to somehow setup a drop down search that will display all products in a category that match a certain size (for clothing for example)
A radio box for size 6,8,10,12 that will then only display stock available in those sizes.

Currently Im using custom fields "Size" on each product in category 'dresses'.
Would be great to somehow display only size selected.

The other problem I guess will be that custom fields dont allow allocation of stock control (availability) I dont think?
So perhaps will need child products to do this part?

Its a very common scenario that I need. So I hope there is a way to do this or perhaps a search module is in the makings soon after official release.

If anyone has any ideas please feel free to share :)
Wanting it to work like the "Refine By" box in top left of this page http://www.asos.com/Women/Dresses/Cat/pgecategory.aspx?cid=8799
Again, will need to integrate and assign stick levels for each size of a certain product (dress).

Thanks for any advice or help.

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: Is it possible to display products by size?
« Reply #1 on: November 13, 2011, 00:25:41 am »
I actually wrote code to do something very similar to what you're asking for. Here's my example, on the right-hand side.

http://www.integritymusicdirect.com/index.php?option=com_virtuemart&page=shop.browse&category_id=11&Itemid=29&vmcchk=1&Itemid=29

A couple of days ago, I ported my solution to VM2 and wrote a couple of plugins/modules to get the job done. It doesn't do any stock control though. Let me know if you're interested in taking a look at my code.
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Is it possible to display products by size?
« Reply #2 on: November 13, 2011, 07:22:48 am »
Hi Stephen.
Looks interesting. Would love to see how you made it.
Perhaps it can be adapted somehow to filter custom fields?

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: Is it possible to display products by size?
« Reply #3 on: November 13, 2011, 16:45:29 pm »
Possibly. I created a whole separate system for it that includes:

  • Control panel for managing these "facets"
  • Product plugin (as a custom field) for selecting the facets for each product
  • System plugin that overrides a few models because we have to add the facet filtering to the SQL queries
  • Search plugin to allow filtering of search results
  • Breadcrumbs that allow HTML markup so we can add the "remove facet" image and link
  • Module for displaying facets on the front end

It's definitely not a trivial set of code. I'm debugging a few things on it right now. Let me finish that and I'll post what I have so far. Should be done by tomorrow. I would love some thoughts and help on possibly developing this further.
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Is it possible to display products by size?
« Reply #4 on: November 13, 2011, 17:10:27 pm »
Sounds very cool!

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Is it possible to display products by size?
« Reply #5 on: November 14, 2011, 13:08:40 pm »
Use the search in a category, then the customfield search pops up (dont know why the others wrote it that way).

There will be a new customfield plugin with stockable custom variants. So afaik everything is already done in the code. But I am quite sure that stephenroberts plugins are worth looking at.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Is it possible to display products by size?
« Reply #6 on: November 14, 2011, 15:24:03 pm »
Hi Milbo. That sounds perfect.
Any idea when that will be available?

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: Is it possible to display products by size?
« Reply #7 on: November 15, 2011, 01:15:58 am »
WHEW! Finally got all this working. In the attached file, you'll find 3 plugins and 2 modules as well as some files that need to be replaced (due to bugs in the current release). I've included a README with some basic installation and usage instructions. Please note this ONLY works on VM2 sub release M and has only been tested on Joomla! 1.5.24, so I'm not sure the compatibility with later versions of Joomla! at this point. Also, please keep in mind this is a VERY early version so I'm sure there are lost of issues. It does what I currently need it to do, so I'm not too worried about it right now.

Let me know if you have any thoughts/questions!

[attachment cleanup by admin]
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: Is it possible to display products by size?
« Reply #8 on: November 15, 2011, 05:49:22 am »
I made a couple of changes and now it's working in Joomla! 1.7.3, so imagine it would also work in Joomla! 1.6.x. I need to do some cleanup, especially for the language files. I'll finish that and post a Joomla! 1.5, 1.6, and 1.7 compatible version tomorrow.
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: Is it possible to display products by size?
« Reply #9 on: November 15, 2011, 19:09:33 pm »
As promised, I've cleaned up the code a lot and tested in both Joomla! 1.5.24 and 1.7.3. In addition, I added the search plugin that allows filtering of search results as well. Enjoy!

[attachment cleanup by admin]
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

shakir

  • Jr. Member
  • **
  • Posts: 66
Re: Is it possible to display products by size?
« Reply #10 on: November 16, 2011, 07:46:48 am »
Excellent! Thanks. Will check it out :)

Enter_PL

  • Beginner
  • *
  • Posts: 8
    • fotograf Opole
Re: Is it possible to display products by size?
« Reply #11 on: January 10, 2012, 10:08:35 am »
This plugin looks very promising, but I could not run it in VM 2. (J1.7 and VM 2.0.0).
Does anyone managed to implement a solution is in the final version of the VM?
Pozdrowienia dla wszystkich :)

www.reklama.studiodomanscy.pl

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: Is it possible to display products by size?
« Reply #12 on: January 10, 2012, 17:40:34 pm »
I've made many changes since posting that original version. Try this file and PM me if you need help with it.

[attachment cleanup by admin]
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com