Author Topic: Prefixed Custom fields with various options?  (Read 609 times)

cleverbargain

  • Beginner
  • *
  • Posts: 38
Prefixed Custom fields with various options?
« on: March 02, 2017, 15:43:47 pm »
Hello, is it possible and is there a tutorial to do the below?

I'm trying to create a custom field with fixed options that I will assign once in the Custom-fields area and then just insert the whole set under each product.

For example I want all my products to always have a dropdown selection of the below options:

Size Small: +1.00euro
Size Medium: +2.00euros
Size Large: +3.00euros


So at the moment I'm opening each product in Virtuemart, add a custom field called 'SIZE' and then I enter the title 'Size Small' and the price +1.00 , then I have to click the custom field 'SIZE' again to open a new input box and I enter the title 'Size Medium' and the price +2.00 and so forth.

It would be great if I could just select a custom field once (from the product within Virtuemart) and automatically insert all 3 options with their pre-fixed prices.


I hope this is clear and if there is a solution it would save me a lot of time
Thx

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10270
  • VirtueMart Version: 3+
Re: Prefixed Custom fields with various options?
« Reply #1 on: March 03, 2017, 20:13:59 pm »
I do NOT do development work for hire.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2568
  • VirtueMart Version: 3.2.4
Re: Prefixed Custom fields with various options?
« Reply #2 on: March 04, 2017, 10:02:50 am »
NOTE: If you want stock control for these separate item - the plugin PRO mentions is not for you :-)
regards
A

Joomla 3.7.4
php 5.6 + php 7

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2135
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Prefixed Custom fields with various options?
« Reply #3 on: March 04, 2017, 12:59:45 pm »
You can use vm be pro to batch process this for all needed products. See shop.st42.fr/en/products/vm-be-pro-batch-product-edit.htm
Another solution is what i do for some customers that need a specific plugin with same values and options for all.
You write a specific plugin and get the value from declared global values and not from product. So each declared plugin variation, use always same options in all the products.

aftertaf

  • Jr. Member
  • **
  • Posts: 113
    • sO couture
  • VirtueMart Version: 3.2.2
Re: Prefixed Custom fields with various options?
« Reply #4 on: March 04, 2017, 13:51:56 pm »
couldn't you create a basic product that has these custom fields added, then make ALL of your products children of this one ?
Webmaster for my wife
Long live joomla, virtuemart and open source in general.
usually latest version of VM & J!
Using POSForWebshops, TemplatecreatorCK, MaximenuCK, VM BatchEdit Pro among other things...
VM 3.2.2, PHP Version 7.0.18-1~dotdeb+8.1, mariadb 10.1.22 Joomla! 3.7.2

cleverbargain

  • Beginner
  • *
  • Posts: 38
Re: Prefixed Custom fields with various options?
« Reply #5 on: March 07, 2017, 21:23:53 pm »
i believe this does that
https://forum.virtuemart.net/index.php?topic=127362.0

This was exactly what I needed :)

Thx everyone

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2135
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Prefixed Custom fields with various options?
« Reply #6 on: March 07, 2017, 23:36:08 pm »
I think that i have not understand exactly, my solution was to never have any option in product so this are always set for all produc even if you need to update the options.
So if you only need to preset but override it then AH plugin is what you need.

cleverbargain

  • Beginner
  • *
  • Posts: 38
Re: Prefixed Custom fields with various options?
« Reply #7 on: March 08, 2017, 19:02:51 pm »
I rushed to a conclusion :( but I'm afraid this plugin only solves 50% of what I need to solve.

This plugin helps me insert a set of Options for the Product (i.e. Size Small, Medium, Large) and assign how much to add on the base price (i.e. Small +1, Medium+2,Large+3)

However, I want to be able to change the numbers +1,+2,+3 ONCE from the Custom Field and automatically update them under all Products.

So i'm looking to have something like a 'Master Custom Field' that will allow me to control the prices from 1 location which will then be applied to all products automatically.


I hope I'm clear to what I'm trying to achieve..


cleverbargain

  • Beginner
  • *
  • Posts: 38
Re: Prefixed Custom fields with various options?
« Reply #8 on: March 21, 2017, 09:04:06 am »
Anyone?

I still can't figure how to control the prices of Custom-fields from 1 location. I have over 350products that will share the same Custom fields and I would like to be able to change the price of these custom fields from 1 location.



Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2135
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Prefixed Custom fields with various options?
« Reply #9 on: March 21, 2017, 09:32:32 am »
If you need to drive all from one place and change this from one place, then you need to do your own custom field plugin.
Standard product custom field logic is to have a default value, but this is saved for each product.
Only with a plugin you can set this from 1 location, no one can explain you how to set this from one location in VM because by default it not work.