News:

Looking for documentation? Take a look on our wiki

Main Menu

Delete the "add a shipping address" button

Started by charlyvirtuemart, October 15, 2013, 14:16:18 PM

Previous topic - Next topic

charlyvirtuemart

Hello to all
After several non-exhaustive research, I try to remove the button "add a shipping address" in the "View Cart"

Guests must pick up their product to the store so it does dishes useless.
I select "Enable automatic selection for delivery" in configuration / control but nothing works?
Thank you in advance for your answers.

jenkinhill

You can hide the add shipping address block by using a template override with a little css. The file to edit is components/com_virtuemart/views/cart/tmpl/default_pricelist.php

Easiest way to hide the content is to add a display:none style to the add shipping div. That starts with
<div class="width50 floatleft">
edit it to
<div class="width50 floatleft" style="display:none;">

Use the edited firl as a template override.  http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides

The "Enable automatic selection for delivery" selector relates to the delivery method you have set up if there is only one.  http://docs.virtuemart.net/manual/21-configuration-menu/62-configuration.html#checkout
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