Solved

Shopping Cart with inventory & Paypal Gateway

Posted on 2007-11-24
12
1,760 Views
Last Modified: 2013-11-29
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,
0
Comment
Question by:creativepresence
  • 8
  • 4
12 Comments
 
LVL 21

Expert Comment

by:nizsmo
ID: 20344004
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
 

Author Comment

by:creativepresence
ID: 20344052
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
 
LVL 21

Expert Comment

by:nizsmo
ID: 20344066
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
 

Author Comment

by:creativepresence
ID: 20344089
i will take a look and get back to you.
0
 

Author Comment

by:creativepresence
ID: 20344097
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
 
LVL 21

Expert Comment

by:nizsmo
ID: 20344111
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:creativepresence
ID: 20345253
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
 

Author Comment

by:creativepresence
ID: 20345773
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
 

Author Comment

by:creativepresence
ID: 20345848
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
 

Author Comment

by:creativepresence
ID: 20346149
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
 
LVL 21

Accepted Solution

by:
nizsmo earned 200 total points
ID: 20348433
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
 

Author Comment

by:creativepresence
ID: 20352371
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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now