skchow Posted June 24, 2010 Posted June 24, 2010 I've been developing a module for my own sites that I hope will be of use to some of you. The module I've been developing creates a RESTful interface using json allowing for the manipulation of shopping cart contents via javascript. My own site stores product pages outside of oscommerce and this module was designed for me to add products to the shopping cart using javascript. However, I suspect that this interface will also be useful for users looking to integrate a different CMS with OSCommerce. The module has been uploaded to: http://addons.oscommerce.com/info/7459 A further description of this module can be found on the link above. I look forward to hearing your thoughts and/or suggestions. Quote
skchow Posted September 1, 2010 Author Posted September 1, 2010 (edited) Just a quick update. The plugin should now support out of the box installations with a few tweaks as listed in the README. When items are added to cart, they are added to the cart via Ajax. A javascript dialog box pops up confirming the user's action. The user then has the option of then checking out, going to the shopping cart, or returning to the current product page. A demo for this functionality can be seen at www.sunnychow.com/osc2.2/ Edited September 2, 2010 by Jan Zonjee Quote
pctekcomponents Posted September 5, 2010 Posted September 5, 2010 Hi, Is there any way to get this to work behind an SSL certificate. The http calls to googleapis.com are causing unsecured data alerts. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js" type="text/javascript"></script> <script type="text/javascript" src="<?=DIR_WS_INCLUDES?>/osc_cart.js"></script> <script type="text/javascript"> iCart = new osc_cart('<?=DIR_WS_HTTP_CATALOG?>'); jQuery(iCart.osc_init); </script> Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.