PDA

View Full Version : PHP How do I expand the shopping cart field?



nubreed
July 27th, 2009, 03:03 PM
Hi all I am not sure if anyone here can help as this is to do with OS Commerce, but no one hasn't got the answer on there web page/forum so Iv come here see if anyone can help me.

I am having problems expanding the shopping cart field. As the customer adds items to the cart and if the customer wanted to browse around the shop then the items are still there. Now if the customer adds items into the cart and then goes onto other pages like for example "Home Page, Retail Concept, etc." and then goes back to the shopping cart the items have vanished from the cart.
Also how would I change the shopping cart page from being "Index.php" to another name without messing up the other pages within the shopping cart page? As I tried that as well it didn't seem to work.

http://img31.imageshack.us/img31/2308/img00n.jpg

I thought I had a solution by adding the following lines within the other pages to try to expand the shopping cart field but that didn't work.


require('includes/application_top.php');

require(DIR_WS_INCLUDES . 'application_bottom.php');

So can someone help me please on a solution to this.

Thanks in advance for any help.

RvGaTe
July 27th, 2009, 07:31 PM
Can we view this somewhere online ?

nubreed
July 29th, 2009, 07:50 AM
sorry its still running on my machine as local host.

nubreed
July 29th, 2009, 08:02 AM
But I have found something that is part of what I need doing, I've search everywhere on the web and tryed to understand it but I still can't so I would ask any of you to help me how would I convert My code with OSsid number at the end of the link.


<div>
<ul id="menu">
<li><a href="http://localhost/catalog/indexM.php?page=Home" >Home Page</a></li>
<li><a href="http://localhost/catalog/indexM.php?page=The%20Retail%20Concept" >The Retail Concept</a></li>
<li><a href="http://localhost/catalog/indexM.php?page=Contact" >Contact</a></li>
<li><a href="http://localhost/catalog/index.php" >Product Range</a></li>
<li><a href="http://localhost/catalog/indexM.php?page=Terms%20and%20Conditions" >Terms &amp; Conditions</a></li>
<li><a href="http://localhost/catalog/indexM.php?page=News%20and%20Events" >News &amp; Events</a></li>
</ul></div>

So on the address bar would have a OS Session ID come up example;


http://localhost/catalog/indexM.php?page=Contact?OCsid34343243243242394

The information was on here so I didn't understand it

http://forums.oscommerce.com/index.php?showtopic=330479

RvGaTe
July 29th, 2009, 10:30 AM
<a href="http://localhost/catalog/indexM.php?page=Home" >Home Page</a>

would become:


<a href="<?php echo tep_href_link('indexM.php?page=Home', '', 'SSL'); ?>">Home Page</a>

or something like that....

nubreed
August 4th, 2009, 07:39 AM
Thanks for the help, but its all sorted now, it was to do with my xammp I think it need some modes so that it can run, cos as I uploaded it on to a live host and it works fine, but thanks for your help RvGaTe (http://www.kirupa.com/forum/member.php?u=2807)

nubreed
August 4th, 2009, 07:40 AM
Time to develop an Ajax version of a shopping basket.