php - Virtuemart 3 get customfield params

63

i want get a spesific customfield params on category page(category/default.php),but until now i still can't find a solution, i tried these method but all not work

method 1

$plugin = JPluginHelper::getPlugin('vmcustom', 'mypluginname');
$params = new JRegistry($plugin->params);
echo $params->get('param_name','default_value');

method 2

$plugin = &JPluginHelper::getPlugin('vmcustom', 'mypluginname');
$pluginparams = new JRegistry($plugin->params);
$paramvalue = $pluginparams->get('myparameter');

i think maybe these not working,because VM3 version use<vmconfig>,don't know is it right,so how can i get a spesific customfield params on category page?

Joomla 3.4.8 / Virtuemart 3.0.12 / Php 5.4

many thanks!

People are also looking for solutions to the problem: php - Symfony2 :Create form without entity within separate file

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.