Jump to content
kongondo

Variations: Pro Module for (Product) Variations & Attributes

Recommended Posts

Variations

Released 29 May 2017

Variations is a simple yet powerful commercial ProcessWire module that allows website editors to create attributes and their values and from those generate variations of any entity, most notably products.

The module consists of  FieldtypeVariations and InputfieldVariations as well as a ProcessVariations for managing variations configurations and attributes.
 
Setting up the field is quite easy.
 
First, create a field of type Variations. Define some custom inputs that will need to be directly edited on the page containing the field, for instance a product price, SKU, etc.
 
Secondly, via the Inputfield, create a couple of attributes.
 
Thirdly, create a variations configuration and add the attributes and values you want in the configuration. Link that variations configuration to your page and the module will automatically generate all possible combinations (variations) of the attribute values in that configuration. These, together with the custom inputs you created when setting up the field will be displayed on the page (e.g. a product page), ready for editing. This makes this module quite unique; variations are defined at the page-level rather than at the field level. This presents lots of possibilities such as infinitely reusable attributes and variations configurations. 
 
For those using Padloper, integration with the e-commerce platform is quite simple as demonstrated in this tutorial. 

The module consists of 4 modules

  1. ProcessVariations
  2. FieldtypeVariations
  3. InputfieldVariations
  4. VariationsCustomTableManager (autoload module, working behind the scenes)

Video Demohttps://youtu.be/T93nn96UL8o

Documentationhttps://variations.kongondo.com/

Shophttps://processwireshop.pw/plugins/variations/

Requires: ProcessWire 2.5 or newer

Features

  • Easily create variations of anything, including products for e-commerce websites, etc
  • Create an attribute once, use it everywhere, multiple times, picking and choosing all or only the attribute values you want
  • Bulk editing of variations configurations and attributes
  • Reusable variations configurations
  • Works with Padloper out-of-the-box with minimal coding
  • User-friendly, intuitive and easy to set up
  • Like 13

Share this post


Link to post
Share on other sites

I’m bulding a small webshop with Padloper where i will have around 500 products, each with a lot of variations. These are digital products for download. Setting up the variations with PageTable is quite a mess. That’s why i’m considering using Variations for that. 

@kongondo in this post you mentioned:

Quote

Please note that, in respect of these subfields, there are no plans to include anything as near exhaustive as what Table does. Meaning, these will likely be limited to TEXT, INT, FLOAT, etc fields, but not complicated Fieldtypes such as Page fields, Repeaters, etc.

Does that mean that the download field can not be included?

Thanks,
Jan

Share this post


Link to post
Share on other sites
On 2017-6-15 at 7:46 PM, Jan Fromm said:

I’m bulding a small webshop with Padloper where i will have around 500 products, each with a lot of variations. These are digital products for download. Setting up the variations with PageTable is quite a mess. That’s why i’m considering using Variations for that. 

@kongondo in this post you mentioned:

Does that mean that the download field can not be included?

Thanks,
Jan

Any word on this @kongondo

Share this post


Link to post
Share on other sites
On 2017-6-15 at 7:46 PM, Jan Fromm said:

Does that mean that the download field can not be included?

Hi @Jan Fromm and @oma, Sorry I have been away. I'll have to look into Padloper and get back to you.

 

Thanks

Share this post


Link to post
Share on other sites
On 15/06/2017 at 7:46 PM, Jan Fromm said:

Does that mean that the download field can not be included?

Sorry did not get back to you earlier Jan. It seems as well that I misunderstood your question. Please clarify. Are you looking to have a dropdown select or asmSelect or similar for each variation from which you can select and specify a download or downloads for that variation? How are you defining your digital downloads? Is each download a ProcessWire page or are they physical files stored on the server?

Share this post


Link to post
Share on other sites

Renewals and Resend Links

Hi,

Renewal and resend links pages for Variations have been added. Use renewals if you wish to renew a Variations order whose subscription has expired (1 year). Resend are for orders that are yet to expire. Use this if you can't find or didn't get the confirmation email sent after your purchase.

  • Like 1

Share this post


Link to post
Share on other sites

Hi all. 

