Author Topic: CustomField [P]roperty - can you explain me, please?  (Read 552 times)

liver007

  • Beginner
  • *
  • Posts: 1
  • A beginner
CustomField [P]roperty - can you explain me, please?
« on: December 27, 2017, 17:53:55 pm »
Hi there, My name Jeen แทงบอลเงินสด
I want to display the characteristics of the product, such as width, height, length on the product page.
In this case, I would not want to specify them in the custom fields, because they are already specified in the properties of the product.
How do I display them? สมัครแทงบอลเงินสด
I found something similar in the file \sublayouts\customfield.php but did not understand how to use it.

Thank you

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3458
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: CustomField [P]roperty - can you explain me, please?
« Reply #1 on: December 28, 2017, 00:31:49 am »
You need to overide in your template productdetails/default.php if you don't want use it as customfield.
and use $product->NAME_OF_PROPERTY

If you really want to display customfields property, i wrote a plugin to do this and many other things easier.
See https://shop.st42.fr/en/products/shortcodes.htm > product core is what you need.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9720
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: CustomField [P]roperty - can you explain me, please?
« Reply #2 on: December 29, 2017, 12:29:14 pm »
You can either choose to write your own override, or you use the customfield Property to avoid that.

Thats all. The customfield is just there to avoid the overrides. Because on the long term VM should work so that people are not intersted to use overrides. Overrides make always trouble when updating. Sometimes after months, sometimes after years, because they are usually derived from a version x and stay there. Except you bought a good template, which also provide updates for the overrides.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/