Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Cart not displaying contents when clicking from PHP to Html

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-15-2004, 01:35 AM
 
wildelectronics wildelectronics is offline
 

Member
  
Join Date: Apr 2004
Location: Sydney Australia
Posts: 21
 

Default 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
Reply With Quote
  #2  
Old 06-15-2004, 03:40 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

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.
Reply With Quote
  #3  
Old 06-15-2004, 03:57 AM
 
wildelectronics wildelectronics is offline
 

Member
  
Join Date: Apr 2004
Location: Sydney Australia
Posts: 21
 

Default 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
Reply With Quote
  #4  
Old 06-15-2004, 06:36 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:25 AM.

   

 
X-Cart forums © 2001-2020