News:

Looking for documentation? Take a look on our wiki

Main Menu

Show users shopper fields on product details page

Started by gergnnud, February 09, 2014, 04:39:39 AM

Previous topic - Next topic

gergnnud

Joomla 2.5.17
VM 2.0.26d
Migrated from VM1 and using template overrides for custom display.
First of all good work team for standardising VM to an MVC framework. Much more logical than themes and templates.

I need to add two shopper fields to the product details page - user_height and user_weight. These two fields are essential user measurements for creating the purchased product.

I can display all Joomla's logged in user data via <?php echo "<pre>"; print_r( $this->user ); echo "</pre>"; ?>. I can display the user's name via <?php echo "<pre>"; print_r( $this->user->name ); echo "</pre>"; ?> etc. but I can't figure out how to display the vm shopper field data.

I expect it to be something like <?php echo $this->user->userFields->user_height ; ?> but nothing I have tried so far has worked.

I am under the impression that VM2 now uses Joomla users but I don't know how it all ties in.

Help please.