Page 1 of 5
Posted: Wed Feb 04, 2009 1:54 am
by gp2727
Posted: Wed Feb 11, 2009 5:21 am
by Navaldesign
It is obvious that EITHER the pages have not been published as php, OR for some reason your host doesn't parse them as such.
None of the above "strange" texts would appear if the script worked ok.
To embed the autorize.net checkout, you will need to add the necessary code (similarly to what is done for PayPal).
Posted: Sun Feb 22, 2009 6:28 am
by Navaldesign
The code that creates the Order ID is:
Code: Select all
// create unique order id
$orderid = strtotime("now").$_SERVER['REMOTE_ADDR'];
$orderid = str_replace(".", "", "$orderid");
You can find it in the "thankyou" page Start of Page code.
The Order ID consists of the time (Linux time, seconds since 31 Dicember 1969), in this one 1235269773 combined with your IP address 76.107.196.252 (without dots).
So as you see it is a logical pattern.
However, you can change ALL of the Start of Page code with the following one:
Code: Select all
<?php
session_start();
ini_set('display_errors', 1);
error_reporting(55);
require 'admin/config.php';
require 'admin/paypal_settings.php';
define("PRODUCTCODE", 0);
define("PRODUCTNAME", 1);
define("QUANTITY", 2);
define("PRICE", 3);
$itemcount = isset($_SESSION['itemcount']) ? $_SESSION['itemcount'] : 0;
if ($itemcount == 0)
{
header("Location: "."error.php?msg=".rawurlencode("Please add items to your shopping cart before checking out."));
exit;
}
if (!isset($_SESSION['email']))
{
header("Location: "."error.php?msg=".rawurlencode("We did not find your information, please fill the needed information again."));
exit;
}
$paymenttype = $_SESSION['paymenttype'];
// create unique order id
$alpha = "Order nr. ";
$order_start = "100";
$dbts_file_name = "order_nr.php";
if (!file_exists($dbts_file_name)) {
$orderid = $order_start;
}
else{
include $dbts_file_name;
}
$orderid++;
$dbts_file_name = "order_nr.php";
$dbts_values = "<? \n";
$dbts_values .= '$orderid=';
$dbts_values .= "\"$orderid\";\n";
$dbts_values .= '?>';
if(file_exists($dbts_file_name))
{
unlink ($dbts_file_name);
}
if (!$dbts_handle = fopen($dbts_file_name, 'a+')) {
header("Location: "."error.php?msg=".rawurlencode("Cannot open Order Details file."));
exit;
}
if (fwrite($dbts_handle, $dbts_values) === FALSE) {
header("Location: "."error.php?msg=".rawurlencode("Cannot write Order Details file."));
exit;
}
fclose($dbts_handle);
// get timestamp for this order
$timestamp = date("Y-m-d H:i:s");
// create mail message to customer
$subject = "Your order with $dbts_title";
$title = "Thank you for your order!";
SendEmail($_SESSION['email'], $subject, $title, $orderid, $timestamp, true);
// create mail message to merchant
$subject = "Order confirmation for $dbts_title";
$title = "The message is sent for your records of a purchase. Please review the purchase below, and fulfill as necessary.";
SendEmail($dbts_contactemail, $subject, $title, $orderid, $timestamp, false);
function SendEmail($mailto, $subject, $title, $orderid, $timestamp, $maskcardno)
{
$header = "From: ".$GLOBALS['dbts_title']."<".$GLOBALS['paypal_email'].">"."\r\n";
$header .= "Reply-To: $paypal_email"."\r\n";
$header .= "MIME-Version: 1.0"."\r\n";
$header .= "Content-Type: text/plain; charset=utf-8"."\r\n";
$header .= "Content-Transfer-Encoding: 8bit"."\r\n";
$header .= "X-Mailer: PHP v".phpversion();
$message = $title."\r\n"."\r\n";
$message .= $GLOBALS['alpha']." $orderid \r\n";
$message .= "Order Date: ".$timestamp."\r\n"."\r\n";
$message .= "Customer info:"."\r\n";
$message .= "Firstname: ".$_SESSION['firstname']."\r\n";
$message .= "Lastname: ".$_SESSION['lastname']."\r\n";
$message .= "Email: ".$_SESSION['email']."\r\n";
$message .= "Address: ".$_SESSION['address']." - ".$_SESSION['address2']."\r\n";
$message .= "City: ".$_SESSION['city']."\r\n";
$message .= "Zip: ".$_SESSION['zip']."\r\n";
$message .= "State: ".$_SESSION['state']."\r\n";
$message .= "Country: ".$_SESSION['country']."\r\n";
$message .= "Phone: ".$_SESSION['phone']."\r\n"."\r\n";
$message .= "Shipping address:"."\r\n";
$message .= "Name: ".$_SESSION['shipname']."\r\n";
$message .= "Address: ".$_SESSION['shipaddress']."\r\n";
$message .= "City: ".$_SESSION['shipcity']."\r\n";
$message .= "Zip: ".$_SESSION['shipzip']."\r\n";
$message .= "State: ".$_SESSION['shipstate']."\r\n";
$message .= "Country: ".$_SESSION['shipcountry']."\r\n";
$message .= "Payment info:"."\r\n";
$message .= "Type: ".$_SESSION['paymenttype']."\r\n";
if ($maskcardno)
{
$message .= "Credit Number: ".substr($_SESSION['cardno'],0,4)."..."."\r\n";
}
else
{
$message .= "Credit Number: ".$_SESSION['cardno']."\r\n";
}
$message .= "Card Name: ".$_SESSION['cardname']."\r\n";
$message .= "Card Expires: ".$_SESSION['cardmonth']."/".$_SESSION['cardyear']."\r\n"."\r\n";
$message .= "Ordered items:"."\r\n";
$message .= "Code"."\t"."Item"."\t"."No."."\t"."Price"."\r\n";
$message .= "======================================================="."\r\n";
$itemcount = $_SESSION['itemcount'];
$cart = $_SESSION['cart'];
$total = 0;
for ($i=0; $i<$itemcount; $i++)
{
$message .= $cart[PRODUCTCODE][$i]."\t";
$message .= $cart[PRODUCTNAME][$i]."\t";
$message .= $cart[QUANTITY][$i]."\t";
$message .= $currency.number_format($cart[PRICE][$i]*$cart[QUANTITY][$i],2)."\r\n";
$subtotal = $subtotal + ($cart[PRICE][$i]*$cart[QUANTITY][$i]);
}
$message .= "======================================================="."\r\n";
$message .= "Net Total: $currency_symbol".number_format($_SESSION['subtotal'],2)."\r\n";
$message .= "======================================================="."\r\n";
$message .= "Shipping: $currency_symbol".number_format($_SESSION['shipping'],2)."\r\n";
$message .= "======================================================="."\r\n";
$message .= "Order Grand Total: $currency_symbol".number_format(($subtotal + $_SESSION['shipping']),2)."\r\n";
$message .= "\r\n"."\r\n";
mail($mailto, $subject, stripslashes($message), $header);
}
?>
How does the code work?
It creates an order ID consisting of the alphanumeric part (
Order nr. ) plus a autoincrement index (starting from
101).
If you wish you can replace the alphanumeric part with anything else (Example: "
Cute Cart Order nr. " ) and the starting order nr ( Example:
201 ).
After each order, the code also stores the Order nr so next time an order is placed, it increases it by 1.
Posted: Mon Feb 23, 2009 6:37 am
by Navaldesign
I will come back to you later, after testing the code and embedding it in the "webshop_plus".
Posted: Mon Mar 02, 2009 10:31 pm
by Navaldesign
A REALLY majoR update has been made: Tax categories, promo Codes, Mail customization, and Language change without editing a single line of code.
The entire customization process now is made in the administration interface AND in WB5 . You don't need to change anything at all in the code, anymore.
Please read the updated First Post in this thread.
Posted: Wed Mar 11, 2009 2:36 pm
by me.prosenjeet
I am trying to lay my hand for the first time on the shopping cart.
I want to put only two products.
Is it ok if I delete the pages product 3 and 4?
Will it disturb any settings?
Do I need to add/delete/edit any code on the other pages?
Sorry for novice question but,then this is my first try...bear with me

