Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by chfields

  1. While this will not put orders in admin, it will let you know what customer ordered so you don't have to call and ask them.


    You may also want to consider adding this in case they don't click continue on paypal site and return to your site to finish transaction



    Just in case someone doesn't click continue to get back to your site

    here is a mod to include into your PayPal module to you can see what the customer ordered on your PayPal payment notification (just in case they don't return to your site to complete the process and generate an invoice) -




    change the following code:


    function process_button() {

    global $order, $currencies, $currency;


    if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {

    $my_currency = $currency;

    } else {

    $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);


    if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {

    $my_currency = 'USD';


    $xx = '';

    for ($i=0; $i<sizeof($order->products); $i++) {

    $xx .= $order->products[$i]['qty'] . '-' . ($order->products[$i]['name']) . '**';


    $process_button_string = tep_draw_hidden_field('cmd', '_xclick') .

    tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .

    tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) .

    tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

    tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

    tep_draw_hidden_field('currency_code', $my_currency) .

    tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

    tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));


    return $process_button_string;




    the above code snippet replaces the code snippet in the catalog/includes/modules/payment/paypal.php file


    look for


    function process_button() {


    and then copy and paste and replace that section of code with the code above

  2. I like this new mod, however, I have one problem. My products and their attributes are running on MS1 and while I managed to get all the products moved from MS1 to MS2 using EP, your new one is not MS1 compatible. Any chance of you making one that is compatible with both MS1&2. I would like to be able to download the attributes from MS1 and upload to MS2.



  3. I heard back from him and here is the code


    Please remember to back up before you try!!!!!!


    In catalog/includes/modules/product_listing.php files about line 147 locate the following lines;




    $lc_align = 'center';

    $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing['products_name'] . TEXT_NOW) . '</a> ';




    ......and change to.....




    $lc_align = 'center';

    $lc_text = tep_draw_form('cart_quantity', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_product')) . '<input type="text" name="quantity" value="1" maxlength="2" size="2"> ' . tep_draw_hidden_field('products_id', $listing['products_id']) . tep_image_submit('button_buy_now.gif', TEXT_BUY . $listing['products_name'] . TEXT_NOW) . '</form>';




    This should give you a quantity box next to your buy now button in product listing pages (ps. make sure you've activated Buy Now button in product listings in the admin panel)


    Now when u change the quantity value for and click buy now that quantity of the product will be added to your cart!

  4. I just tried to install this on a heavily modded ms2. I was able to get everything installed properly but when I go to catalog in admin I get

    parse error in admin/categories.php line 1536

    these are the lines in question


    1534<!-- footer //-->

    1535<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

    1536<!-- footer_eof //-->




    1540<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>



    I don't see any problem here...can anyone help???