Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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.

  • 2 months later...
Posted (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 by Jan Zonjee
Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...