Posted: Wed Mar 11, 2009 3:23 pm
by Navaldesign
You may add or delete as many product pages as necessary. The demo project is just an example, so it is coming with 1 main (catalog type) and 4 subpages for products, but for your own cart you can do whatever necessary.
Posted: Mon Apr 20, 2009 8:04 pm
by Navaldesign
powelli wrote:Hi, just to two quick questions re, this shopping cart. At the cart.php page can I replace the contiune shopping button to the push button, and set the events to java, on click, history go back. As I have several products page I would prifer this rather than the link to prodcts page.
Yes, BUT unless this is simply a "Back" button, put this button outside the cart form limits, as usually events will conflict with the form submission.
Also when a discount code is enterd to the cart, it just emptys the whole cart, I have not changed the code at all just the layouts on the pages, if I upload all the admin files for the cart again would this affect my cart at all the work I have done, such as layouts and products etc?
Many thanks
Owain
Uploading the admin files again might result in getting a different look for the table colors and fonts etc. But, you can take a backup of the file "config.php" and upload it again.
However, thsi issue has nothing to do with the Admin interface, most probably it is something you have done wrong in your pages.
Posted: Tue Apr 21, 2009 4:57 pm
by Navaldesign
joewhite wrote:Hello Navaldesign!
Thanks for you new cart, was waiting for this. Just what i was looking for. just have 2 questions for you.
1.) Can I have multiple options for a product? like for red shirt (+$10) and XXL (+$3) ?
2.) I uploaded the new cart but i get this error:
Warning: main(admin/config.php): failed to open stream: No such file or directory in /var/www/html/carttest/cart.php on line 7
How can I fix this?
Thanks friend
1. Yes, you can. You can also have, for the same option, price affecting and NON price affecting values (Example: Small, Medium and Large NOT price affecting, Extra Large and XXL price affecting)
2. If you had NOT installed the cart previously, you need to do so. Which means that you need to create a folder named "admin" and upload in there all the files that are contained in the "admin" folder of the zip. Then log in in your administration area to setup the cart according to your needs.
Posted: Tue Apr 21, 2009 7:21 pm
by Navaldesign
Sorry, but i don't understand, can you please post a link to the project you published ? If you look at
http://www.dbtechnosystems.com/wb5/cart1/product1.php
you will see that i have setup two dropdowns (price affecting options are Macos and Linux for the OS and Italian for the language).
Posted: Tue Apr 21, 2009 8:43 pm
by Navaldesign
Hi,
I'm not sure what you tried to do by copying / pasting the same dropdowns. Further more, you kept the same names for the dropdowns!
Also, you did NOT add a hidden field for each option! Please read again the instructions (first post of this thread) as to HOW you add options in your Add to Cart forms:
Please understand that by placing the same dropdowns twice, you only receive the values of one for each pair (As would happen with ANY form field that has the same name as another one).
And, as said, you need to setup, for each option dropdown, a hidden field with the option name.
Double click the form in the "product1" page, go in "Hidden Fields" and see that there are two hidden fields, one named :
"option_name1" with value "OS" (Operating system) and the other
"option_name2" with value "Language"
Posted: Wed Apr 22, 2009 5:40 am
by Navaldesign
1. It doesn't take the third option because you have mistaken the third option dropdown name. It is "options_values3" instead of the "correct option_values3" . Remove the "s" you have added.
2. Seems to me quite stange that you need more than 8 options, 99% of the users will not even need more than two or three.
Anyway, to change this you can change the code in the "cart" page.
You will see a line that looks like this:
for ($opt = 1; $opt <= 8; $opt++){
Change "8" to whatever you need.
Posted: Wed Apr 22, 2009 8:05 am
by Navaldesign
Look at the code in the Start of Page of the page HTML:
function AddToCart()
{
$cart = isset($_SESSION['cart']) ? $_SESSION['cart'] : '';
$itemcount = isset($_SESSION['itemcount']) ? $_SESSION['itemcount'] : 0;
$productname = $_POST['productname'];
$extra_price = 0;
for ($opt = 1; $opt <= 8; $opt++){
$key = 'option_name'.$opt;
$key1 = 'option_values'.$opt;
$option_name = trim($_POST[$key]);
$option_value = trim($_POST[$key1]);
if ($option_value != "") {
unset($options);
$options = explode(",", $option_value);
$productname .= " / $option_name : ".$options[0];
$extra_price = $extra_price + $options[1];
}
}
$productname = stripslashes($productname);
Posted: Wed Apr 22, 2009 8:50 am
by Navaldesign
1. Unlimited
2. You would need to use Javascript or Ajax, but that exceeds the limits of this free cart, so you first have to add it in th ecart to see the price.
Posted: Sun Apr 26, 2009 1:17 pm
by Navaldesign
Update April 26, 2009:
Added possibility to perform shipping charges calculations based on total products weight, using a hidden field to declare each product's weight (just like the price etc) .
Added possibility to perform shipping charges calculations based on individual item shipping cost, using a hidden field to declare each product's shipping charges.
Updated the Administrator Interface to allow for the new options
International Shipping
Posted: Sun May 03, 2009 8:46 am
by kevinp
Hi
I use the shooping cart on my page at
www.aivahealth.co.uk and have had many comments on how professional it looks, nice work.
I generally ship free within the UK but have had quite an interest for international orders so I was wondering how to go about putting in a flat international shipping rate e.g. a tick box which would add the flat international shipping amount to the total when clicked.
I do dabble with php but am certainly not as competent as yourself and am afraid if I mess with such a big project it may never work again.
Any pointers would be appreciated.
Thanks again for the fantastic cart script.
Kevinp
Posted: Sun May 03, 2009 7:10 pm
by Navaldesign
Well, this is rather complicated.
In my commercial cart i have made it this way:
I have in the admin interface a field where the origin country is declared (in Example, United Kingdom)
Then, in the shipping fees tables, i have 4 different areas: National. International Area 1, Intl Area 2, Intl Area 3 where areas 1 2 and 3 usually are the same as defined by most postal services.
The script looks into the Areas tables of countries, and simply applies the correct fees.
Now, regarding this specific cart, I will see what i can do and come back to you shortly.
Posted: Sun May 03, 2009 10:32 pm
by kevinp
Thankyou. That would be appreciated very much. I played about with putting the tick box on the actual order forms to activate a hidden field and transfer the extra amount when ticked but still working on it.
Thanks again
Posted: Wed May 06, 2009 8:27 pm
by kevinp
Absolute genius. Just uploaded and tested. Everything works fine, the shipping costs update and the emails are sent but when it sends the order to paypal it seems to ignore the shipping cost and just sends the net total e.g.
Net Total £35.94
Shipping £5.00
Total £40.94
This shows on the cart and in the email but only £35.94 is passed to paypal.
I'm sure this is simply the wrong total being passed on the thankyou page but have'nt been able to identify it yet.
A truly professional piice of work
Thanks again
kevinp
Posted: Wed May 06, 2009 9:18 pm
by Navaldesign
I just tested and it transmits the handling and shipping fees ok ????
How can i see the problem you are having ?
Posted: Thu May 07, 2009 11:55 am
by kevinp
Mmmm. Must be something I'm doing wrong. I'll re set it all up, try again and let you know the results.
Thanks.
Posted: Fri May 08, 2009 6:25 pm
by kevinp
It was my fault. I had my paypal settings all wrong so they didn't allow the cart to overide the default shipping charges.
Thanks for your help, the cart is fantastic.
kevinp

Posted: Sat May 09, 2009 8:44 am
by kevinp
Hi
I'm trying to echo the cart total into the header (a master page) using a form that is shown through a IFrame in the header. The form refreshes by targeting cart.php and contains the code:
Code: Select all
<?php
$cart = isset($_SESSION['cart']) ? $_SESSION['cart'] : '';
$itemcount = isset($_SESSION['itemcount']) ? $_SESSION['itemcount'] : 0;
$strHTML = "";
if ($itemcount == 0)
{
$strHTML = "Your basket is empty.";
}
else
{
$strHTML .= "<td>Your Cart</td></tr>"."\n";
$total = 0;
for ($i=0; $i<$itemcount; $i++)
{
//$total = $total + ($cart[PRICE][$i]*$cart[QUANTITY][$i]);
$total = $total + ($cart[PRICE][$i]*$cart[QUANTITY][$i]+$cart[SHIPPING][$i]);
}
$strHTML .= "<tr>"."\n";
$strHTML .= "<td></td><td></td><td></td>"."\n";
$strHTML .= "<td>Total</td>"."\n";
$strHTML .= "<td>"."£".number_format($total, 2)."</td>"."\n";
$strHTML .= "</tr>"."\n";
$strHTML .= "</table>"."\n";
$strHTML .= "</div>"."\n";
}
echo $strHTML;
?>
to show the cart total in the header.
It works with the first (commented) line ( //$total = $total + ($cart[PRICE][$i]*$cart[QUANTITY][$i]);) and updates the total when items are added and taken away but it ignores any tax, discount or shipping charges.
As you can see below the commented line I've tried to add the shipping charges but this just seems to add £4.00 to the total regardless of shipping charges.
I've also tried + $shipping_total but i'm struggling to identify which variable/function carries the shiping and discount totals.
You can see it in action at
http://www.aivahealth.co.uk.
Cheers again for the cart, great work.
Kevinp
Posted: Sat May 09, 2009 9:12 am
by uniformality
Hello
Just a quick sanity check here . Have you changed the login details for the admin page. i cant log in at all
Regards
Paul
Posted: Sat May 09, 2009 11:32 am
by Navaldesign
Shiiping per item means that the shipping should ALSO be multiplied by quantity, so it should be:
$total += ($cart[PRICE][$i]+$cart[SHIPPING][$i])*$cart[QUANTITY][$i];
Posted: Sat May 09, 2009 11:37 am
by Navaldesign
uniformality wrote:Hello
Just a quick sanity check here . Have you changed the login details for the admin page. i cant log in at all
Regards
Paul
Not sure what you mean. Which Admin page ? In the demo ? If its that that you mean, i have disallowed acces because anyone did whatever he liked. Now you can only see the demo, and there is no need to even login. Changes you might want to make will not be saved.
Posted: Sat May 09, 2009 11:40 am
by uniformality
hi
i download the webshop plus and uploaded the admin folder. The shop works ok but i cant login to the admin page i used admin, admin as user / password but no luck.
could it be a permissions issue?
i can post a link if it helps?
regards
paul
Posted: Sat May 09, 2009 12:00 pm
by Navaldesign
Try admin1 / admin1 .
However, if those work, it means that you don't have the latest version.
That version had a couple of bugs, which have been fixed in the latest version.
Posted: Sat May 09, 2009 1:11 pm
by uniformality
ty naval,
admin1 worked.
If i download the latest version do i just need to change the admin folder or is there all the page codes as well?
Great piece of work by the way, Thank you for sharing it and your ongoing support.
Regards
Paul
Posted: Sun May 10, 2009 6:38 am
by Navaldesign
You should upload the entire "admin" folder.
Then you MUST replace the code in Start of Page in the cart, customer, checkout and thankyou pages. Actually it only takes a few minutes.
Do NOT use the version you have, as i said there were a few bugs in the code.
Posted: Sun May 10, 2009 8:10 am
by uniformality
Thanks Navaldesign, im on with it now
Regards
Paul
Posted: Sun May 10, 2009 8:31 am
by Navaldesign
Added PDF Manual in the zip, and also a stand alone downloadable PDF at
http://www.dbtechnosystems.com/wb6/Webs ... Manual.pdf
Posted: Sun May 10, 2009 8:50 am
by Navaldesign
uniformality wrote:Thanks Navaldesign, im on with it now
Regards
Paul
Since the Cart page and the customer page have been modified, i suggest that you rebuild them using the new version or something might not work.
Posted: Sun May 10, 2009 11:30 am
by uniformality
Since the Cart page and the customer page have been modified, i suggest that you rebuild them using the new version or something might not work.
Thank you for the info. I have rebuilt the pages as suggested. Everything appears to work but i do get a warning error on the cart and checkout pages
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Any suggestions as to what ive got wrong?
Thanks in advance
Paul
Posted: Sun May 10, 2009 12:46 pm
by Navaldesign
Hm... Where can i see that ? If you don't want to post it here, use my contact form to send me the link to your cart
Posted: Sun May 10, 2009 1:07 pm
by uniformality
Hi Naval,
www.mywebsite.co.uk/products.php
the other pages cart, checkout etc are names as your demo
Thanks in advance
Paul
Posted: Sun May 10, 2009 3:42 pm
by kevinp
Hi Naval
I'm also getting the above warning on my test server
http://simply.net46.net/intcart/ but not on my real server
http://www.aivahealth.co.uk/test/. I'm guesing the PHP versions are different.
Also the 'your cart is empty' message seems not to show anymore if someone visits the cart without adding products (in the HTML box on the cart page -
Code: Select all
if ($itemcount == 0)
{
$strHTML = "<h3>Your shopping cart is empty.</h3>";
}
else
The cart does not seem to recognise discount codes even if the purchase criteria is met. Just keeps saying 'Sorry, you are not eligible for a discount!'
Sorry, hope this helps.
Hopefully, one day I'll become a PHP master like yourself but still a way off yet.
Thanks
Posted: Sun May 10, 2009 4:24 pm
by uniformality
my php version is 5.2.6 it it helps anyone
Regards
Paul
Posted: Sun May 10, 2009 4:40 pm
by kevinp
PHP Version 5.2.6 on the real server (the one that works) with the message
PHP register globals
By default, PHP has register_globals switched off.
Our Windows, SSL and Linux servers have register_globals set to off.
shown on my account
and also Version 5.2.6 on the test server with
register_globals Off
Both are Linux servers if thats helpful
I also get the message when running on Quick and easy home server based on my pc (localhost) running version 5.2.2.
Cheers
Posted: Sun May 10, 2009 5:05 pm
by Navaldesign
uniformality wrote:Since the Cart page and the customer page have been modified, i suggest that you rebuild them using the new version or something might not work.
Thank you for the info. I have rebuilt the pages as suggested. Everything appears to work but i do get a warning error on the cart and checkout pages
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Any suggestions as to what ive got wrong?
Thanks in advance
Paul
Hm... Although I don't know which part of the code causes this, you can try setting the error reporting to 0.
Go in the Start of Page of the pages that have the issue. you will see this line:
error_reporting(55);
Change it to error_reporting(0);
Save and puvblish again the pages.
Then let me know
Posted: Sun May 10, 2009 5:09 pm
by Navaldesign
kevinp wrote:PHP Version 5.2.6 on the real server (the one that works) with the message
PHP register globals
By default, PHP has register_globals switched off.
Our Windows, SSL and Linux servers have register_globals set to off.
shown on my account
and also Version 5.2.6 on the test server with
register_globals Off
Both are Linux servers if thats helpful
I also get the message when running on Quick and easy home server based on my pc (localhost) running version 5.2.2.
Cheers
Kevin, please look my last post about this warning message.
Regarding discounts and empty cart messages: it was my mistake, I've been working on this project from 3 different computers and although i pay enough attention, some updates i did on one computer were not carried over to the others, thus the issue.
Please download again and replace the code in Start of Page and in the HTML box in the Cart page.
Posted: Sun May 10, 2009 6:44 pm
by kevinp
I know what you mean. I also work between three different computers/portable hardrives and it can be difficult to keep track of sometimes.
I'll try setting the error reporting to 0.
Thank you for the work you've put in on sharing your shopping cart. It's a very useful addition to Web Builder and is much appreciated.
Thanks again
Posted: Sun May 10, 2009 7:11 pm
by kevinp
Just tested it and it's working brilliantly.
At first I got a blank screen when adding to the cart etc but I noticed that the 'shipto_countries' file was missing from the admin folder so I added it from an earlier version I still had and it works perfectly.
Very nice indeed.
Posted: Sun May 10, 2009 7:37 pm
by Navaldesign
The shipto_countries file doesn't exist. It is created the very first time the Admin opens the "Shiiping Areas" and saves his choices.
Posted: Sun May 10, 2009 7:58 pm
by uniformality
Hi Naval,
Did the modifications suggested and no errors are reported. Thanks for the assistance.
Regards
Paul
Posted: Sun May 10, 2009 8:09 pm
by Navaldesign
uniformality wrote:Hi Naval,
Did the modifications suggested and no errors are reported. Thanks for the assistance.
Regards
Paul
Hi Paul,
It would be good if you also replaced the code in the cart page (Start pof Page and html box). There was a bug in the promo codes calculation and the Empty Cart error message. Kevin has done so and it his cart is now fine
Posted: Mon May 11, 2009 9:30 am
by uniformality
Hi Naval,
It would be good if you also replaced the code in the cart page (Start pof Page and html box). There was a bug in the promo codes calculation and the Empty Cart error message. Kevin has done so and it his cart is now fine
Is there a new version to download to do this?
Thanks again for all you work and support
Regards
Paul
Posted: Mon May 11, 2009 9:38 am
by Navaldesign
Yes, the one that is uploaded now has these issues solved. Simply download again.
Posted: Wed May 13, 2009 4:11 am
by Navaldesign
well, you could start by posting a link, so i can see myself. Then we can take it from there.
Posted: Thu May 14, 2009 5:16 am
by Navaldesign
Hi,
This is not a cart issue, you have issues with how php has been setup in your hosting account.
Each PHP setup has a predefined path on the server where it stores the sessions details.
Seems like in your account this has not been correctly setup thus causing the issue.
I have met only once with this issue before. Since the hosting company would not solve this, i have solved it setting mt own sessions:save path. THis is done by adding a line in the config.php file, something like:
ini_set('session.save_path', '/path/to/public_html/cart_folder/php_sessions');
which will store session details in the subfolder "php_sessions" of the "cart_folder"
However this requires some php programming knowledge as you need to also modify one of the carts files to be able to include this line in config.php each time a new settings set is saved.
It would be far more easier if your hosting company can fix this (they need to recompile php with the correct session.save_path )