Author Topic: Custom fields standard in new product  (Read 621 times)

Huubs

  • Jr. Member
  • **
  • Posts: 186
Custom fields standard in new product
« on: January 16, 2020, 09:27:23 am »
Hello,

Is it possible when you create a new product certain custom fields are already set? So I don't have to add these custom fields manually. This saves time for me because most of the products use the same custom fields (only have different prices). Is this possible to do via Javascript or something?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3049
  • VirtueMart Version: 3.6.11
Re: Custom fields standard in new product
« Reply #1 on: January 16, 2020, 11:55:39 am »
Maybe you can create a non published "dummy product" and clone it for new products
regards
A

Joomla 3.9.15
php 7.2

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9394
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Custom fields standard in new product
« Reply #2 on: January 16, 2020, 12:03:10 pm »
or make a "pattern" product ..  see the online demo -- basically a pattern parent and your products are children
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Huubs

  • Jr. Member
  • **
  • Posts: 186
Re: Custom fields standard in new product
« Reply #3 on: January 16, 2020, 12:41:42 pm »
Maybe you can create a non published "dummy product" and clone it for new products

Yeah I thought about that as well, but I hoped that there was a way to let it done automatically.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9394
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Custom fields standard in new product
« Reply #4 on: January 16, 2020, 23:21:46 pm »
"pattern" product == automatic

try it!
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10399
  • VirtueMart Version: 3+
Re: Custom fields standard in new product
« Reply #5 on: January 17, 2020, 18:47:40 pm »
I would use it in your product view template.

THEN: if you want it to NOT appear. Use a custom field to signal to hide it,
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)