News:

Looking for documentation? Take a look on our wiki

Main Menu

how to show the value of a custom field in the product details page? [solved]

Started by owegen, August 12, 2014, 22:00:16 PM

Previous topic - Next topic

owegen

hello,

how to show the value of a custom field in the product details page?

I guess I have to modify (overide) the file default.php in /components/com_virtuemart/views/productdetails/tmpl

but how? The name of my custom field is prix_de_vente

many thanks for your help!

Raphael

[attachment cleanup by admin]

balai

I don't think that you need anything else.

If you are using the default Virtuemart layouts normally you should get it.
Also try to enter some layout positions (e.g. ontop)

owegen

Quote from: balai on August 13, 2014, 12:12:39 PM
If you are using the default Virtuemart layouts normally you should get it.

How can I know that?  :-\

owegen

hello balai,

I tried to enter a layout position "ontop" but it doesn't seem to run.



[attachment cleanup by admin]

GJC Web Design

I assume you've "attached" this custom field to your product?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

owegen

Quote from: GJC Web Design on August 13, 2014, 13:22:56 PM
I assume you've "attached" this custom field to your product?

I am not sure I understand what you mean with "attached".

I created an new custom file.

Raphael

GJC Web Design

and then go to the products and add that custom field... on the (surprisingly named ;)   ) custom field tab
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

owegen

you mean that?

I already did that before but it doesn't work.



[attachment cleanup by admin]

GJC Web Design

can only be your template then - have you tried with a std Beez etc?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

owegen

Quote from: GJC Web Design on August 13, 2014, 19:08:41 PM
can only be your template then - have you tried with a std Beez etc?

I gues that's the problem. And I don't know what I have to change in the php code to show this value.

GJC Web Design

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


GJC Web Design

no - the standard product detail templates that comes with VM
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

owegen

Quote from: GJC Web Design on August 13, 2014, 20:53:56 PM
no - the standard product detail templates that comes with VM

I was in it. That's my problem. I don't know how to change the code.

owegen

If you want I can give you an access to my website. Maybe you'll find the problem. It's just a test website