News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove Ship to options in Cart and registration

Started by Hakeem, December 06, 2012, 20:43:38 PM

Previous topic - Next topic

Hakeem

Hi,

I am using Virtual Mart: Latest version 2.0.14 and Joomla: Joomla! 2.5.7

All i just want to do be remove / Disable Ship to text boxes from the Virtual Mart Registration and the Ship to text boxes in the Cart.


So that when the user register, all they enter is the bill to details and if they returning customer, the bill to details is filled in once they login.


See attached image.

Thanks in advance

[attachment cleanup by admin]

bytelord

Hello,

Not sure if i understand you correctly but you could use some CSS to hide them, use firebug, find the element you want to hide and place an attribute display:none; ... if you don't have already an override for virtuemart default css file, create one.

Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

Template Overrides:
Creating Template overrides: https://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system

Regards
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!

Hakeem

Hi Bylord,

Thanks alot for the reply and for suggesting the use of firebug tool. Its really helpful together with the web developer tool for Google chrome.

I am still very new to Joomla 2.5 as its very different to the earlier version of Joomla.

My problem is that, i can identify what CSS code i need to edit to remove the shipto but Can you please tell me what  php file where the i need to edit for the shopping cart as shown in the picture.

Thanks in advance.


bytelord

Hello,

For changing the CSS styling there is no need to modify the PHP files, just css files. You will need to load a new CSS file inside your template header, e.g. virtuemart.css and placed it under your css folder for example under your joomla template. Inside there you can override everything regarding to vm2 css styling.  (http://forum.virtuemart.net/index.php?topic=90968.0)
Alternative you could use the your template.css file to override you CSS and the better will be to create a new one ... please provide a live url to check your site with firebug also.

In case you need to edit your php files the original cart template files are located under: joomla_folder\components\com_virtuemart\views\cart\tmpl\xxxxxxxxxx.php
For the files you need to create an override just copy them under joomla_folder\templates\your_joomla_Template\html\com_virtuemart\cart\xxxxxxxxxxx.php
*Create the folders if doesn't exist.

Also here some information regarding css styling: http://www.w3schools.com/css/

Regards
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!