Author Topic: Custom field: string vs property  (Read 420 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 243
Custom field: string vs property
« on: June 28, 2019, 10:31:02 am »
For adding additional product information, which is the better custom field to use? String or Property?

e.g.

Year: 2007
Author: John Smith
Pages: 367

Any advantages for using the one over the other?

(p.s. I plan to use the fields for filtering & search also, and want the optimal SEO configuration)

Thanks

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3973
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Custom field: string vs property
« Reply #1 on: June 29, 2019, 14:10:06 pm »
type "Property" display a core field so get update if you change the original field.
But it's more simpler to add and manage own way to display a core field, if you can, especially if you want add the display for all products

Hawker

  • Jr. Member
  • **
  • Posts: 69
  • A beginner
Re: Custom field: string vs property
« Reply #2 on: June 30, 2019, 18:58:54 pm »
What does "own way" mean here Studio 42?
VM v. 3.4.2
Joomla v. 3.9.5
PHP v. 7.2.1

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3973
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Custom field: string vs property
« Reply #3 on: June 30, 2019, 23:04:53 pm »
What does "own way" mean here Studio 42?
A template overide to display core felds

Hawker

  • Jr. Member
  • **
  • Posts: 69
  • A beginner
Re: Custom field: string vs property
« Reply #4 on: July 22, 2019, 17:51:30 pm »
String adds price variable without affecting product stock count.
VM v. 3.4.2
Joomla v. 3.9.5
PHP v. 7.2.1

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2314
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Custom field: string vs property
« Reply #5 on: July 22, 2019, 19:14:16 pm »
Propert does not affect stock either. What do you mean by that. Use child variants or multi variants if you need inventory. Which is mostly the c  ase.

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)