VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: harish2al on July 24, 2014, 09:32:00 AM

Title: Remove save option from Payment method
Post by: harish2al on July 24, 2014, 09:32:00 AM
Hi there,

I would like to know which part of code needs to be modified in order to remove the save option from the payment page & save the payment option & process it on on-select method.
Kindly reply me soon as it is urgent requirement. My virtue mart version is 2.0.20b & Joomla is 2.5+.

Regards
Hariharan
Title: Re: Remove save option from Payment method
Post by: harish2al on July 24, 2014, 11:37:21 AM
Hi there,

Can anyone guide me to achieve my task. Pls I need it asap.

Thanks & Regards
Hariharan B
Title: Re: Remove save option from Payment method
Post by: GJC Web Design on July 24, 2014, 13:25:43 PM
first I would upgrade to VM2.6.6 (with all the normal warnings) - the cart code is very different in these later versions
Title: Re: Remove save option from Payment method
Post by: harish2al on July 24, 2014, 13:34:06 PM
Hi GJC

Thanks for your response.I've done lot of customization in the code as per client requirement. Can I get the part of code for this option to be done. In cart page no need to have save button instead on clicking final checkout now button the payment option should be saved & processed.

Regards
Hariharan B
Title: Re: Remove save option from Payment method
Post by: GJC Web Design on July 24, 2014, 14:51:16 PM
the logic and save forms are in

components/com_virtuemart/views/cart/tmpl/select_payment.php and select_shipping.php
Title: Re: Remove save option from Payment method
Post by: harish2al on July 25, 2014, 07:33:58 AM
Hi GJC,

I would like to inform you that I've updated the modifications in the file select_payment.php, but still I dint get the output, I'm redirected to the edit payment page if I select the payment in the cart page. Is there any modifications to be done other than this in any other file. Kindly revert me back asap since it is really urgent for me to complete this task.

Regards
Hariharan B
Title: Re: Remove save option from Payment method
Post by: GJC Web Design on July 25, 2014, 07:48:23 AM
Sorry, I don't have access to any installs with this old version - as I said the cart handling has changed a lot in the more recent versions.

It has to be somewhere in the helpers/cart.php or controllers /cart.php area
Title: Re: Remove save option from Payment method
Post by: harish2al on July 25, 2014, 08:00:40 AM
Hi GJC,

Let me check the files which you've mentioned & I'll let you know about the status. Let me confirm one thing the changes in the cart will be basically in the above mentioned files right?

Thanks & Regards
Hariharan B
Title: Re: Remove save option from Payment method
Post by: GJC Web Design on July 25, 2014, 09:11:28 AM
they are the cart files apart from the view of course