Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

AnnasAttic

Archived
  • Posts

    75
  • Joined

  • Last visited

Everything posted by AnnasAttic

  1. Does anyone have this contribution working with OSC-22rc2a? TIA
  2. Install PWA and that seems to be working fine, But if I go to login as returning customer I get this: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'te_of_last_logon = now(), customers_info_number_of_logons = customers_info_numbe' at line 2 update customers_info set customers_info_da te_of_last_logon = now(), customers_info_number_of_logons = customers_info_numbe r_of_logons+1 where customers_info_id = '4' [TEP STOP] I have searched forums and found not fixes. Any suggestions or tips. TIA
  3. here is shop is saw it on: http://bargainbookloft.com/bbloscommerce/ looked and couldn't decide which one is righht one tia
  4. in cron emails i get this error /bin/sh: line 1: ynx: command not found i have the apache server could anybody point me in the right direction to fix this problem? i am doing the manual submit and google is fine. tia
  5. Thank you adx. Couldn't see forest for trees it seems. Got the CONGRATULATIONS screen. Is it necessary to have admin part installed? I knew I was doing something wrong Bobby's instrucations where great! Is he a teacher/instrucator?
  6. Please anybody know what is wrong? Files are 777 Correct path Tried all suggestions posted so far,But still getting: Warning: fopen(/home/annasatt/public_html/public_html/sitemapproducts.xml): failed to open stream: Permission denied in /home/annasatt/public_html/googlesitemap/sitemap.class.php on line 581 ERROR: Google Product Sitemap Generation FAILED! Warning: fopen(/home/annasatt/public_html/public_html/sitemapcategories.xml): failed to open stream: Permission denied in /home/annasatt/public_html/googlesitemap/sitemap.class.php on line 581 ERROR: Google Category Sitemap Generation FAILED! Warning: fopen(/home/annasatt/public_html/public_html/sitemapindex.xml): failed to open stream: Permission denied in /home/annasatt/public_html/googlesitemap/sitemap.class.php on line 581 ERROR: Google Sitemap Index Generation FAILED! Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [sTATUS] => success [NUM_ROWS] => 13 ) [CATEOGRY] => Array ( [sTATUS] => success [NUM_ROWS] => 8 ) ) [sAVE_FILE_XML] => Array ( [0] => Array ( [file] => /home/annasatt/public_html/public_html/sitemapproducts.xml [status] => failure [file_exists] => false ) [1] => Array ( [file] => /home/annasatt/public_html/public_html/sitemapcategories.xml [status] => failure [file_exists] => false ) [2] => Array ( [file] => /home/annasatt/public_html/public_html/sitemapindex.xml [status] => failure [file_exists] => false ) ) Please TIA
  7. Am having same problem as CnRGIfts Was wondering anybody have any suggestions or ideals? TIA
  8. Thanks Tom. It seems to be caching to sever, but still very slow loading of images. Any suggestions? This is a really great mod to have.
  9. Tried the fix Tom posted and images won't show with changes to product_thumb.php, but still npt cachig. Any suggestions? TIA
  10. Wow THis is really neat and useful. Thanks to all. Just one tiny question Is there any way to speed loading images up? It is real slooow for me (dailup). TIA
  11. Little help please. Stuck on step 6. I don't have tep_image function in my html output. Here is code for page: <?php /* $Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . $_sid; } return $link; } //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = $image_size[1] * $ratio; } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false; } } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $parameters = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); } //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height); } //// // Output a form function tep_draw_form($name, $action, $method = 'post', $parameters = '') { $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"'; if (tep_not_null($parameters)) $form .= ' ' . $parameters; $form .= '>'; return $form; } //// // Output a form input field function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } elseif (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Output a form password field function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') { return tep_draw_input_field($name, $value, $parameters, 'password', false); } //// // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') { $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"'; if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) { $selection .= ' CHECKED'; } if (tep_not_null($parameters)) $selection .= ' ' . $parameters; $selection .= '>'; return $selection; } //// // Output a form checkbox field function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters); } //// // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters); } //// // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= stripslashes($GLOBALS[$name]); } elseif (tep_not_null($text)) { $field .= $text; } $field .= '</textarea>'; return $field; } //// // Output a form hidden field function tep_draw_hidden_field($name, $value = '', $parameters = '') { $field = '<input type="hidden" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } elseif (isset($GLOBALS[$name])) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Hide form elements function tep_hide_session_id() { global $session_started, $SID; if (($session_started == true) && tep_not_null($SID)) { return tep_draw_hidden_field(tep_session_name(), tep_session_id()); } } //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// // Creates a pull-down list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $countries = tep_get_countries(); for ($i=0, $n=sizeof($countries); $i<$n; $i++) { $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']); } return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters); } ?> Where would I repace the code at then? TIA
  12. OK sorry about that. I redone indvship.php in both places now right as rain! Thanks to all that have to bear with me. Talking about learning curve. Believe I can install oscommerce in my sleep ;) 4 months and finally finished for a llittle bit. Next up PWA module after a couple days rest ;) But this is going to be the most useful module I am going to use. BIG Thank You for contributors for this Module.
  13. WHEW!!!Got it back,BUT now on checkout_shipping page after test purchase i get this: MODULE_SHIPPING_INDVSHIP_TEXT_TITLE Any suggestions or ideals? Last thing before going Live, if I got enough sense to work camera now.;)
  14. Please any suggestions or ideals? The contribution is setup in db and all my files are edited correctly. But it is no longer in admin as an option to install and use, after moving to root directory. Please any suggestions whereI might look?
  15. OH OH NO!!! After move from catalog to root--I no longer have module as option in admin section. PLEASE anyone know what might have happened? Host moved for me. Just sick over this. PLEASE! Everything is still in place database,editing to files?
  16. Thanks for help Randelia. I took plunge and with heart in hand edit the file like so: // Individual Shipping Contrib $extra_shipping_query = tep_db_query("select products_ship_price, products_ship_price_two from " . TABLE_PRODUCTS_SHIPPING . " where products_id = '" . (int)$products_id . "'"); $extra_shipping = tep_db_fetch_array($extra_shipping_query); if (($extra_shipping['products_ship_price']) > 0) { echo '<i>(This item requires shipping of $'. $extra_shipping['products_ship_price']; if (($extra_shipping['products_ship_price_two']) > 0) { echo ' for the first item, and $' . $extra_shipping['products_ship_price_two'] . ' for each additional item.)</i>'; } else { echo ')</i>'; } Now it doesn't look like double chargi g for shipping ,but its dropping last 0 in shipping charge looks like so: (This item requires shipping of $2.5) Any ideals or suggestions on getting it back? tried different things but none working so far. Tia
  17. Think I found right place to edit code in product_info.php... // Individual Shipping Contrib $extra_shipping_query = tep_db_query("select products_ship_price, products_ship_price_two from " . TABLE_PRODUCTS_SHIPPING . " where products_id = '" . (int)$products_id . "'"); $extra_shipping = tep_db_fetch_array($extra_shipping_query); if (($extra_shipping['products_ship_price']) > 0) { echo '<i>(This item requires additional shipping of $' . $extra_shipping['products_ship_price']; if (($extra_shipping['products_ship_price_two']) > 0) { echo ' for the first item, and $' . $extra_shipping['products_ship_price_two'] . ' for each additional item.)</i>'; } else { echo ' + regular shipping costs.)</i>'; } Just don't know what to edit? Any suggestions? TIA Anna
  18. I think I've got this setup right. I was just wondering is there any way to edit this (This item requires additional shipping of $50 + regular shipping costs.)? That is what I get when I add test item to cart. Looks like I'm charging extra and then shipping.
  19. sorry what I meant does anybody know what is wrong with this $shiptotal = $shipping_modules->get_shiptotal(); from shipping/indvship.php here is the code function quote($method = '') { global $order, $cart, $shipping_modules; $shiptotal = $shipping_modules->get_shiptotal(); if ($shiptotal){ $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_INDVSHIP_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_INDVSHIP_TEXT_WAY, 'cost' => $shiptotal)));
  20. Host installed version 4.2 for me and When I go to checkout from testing site I get this error Fatal error: Call to undefined function: get_shiptotal() in /var/hsphere/local/home/annasatt/annasattic.us/catalog/includes/modules/shipping/indvship.php on line 53 I notice others have same problem. I have searched checkout_shipping page and find no get_shiptotal in the code. Dose anybody have the coding for that page?
  21. OK I have added table shipping_methods to database and have methods_id,methods_name under what is needed in type attributes null default TIA
  22. OK Have redone this again and shipping_methods is in database and is defined in includes/database_tables.php But I'm still getting 1146 - Table 'AnnasAt_MyStore.TABLE_SHIPPING_METHODS' doesn't exist select methods_id, methods_name from TABLE_SHIPPING_METHODS Any other suggestions? TIA
  23. OK think I have solved the parse error but now I'm getting this: 1146 - Table 'AnnasAt_MyStore.TABLE_SHIPPING_METHODS' doesn't exist It does in my database under products_shipping select methods_id, methods_name from TABLE_SHIPPING_METHODS [TEP STOP] I have done all the steps and checked forum and rechecked db and made sure it is in includes/databaes_tables.php Anybody have any ideals?
  24. Could somebody please email me a copy of the correct page for application_top.php for v4.1 [email protected] Pretty Please About to lose my mind my store is gone all i get is Parse error: parse error, unexpected $ in /var/hsphere/local/home/annasatt/annasattic.us/includes/application_top.php on line 515 :'(
  25. Have installed v4.1 Am getting this: Parse error: parse error, unexpected $ in /var/hsphere/local/home/annasatt/annasattic.us/includes/application_top.php on line 515 can't find it // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; // set which precautions should be checked define('WARN_INSTALL_EXISTENCE', 'true'); define('WARN_CONFIG_WRITEABLE', 'true'); define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true'); define('WARN_SESSION_AUTO_START', 'true'); define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'); require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; function tep_get_configuration_key_value($lookup) { $configuration_query_raw= tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key='" . $lookup . "'"); $configuration_query= tep_db_fetch_array($configuration_query_raw); $lookup_value= $configuration_query['configuration_value']; return $lookup_value; ?> Can somebody Please help? :'( Or can somebody email me the code for this page?
×
×
  • Create New...