-
- 10 Posts
Problem: Adding to cart. Getting the cart to display.
I want to know how I need to set up the variables to display the cart contents. I think the ’Add to cart’ button may be working but the cart never shows it. I assume that something is missing or there is an incorrect variable somewhere. I wish I had access to the server as it may be an installation error. Is there any way to check the version of PHP, Apache, etc that is currently running on the server without having access to it? Thank you,
Shadow
-
- 2,310 Posts
To view your server configuration use Reports => System Info inside the Modx Manager.
-
- 10 Posts
Could my problem be related to the versions of PHP and such on the server?
PHP: 5.2.6
Apache: 2.2.10
Shadow
-
- 10 Posts
Yeah I have read though that thing about 10 times. It does nothing to help my problem. I believe my page templates that hold the cart values are wrong. I have no idea what I need to put in there to get my cart working. I was hoping that I could see a section of someones code, as it seems no one is willing to share any information. I just need to know what I am doing wrong. Jumping into a partially finished website is kind of a pain in the ass. I do love CMS though, just having problems getting this cart rolling.
Shadow
-
- 388 Posts
Might this help?
Note the following div is required to tell TC where to put the links to view or empty the shopping cart. These links appear when you click on the add to cart link
<div class="treasure_cart"> </div>
www.terrybarthdesign.com
-
- 10 Posts
I copied the entire html from the Terry’s notes document. So that is in there. I also added the {{tcCartItem}} chunk right under [[treasureChest? &item=`5`]]
What code do I need to display the cart, how do I get it to show whats inside of it? There seems to be nothing ever doing anything inside that cart. I dont know if I can dig though the treasureChest.class.php code to find what I need. I guess I will try, I really dont know what I am looking for.
Shadow
-
- 388 Posts
just another guess. . .
Did you create the cart document? As a quick test, I deleted my cart document and went back to my product page. The Add to card button was there but didn’t do anything. It seems to behaves in a similar fashion as yours.
www.terrybarthdesign.com