Home > wp-oscommerce-plugin

wp-oscommerce-plugin

Wp-oscommerce-plugin is a project mainly written in PHP, it's free.

A drop-in for Wordpress which allows access to the shopping cart of OS Commerce when WP is installed in a sub-folder of OS Commerce.

At the moment this isn't a widget or plugin, you just include it it like this:

<?php $GLOBALS['OSC_CART_RETRIEVER_HOST'] = '127.0.0.1'; $GLOBALS['OSC_CART_RETRIEVER_USER'] = 'root'; $GLOBALS['OSC_CART_RETRIEVER_PASS'] = ''; $GLOBALS['OSC_CART_RETRIEVER_DB'] = 'osc-wp-test';

require_once('../osc_cart_retriever.php');

$r = new OscCartRetriever(); $cart = $r->retrieve(); ?>

Cart

<?php if(isset($cart)) { ?>

    items as $cartItem) { echo '
  • url.'">'.$cartItem->quantity.' x '.$cartItem->name.'
  • '; } ?>

Total: total; ?>

Weight: weight; ?>

<?php } else { ?>

No cart

<?php } ?>