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

How to not show shipment and payment?

Started by Basvr, September 03, 2013, 21:25:00 PM

Previous topic - Next topic

Basvr

How can I not show the shipment and payment method in virtuemart? I should not be shown because I don't have them

alatak

Hello
Create a one shipment, and one payment methods.
Select the automatic payment, and shipment in the VirtueMart configuration
Do a template overwrite of the cart, if u do not want them to be displayed.

gabriela

Hi, How can I do a template overwrite of the cart?? I have the same problem.

jenkinhill

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

Basvr

Quote from: alatak on September 04, 2013, 08:30:44 AM
Hello
Create a one shipment, and one payment methods.
Select the automatic payment, and shipment in the VirtueMart configuration
Do a template overwrite of the cart, if u do not want them to be displayed.

Hi,
Thanks for your post. Which code should I overwrite then? Or should I cope all the code to the override en erase it over there?

jenkinhill

In components/com_virtuemart/views/cart/tmpl/select_payment.php remove or comment out the php code block beginning (this code is in VM2.0.22d):

<?php
     if ($this->found_payment_method OR (VmConfig::get('oncheckout_opc', 0) )) {

And a similar edit in components/com_virtuemart/views/cart/tmpl/select_shipment.php  - use the edited templates as override in your Joomla template html directory.

Note that the edits will be different if using VM's inbuilt one page checkout.

An alternative way is to hide the ship/payment titles using css.
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

Basvr

Quote from: jenkinhill on September 10, 2013, 18:41:10 PM
In components/com_virtuemart/views/cart/tmpl/select_payment.php remove or comment out the php code block beginning (this code is in VM2.0.22d):

<?php
     if ($this->found_payment_method OR (VmConfig::get('oncheckout_opc', 0) )) {

And a similar edit in components/com_virtuemart/views/cart/tmpl/select_shipment.php  - use the edited templates as override in your Joomla template html directory.

Note that the edits will be different if using VM's inbuilt one page checkout.

An alternative way is to hide the ship/payment titles using css.

Thanks, the options in the workflow are gone now. But which code should I change in CSS to get it out of the summary?

VM:  2.0.20b
Joomla : 2.5.14

jenkinhill

Something like this as an override:

.vmpayment_name,  .vmshipment_name {
    display: none;
}

http://forum.virtuemart.net/index.php?topic=116620.0
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