Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

How to do a PHP Shopping Cart?

Options
  • 21-04-2010 3:52pm
    #1
    Registered Users Posts: 414 ✭✭


    Hey guys,

    Does anyone know where I could find out how to add a really basic shopping cart to my website project? :confused: I have looked online for some ideas but the ones I have seen are beyond my basic standard. Thanks guys!


Comments

  • Registered Users Posts: 647 ✭✭✭Freddio


    Have you had a look at oscommerce ?

    http://oscommerce.org/


  • Closed Accounts Posts: 417 ✭✭Tim M-U


    Hey guys,

    Does anyone know where I could find out how to add a really basic shopping cart to my website project? :confused: I have looked online for some ideas but the ones I have seen are beyond my basic standard. Thanks guys!

    Try
    oscommerance
    paypal intergration
    zencart
    these should be okay for your own website. your host may recommend a shopping cart and may offer a discount for you or something. I hope this helpz!


  • Registered Users Posts: 6,509 ✭✭✭daymobrew


    You could look at a PayPal cart or Google Checkout or FatFreeCart.


  • Registered Users Posts: 414 ✭✭billiejosie


    Thanks everyone, I'll have a look at them all now, fingers crossed!


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    I would go with Zencart ahead of OSCommerce. They're based on the same code, but Zen cart is more advanced. It has loads of pieces of functionality as standard that would need to be installed individually on OSCommerce. It also supports templates.

    Also remember that they are inherently insecure, and you can expect to have malicious PHP files appearing on your site very easily.

    Read up on the security tutorials and make sure everything is patched.


  • Advertisement
  • Registered Users Posts: 414 ✭✭billiejosie


    Its just for my college project so I literally just want the most basic one that will let me click a button and it will do the most basic functions ever! Thanks for all the advice :)


  • Registered Users Posts: 414 ✭✭billiejosie


    Thanks guys,

    I went with the FatFreeCart shopping cart as it seemed the most basic. I have the View Cart button working but I cant get my "Add to Cart" button working, could someone tell what is wrong with my code? I know its something basic. I have tried putting in php tags but that didnt work. Any expert advice greatly appreciated from a very lost girl! This is the code:

    <!-- ADD TO CART button code. -->
    <form action="https://www.e-junkie.com/ecom/fgb.php?c=cart&cl=1&ejc=2" target="ej_ejc" method="POST">
    <div align="center">
    <!-- site url -->
    <input type="hidden" name="site_url" value="http://localhost/digitaldemon/"/>
    <input type="hidden" name="artist" value="Backstreet Boys"/>
    <!-- item price -->
    <input type="hidden" name="price" value="5.99"/>
    <!-- initial quantity -->
    <input type="hidden" name="quantity" value="1"/>
    <input type="image" src="https://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" onClick="javascript:return EJEJC_lc(this.parentNode);">
    </div>
    </form>


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    Hi, looking at this page, it looks like you've removed a few necessary fields?

    <!-- item name -->
    <input type="hidden" name="item_name" value="Test Item"/>
    <!-- item number (should be different for each product)-->
    <input type="hidden" name="item_number" value="1"/>


Advertisement