X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Cart not displaying contents when clicking from PHP to Html (https://forum.x-cart.com/showthread.php?t=8096)

wildelectronics 06-15-2004 01:35 AM

Cart not displaying contents when clicking from PHP to Html
 
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

TelaFirma 06-15-2004 03:40 AM

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.

wildelectronics 06-15-2004 03:57 AM

But...
 
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

adpboss 06-15-2004 06:36 AM

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.


All times are GMT -8. The time now is 06:54 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.