Classifieds -remove pay by credit card option

Hi,

I do not want to offer payment by credit card as I do not have this facility. Can this be switched off as it still appears as a payment option.

If it can't be switched off can you point me to which php file I need to edit to remove it.

Thanks

  • Mason
    • DEV MAN’s Sidekick

    Hiya Harryhayes,

    Currently classifieds is specifically setup to provide for paid classifieds. If you're wanting a free option, I'd recommend going with either our CustomPress plugin (which Classifieds is based on) or look into the upcoming release of our Directory plugin.

    https://premium.wpmudev.org/project/custompress

    We could consider providing a free option though as a feature request. Anybody else looking for this?

    Thanks!

  • harryhayes
    • The Incredible Code Injector

    Hi Mason

    Thanks for the quick reply.

    Just to clarify however, I want to keep the paid option (via Paypal) but remove the option to pay by credit card as we don't accept card payments unless via Paypal.

    See screen shot.

    Incidentally, I may have inadvertently stumbled across a way to allow free access.

    Currently, when I register a new user on my site, they have immediate access to upload new classifieds listings?

    I am not entirely sure why but this it may be something to do with my menu links.

    I have created a menu link for 'get a page' which is immediately accessible to new registrants and allows immediate upload of new classifieds.

    I have tried setting the default user role in settings to Classifieds user and just subscriber but with no effect on the outcome.

    HELP?

    I actually don't want this so I need to fix it somehow.

    Thanks

    Nick

  • harryhayes
    • The Incredible Code Injector

    Hi Mason

    Update

    The plugin works as expected while the user remains in the front end.

    It seems that the issue only occurs if logging in via the wp-login.php rather than via the classifieds login page (installed by the plugin).

    Is this a bug? Can you suggest a fix for this?

    I am concerned because when the user logs out they are redirected to the wp-login.php page. (http://qrlocal.info/wp-login.php?loggedout=true)

    If they log out before paying and then log back in via a bookmark of the wp-login.php (for example), They will get free unlimited access.

    Thanks

    Nick

  • Mason
    • DEV MAN’s Sidekick

    Hiya Nick,

    For the login issue. You can disable the registration ability on the site and only use the checkout procedures included in Classifieds. You may also want to setup an .htaccess rule so that folks are directed away from the wp-signup.php to the checkout page.

    As to the credit card issue showing on the front-end when you're only wanting to use PayPal, I will ask the developer to comment on this one.

  • aecnu
    • WP Unicorn

    Greetings harryhayes,

    Mason James has indeed moved this to the features request department.

    I would suggest on the payment page removing or commenting out the very code that renders the Credit Card payment on that page.

    Note: that the custom modification may be over written in future updates of the plugin.

    If we can be of further assistance please let us know.

    Cheers, Joe :slight_smile:

  • harryhayes
    • The Incredible Code Injector

    Hi Joe

    thanks for the pointers,

    I guessed it would be as easy as commenting out but am not sure where to do this. Not being expert at php, I was a little concerned that it would upset the system somehow.

    I will keep looking for the relevant file but would appreciate you help if you happen to know which file to edit.

    Thanks again

    Nick

  • aecnu
    • WP Unicorn

    Greetings harryhayes,

    Below is the code you would want to remove or comment out in page-checkout.php

    <tr>
                                            <td><label for="payment_method">Credit Card</label></td>
                                            <td>
    
                                                <input type="radio" name="payment_method" value="cc" />
                                                <img  src="http://test.easystartdiywebsitedesign.com/wp-content/plugins/classifieds/ui-front/general/images/cc-logos-small.jpg" border="0" alt="Solution Graphics">
                                            </td>
                                        </tr>

    If we can be of further assistance please let us know.

    Cheers, Joe :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.