Jump to content

pulsecheck

Members
  • Content count

    31
  • Joined

  • Last visited

Profile Information

  • Real Name
    Shams
  • Gender
    Not Telling
  1. pulsecheck

    Automatically send data feed to Froogle

    Hi, I've installed the latest version of this great contribution. Everything was a success until I pointed my browser to http://www.********.com/feeds/my-outfile.txt. The problem is that my products URLs are not generated properly. I'm using the latest version of Ultimate SEO URLs "Ultimate SEO URLs - 2.1d with optional Admin settable Product and Category URLs" by Yesudo. But I noticed that my products links shown in the feeder file are as follows: www.********.com/product_info.php?products_id=1 www.********.com/product_info.php?products_id=2 www.********.com/product_info.php?products_id=3 www.********.com/product_info.php?products_id=4 www.********.com/product_info.php?products_id=5 And os on. Any idea how to fix this? Would appreciate any help. One more thing, I noticed that the brand column is blank. Am I missing something? Thank You.
  2. Thanks Amanda. I suppose I should check the url parameter separators in catalog/includes/functions/html_output.php. Right? I know that this seems to be a stupid question as I'm a newbie.
  3. It's me again. Just thought it would make things easier if I provided more details. The product URL looks like: http://www.MYSTORE.com/courage-under-fire-p-16.html when I click "Add to Cart", I get the same product page with the following URL: http://www.MYSTORE.com/courage-under-fire-...ion=add_product Also, from the list of products listed under a given category, when I clicked "Buy Now", I was taken to the cart contents page where it reads "Your shopping cart is empty" and the URL looks: http://www.MYSTORE.com/shopping_cart.php?a...ucts_id=20& As you see the "amp;" is still shown up in the URLs despite the fact that I installed fixes submitted by edgecrush3r and bchecketts. Although the seo.cache.php file they uploaded to the contrib looks different from the one I installed from Emmett's latest version, But I did the best I can to add their fixes. So, according to bchecketts' fix, the function do_redirect() is as follows: function do_redirect(){ $p = @explode('&', $this->uri_parsed['query']); foreach( $p as $index => $value ){ $tmp = @explode('=', $value); switch($tmp[0]){ case 'products_id': if ( $this->is_attribute_string($tmp[1]) ){ $pieces = @explode('{', $tmp[1]); $params[] = $tmp[0] . '=' . $pieces[0]; } else { $params[] = $tmp[0] . '=' . $tmp[1]; } break; default: $params[] = $tmp[0].'='.$tmp[1]; break; } } # end foreach( $params as $var => $value ) $params = ( sizeof($params) > 1 ? implode('&', $params) : $params[0] ); $url = $this->href_link($this->uri_parsed['path'], $params, 'NONSSL', false); # BC Redirects shouldn't have '&'s in them $url = preg_replace('/&/','&',$url); switch(true){ case (defined('USE_SEO_REDIRECT_DEBUG') && USE_SEO_REDIRECT_DEBUG == 'true'): $this->attributes['SEO_REDIRECT']['REDIRECT_URL'] = $url; break; case ($this->attributes['USE_SEO_REDIRECT'] == 'true'): header("HTTP/1.0 301 Moved Permanently"); header("Location: $url"); // redirect...bye bye break; default: $this->attributes['SEO_REDIRECT']['REDIRECT_URL'] = $url; break; } # end switch } # end function do_redirect Also, according to edgecrush3r's fix, the function href_link() is as follows: function href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true){ $this->start($this->timestamp); $this->performance['NUMBER_URLS_GENERATED']++; if ( !in_array($page, $this->attributes['SEO_PAGES']) || $this->attributes['SEO_ENABLED'] == 'false' ) { return $this->stock_href_link($page, $parameters, $connection, $add_session_id); } $link = $connection == 'NONSSL' ? $this->base_url : $this->base_url_ssl; $separator = '?'; if ($this->not_null($parameters)) { $link .= $this->parse_parameters($page, $parameters, $separator); } else { $link .= $page; } $link = $this->add_sid($link, $add_session_id, $connection, $separator); $this->stop($this->timestamp, $time); $this->performance['TOTAL_TIME'] += $time; switch($this->attributes['SEO_URLS_USE_W3C_VALID']){ case ('true'): if (!isset($_SESSION['customer_id']) && defined('ENABLE_PAGE_CACHE') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache')){ return $link; } else { //return htmlspecialchars(utf8_encode($link)); return utf8_encode($link); } break; case ('false'): return $link; break; } } # end function And the function stock_href_link() has become: function stock_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!$this->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 ($page == '/') $page = ''; 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 ($this->not_null($parameters)) { $link .= $page . '?' . $this->output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if ($this->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 = $this->SessionName() . '=' . $this->SessionID(); } } } 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 = '?'; } switch(true){ case (!isset($_SESSION['customer_id']) && defined('ENABLE_PAGE_CACHE') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache')): $page_cache = true; $return = $link . $separator . '<osCsid>'; break; case (isset($_sid)): $page_cache = false; $return = $link . $separator . $_sid; break; default: $page_cache = false; $return = $link; break; } # end switch $this->performance['NUMBER_STANDARD_URLS_GENERATED']++; $this->cache['STANDARD_URLS'][] = $link; $time = 0; $this->stop($this->timestamp, $time); $this->performance['TOTAL_TIME'] += $time; switch(true){ case ($this->attributes['SEO_URLS_USE_W3C_VALID'] == 'true' && !$page_cache): //return htmlspecialchars(utf8_encode($return)); return utf8_encode($return); break; default: return $return; break; }# end swtich } # end default tep_href function Does anyone have any idea how to fix my cart problem? By the way, I have both "valid XHTML Catalog Side 2.3" and "HTC" contribs installed. Please help me! Thanks
  4. Hi Justin, Would you please let me know what did you do exactly to fix the "empty cart" problem? I installed the latest upload as well and I'm having problems with the shopping cart. I cannot add products to the cart. When I try adding products by clicking "Buy Now", I get an empty shopping cart. When I try adding products from the product_info page, it just reloads the same product's page again. When I click "View Cart", I still get an empty cart. I installed both fixes submitted by edgecrush3r and bchecketts but the "empty cart" problem has not yet been fixed. Please help me! Thanks.
  5. pulsecheck

    Meta Tag Controller Support

    Could anyone tell me how to open the .diff file included in version1.2? would appreciate any help. Thanks
  6. pulsecheck

    OSC XML Feed - Help & Discussion

    Thanks Eyal. Here is what my XML2.php file looks like: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License Copyright (c) 2003 The Internet Foundry (http://www.theinternetfoundry.com) ----------------------------------------------------------------- OSCommerce Product XML Feed - V2.0B - XML2.PHP | CATEGORY BASED VERSION ----------------------------------------------------------------- Version 2.0B - 17/04/2005 ----------------------------------------------------------------- Developed by: Kenny Boyd, Senior Developer, The Internet Foundry, United Kingdom Email & MSN: kenny@theinternetfoundry.com Web: http://www.theinternetfoundry.com Version 2 Feature Ideas & Beta Testing provided by: Eyal Shoabi, (admin@volt.co.il - http://www.volt.co.il, Israel) ------------------------------------------------------------------------------------- CHANGELOG 17/03/05 v2.0b - Kenny Boyd - Complete rewrite of original All Products addon along with better SQL and improved configuration 17/03/05 v2.0a - Kenny Boyd - Complete rewrite of addon to offer Category based products, better SQL and improved configuration 25/08/04 v1.1 - Kenny Boyd - added more character checks and some code tidied 21/01/03 v1.0 - Created by Kenny Boyd as a rework of Patrick Veverka's great OSC Anywhere addon ----------------------------------------------------------------- OFFICAL SUPPORT FORUM Please visit: http://forums.oscommerce.com/index.php?showtopic=146810 ------------------------------------------------------------------------------- NEW FEATURES + NEW ALL PRODUCTS BASED system to allow output of all products in your shop + User Re-nameable XML Tag Names + Database Queires entirely rewritten for faster loading + All Product Data available by default + New Configuration Code allows more control over feed and tag output + New Support for displaying Specials Price & TAX/VAT onto products price ----------------------------------------------------------------------------------- INSTALATTION & CONFIGURATION HELP: A COMPLETE HTML HELP GUIDE IS INCLUDED IN THE ADDON ZIP FILE Please read README.HTM before using this addon. --------------------------------------------------------------------------------------- */ //--------------------------------------------------------------------------------------- // THE FOLLOWING OPTIONS MUST BE CONFIGURED! //---------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------- // 1. Setup OSC Link //---------------------------------------------------------------------------------------- // If you have placed this file in the SAME directory as your OS Commerce shop then // SKIP TO SECTION 2 // If you have placed this file away from your OS Commerce directory please enter the path // to the file "application_top.php" which is in the includes directory of your OSC installation: $osc_path = "includes/application_top.php"; //--------------------------------------------------------------------------------------------- // 2. Configure Site Info //--------------------------------------------------------------------------------------------- //Enter the url to your website - do not put 'http://' or enter any slashes $domain_name = "www.********.com"; // NO SLASHES - EG: www.mysite.com //Enter the folder name of your shop directory, this is normally 'catalog' //$catalog_folder="catalog"; // default is 'catalog' - NO SLASHES! //If your shop is in your site root (EG: www.mysite.com/index.php) then uncomment the next line. $catalog_folder= ""; //Enter the folder name of your product images directory, this is normally 'images' $image_folder = "images"; // NO SLASHES! //----------------------------------------------------------------------------- // 3. Ouput Options: //----------------------------------------------------------------------------- // I have rewrote the sql queries to allow easier configuration of which values you wish to be // included in the XML output. These options can easily be turned on or off. //----------------------------------------------------------------------------- // For each value you wish to be included in the feed change the value to 1 like: // $product_price = "1"; // Include Product's Price - (1 = YES | 0 = NO) // For each value you DO NOT want to be included in the feed change the value to 0 like: // $product_price = "1"; // Include Product's Price - (1 = YES | 0 = NO) //----------------------------------------------------------------------------- $show_creation_time = "1"; // Include date and time tag that displays when the xml feed was run. - (1 = YES | 0 = NO) $product_name = "1"; // Include Product's Name/Title - (1 = YES | 0 = NO) $product_price = "1"; // Include Product's Price - (1 = YES | 0 = NO) $product_manufacturer= "0"; // Include Product's Manufacturer Name - (1 = YES | 0 = NO) $product_weight= "0"; // Include Product's Weight - (1 = YES | 0 = NO) $product_model= "0"; // Include Product's Model Number - (1 = YES | 0 = NO) $product_quantity = "1"; // Include Quantity In Stock - (1 = YES | 0 = NO) $product_image= "1"; // Include link to products image? - (1 = YES | 0 = NO) $product_info_link = "1"; // Include link to product_info.php at your website? - (1 = YES | 0 = NO) $product_date_added = "0"; // Include date product was added - (1 = YES | 0 = NO) $product_date_modified= "1"; // Include date product was modified - (1 = YES | 0 = NO) $product_date_available= "0"; // Include date product is available - (1 = YES | 0 = NO) // By default the XML feed will only display products which are set as active // (green light next to product name in OSC Admin) - If you wish to output INACTIVE products then // change the following value to 1 (eg: $allow_all = "1"; ), otherwise leave unchanged. $allow_all = "0"; // By default only products that are in stock and have a quantity of 1 or more will be displayed. // If you wish to output OUT OF STOCK (0 quantity) products then change the following value to 1 // (eg: $allow_no_stock = "1"; ), otherwise leave unchanged. $allow_no_stock= "0"; //----------------------------------------------------------------------------- // 4. XML Element Names //----------------------------------------------------------------------------- // This section is provided for users who will use xml parsers that require predetermined tag names // or tag names that need to be in other languages apart from English. // DO NOT CHANGE THESE NAMES UNLESS YOU HAVE TO! $xml_tags['master']= "STOREITEMS";// Master tag: <STOREITEMS> $xml_tags['time']= "CREATED";// Feed creation date/time Tag: <CREATED> $xml_tags['product']= "PRODUCT";// Product Container Tag: <PRODUCT ITEM="xxx"> $xml_tags['name']= "NAME";// Product's Name/Title in Product Container: <NAME> $xml_tags['price']= "PRICE";// Price tag in Product Container: <PRICE> $xml_tags['manufacturer']= "MANUFACTURER";// Product Image URL in Product Container: <IMAGE_URL> $xml_tags['weight']= "WEIGHT";// Weight tag in Product Container: <WEIGHT> $xml_tags['model']= "MODEL";// Model tag in Product Container: <MODEL> $xml_tags['quantity']= "QUANTITY";// Quantity tag in Product Container: <QUANTITY> $xml_tags['url']= "URL";// Product Info Page URL in Product Container:<URL> $xml_tags['image_url']="IMAGE_URL";// Product Image URL in Product Container: <IMAGE_URL> $xml_tags['added']= "ADDED";// Date Product Added in Product Container: <ADDED> $xml_tags['modified']= "MODIFIED";// Date Product Modfied in Product Container: <MODIFIED> $xml_tags['available']="AVAILABLE";// Date Product Available in Product Container:<AVAILABLE> //----------------------------------------------------------------------------- // 5. PRICING //----------------------------------------------------------------------------- // This section controls pricing options. You can set a TAX rate then activate it so that all // default product prices with have the tax added on to the products price. You can also specify // if you want to disp[lay special discounted prices or not. //----------------------------------------------------------------------------- // VAT OPTIONS: $pricing_vat_rate= "00.00"; // Enter Tax Rate to add to Products Price // (e.g: To add 17.5% on all product prices enter "17.5" // NOTE: To activate VAT you must TURN ON the next option below! $pricing_add_vat= "0"; // Activate TAX on all product prices - DEFAULT IS OFF || (1 = YES | 0 = NO) // To activate TAX change the value to 1 (e.g: $pricing_add_vat = "1"; //--------------------------------------------------------------------------------------- // PRICE SPECIALS OPTIONS: $pricing_show_specials="1"; // Show products special discounted price instead of normal; product price // when available - DEFAULT IS OFF || (1 = YES | 0 = NO) //----------------------------------------------------------------------------- // 6. Include CATEGORY element container //----------------------------------------------------------------------------- // If you turn this on each new category cycle will contain a CATEGORY tag eg: //<CATEGORY id="1" name="Books > Non Fiction"> //<PRODUCT>....</PRODUCT> //</CATEGORY> $category_container= "1";// (1 = YES | 0 = NO) $category_container_id= "1"; // Include Category ID (eg: id="1") in <CATEGORY> tag $category_container_name= "1"; // Include Category Name (eg: name="Books > Non Fiction") in <CATEGORY> tag $xml_tags['category']= "CATEGORY"; // Category Container Tag Name:<CATEGORY id="xx" name="xxx"> //----------------------------------------------------------------------------- // END OF CONFIGURATION AREA //----------------------------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////////////////////// // *** IF YOU NEED TO ADD CUSTOM TAGS AND NEED HELP PLEASE SEE ADVANCED.HTM OR VISIT: // *** http://forums.oscommerce.com/index.php?showtopic=146810 *** // *** PLEASE DO NOT EDIT PAST THIS POINT UNLESS YOU KNOW WHAT YOU ARE DOING *** //////////////////////////////////////////////////////////////////////////////////////////////// require($osc_path); Header( 'Content-Type: text/xml' ); echo '<?xml version="1.0" encoding="ISO-8859-1" ?>'; echo '<' . $xml_tags['master'] . '>'; if ($show_creation_time == 1) { $timestamp = date("D M j G:i:s T Y"); echo '<' . $xml_tags['time'] . ' value="' . $timestamp . '">'; } $connection = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD) or die("OSC XML FEED FAILURE - Couldn't make connection to local database."); $db = mysql_select_db(DB_DATABASE, $connection) or exit("OSC XML FEED FAILURE - Error code: " . mysql_errno($connection) . " Error: " . mysql_error($connection) . "."); $category_query = "SELECT `categories_description`.`categories_name`,`categories_description`.`categories_id`,`categories_description1`.`categories_name` AS `categories_name1`,`categories`.`categories_id` FROM `categories_description` INNER JOIN `categories` ON (`categories_description`.`categories_id` = `categories`.`categories_id`) INNER JOIN `categories_description` `categories_description1` ON (`categories`.`parent_id` = `categories_description1`.`categories_id`) ORDER BY 'categories_id' ASC"; $category_query = "SELECT `categories_description`.`categories_name`,`categories_description`.`categories_id`,`categories`.`parent_id` FROM `categories_description`INNER JOIN `categories` ON (`categories_description`.`categories_id` = `categories`.`categories_id`) ORDER BY `categories_id`"; $category_query_result = mysql_query($category_query,$connection) or die("Database Query Failed during Category Query."); while ($row = mysql_fetch_array($category_query_result)) { $product_query = "SELECT `products`.`products_id`,`products`.`products_quantity`,`products`.`products_model`,`products`.`products_image`,`products`.`products_price`,`products`.`products_date_added`,`products`.`products_last_modified`,`products`.`products_date_available`,`products`.`products_weight`,`products`.`products_status`,`products`.`manufacturers_id`,`products_description`.`products_name`,`products_description`.`products_url`,`categories_description`.`categories_name`,`manufacturers`.`manufacturers_name` FROM `products` INNER JOIN `products_description` ON (`products`.`products_id` = `products_description`.`products_id`) INNER JOIN `products_to_categories` ON (`products_description`.`products_id` = `products_to_categories`.`products_id`) INNER JOIN `categories_description` ON (`products_to_categories`.`categories_id` = `categories_description`.`categories_id`) INNER JOIN `manufacturers` ON (`products`.`manufacturers_id` = `manufacturers`.`manufacturers_id`) WHERE (`products_to_categories`.`categories_id` = " . $row['categories_id'] . ")"; if($allow_all == "0") { $product_query .= " AND (`products`.`products_status` = 1)"; } if($allow_no_stock == "0") { $product_query .= " AND (`products`.`products_quantity` > 0)"; } $product_query_result = mysql_query($product_query,$connection) or exit("<hr>code: " . mysql_errno($connection) . " error: " . mysql_error($connection) . "."); $product_query_count = mysql_numrows($product_query_result); if ($product_query_count > 0) { if ($row['parent_id'] > 0 ) { $parent_category_query = "SELECT `categories_description`.`categories_name`FROM `categories_description`WHERE (`categories_description`.`categories_id` = " . $row['parent_id'] . ")"; $parent_category_query_result = mysql_query($parent_category_query,$connection) or die("Database Query Failed during Parent Category Query."); $parent = mysql_fetch_array($parent_category_query_result); $row['categories_name'] = $parent['categories_name'] . ' > ' . $row['categories_name']; } $row['categories_name'] = ereg_replace ("&", " and ", $row['categories_name']); if ($category_container == "1") { $cattag = "<" . $xml_tags['category']; if ($category_container_id == "1") { $cattag .= " id='" . $row['categories_id']. "'"; } if ($category_container_name == "1") { $cattag .= " name='" . $row['categories_name'] . "'"; } $cattag .= ">"; echo $cattag; } while ($row = mysql_fetch_array($product_query_result)) { //----------------------------------------------------------------------------- // START -> insert any custom sql queries for extra tags here //---------------------------------------------------------------------------- //----------------------------------------------------------------------------- // END -> insert any custom sql queries for extra tags here //----------------------------------------------------------------------------- if ($pricing_show_specials == 1) { $specials_query = "SELECT `specials`.`specials_new_products_price` FROM `specials` WHERE (`specials`.`products_id` = " . $row['products_id'] . ")"; $specials_result =mysql_query($specials_query,$connection) or exit("<hr>code: " . mysql_errno($connection) . " error: " . mysql_error($connection) . "."); $specials_query_count= mysql_numrows($specials_result); if ($specials_query_count > 0) { $specials = mysql_fetch_array($specials_result); $row['products_price']=$specials['specials_new_products_price']; } } if ($pricing_add_vat == 1) { $temp_tax = ($row['products_price'] / 100) * $pricing_vat_rate; $row['products_price'] = $row['products_price'] + $temp_tax; } $row['products_price']= tep_round($row['products_price'], 2); // search and replace characters from data which xml will not process if ($product_name == 1) { $row['products_name']= ereg_replace ("&", " and ", $row['products_name']); $row['products_name']= ereg_replace ("?", "(R)", $row['products_name']); $row['products_name']= ereg_replace ("?", "(TM)", $row['products_name']); } if ($product_manufacturer == 1) { $row['manufacturers_name']= ereg_replace ("&", " and ", $row['manufacturers_name']); $row['manufacturers_name']= ereg_replace ("?", "(R)", $row['manufacturers_name']); $row['manufacturers_name']= ereg_replace ("?", "(TM)", $row['manufacturers_name']); } // build nested product element echo "<" . $xml_tags['product'] ." ITEM='" . $row['products_id'] . "'>"; if ($product_name== "1") { echo'<' . $xml_tags['name'] . '>' . $row['products_name'] . '</' . $xml_tags['name'] . '>'; } if ($product_price== "1") { echo'<' . $xml_tags['price'] . '>' . $row['products_price'] . '</' . $xml_tags['price'] . '>'; } if ($product_manufacturer== "1") { echo'<' . $xml_tags['manufacturer'] . '>' . $row['manufacturers_name'] . '</' . $xml_tags['manufacturer'] . '>'; } if ($product_weight== "1") { echo'<' . $xml_tags['weight'] . '>' . $row['products_weight'] . '</' . $xml_tags['weight'] . '>'; } if ($product_model== "1") { echo'<' . $xml_tags['model'] . '>' . $row['products_model'] . '</' . $xml_tags['model'] . '>'; } if ($product_quantity == "1") { echo'<' . $xml_tags['quantity'] . '>' . $row['products_quantity'] . '</' . $xml_tags['quantity'] . '>'; } if ($product_info_link == "1") { if ($catalog_folder== "") { echo'<' . $xml_tags['url'] . '>http://' . $domain_name . '/product_info.php?products_id=' . $row['products_id'] . '</' . $xml_tags['url'] . '>'; } else { echo '<' . $xml_tags['url'] . '>http://' . $domain_name . '/' . $catalog_folder . '/product_info.php?products_id=' . $row['products_id'] . '</' . $xml_tags['url'] . '>'; } } if ($product_image== "1") { if ($catalog_folder== "") { echo '<' . $xml_tags['image_url'] . '>http://' . $domain_name . '/' . $image_folder . '/' . $row['products_image'] . '</' . $xml_tags['image_url'] . '>'; } else { echo'<' . $xml_tags['image_url'] . '>http://' . $domain_name . '/' . $catalog_folder . '/' . $image_folder . '/' . $row['products_image'] . '</' . $xml_tags['image_url'] . '>'; } } if ($product_date_added== "1") { echo '<' . $xml_tags['added'] . '>' . $row['products_date_added'] . '</' . $xml_tags['added'] . '>'; } if ($product_date_modified== "1") { echo '<' . $xml_tags['modified'] . '>' . $row['products_last_modified'] . '</' . $xml_tags['modified'] . '>'; } if ($product_date_available== "1") { echo '<' . $xml_tags['available'] . '>' . $row['products_date_available'] . '</' . $xml_tags['available'] . '>'; } //----------------------------------------------------------------------------- // START -> insert any extra custom tags here //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // END -> insert any extra custom tags here //----------------------------------------------------------------------------- echo '</' . $xml_tags['product'] . '>'; } if ($category_container== "1") { echo '</' . $xml_tags['category'] . '>'; } } } // free resources and close connection mysql_free_result($product_query_result); mysql_free_result($category_query_result); mysql_close($connection); if ($show_creation_time == 1) { echo '</' . $xml_tags['time'] . '>';} echo '</' . $xml_tags['master'] . '>'; ?> PS. My shop is in the my site root (www.mysite.com) Thanks in advance.
  7. pulsecheck

    OSC XML Feed - Help & Discussion

    Hello, When I call both files (XML/XML2.php) from my browser, I only get this: <?xml version="1.0" encoding="ISO-8859-1" ?> - <STOREITEMS> <CREATED value="Sun Aug 14 15:01:48 EDT 2005" /> </STOREITEMS> Could anyone tell me how can I get XML feed files working? Thank you.
  8. pulsecheck

    rss.php fixes to get a valid feed

    I installed the latest version of RSS Feed Contrib. Never had any problems with installation. However, I noticed that the RSS file pulled only 9 products out of 800. Any suggestions on how to fix this? Thanks
  9. I installed this great contrib and everything works fine. However, when I click "View TXT Version" from admin, I get the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/admin/includes/classes/feed.php:193) in /home/******/public_html/admin/includes/classes/feed.php on line 115 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/admin/includes/classes/feed.php:193) in /home/******/public_html/admin/includes/classes/feed.php on line 116 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/admin/includes/classes/feed.php:193) in /home/******/public_html/admin/includes/classes/feed.php on line 117 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/admin/includes/classes/feed.php:193) in /home/******/public_html/admin/includes/classes/feed.php on line 118 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/admin/includes/classes/feed.php:193) in /home/******/public_html/admin/includes/classes/feed.php on line 119 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/admin/includes/classes/feed.php:193) in /home/******/public_html/admin/includes/classes/feed.php on line 120 Could anyone please explain why I'm getting this error? Would appreciate any help. Thanks in advance.
  10. Hello, I'm using osCommerce 2.2MS2. I've installed the "Customer Specific Discount Percentage Contribution" b'coz it is exactly what I was looking for plus it is easy to use; easy to install. I tested it with a discount of 10%. When checking out, I noticed that the discount percentage was calculated more than once. I can't figure out what caused this? Here what I got on my checkout_confirmation page: Sub-Total: $601.40 Sub-Total: $541.26 Customer Discount: $60.14 Customer Discount: $54.13 Flat Rate (Best Way): $14.50 Flat Rate (Best Way): $14.50 Total: $555.76 Total: $501.63 As you see, the 10% discount was given to the subtotal, the discount value, and the total. Although shipping was not included in discount calculation, the shipping flat rate line displayed twice. Can anyone please help me to fix this? Thanks
×