VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: blossom on October 25, 2005, 14:02:53 PM

Title: Any way to skip the payment method
Post by: blossom on October 25, 2005, 14:02:53 PM
hello reader,

Is there anyway to skip the payment method just collect the cutomer's info and billing info.i would like to have option as cash on delivery but would liket o hide it from the customer.

Regards,
Title: Re: Any way to skip the payment method
Post by: lucion on October 25, 2005, 14:53:19 PM
I believe you'd have to hack into the PHP to do that

Look at \administrator\components\com_phpshop\html\checkout.index.php
around line 184
/*** -CHECK_OUT_GET_PAYMENT_METHOD
        * let the user choose a payment method  ***/
        elseif ($checkout_this_step == CHECK_OUT_GET_PAYMENT_METHOD) {

            require_once(CLASSPATH . 'ps_payment_method.php');
            $ps_payment_method = new ps_payment_method;
            include(PAGEPATH . 'checkout.paymentradio.php');  ?>
           
            <input type="hidden" name="page" value="checkout.index" />
            <input type="hidden" name="func" value="checkoutprocess" />
            <input type="hidden" name="ship_to_info_id" value="<?php echo $ship_to_info_id ?>" />
            <input type="hidden" name="shipping_rate_id" value="<?php echo urlencode($shipping_rate_id?>" />
            <?php
        

        
        
        elseif (
$checkout_this_step == CHECK_OUT_GET_FINAL_CONFIRMATION) {


Look at these files too:
\administrator\components\com_phpshop\html\checkout.paymentradio.php
\administrator\components\com_phpshop\classes\ps_payment_method.php

If you need PHP work, I might be your man.  PM me.

Good Luck,
Bevan/
Title: Re: Any way to skip the payment method
Post by: danathomas76 on May 13, 2008, 18:20:15 PM
Did this work for you?
Title: Re: Any way to skip the payment method
Post by: whooyeah on November 17, 2008, 07:01:46 AM
Is there another solution to this??

It seems that the cart skips the payment method anyway as i only have the paypal option but the title and the checkout bar still says there is 4 steps so its confusing.