Current location: Hot Scripts Forums » Programming Languages » PHP » Items won't add to my shopping cart suddenly


Items won't add to my shopping cart suddenly

Reply
  #1 (permalink)  
Old 02-10-06, 04:52 PM
DEMAND Performance DEMAND Performance is offline
Newbie Coder
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Items won't add to my shopping cart suddenly

I haven't made any changes to my site at all since my last sale, with the exception of adding a script that creates better header tags. Now, when I go to purchase an item with "Buy Now" it leads to my shopping cart and doesn't add anything. Where would I begin looking to see what would be causing this?

You can see the error at http://www.demand-performance.com

Thanks everyone!
Reply With Quote
  #2 (permalink)  
Old 02-10-06, 11:36 PM
Patiek Patiek is offline
Wannabe Coder
 
Join Date: Nov 2003
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
I would begin by posting the modification that you made... including the code that was replaced/deleted and the code that was added.

Also, you will get more assistance by mentioning that you are using osCommerce
Reply With Quote
  #3 (permalink)  
Old 02-11-06, 09:30 PM
DEMAND Performance DEMAND Performance is offline
Newbie Coder
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Patiek
I would begin by posting the modification that you made... including the code that was replaced/deleted and the code that was added.

Also, you will get more assistance by mentioning that you are using osCommerce
Woops! Definitely should mention that, it's somewhat important!

This is the contribution:

http://www.oscommerce.com/community/...,meta+tags+3.0

There is more code, but the other files are either unrelated or simply just adds to call up the script. This is the main file:

Code:
<?php
/*
  $Id: meta_tags.php,v 3.0 2004/04/19 11:15:00 robw Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2004 osCommerce

  Released under the GNU General Public License
  Original script idea credited to Tamim - www.TMPanime.com Added: Category Meta Tag Generator v1.0

*/

////////////////////////////
// User Definable Section //
////////////////////////////

// First Define any Common Meta Elements used for all Manufacturers / Categories

// Common Meta Title appears BEFORE individual Category/Manufacturer Meta Titles
$common_meta_title = "osCommerce - ";

// Common Meta Keywords appears AFTER individual Category/Manufacturer Meta Keywords
$common_meta_keywords = "all, category, manufacturer, keywords, end, with, these, keywords";

// Common Meta Description appears AFTER individual Category/Manufacturer Meta Descriptions
$common_meta_description = "This common description appears at the end of every Category / Manufacturer meta description";


// Now define the default Meta Data. These are used if a category/manufacturer has a blank item of Meta Data and for Non Category/Manufacturer Sections of the main page.

$meta_title = "osCommerce";

$meta_keywords = "insert, your, keywords, here";

$meta_description = "Insert your standard description here";


////////////////////////////////////////
// No Edits required below this point //
////////////////////////////////////////

if (isset($cPath) && tep_not_null($cPath)) {

$metaCategoryArray = explode ("_",$cPath);
if (strpos($cPath, '_')) { $metaCategoryArray  = array_reverse($metaCategoryArray); }
$metaCategory = $metaCategoryArray[0];

$category_query = tep_db_query ("select title, keywords, description from " . TABLE_META_TAGS . " where categories_id = '" . $metaCategory . "'");

$metaData = tep_db_fetch_array ($category_query);

if ($metaData ['title']) $meta_title = $common_meta_title . " " . $metaData ['title'];
if ($metaData ['keywords']) $meta_keywords = $metaData ['keywords'] . ", " . $common_meta_keywords;
if ($metaData ['description']) $meta_description = $metaData ['description'] . " " . $common_meta_description;

}

if (isset($manufacturers_id) && tep_not_null($manufacturers_id)) {

$manufacturers_query = tep_db_query ("select title, keywords, description from " . TABLE_META_TAGS . " where manufacturers_id = '" . $manufacturers_id . "'");

$metaData = tep_db_fetch_array ($manufacturers_query);

if ($metaData ['title']) $meta_title = $common_meta_title . " " . $metaData ['title'];
if ($metaData ['keywords']) $meta_keywords = $metaData ['keywords'] . ", " . $common_meta_keywords;
if ($metaData ['description']) $meta_description = $metaData ['description'] . " " . $common_meta_description;

}


echo '<title>' . $meta_title . '</title>' . "\n";
echo '<meta name="keywords" content="' . $meta_keywords . '">' . "\n";
echo '<meta name="description" content="' . $meta_description . '">' . "\n";

?>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need another advice: Shopping Cart mcrob PHP 5 12-08-05 07:31 AM
Using Sessions for a shopping cart mcrob PHP 8 12-03-05 06:11 PM
shopping cart project d2daj Script Requests 2 11-19-05 11:43 PM
add items a la shoppingcart nassau PHP 5 01-21-05 01:52 AM
shopping cart cutomization limits?? vega PHP 1 06-11-04 11:26 AM


All times are GMT -5. The time now is 06:33 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.