Author Topic: Change layout position of ontop  (Read 312 times)

suffering

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: gigaparts_greece
Change layout position of ontop
« on: June 04, 2019, 10:26:25 am »
Hello
I have one problem

I want to add badges to my product details page on the image (HOT,NEW etc)
I have made custom fields and choosed ontop position.
My problem is that this is not displayed over the image as you can see in the attachment.
How can i make ontop position to be displayed over the image?
I am using Joomla 3.9.6 and VM 3.4.0.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2314
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Change layout position of ontop
« Reply #1 on: June 04, 2019, 11:29:24 am »
This is a template issue, You have to add a new position or move the current ontop position in Your template.

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

suffering

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: gigaparts_greece
Re: Change layout position of ontop
« Reply #2 on: June 04, 2019, 11:45:45 am »
This is a template issue, You have to add a new position or move the current ontop position in Your template.

Jörgen @ Kreativ Fotografi
Thank you for answer.
My template mod told me this is VM issue and i had to ask here ?  :-[

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2314
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Change layout position of ontop
« Reply #3 on: June 04, 2019, 13:00:19 pm »
This is not a VM issue, ontop is to be placed ontop of the custom area. So there is actually no VM issue.

The template position is in the template, You use a CUSTOM template, I do not use this template. Look in the template and search for ONTOP. Move this to the position where You want it. I do not know how the code look like in Your template. I can only guess.
If Your template designer (whom You paid) does not want to help with this, then move it on Your own

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27496
  • Always on vacation
    • Jenkin Hill Internet
Re: Change layout position of ontop
« Reply #4 on: June 04, 2019, 13:20:15 pm »
The code to look for in templates/YourJoomlaTemplate/html/com_virtuemart/productdetails/default.php will be something like this:
Code: [Select]
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop'));
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.1.10121 on Joomla 3.9.11 PHP 7.0.33
Testing 3.6.1.10129 on Joomla 3.9.11

suffering

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: gigaparts_greece
Re: Change layout position of ontop
« Reply #5 on: June 04, 2019, 15:47:11 pm »
The code to look for in templates/YourJoomlaTemplate/html/com_virtuemart/productdetails/default.php will be something like this:
Code: [Select]
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop'));
Hello and thank you for your imidiatte help and reply.
I found this in the file you said but i cannot make it to move on the image.
Can you assist me on that please?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3974
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Change layout position of ontop
« Reply #6 on: June 04, 2019, 15:51:26 pm »
You have to remove this line and copy/paste it before image zone
Most time the layout is default_image.php in the same folder as default.php
You can disable title display in the custom field
Of course you need add some CSS to render it nice