I am intending to ONLY support ProcessWire 3.x starting from the next version of this module. Please have a read here and let me know what you think. Thanks.

Share this post


Link to post
Share on other sites

Hi! Is this module working with recent versions of ProcessWire? Is it compatible with UIKit theme? 

Share this post


Link to post
Share on other sites
On 7/31/2019 at 4:25 PM, elabx said:

Is it compatible with UIKit theme? 

Not yet, I am afraid.

 

Share this post


Link to post
Share on other sites
Quote
On 7/31/2019 at 4:25 PM, elabx said:

Is it compatible with UIKit theme? 

Not yet, I am afraid. 

I just bought this module. Any chance to make it compatible with UIKit?

  • Like 1

Share this post


Link to post
Share on other sites
On 7/31/2019 at 4:25 PM, elabx said:

Hi! Is this module working with recent versions of ProcessWire? Is it compatible with UIKit theme? 

 

On 8/8/2019 at 11:33 AM, eydun said:

I just bought this module. Any chance to make it compatible with UIKit?

Hi all. Just a quick update. I have been working on updating the module to make it ProcessWire 3.x compatible + add some improvements. Most of the work is done. I hope to release by next week. Thanks.

  • Like 1

Share this post


Link to post
Share on other sites

Variations 002  (released 16/09/2019)

Happy to announce the latest release of Variations.

Changelog

  1. ProcessWire 3.x support only.
  2. New GUI to match AdminThemeUiKit
  3. Save and exit or save and add more variations configuration or attributes (in modal)
  4. More granular control of custom column types and definitions: DECIMAL, FLOAT, DOUBLE, TINYINT, INT, VARCHAR, TEXT, DATETIME, TIMESTAMP, BOOLEAN, etc
  5. Decimal type better suited for price data compared to Float/Double
  6. Boolean type, useful for Yes/No type data, e.g. for sell out of stock? yes/no
  7. Datetime/Timestamp fields if required.
  8.  Column definitions: null, precision, scale, length, default value, etc.
  9. Required fields: if column is not nullable and no default provided, it becomes a required field. E.g. can set price not to be null.
  10. Default fields: For uses such as prefixing SKU-

Apologies that this has taken a while to update.

Upgrading

If upgrading from version 001, ProcessWire's Filecompiler will fight you. You might get errors such as Class ProcessVariations not found in file..... If you get such errors, first, try to clear your cache and compiled files several times. As a last resort, if clearing cache doesn't work (and I don't like this workaround), temporarily change the code in the offending file, e.g. in VariationsRender.php, where it says class VariationsRender extends ProcessVariations, change that to class VariationsRender extends WireData. Refresh the modules page until the errors disappear, then revert back to the original text (class VariationsRender extends ProcessVariations). I hate to ask you to do this but I've had it with the Filecompiler.

Documentation

Documentation can be found here. However, it still needs updating to reflect latest changes outlined above. For now, please note that we've added an extra setting for setting the default date and time formats for datetime/timestamp custom columns/subfields. This is available in the Input Tab of the field.

Screenshots

variations-version-002-001.thumb.png.2bfdc6a468adc1fd4a783d6443ceeacb.png

variations-version-002-002.thumb.png.150d86d25901a615bcc32d75bf23558a.png

variations-version-002-003.thumb.png.879c64aca5d5192c1941b32b58a28446.png

variations-version-002-004.thumb.png.0a4a7c36f4d8656782d9415fa9bc6552.png

variations-version-002-005.thumb.png.16fefa8dbfbbe38a3a2c082e5daddcb9.png

variations-version-002-006.thumb.png.2ef684af1466bc30326c866f60bc9901.png

variations-version-002-007.thumb.png.ddb24c8dc5a1189628a7b662111a89bc.png

variations-version-002-008.thumb.png.c1f10ce1314d9c37caaf4a2616aee027.png

 

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Gadgetto
      Status update links (inside this thread) for SnipWire development will be always posted here:
      2019-10-18
      2019-08-08
      2019-06-15
      2019-06-02
      2019-05-25
      If you are interested, you can test the current state of development:
      https://github.com/gadgetto/SnipWire
      Please note that the software is not yet intended for use in a production system (alpha version).
      If you like, you can also submit feature requests and suggestions for improvement. I also accept pull requests.
      ---- INITIAL POST FROM 2019-05-25 ----
      I wanted to let you know that I am currently working on a new ProcessWire module that fully integrates the Snipcart Shopping Cart System into ProcessWire. (this is a customer project, so I had to postpone the development of my other module GroupMailer).
      The new module SnipWire offers full integration of the Snipcart Shopping Cart System into ProcessWire.
      Here are some highlights:
      simple setup with (optional) pre-installed templates, product fields, sample products (quasi a complete shop system to get started immediately) store dashboard with all data from the snipcart system (no change to the snipcart dashboard itself required) Integrated REST API for controlling and querying snipcart data webhooks to trigger events from Snipcart (new order, new customer, etc.) multi currency support self-defined/configurable tax rates etc. Development is already well advanced and I plan to release the module in the next 2-3 months.
      I'm not sure yet if this will be a "Pro" module or if it will be made available for free.
      I would be grateful for suggestions and hints!
      (please have a look at the screenshots to get an idea what I'm talking about)
       




    • By eelkenet
      Hi! I've created a small Inputfield module called InputfieldFloatRange which allows you to use an HTML5 <input type="range" ../> slider as an InputField. I needed something like this for a project where the client needs to be able to tweak this value more based on 'a feeling' than just entering a boring old number. Maybe more people can use this so I'm hereby releasing it into the wild.  
       
      What is it?
      The missing range slider Inputfield for Processwire. 
      What does it do?
      This module extends InputfieldFloat and allows you to use HTML5 range sliders for number fields in your templates.
      It includes a visible and editable value field, to override/tweak the value if required.  
      Features
      Min/max values Precision (number of decimals) Steps (Read more) Manual override of the selected value (will still adhere to the rules above) Usage
      Clone / zip repo Install FieldtypeFloatRange, this automatically installs the Inputfield Create new field of type `Float (range)` or convert an existing `Float`, `Integer` or `Text` field. To render the field's value simply echo `$page->field` Demo
      A field with Min=0, Max=1, Step=0.2, Precision=2

      Field with settings Min=0, Max=200, Step=0.25, Precision=2

       
      Todo
      Make the display-field's size configurable (will use the Input Size field setting)  Hopefully become redundant If it's usable for others I'll add it to the Modules list  
      Changelog
      v002
      - Fix issue where setting the step value to an empty value created problem with validation
      - Make the display-field optional 
      v001
      - Initial release
       
      Thanks!
       
       
    • By Robin S
      Another little admin helper module...
      Template Field Widths
      Adds a "Field widths" field to Edit Template that allows you to quickly set the widths of inputfields in the template.

      Why?
      When setting up a new template or trying out different field layouts I find it a bit slow and tedious to have to open each field individually in a modal just to set the width. This module speeds up the process.
      Installation
      Install the Template Field Widths module.
      Config options
      You can set the default presentation of the "Field widths" field to collapsed or open. Field widths entered into the Template Field Widths inputfield are only applied if the Edit Template form is submitted with the Template Field Widths inputfield in an opened state. "Collapsed" is the recommended setting if you think you might also use core inputs for setting field widths in a template context. You can choose Name or Label as the primary identifier shown for the field. The unchosen alternative will become the title attribute shown on hover. You can choose to show the original field width next to the template context field width.  
      https://github.com/Toutouwai/TemplateFieldWidths
      https://modules.processwire.com/modules/template-field-widths/
    • By adrian
      Tracy Debugger for ProcessWire
      The ultimate “swiss army knife” debugging and development tool for the ProcessWire CMF/CMS

       
      Integrates and extends Nette's Tracy debugging tool and adds 35+ custom tools designed for effective ProcessWire debugging and lightning fast development
      The most comprehensive set of instructions and examples is available at: https://adrianbj.github.io/TracyDebugger
      Modules Directory: http://modules.processwire.com/modules/tracy-debugger/
      Github: https://github.com/adrianbj/TracyDebugger
      A big thanks to @tpr for introducing me to Tracy and for the idea for this module and for significant feedback, testing, and feature suggestions.
×
×
  • Create New...