Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ecartz

♥Ambassador
  • Posts

    3,864
  • Joined

  • Last visited

  • Days Won

    69

Posts posted by ecartz

  1. Try setting admin > Configuration > Sessions > Force Cookie Use to true. If that does it, either leave it that way or make sure that your payment processor uses a return URL that includes the session ID.

     

    Hth,

    Matt

  2. Is there anything special I have to do to lock the download until the paypalipn.php gets the response from paypal and unlocks it?
    There is a contribution called the Downloads Controller for this.

     

    The problem is that the PayPal IPN does not guarantee that the order will be authorized/declined by the time that it reaches checkout_process.php and checkout_process.php has no way of waiting.

     

    Hth,

    Matt

  3. the dropdown menu for selecting the quantity only allows you to select 0 or 1. Where can I change this?
    I think that this means the product is set to a quantity of 1 in the database. If you change the products_quantity to 20 or more, it should allow people to select more. If that's not how you want it to work, you could also change the behavior directly in includes/modules/master_listing.php. There is discussion about how it was added earlier in the thread (also, you can compare against the original version of the contribution).

     

    Hth,

    Matt

  4. Further to last post, am also using Option Type Feature 1.6 - can anyone advise what needs to be done to EasyPop to get teh attributes to work with this?
    You should be able to use it as is. You just won't be able to specify the option type in easy populate.

     

    If you need to be able to specify the option type, you could add an extra column and adjust the walk function to handle it.

     

    Cheers,

    Matt

  5. But after payment the page is redirected to checkout success page.
    It should be redirected to checkout_process.php, not checkout_success.php (process will redirect success). Also make sure that if you are not forcing cookie use (admin > Configuration > Sessions > Force Cookie Use), that the link is built with tep_href_link or the session ID is included in some other way.

     

    Hth,

    Matt

  6. I have all my product model numbers blank
    Easy Populate uses the products_model field to tell the difference between products. If you leave it blank, it reads something else as the products_model. This produces odd effects. You should always assign unique products_model values when using Easy Populate.

     

    Hth,

    Matt

  7. You may want to try the following SQL:

    INSERT INTO `configuration_group` (`configuration_group_title`, `configuration_group_description`, `sort_order`, `visible`) VALUES ('Import/Export', 'Configuration values for the Import/Export Module', 17, 1);
    
    SET @configuration_group_id = LAST_INSERT_ID();
    
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', @configuration_group_id, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Text product option type', 'PRODUCTS_OPTIONS_TYPE_TEXT', '1', 'Numeric value of the text product option type', 6, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Radio button product option type', 'PRODUCTS_OPTIONS_TYPE_RADIO', '2', 'Numeric value of the radio button product option type', 6, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Check box product option type', 'PRODUCTS_OPTIONS_TYPE_CHECKBOX', '3', 'Numeric value of the check box product option type', 6, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('File product option type', 'PRODUCTS_OPTIONS_TYPE_FILE', '4', 'Numeric value of the file product option type', 6, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('ID for text and file oroducts options values', 'PRODUCTS_OPTIONS_VALUE_TEXT_ID', '0', 'Numeric value of the products_options_values_id used by the text and file attributes.', 6, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', @configuration_group_id, NULL, now(), now(), NULL, NULL);
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', @configuration_group_id, NULL, now(), now(), NULL, NULL);

    Hth,

    Matt

  8. ...I cant figure out what is meant by
    "Set '16' to a higher value - look at the last entry in your configuration table and set this one as the next."
    Browse the table - we are looking for the highest entry for 'configuration_id' - change '16' in the master.sql file to one higher.
    This problem can be avoided by changing the SQL file to
    INSERT INTO configuration_group VALUES ('', 'Slave Products', 'Slave Product Listing - configuration options', 16, 1);
    
    SET @configuration_group_id = LAST_INSERT_ID();
    
    INSERT INTO configuration VALUES ('', 'Display Slave Product Name', 'MASTER_LIST_NAME', '5', 'Do you wish to display the products name?', @configuration_group_id, 1, '2003-11-17 20:22:53', '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Price', 'MASTER_LIST_PRICE', '13', 'Do you want to display the Product Price?', @configuration_group_id, 3, '2003-11-16 20:47:55', '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Manufacturer Name', 'MASTER_LIST_MANUFACTURER', '0', 'Do you want to display the Product Manufacturer Name?', 16, 4, NULL, '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Image', 'MASTER_LIST_IMAGE', '0', 'Do you want to display the Product Image?', @configuration_group_id, 8, '2003-11-10 21:38:06', '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Model', 'MASTER_LIST_MODEL', '1', 'Do you want to display the Product Model?', @configuration_group_id, 2, '2003-11-16 22:10:58', '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Quantity', 'MASTER_LIST_QUANTITY', '0', 'Do you want to display the Product Quantity?', @configuration_group_id, 6, '2003-11-09 22:49:47', '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Weight', 'MASTER_LIST_WEIGHT', '0', 'Do you want to display the Product Weight?', @configuration_group_id, 5, NULL, '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both)', 'MASTER_PREV_NEXT_BAR_LOCATION', '2', ' Sets the location of the Prev/Next Navigation Bar (1-top, 2-bottom, 3-both)', @configuration_group_id, 12, '2003-11-10 01:02:58', '2003-11-04 23:28:38', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display the Buy Now Column', 'MASTER_LIST_BUY_NOW', '10', 'Do you want to display the Buy Now column?', @configuration_group_id, 9, '2003-11-12 19:02:59', '2003-11-09 20:38:04', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Display Slave Product Description', 'MASTER_LIST_DESCRIPTION', '2', 'Set to 0 to disable, set to 99 to enable.', @configuration_group_id, 10, '2003-11-17 19:02:49', '0000-00-00 00:00:00', NULL, NULL);
    INSERT INTO configuration VALUES ('', 'Length of Truncated Product Description', 'MASTER_LIST_DESCRIPTION_LENGTH', '100', 'How many characters would you like to display?', @configuration_group_id, 11, '2003-11-10 23:36:52', '2003-11-10 18:51:26', NULL, NULL);
    
    ALTER TABLE products ADD products_master int(11) NOT NULL default '0';
    ALTER TABLE products ADD products_master_status tinyint(2) NOT NULL default '0';
    ALTER TABLE products ADD products_listing_status tinyint(2) NOT NULL default '1';

    Then one doesn't need to worry about synchronizing the rows in the configuration and configuration_group tables manually.

     

    Hth,

    Matt

  9. and ot.class = 'ot_total' order by limit 0, 20

    should be order by *something* limit 0,20. This usually means that there was an error making the edits for the contribution. Look for code that says something like
    . "' order by " . $something

    The string would then get passed to the split_listing_class, where the limit is added.

     

    Hth,

    Matt

  10. update products set products_weight = products_price;

    would set the weight for all the products to equal the price. Then use the same shipping table as you use with the price now. Afterwards, you can go through and set the weight to 0 on the twenty products on which you want free shipping. You would just need to maintain the weight information when you add new products.

     

    If you aren't using it for shipping, you can set the weights to whatever you want. They don't have to represent actual weights

     

    Hth,

    Matt

  11. i like to have the filesize-check as a part of the upload-class. so if a user wants to uplaod a too big file a messages_stack "error: file too big" occurs..
    In product_info.php
            <td class="main"><input type="file" name="id[<?php echo TEXT_PREFIX . $products_options_name['products_options_id']; ?>]"><br><?php echo $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] . tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_name['products_options_id']) . tep_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']]); ?></td>

    change to

            <td class="main">
             <?php echo if ($number_of_uploads == 1) tep_draw_hidden_field('MAX_FILE_SIZE', UPLOAD_MAX_FILE_SIZE); ?>
             <input type="file" name="id[<?php echo TEXT_PREFIX . $products_options_name['products_options_id']; ?>]"><br>
             <?php echo
    $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] . 
                     tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_name['products_options_id']) .
                     tep_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads,
    $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']]); ?>
           </td>

    You still won't get the message stack error, but it should give an error prior to upload.

     

    Hth,

    Matt

×
×
  • Create New...