Skipping in checkout from step1 to step3?

Discussion in 'Technical Support' started by RandyB, Dec 28, 2011.

  1. RandyB Customer

    What version of 68 Classifieds are you running?
    Example: V4.2.4 Developer

    What template are you using?
    Customized default


    Please describe in detail the issue you are having:

    During the checkout process, Categories with only one package listed skips from "Step 1" to "Step 3" ?

    When there is only one pricing for a category.......

    The customer has no way of knowing if there is a charge other than for featured, bold, and highlight selections until final step listing totals. Is this a bug or can it be fixed. I didn't find anything in the documentation about this. In the old version I had, you still were shown the one pricing selection "step 2" and had to choose it. This is what I would like.

    (When you have more than one package for a category everything is fine and the customer is shown the pricing structure on "Step 2" and selects a package that fits their needs. This is fine.)

    Randy
  2. Mike-N-Tosh Developer & Moderator

    This is NOT a bug and was changed due to customer requests many versions ago. Most 68 Customers were complaining of having an additional step to have to choose an ad listing package if there was only one package available and in particular if it was free.

    If you don't want that to happen, then you would need to change a core php file which I don't actually recommend doing.

    If you really want to do that, then you would need to change includes/core/checkout/step2.php.

    Comment out lines 40 through 45. (HIGHLY RECOMMEND that if you do this, make a comment as to what and why you did this in the code for future reference as well as keep a log somewhere else, because if you upgrade again, you will need to apply the same change in the newer version)
    Code:
    if (count($products) === 1 && $products != '')
    { //only one so use it and forward them along
    	$productid = $products[0]['pID'];
    	header("Location: " . $params . "&productid=" . $productid);
    	die();
    }
    
  3. RandyB Customer

    Thanks for your response!

    I have a few sub-cats that only have one package and it costs for those single packages. Those were not showing up.

    I had to check all my categories and packages first before posting here because my initial thought was it was only happening on categories with a single free packages like you mentioned. That would have been fine if it were the case.

    Randy

Share This Page