News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove save option from Payment method

Started by harish2al, July 24, 2014, 09:32:00 AM

Previous topic - Next topic

harish2al

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

harish2al

Hi there,

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

Thanks & Regards
Hariharan B

GJC Web Design

first I would upgrade to VM2.6.6 (with all the normal warnings) - the cart code is very different in these later versions
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

harish2al

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

GJC Web Design

the logic and save forms are in

components/com_virtuemart/views/cart/tmpl/select_payment.php and select_shipping.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

harish2al

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

harish2al

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

GJC Web Design

they are the cart files apart from the view of course
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation