| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Cart not displaying contents when clicking from PHP to Html | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi guys,
I am having problems with my site!!! The problem is that the shopping cart is not displaying its contents when clicking from a php to a html page. I have many static pages along with the html catalogue generated. Can someone help please? Regards Cheryl S www.wildelectronics.com.au X-Cart 3.5.5 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() The mini-cart will not display the proper values because those are static HTML pages (not dynamic PHP pages) and will not read the data.
You should never have any links from your PHP pages back to the HTML pages. The HTML pages are for Search Engine indexing and are entry points for the users. Once they ahve added an item to the cart, then they are in the dynamic part of the site. At that point they should stay there. If you do have links from your PHP pages back to your HTML pages, then you should edit your templates to use the proper linking variables. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Okay thanks,
but surely there is a way around this? If a customer comes into my site via html, clicks into a php, adds a product and then clicks on a html, it doesn't keep the cart contents. I have been told that I can implement additional templates based on 'skin1/customer/menu_cart.tpl' file and write the php file to display the cart only using the customer's session data. This is supposed to be scripted in the HTML '<iframe>' tag. After that the generated HTML catalog should display actual cart content. But I have no idea on how to do this. And for SEO, I am generating alot more html so that is why I want the cart to be live in the HTML. It is very important. Regards Cheryl S www.wildelectronics.com.au X-cart 3.5.5 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() You have to understand the fundamentals behind html and PHP. Particularily in the X-Cart structure.
HTML catalog brings hits from search engines. While the page is html most of the X-Cart functionality links like "Login", and "Cart" are links to PHP driven pages. You DO NOT want your customers shopping in the html store. You WANT them shopping in the PHP store. The HTML store is only to appeal to Search Engines. HTML cannot do all of the fun stuff that PHP can. I see a lot of new users getting confused because html is easier to grasp than PHP and they assume it is an eithier/or option. If you are running X-Cart, you want all of your internal links to be PHP 100% of the time. Let the html catalog generator decide what to make a html link in those pages but do NOT code any html links into your PHP site. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|