Shopping Cart with inventory & Paypal Gateway

I am currently designing a site (for me) and was planning on using paypal shopping cart, but have discovered that they is no way to prevent 2 people both buying a unique item. I know there are off the shelf shop fronts, but i want to use my site layout & therefore can anyone recommend a shopping cart that i can intergate into my current "add to cart" & "view cart" buttons, that will prevent multiple people buying unique items before i have removed them from the site once sold? Also, if possible show on the front page the number of items left in each catogory.

The site can be found here www.zoaphoria.co.uk/temp

Thanks,
creativepresenceAsked:
Who is Participating?
 
nizsmoConnect With a Mentor DeveloperCommented:
I suggest you copy and paste what is in opencart.php and put it in index.php, and then strip out what you don't need. it is much easier to backtrack than to get the bits you need and paste it into index.php.
0
 
nizsmoDeveloperCommented:
Are you using a readymade script or have you built that yourself?
I don't think you are being detailed enough for anyone to help in terms of scripting, but i imagine (if you consider using a readymade script) that there are a few very good shopping sites like zencart or oscommerce which will probably do the above correctly.
0
 
creativepresenceAuthor Commented:
There are no scripts at the moment, that is where the problem starts.  Currently the site is designed round paypal shopping cart, but as the items i sell are unique, i need to prevent unique items selling multiple times and paypal doesnt suppot this feature.  Therefore i will need to look at a laternative solution, but want to maintain the current site design and therefore although my host does provide zencart & oscommerce, i couldnt see a way to get all the background features without using their shopfront.  Therefore ideally i need a script that will offer inventory features, but work throgh myadd to cart & view cart buttons similar to paypal cart.  I hope thats more clear.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
nizsmoDeveloperCommented:
http://www.phpcart.net/

Yes most of the time zencart & oscommerce are an overkill, and hard to customize i fully agree.
The above should be very easy to customize and use to integrate into your current website design, would that be a feasable option?
0
 
creativepresenceAuthor Commented:
i will take a look and get back to you.
0
 
creativepresenceAuthor Commented:
just had a very quick look and the main thing was that it doesnt use a databse and therefore I take it that the app doesnt have inventory support or atleast support unique items.
0
 
nizsmoDeveloperCommented:
http://www.opencart.com/home
Sorry i didn't realize the previous didn't utilize any databases. The above one probably does make use of mysql database, and also looks extremely simple to use and integrate, and is opensource.

if you feel the urge to build something yourself it probably won't take too long with these tutorials:
http://www.thewatchmakerproject.com/journal/276/building-a-simple-php-shopping-cart
http://www.devarticles.com/c/a/MySQL/Building-A-Persistent-Shopping-Cart-With-PHP-and-MySQL/

hope this helps.
0
 
creativepresenceAuthor Commented:
Hi, had a look at zencart, cude cart, oscommerce, agora cart, opencart & all dont really meet my requirements.  Ideally only want a shopping cart script that allows paypal as the payment gateway, but also has an inventory system managable via a web interface (ideally) (quite possibly asking to much).  I have looked at a few scripting sites, but the choice is over whelming and i get the feeling the only way to get what i need is to create it, but someone must have had this problem before & therefore does anyone know of a script that i could use?
0
 
creativepresenceAuthor Commented:
I got opencart working in a test directory, and it seem what i need, as long as i can intergrate it into my site. Currently my site is html and from what i know (very basic understanding) I would like to put open cart features on my site, therefore would need my site to be php, therefore if i created my site to php, would I be able to add opencart features to my site, such a items in a catogory, etc?  if so, how could i convert my page to php?  could i just save as .php?  

If need be I can raise the points on this question  if i can solve this evolved problem,
0
 
creativepresenceAuthor Commented:
ok, have converted .html docs to .php and simply php codes runs on it when uploaded to my server.  The next thing i need to figure out or someone help me, is to see if its possible to say get the number of item in a catogory from the opencart installtion displaying in a .php page outside if the opencart installation, ie. my home page.
0
 
creativepresenceAuthor Commented:
another update, i have installed open cart in root\opencart  and can view a functional cart from there, but if i then copy the index.php file & config.php to root, the cart still functions. Therefore as there seems to still be a connection to the cart/DB from outside the installation folder due to certain code within the index.php & config.php.  Therefore does anyone know what code i should transfer to my own index.php page?   i take it the config.php can say as it is & i simply need to know what to transfer from the opencart.php to my index.php
0
 
creativepresenceAuthor Commented:
Hi, copied copied everything from the root/opencart/index.php into root/index.php and it displayed a working opencart installation above my webpage.  I eventually found that all the code could be left in my index.php apart from the command calling the temlate..

***************************************************************************************************************************
// Display Template
 echo($template->fetch('layout.tpl'));
***************************************************************************************************************************

I then tried to enter a store command such as <?php echo $category; ?> in my index.php, but get the error...

***************************************************************************************************************************
Notice: Undefined variable: category in /home/zoapho90/public_html/index.php on line 182
***************************************************************************************************************************

where i entered the php command.  How can I get these commands to work?  I have asked the same question and was advised to put

***************************************************************************************************************************
include ("/opencart/index.php");
***************************************************************************************************************************

but this puts the error...

***************************************************************************************************************************
Warning: main(): open_basedir restriction in effect. File(/opencart/index.php) is not within the allowed path(s): (/home/zoapho90/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/zoapho90/public_html/index.php on line 102

Warning: main(/opencart/index.php): failed to open stream: Operation not permitted in /home/zoapho90/public_html/index.php on line 102

Warning: main(): open_basedir restriction in effect. File(/opencart/index.php) is not within the allowed path(s): (/home/zoapho90/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/zoapho90/public_html/index.php on line 102

Warning: main(/opencart/index.php): failed to open stream: Operation not permitted in /home/zoapho90/public_html/index.php on line 102

Warning: main(): Failed opening '/opencart/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zoapho90/public_html/index.php on line 102
***************************************************************************************************************************

I have also looked at

***************************************************************************************************************************
echo($template->fetch('layout.tpl'));
***************************************************************************************************************************

as this is what is called, but being a noob, it didnt mean much to me.  Any ideas.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.