News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Change layout position of ontop

Started by suffering, June 04, 2019, 10:26:25 AM

Previous topic - Next topic

suffering

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

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.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

suffering

Quote from: Jörgen 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
Thank you for answer.
My template mod told me this is VM issue and i had to ask here ?  :-[

Jörgen

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.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jenkinhill

The code to look for in templates/YourJoomlaTemplate/html/com_virtuemart/productdetails/default.php will be something like this:

echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop'));
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

suffering

Quote from: jenkinhill 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:

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

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