Author Topic: Customization of Mod_VirtueMart  (Read 13093 times)

pamela12

  • Beginner
  • *
  • Posts: 16
Customization of Mod_VirtueMart
« on: April 24, 2008, 07:07:18 AM »
Hi,

On the module that displays the cart and under it, would display the total amount of the items or say it's empty if the cart has no items.

What file do I need to read if I want to modify the text and size of the module?

Thanks!

unleash.it

  • Jr. Member
  • **
  • Posts: 150
Re: Customization of Mod_VirtueMart
« Reply #1 on: April 24, 2008, 07:41:47 AM »
It's been a couple months, but I managed to customize the VM module pretty well. The main file you'll need to edit is: /modules/mod_virtuemart/mod_virtuemart.php.

However, there are some other files that affect the output. The one I believe you're going to need for the minicart is: /components/com_virtuemart/themes/default/templates/common/minicart.tpl.php

If you can't find these, it's probably because they've been moved. Try turning on debugging and mousing over the blue icons. That should give you the dependent files for the module.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28746
  • Always on vacation
    • Jenkin Hill Internet
Re: Customization of Mod_VirtueMart
« Reply #2 on: April 24, 2008, 13:15:57 PM »
There is a template for the minicart, minicart.tpl.php which is located in /components/com_virtuemart/themes/default/templates/common/

The width of a module is determined by your Joomla template.
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 VirtueMart 4.2.5 10924 J! 3.10.11 PHP 8.2.7

unleash.it

  • Jr. Member
  • **
  • Posts: 150
Re: Customization of Mod_VirtueMart
« Reply #3 on: April 24, 2008, 22:13:55 PM »
Hi Jenkinhill, just wondering...is it possible to copy the .tpl files into the themes directory somehow (like a Joomla override)...or do you just hack them?

Also, I think she might need to edit mod_virtuemart.php for some aspects of the module (like the login, categories, layout of the module, etc.). Check out what I did at: http://tomanddaves.com/shop.php?page=shop.browse&category_id=10&option=com_virtuemart&Itemid=106

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28746
  • Always on vacation
    • Jenkin Hill Internet
Re: Customization of Mod_VirtueMart
« Reply #4 on: April 25, 2008, 10:28:46 AM »
I have decided to rework the default theme to suit each site I do and then save that entire theme for possible future use. Been too busy working with core functions, though, and have only just got to styling.
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 VirtueMart 4.2.5 10924 J! 3.10.11 PHP 8.2.7

pamela12

  • Beginner
  • *
  • Posts: 16
Re: Customization of Mod_VirtueMart
« Reply #5 on: April 25, 2008, 21:10:43 PM »
There is a template for the minicart, minicart.tpl.php which is located in /components/com_virtuemart/themes/default/templates/common/
The width of a module is determined by your Joomla template.
I am using version 1.0.15 and I can't find it under the path you recommended.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28746
  • Always on vacation
    • Jenkin Hill Internet
Re: Customization of Mod_VirtueMart
« Reply #6 on: April 26, 2008, 00:40:01 AM »
This is the VirtueMart 1.1 board.  :)
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 VirtueMart 4.2.5 10924 J! 3.10.11 PHP 8.2.7