VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Basvr on September 03, 2013, 21:25:00 PM

Title: How to not show shipment and payment?
Post by: Basvr on September 03, 2013, 21:25:00 PM
How can I not show the shipment and payment method in virtuemart? I should not be shown because I don't have them
Title: Re: How to not show shipment and payment?
Post by: 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.
Title: Re: How to not show shipment and payment?
Post by: gabriela on September 05, 2013, 00:06:20 AM
Hi, How can I do a template overwrite of the cart?? I have the same problem.
Title: Re: How to not show shipment and payment?
Post by: jenkinhill on September 05, 2013, 10:28:43 AM
http://docs.virtuemart.net/tutorials/33-templating-layouts/78-introduction-template-system.html
Title: Re: How to not show shipment and payment?
Post by: Basvr on September 10, 2013, 18:28:47 PM
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?
Title: Re: How to not show shipment and payment?
Post by: 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.
Title: Re: How to not show shipment and payment?
Post by: Basvr on September 10, 2013, 19:22:27 PM
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
Title: Re: How to not show shipment and payment?
Post by: jenkinhill on September 10, 2013, 23:42:38 PM
Something like this as an override:

.vmpayment_name,  .vmshipment_name {
    display: none;
}

http://forum.virtuemart.net/index.php?topic=116620.0