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

Modify Table in VirtueMart 2 Shopping Cart & Joomla 2.5

Started by blackjet9999, September 17, 2012, 07:14:43 AM

Previous topic - Next topic

blackjet9999

I'm using Virtuemart 2 and Joomla 2.5

I would like to modify the table such as removing the columns SKU, Only, and Dicount, etc.

How can I do so? Thanks.

http://i.stack.imgur.com/Bw57c.jpg

[attachment cleanup by admin]

Milbo

Why do you want to remove it? Following some strange rumours without any proof?

If you want to remove it, but you dont know why. you are like a guy who says: "I wanna tune my car, I wanna remove that strange thing at my engine. I wanna remove the ventilator, the water. For what does my car need water? But can someone explain how to use the tools?"

What means that? You cannot have any clue, else you would know how to use the tools. So go ahead, but dont ask us for support if you are going to destroy your basic installation. And you can of course remove the fields, but be aware that next update, they are added again.

Lol and why do you think that you know how to tune vm, if you even dont know the tools for it? Maybe it makes a lot more sense to pay some expert doing it for you, eh?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

blackjet9999

really appreciate for your time and effort for replying my question. Let me apologize for my silly question and please allow me to rephrase it again because I think we have a little bit of misunderstanding in here.

Actually, I did NOT want to remove the column from the Database, what I would like to see is those column disappear or invisible in the Shopping Cart page. I also would like to remove out the border and set margin and padding for the Total Price or Total Product in the Table in the Shopping Cart as well.

Hopefully this would be clearer, and looking forward for your answer.

Thanks. 

bytelord

#3
Hello,

You could override the vm default layout and edit the file cart\default_pricelist.php and hide the columns you want.

You can find here some more information about templates overrides here:
http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

stuart.prevos

It is not a very difficult thing to do, you need to make an override of the view file /cart/default_pricelist.php.
-so in your template folder /templates/your-template/html you create a subfolder called cart and upload the file default_pricelist.html. This will then override the component file so if you upgrade to the latest version you will still have your custom version.
-you then edit this new file to remove what ever you like.
-if you break it just delete the file and start again.

blackjet9999