Latest News: (loading..)

NWADesignWorks

Members
  • Content count

    8
  • Joined

  • Last visited

About NWADesignWorks

Profile Information

  • Real Name
    Benjamin
  1. Can I get a link? I simply can not find it....
  2. Is it possible to have an option titled 'In Store Pickup' where there would not be any shipping/handling fees added to the order? If so, how? Thanks
  3. I have a problem following the directions of editing checkout_shipping.php. The instructions say to FIND the following lines around line 213: <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> Well, I don't have that. The following is what I have in that general area: <tr><td> <?php tep_draw_heading_top();?> <?php new contentBoxHeading_ProdNew($info_box_contents);?> <?php tep_draw_heading_top_1();?> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="bor"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="100%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td> </tr> What do I do in this case? Also, it says to FIND the following line around line 431: <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> But I have the following. What area do I edit? <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td> <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> </tr> </table></td> <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td> </tr> </table></td> Also, I can't find where to make the changes in includes/header.php . Here is my code: <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <!-- start --> <table cellpadding="0" cellspacing="0" border="0"><tr><td style="background:url(images/header_bg.jpg) left top repeat-x #666666;"> <table class="main" align="center" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="main_tab"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><!-- HEAD BEGIN --> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td> <table class="menu" cellpadding="0" cellspacing="0" border="0"> <tr> <td><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image_button('m1.jpg')?></a><br /> <a href="<?php echo tep_href_link('products_new.php')?>"><?php echo tep_image_button('m2.jpg')?></a><br /> <a href="<?php echo tep_href_link('specials.php')?>"><?php echo tep_image_button('m3.jpg')?></a><br /> <a href="<?php echo tep_href_link('account.php')?>"><?php echo tep_image_button('m4.jpg')?></a><br /> <a href="<?php echo tep_href_link('contact_us.php')?>"><?php echo tep_image_button('m5.jpg')?></a></td> </tr> </table></td> <td class="logo"></td> </tr> </table> <table class="nav" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="left"><?php echo tep_draw_separator('spacer.gif', '16', '1'); ?></td> <td class="cont" style="width:34%; padding-right:15px;"> </td> <td class="line"><?php echo tep_draw_separator('spacer.gif', '2', '1'); ?></td> <td class="cont" style="width:31%;"> </td> <td class="line"><?php echo tep_draw_separator('spacer.gif', '2', '1'); ?></td> <td class="cont" style="width:32%; padding-left:10px;"> </td> <td class="right"><?php echo tep_draw_separator('spacer.gif', '17', '1'); ?></td> </tr> </table> <!-- end --> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> <!-- start --> </td> </tr> <tr> <td><!-- CONTENT BEGIN --> <table class="content" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="right_bg"> <!-- end --> <?php define(MAX_DESCR_1,'58'); define(MAX_DESCR_BESTS,'19'); define(MAX_DESCR_REVIEWS,'59'); ?> Any help?
  4. Upon hitting continue on the Payment Information page, I get the following errors: Warning: fopen(/299503-4-data.txt) [function.fopen]: failed to open stream: Permission denied in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 331 Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 332 Warning: fclose(): supplied argument is not a valid stream resource in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 333 Warning: openssl_pkcs7_sign() [function.openssl-pkcs7-sign]: error getting private key in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 338 Warning: unlink(/299503-4-data.txt) [function.unlink]: No such file or directory in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 340 Warning: file_get_contents(/299503-4-signed.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 343 Warning: fopen(/299503-4-signed.txt) [function.fopen]: failed to open stream: Permission denied in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 347 Warning: fclose(): supplied argument is not a valid stream resource in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 349 Warning: unlink(/299503-4-signed.txt) [function.unlink]: No such file or directory in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 355 Warning: file_get_contents(/299503-4-encrypted.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 358 Warning: unlink(/299503-4-encrypted.txt) [function.unlink]: No such file or directory in /home/content/t/h/e/thenameitstore/html/catalog/includes/modules/payment/paypal_standard.php on line 362 Since the errors are in the same file, here are lines 331-372: $fp = fopen(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'data.txt', 'w'); fwrite($fp, $data); fclose($fp); unset($data); if (function_exists('openssl_pkcs7_sign') && function_exists('openssl_pkcs7_encrypt')) { openssl_pkcs7_sign(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'data.txt', MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt', file_get_contents(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_PUBLIC_KEY), file_get_contents(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_PRIVATE_KEY), array('From' => MODULE_PAYMENT_PAYPAL_STANDARD_ID), PKCS7_BINARY); unlink(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'data.txt'); // remove headers from the signature $signed = file_get_contents(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt'); $signed = explode("\n\n", $signed); $signed = base64_decode($signed[1]); $fp = fopen(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt', 'w'); fwrite($fp, $signed); fclose($fp); unset($signed); openssl_pkcs7_encrypt(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt', MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt', file_get_contents(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_PAYPAL_KEY), array('From' => MODULE_PAYMENT_PAYPAL_STANDARD_ID), PKCS7_BINARY); unlink(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt'); // remove headers from the encrypted result $data = file_get_contents(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt'); $data = explode("\n\n", $data); $data = '-----BEGIN PKCS7-----' . "\n" . $data[1] . "\n" . '-----END PKCS7-----'; unlink(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt'); } else { exec(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_OPENSSL . ' smime -sign -in ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'data.txt -signer ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_PUBLIC_KEY . ' -inkey ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_PRIVATE_KEY . ' -outform der -nodetach -binary > ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt'); unlink(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'data.txt'); exec(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_OPENSSL . ' smime -encrypt -des3 -binary -outform pem ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_PAYPAL_KEY . ' < ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt > ' . MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt'); unlink(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'signed.txt'); $fh = fopen(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt', 'rb'); $data = fread($fh, filesize(MODULE_PAYMENT_PAYPAL_STANDARD_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt')); fclose($fh); In addition, I am using the 'PayPal Website Payments Standard' module with the following settings: Version: 1.0 (online status) Enable PayPal Website Payments Standard True E-Mail Address (My email address) Payment Zone --none-- Set Preparing Order Status Preparing [PayPal Standard] Set PayPal Acknowledged Order Status default Gateway Server Live Transaction Method Sale Page Style (blank) Debug E-Mail Address (my email address) Sort order of display. 0 Enable Encrypted Web Payments True Your Private Key (blank) Your Public Certificate (blank) PayPals Public Certificate (blank) Your PayPal Public Certificate ID (blank) Working Directory (blank) OpenSSL Location /usr/bin/openssl The URL for the site I am developing is here
  5. Disregard above question. I fixed it by replacing the following code in admin/product_attributes.php // tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')"); // tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$products_options_sort_order . "','')"); // 1136 - Column count doesn't match value count at row 1 insert into products_attributes values (null, '91', '11', '0', '0', '+', '0','') tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " ( products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order) values ('" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$products_options_sort_order . "')");
  6. After I've implemented this contributions, I added a new product option titled 'Monogram" with a length of 10 and selected Text. That added just fine. I went down to the Product Attributes at the bottom of the screen, selected my product, set 'Monogram' as the Option Name and 'TEXT" as Option Value. Upon hitting Insert, I get this error: 1136 - Column count doesn't match value count at row 1 insert into products_attributes values (null, '37', '3', '0', '0', '+') [TEP STOP] Any ideas?
  7. Can I get someone to assist me with this contrib? I'm using a custom theme and well, I'm having some trouble finding exactly where to make the changes in certain files. Please shoot me a message here or you can find me at upfrontben on Yahoo. I'm willing to pay for some assistance. Thanks, Ben