VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: daniel123 on July 11, 2016, 10:33:21 AM

Title: adding card logos to main VM page
Post by: daniel123 on July 11, 2016, 10:33:21 AM
Hello, please I have a hard time adding card-icons (logos) to my main VM site. We are implementing cardpay with our bank, but they need to see card logos on the main VM page, and I just cant find out how to do so. Please can u help me with that?
My site and page I need to add those icons is : https://reachtraining.eu/webshop-sk

Thanks a lot for help !
Title: Re: adding card logos to main VM page
Post by: Studio 42 on July 11, 2016, 10:55:35 AM
Add a new Joomla module "Custom" for this page only.
Else you can manually overide your main file copy:
YOURSITE\components\com_virtuemart\views\virtuemart\tmpl\default.php
and paste it to
YOURSITE\templates\YOURTEMPLATE\html\virtuemart\tmpl\default.php
And add your modifications
Title: Re: adding card logos to main VM page
Post by: daniel123 on July 11, 2016, 11:04:44 AM
Hello, thanks a lot for reply!
But as I was looking for YOURSITE\templates\YOURTEMPLATE\html\virtuemart\tmpl\default.php
-in YOURSITE\templates\YOURTEMPLATE\html\  - I cant find virtuemart :/
https://gyazo.com/b656c41a0e1f4354a56e911ae679cce7

Title: Re: adding card logos to main VM page
Post by: jenkinhill on July 11, 2016, 12:16:39 PM
Quote from: daniel123 on July 11, 2016, 11:04:44 AM

But as I was looking for YOURSITE\templates\YOURTEMPLATE\html\virtuemart\tmpl\default.php
-in YOURSITE\templates\YOURTEMPLATE\html\  - I cant find virtuemart :/

The path should be templates/YOURTEMPLATE/html/com_virtuemart/virtuemart/default.php

You will have to create the subdirectories if not already there.
Title: Re: adding card logos to main VM page
Post by: daniel123 on July 11, 2016, 13:44:46 PM
Thanks!
Please one more question, when Im not able to code in php, is there another way?

THX
Title: Re: adding card logos to main VM page
Post by: jenkinhill on July 11, 2016, 13:57:26 PM
Yes, as Studio 42 mentioned: "Add a new Joomla module "Custom" for this page only."

https://docs.joomla.org/Help35:Extensions_Module_Manager
Title: Re: adding card logos to main VM page
Post by: daniel123 on July 11, 2016, 14:45:05 PM
Thanks for reply!
So Ive made module (name = "VM-platby")-> custom code -> and type HTML/CSS code.
Published it only for that menu item.
Then I went to administration-> menu and to that item, and -> module assignment and I see the module as "yes" (=published for that menu).
-> https://gyazo.com/28163250d37ec2bf9d049bca78887bdc

But when I go to my site and to that page, the module code still does not appear..
I guess that its because I dont have a position for that module, but I think nothing of that list of positions is not what I need.. {there are things like menu, offcanvas, logo, footer}

The menu item ("obchod" = "shop") where I need to add content (card logos and stuff), does not have editable content :
-> https://gyazo.com/07c07cd14984b00c3a4f4ccb3c8ee5a9
Therefore I just cant find a way to add that module below the actual content (shop items)
-> https://gyazo.com/f5b8892103e1156f4b8129d3a80c3738

Can someone please help me with that too? Or am I doing it wrong?
Thanks for help !!!
Title: Re: adding card logos to main VM page
Post by: Studio 42 on July 11, 2016, 18:34:55 PM
Edit the code, as explained before. Or add menu for categories.
If you set only one menu link, then all submenus inherit from this, including the modules.
Title: Re: adding card logos to main VM page
Post by: jenkinhill on July 11, 2016, 21:02:00 PM
The avalable module positions for your zoo template are shown on http://yootheme.com/demo/themes/joomla/2014/unity/index.php/features/layouts
Title: Re: adding card logos to main VM page
Post by: daniel123 on July 12, 2016, 10:56:37 AM
THANKS A LOT! :) got it