VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Prvul on November 06, 2013, 04:26:18 AM

Title: customfieldsSorted array setter
Post by: Prvul on November 06, 2013, 04:26:18 AM
I did a search in entire joomla installation for 'customfieldsSorted' string inside *.php and those are the results:

com_virtuemart/views/productdetails/view.html.php
com_virtuemart/views/productdetails/tmpl/default_customfields.php
com_virtuemart/views/productdetails/tmpl/default.php

all of them just use allready prepared customfieldsSorted array in this fashion
foreach ($this->product->customfieldsSorted[$this->position] as $field) {...}

I want to reorder custom fields. Custom field order number doesn't work so I would like to hack the "setter" of this array in order to get the ordering that I need, and without the need to have the redundant code inside views.

Where is this piece of code hidden?

This is driving me mad  :-\