Supress All Payment Packages ?

Discussion in 'TemplateCodes' started by TStuff, Apr 21, 2011.

Thread Status:
Not open for further replies.
  1. TStuff New Member

    We want a free classifieds system

    How can we supress the payment options when a user places a new ad ??

    The options Adpack and Allprices are deactivated in the options, but the requirement for billing of $0.00 still appears.
  2. seymourjames All Hands On Deck

    Replied through our support system -

    1. Correct in the instructions.txt file and in general if you don't use a module you simply deactivate it and it will not show on the template (e.g adpack, listing filter, etc - easy as one click). You don't need to do any coding.

    2. In the instructions.txt document as supplied for the Quick Checkout module (config file) it says - skip billing, skip product, skip payment gateway, skip discount, etc. Its pretty flexible to take out whole steps in the checkout with one replacement of 'N' or 'Y' in the config file.

    For any further customization of what is left, you will have to edit the template files for the module itself (e.g. use a different phrase or not show something specific to your site ).

    I have moved this thread to the correct forum. as it is a TC question and not an installation one.
  3. TStuff New Member

    I'll see what happens now

    The Ad Pack and All Prices ARE inactive already

    The Quick Checkout WAS inactive .. have just made it active

    Attached Files:

  4. TStuff New Member

    That's made it worse

    Now I have:

    Choose Advertising Package
    Verify Billing Information
    Choose Payment Method

    Attached Files:

  5. seymourjames All Hands On Deck

    As in the support email:

    General Practice when changing things on 68C sites:


    Clear browser cache, clear cookies, empty templates_c folder of cached files.

    Specific

    1. Deactivate QC module to be sure that after editing the config.php file for QC module (properly) it actually functions properly (read 68C documentation about modules and how they work). You actually don't need to deactivate the module when I tested it either - it picks up the new data immediately but nonetheless it does no harm to do this.

    I just tested on our demo site and in under 5 seconds , it shows no discount, no gateway, no billing , no packages.


    INSTRUCTIONS.TXT DOCUMENT

    /******** Classifieds Administration Config variables **************/

    /**
    * Skip the verification of the users billing information "Y" or "N"
    */
    $data['module']['skipBilling'] = "Y";

    /**
    * Skip the payment gateway choice, will default to either 1 or the
    * value entered for defaultGateway below. "Y" or "N"
    * Only change this IF you only accept one form of payment AND
    * YOU MUST SELECT A DEFAULT GATEWAY BELOW!
    */
    $data['module']['skipGateway'] = "Y";

    /**
    * The id for the default gateway, 1=check, 11=paypal (on our test site)
    * To get the id for your gateway, login to your administration
    * Click on Payment, Click on Payment Providers
    * the id is the number in the second column that you CANNOT change
    * EXAMPLE- id 1 Email Only
    */
    $data['module']['defaultGateway'] = "1";

    /**
    * Skip the discount step of checkout, will default to either 1 or the
    * value entered for defaultGateway below. "Y" or "N"
    */
    $data['module']['skipDiscount'] = "Y";


    /**
    * Skip the product step of checkout
    * value entered for showing products below. "Y" or "N"
    * defaultproduct ID = X is entered for supressing a single product when skipProduct is "Y"
    */

    $data['module']['skipProduct'] = 'Y';
    $data['module']['defaultProduct'] = 1;


    Make sure you have a package set up as 68C requires one. Make sure you have a gateway set up as 68C requires one. Note the ID number - that is where it says $data['module']['defaultProduct'] = 1; The ID is 1 on my system but it may be something different on yours. Likewise the default gateway - the ID is 1. These are found in your admin control panel.

    Activate the QC module after your changes.
  6. TStuff New Member

    I'm just a person OK? Not a programmer - I am just someone who paid cash money

    So please help me here .. you want me to edit a config file ?? I am reading what you said:

    Deactivate QC module to be sure that after editing the config.php file for QC module (properly)

    what does 'properly' mean ???

    be precise and helpful please
  7. TStuff New Member

    Found it

    Thanks

    modules/quick_checkout/config.php

    Uploaded and emptied the cache, but it's made no difference

    The Place new ad still shows Billing Information in Step 5.

    The Payment Provider is set to ID 1, Email only.
  8. TStuff New Member

    Still not turning off ... a clue that I get though is that Fast Checkout uses ajax .. is this an ajax.php error ?

    I had trouble with it verifying on login earlier, but that was sorted out okay ....

    This is what's online:

    $data['module']['skipBilling'] = "Y";
    $data['module']['skipGateway'] = "Y";
    $data['module']['defaultGateway'] = "1";
    $data['module']['skipDiscount'] = "Y";
    $data['module']['skipProduct'] = 'Y';
    $data['module']['defaultProduct'] = 1;

    But we still have "Extra Options" at Step 3 and Billing Information at Step 5

    Many thanks for a reply
  9. seymourjames All Hands On Deck

    That looks correct providing the ID of your package is 1?. Send me your FTP and admin control panel login details. The ones I have do not work. Then this is put to bed finally. There is no issue on the demo system nor our dev system when I did this.
  10. TStuff New Member

  11. seymourjames All Hands On Deck

    Tested again on our development site and on our demo site under 4.2.2 and 4.2.3 - works perfectly well. All of those steps do not show with that configuration. I have not received your details and the old ones I had no longer work.

    You are also blocking your admin url from people accessing it.
  12. seymourjames All Hands On Deck

    There is nothing wrong with your system. I just placed adverts on it (having to login and go to admin through an advert because your main admin urls are blocked) and all the steps are suppressed as they should be. You had not activated the quick checkout module and image upload module. I am not sure what you were doing but it works for me.

    As for your other problem. You had not set your checkout settings for short description and neither had you set the showlistings2.tpl file in your admin control panel to display short descriptions.

    Thread now closed.
Thread Status:
Not open for further replies.

Share This Page