Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Posts
    17
    Plugin Contributions
    0

    Default Can I route customer to a specific page after checkout?

    Is there a way to route customers to a specific page after PayPal checkout? I need to link to a custom uploader after they checkout through PayPal (my only payment module). Is this possible? And if so, how? I have to use the custom uploader because my client wants customers to upload large files and they were not happy with Zencart's uploader not showing the upload progress.

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Can I route customer to a specific page after checkout?

    Sure it can be done. But I guess its better and maybe easier to replace the zencart uploader with your custom uploader.

  3. #3
    Join Date
    Sep 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Can I route customer to a specific page after checkout?

    Ok, and how would I do that?

  4. #4
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Can I route customer to a specific page after checkout?

    Have a loook into /includes/modules/attributes.php

    around lines 456 - 468 you will find this code, that draws the input fields for the file upload,
    Code:
    // iii 030813 added: support for file fields
                      if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE) {
                        $number_of_uploads++;
                        if (zen_run_normal() == true and zen_check_show_prices() == true) {
                          // $cart->contents[$_GET['products_id']]['attributes_values'][$products_options_name['products_options_id']]
                          $tmp_html = '<input type="file" name="id[' . TEXT_PREFIX . $products_options_names->fields['products_options_id'] . ']"  id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '" /><br />' . $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']] . "\n" .
                          zen_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_names->fields['products_options_id']) . "\n" .
                          zen_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']]);
                        } else {
                          $tmp_html = '';
                        }
                        $tmp_html .= $products_options_details;
                      }
    Depending on the implementation of you custom code, you replace parts of this code with your custom code. Loos at other places, that are involved in the file upload.

 

 

Similar Threads

  1. v139d Can I re direct to a group-specific "welcome" page after log in?
    By WetSteve in forum General Questions
    Replies: 4
    Last Post: 25 May 2012, 03:56 PM
  2. v139h How Can I Accommodate Continuously Unique Customer-Specific Product Downloads?
    By Yourvirtualworld in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 23 Mar 2012, 07:15 AM
  3. Can I add a product for a specific customer?
    By lesaurus in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 14 Apr 2010, 11:51 AM
  4. Can customer be taken to a secure page after transaction?
    By Gryphon_Armoury in forum General Questions
    Replies: 1
    Last Post: 9 Nov 2009, 06:47 PM
  5. Checkout page keeps refreshing: customer can't checkout
    By thebeveragegourmet in forum General Questions
    Replies: 6
    Last Post: 10 Jun 2009, 08:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR