Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Shopping Cart and Error message.
Author « Topic »  

PaulP
Advanced Member

USA
213 Posts

Posted - 08/29/2019 :  10:10:56  
Hello ECT,

Using Version - Ecommerce Plus PHP v7.0.3
I have a problem with the shopping cart not showing any added products and A error message when your viewing a product and click the "Previous/Next" link on the bottom of the product information Page.

Shopping Cart:
None of the products that are added show up in the cart. After adding any product('s) the pop out windows says the product has been added to the cart, but when you go to checkout it says "There are currently no items in your shopping cart."

Error Message:
This error message comes up when you click the "Previous/Next" link on the bottom of the product information page.

Sorry, this product is not currently available.
Warning: Cannot modify header information - headers already sent by (output started at /home/nativity/public_html/proddetail.php:191) in /home/nativity/public_html/vsadmin/inc/incproddetail.php on line 660

Yours Truly,
Paul P.
Longtime ECT Customer

Vince
Administrator

42874 Posts

Posted - 08/29/2019 :  10:57:17  
Hi Paul
In your proddetail.php page, do you have something like this at the top?

<?php
session_cache_limiter('none');
session_start();
ob_start();
?>

If not, could you add it? The ob_start() line will start output buffering which should stop that message about the headers already being sent. I think there is a redirect going on for some reason.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

PaulP
Advanced Member

USA
213 Posts

Posted - 08/29/2019 :  12:01:30  
Hi Vince,
Thank you for your reply.

I changed the code at the top
<SCRIPT LANGUAGE="php">

session_cache_limiter('none');

session_start();

</SCRIPT><html
>

to

<?php
session_cache_limiter('none');
session_start();
ob_start();
?>

and the "Previous/Next" links are working fine.

Now the "Add to cart" and Checkout buttons are inop. When you click either one nothing happens.

Yours Truly,
Paul P.
Longtime ECT Customer

dbdave
ECT Moderator

USA
10468 Posts

Posted - 08/29/2019 :  12:39:52  
The inoperable button issue sounds like you have not uploaded and/or linked to the ectcart.js file
Check this page for details - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=110209

PaulP
Advanced Member

USA
213 Posts

Posted - 08/30/2019 :  07:32:49  
Thank you dbdave.
The "Add to cart" and Checkout buttons work fine, however when you click the "Add to cart" button the popup box is missing and the info is displayed at the top of page from side to side (see image) how do I get the box back and the info in the box again?.

Vince
Administrator

42874 Posts

Posted - 08/30/2019 :  08:44:57  
Hi Paul
There are 2 new files that need to be referenced in all cart pages now, js/ectcart.js and css/ectcart.css
https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107040
It looks like you are still missing the ectcart.css file.
Looking at those two help pages, probably they should be merged into one now so I'll get that done and sorry for the confusion.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

PaulP
Advanced Member

USA
213 Posts

Posted - 08/30/2019 :  09:19:29  
Hi Vince,
Thank you for your reply.

I have the ectcart.css file in the css folder and the ectcart.js file in the js folder located in the root directory.

This is from the cart.php head

<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Nativity of Our Lord Church - Shopping Cart </title>
<LINK REL=STYLESHEET TYPE="text/css" HREF="style.css">
<script type="text/javascript" src="/js/ectcart.js"></script>
<link rel="SHORTCUT ICON" href="/favicon.ico">
</head>

Should I add the line below to all the pages?

<link rel="stylesheet" type="text/css" href="/css/ectcart.css"/>

I'm not sure what you meant by "I'll get that done and sorry for the confusion" do you need access to the site?.

Yours Truly,
Paul P.
Longtime ECT Customer

dbdave
ECT Moderator

USA
10468 Posts

Posted - 08/30/2019 :  11:02:41  
Hi, yes you absolutely need that css file referenced. It needs to go before your other stylesheet call.
Any changes you want to make, you add to your style.css file and it will override the ectcart.css file.

<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Nativity of Our Lord Church - Shopping Cart </title>
<link rel="stylesheet" type="text/css" href="/css/ectcart.css"/>
<LINK REL=STYLESHEET TYPE="text/css" HREF="style.css">
<script type="text/javascript" src="/js/ectcart.js"></script>
<link rel="SHORTCUT ICON" href="/favicon.ico">
</head>

David

PaulP
Advanced Member

USA
213 Posts

Posted - 08/30/2019 :  13:43:40  
Thank you dbdave.

I added the <link rel="stylesheet" type="text/css" href="/css/ectcart.css"/> line to the head above any stylesheet call and it's all working fine now.


Thanks again to You and Vince for all your help.

Yours Truly,
Paul P.
Longtime ECT Customer

dbdave
ECT Moderator

USA
10468 Posts

Posted - 08/31/2019 :  08:43:23  
Great news Paul. I'm glad I could assist.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000