*

pitbull

  • ***
  • 98 posts
I added a custom field (URL LINK) at the back end and i want to change the position of that custom field in veronika theme. To be more specific i want to move that custom field at the right side in the item page below the price tag. i cant find a specific id defined for this custom field in the theme folder. Are all the custom fields stored in an array? If yes, what i want is to unset only the (URL LINK) custom field add a unique class to it and then position it anywhere i want inside the file item.php. Where is the code for the custom fields located?

Need some help here.

Regards

*

MB Themes

Re: How can i change the position of a custom field in veronika theme ?
« Reply #1 on: October 10, 2017, 01:02:29 PM »
@pitbul
Custom fields are loaded using hooks (item_detail), you can find it on item.php. This will move all fields loaded using this hook.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pitbull

  • ***
  • 98 posts
Re: How can i change the position of a custom field in veronika theme ?
« Reply #2 on: October 10, 2017, 01:29:35 PM »
i 'd appreciate it if you please could give me some details (code sample)??

*

MB Themes

Re: How can i change the position of a custom field in veronika theme ?
« Reply #3 on: October 10, 2017, 01:30:17 PM »
@pitbull
Go to item.php, find hook item_detail and move it wherever you want.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pitbull

  • ***
  • 98 posts
Re: How can i change the position of a custom field in veronika theme ?
« Reply #4 on: October 10, 2017, 07:53:11 PM »
i think you didn't understand my question :(
I know that i can move the hook item_detail inside the file item.php and reposition it BUT it moves allthe details and not only the custom field i want to move !

I want all other custom fields to stay where they are, AND ONLY one specific field to move on other position

See what i mean ?

I think that there must be some piece of code that allow us to unset a specific custom field based on its unique name we set at the backend.

*

MB Themes

Re: How can i change the position of a custom field in veronika theme ?
« Reply #5 on: October 10, 2017, 09:03:49 PM »
That is not so easy and require to use field model of osclass core (oc-includes/model/field.php).
Such modifications are not covered by support and should be done by you or your developer.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots