SOLVED -Disable a payment method per shipping - more than 1

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

SOLVED -Disable a payment method per shipping - more than 1

Postby ekfrasi » Tue Dec 02, 2014 1:47 pm

Hi there,

first thanks for the wonderful component, it is really great.
The main reason I bought it is the functionality to choose payment methods according to shipping.

I managed to do that for one shipping method. My problem is that I want to do it for another shipping method too. I do see an "Add more..." option, BUT nothing happens if I press it and I'm stacked.

opc1.JPG
opc1.JPG (55.06 KiB) Viewed 18956 times


Please advise.

P.S. I have:
Joomla 3.3.6
VM 3.0.0
OPC 2.0.272.291114
Last edited by ekfrasi on Tue Dec 02, 2014 5:22 pm, edited 1 time in total.
ekfrasi
 
Posts: 4
Joined: Tue Dec 02, 2014 1:38 pm

Re: Disable a payment method per shipping - more than 1

Postby admin » Tue Dec 02, 2014 2:08 pm

hello, thank you for reporting this, i just replicated this on our joomla3 demos, i am going to update this asap, it will be released later today.
best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Disable a payment method per shipping - more than 1

Postby admin » Tue Dec 02, 2014 2:19 pm

hello, i just released this within version 273, please update opc with the version at the installer.

if updating from OPC before 269, i suggest that you
- (by default) backup/rename your modified opc theme if you had changed it
- install with joomla installer
- click save within opc configuration
- (this is required when updating from before 269) click save within opc tracking configuration (if you are using it)
- do a few test orders

best regards, stan, rupostel.com
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Disable a payment method per shipping - more than 1

Postby ekfrasi » Tue Dec 02, 2014 2:36 pm

Hi again and thanks for the fast reply!

I just uploaded the new one, but now I cannot select neither a payment method, nor a default one, i.e. the drop down is not click-able'
opc2.JPG
opc2.JPG (71.7 KiB) Viewed 18953 times


Waiting for further instructions :)


Edit: silly me :oops:

The top ones are clickable, the bottom ones are the ones I already configured, sorrry :(
ekfrasi
 
Posts: 4
Joined: Tue Dec 02, 2014 1:38 pm

Re: Disable a payment method per shipping - more than 1

Postby ekfrasi » Tue Dec 02, 2014 3:03 pm

Another question:

How do I disable/delete one ?
I do not seem to see n X or delete button.
ekfrasi
 
Posts: 4
Joined: Tue Dec 02, 2014 1:38 pm

Re: Disable a payment method per shipping - more than 1

Postby admin » Tue Dec 02, 2014 4:57 pm

hello, hmm, i see the problem now on the very latest. it seems that the "chosen" javascript is not working there. i will try to find a solution for you asap.
best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Disable a payment method per shipping - more than 1

Postby admin » Tue Dec 02, 2014 5:05 pm

hello, i found a way how to customize the chosen scripts, so i released further update to opc for this (in v.274):

the fix includes:
line 105 in \administrator\components\com_onepage\views\config\tmpl\default.php

from:
JHtml::_('formbehavior.chosen', 'select');
to
JHtml::_('formbehavior.chosen', 'select.vm-chzn-select');

to to clear all of the options, just make sure that "enable this option" is not checked.
to clear just one option, make the search string empty

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Disable a payment method per shipping - more than 1

Postby ekfrasi » Tue Dec 02, 2014 5:15 pm

Thanks again a zillion :D

I will check it and update here.

Christina

Edit: Checked, it works!

I will mark the post as solved ;)
ekfrasi
 
Posts: 4
Joined: Tue Dec 02, 2014 1:38 pm

Re: SOLVED -Disable a payment method per shipping - more than 1

Postby admin » Thu Dec 04, 2014 6:40 pm

hello, thank you and you are welcome. best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x