Author Topic: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]  (Read 50249 times)


  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2567
  • VirtueMart Version: 3.2.4
Designed to offer a simple way to setup product variants such as size / colour etc - without the  need to create multiple VM products

The Plugin has been modified to a new name - VMCustom - VM Product Cart Variants (this should help avoid confusion caused by old name of DropBox as this did not reflect functionality)

Tested on VM3 using J3 php5.6 and php7and J2.5.  Its functionality is based on the original DROPBOX by PRO with greater functionality  :)

Download zip file is at the bottom of this post

This plugin does not handle stock control at a variant level

Plugin Features:

    Apply A Template Of Options with just 1 Click includes pricing adjustments -     Options are configured as a simple comma separated List
    Creates a Product drop down selection list of cart variants

    Price Variants supported for each cart variant:-
  •    Standard sales price + or -
  •    Standard sales price Multiplied by a value (including decimals)   e.g. *2.5 ,  *.5 , *1
  •    Fixed price (overrides Standard sales price)
  •    Append string to SKU (adds a string to the original SKU - useful for analytics and export of order lines)
  •    Fix the weight (Overrides the product weight)
Each variant can use a different price rule

Additionally you can adjust cart weight using the price multiplier * Where the Multiply rule is used, you can optionally modify the cart product weight by the same factor, (Configuration option for each Product cart customfield variant)

Install The Plugin,  Enable It
Go to custom fields.
Click "new"

Fill in the title. 
Make it a cart variant and cart input.
Additional parameters - Choose Plugins, Then "VMCustom - VM Product Cart Variants"
If you save at this point the configuration parameters will be shown. (If you alrady know what to complete - you can just add the parameters required)
Fill In the option field separated by Commas.
Then save.

Structure t@mv,
t = Item variant - Drop selection text and Item variant text that will show in cart
@ = separates the modifier from the selection text - If there is no modifier nothing else is needed
m = modifier either + - * or =
v = modifier value
, = separates variants


1.Simple selections no price adjust
Config: Red,Green,Blue
All variants are at Retail

2.Adjust the price + or -
Config: Sml,Med@+1,Lrg@+2
Give prices of: Sml = Retail, Med = Retail +1, Lrg = Retail +2

3.Multiply the price *
Config: 1m,2m@*2,3m@*3
Gives prices of: 1m = Retail, 2m = Retail * 2, 3m = Retail * 3

You can also use decimals here e.g. 1 feet,1.5 feet@*1.5,2 feet@*2

4.Sell fixed multiples *
Config: 2kg@*2,4kg@*4,6kg@*6

5.Fix the price of a variant
Config: Red,Green,Blue@=12.50
Gives prices of: Red Green = Retail, Blue = 12.50

And of course you can do a combination of all of the above

6. Append a string to the sku
Config: Sml@@sml,Med@+1@med,Lrg@+2@lrg
Gives SKU's of: SKU: origsku-sml, origsku-med, origsku-lrg

Note: you need 2@ symbols before the sku variant else you will change some other setting

7. Change the cart weight for a variant

Config: Sml,Med@@@2,Lrg@@@4
Gives cart weight of: Sml = product weight, Med = 2, Lrg = 4

Note: you need 3 @ symbols in a variant for the weight to be set correctly otherwise you will change some other setting
Setting a weight using this parameter will override any weight calculated by the multiplier option.

8. Product variant selections can be a set of mixed types if required
Config: Sml@*2,Med@+12,Lrg@-2
The custom field setup WILL save to the product with price variations.
You can adjust this in an individual product if required.

Multiple Cart variant customfields

It is possible to have multiple Cart variant customfields for a product
Each Cart variant customfields creates its' own value based on the Standard sales price of the item. They are not chained or linked, a selection in one product drop box that produces a price variant will not affect any other drop box calculation. 

The plugin is offered "as is" so make sure you test thoroughly before deploying in a live environment.

Joomla 3.7.4
php 5.6 + php 7


  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2567
  • VirtueMart Version: 3.2.4
Updated version.

Joomla 3.7.4
php 5.6 + php 7