Feature: add an item to the shopping cart of every visitor so they can checkout immediately.
Actually a shopping cart can belongs to anonymous, linked by session ID
Commerce kickstart had already demonstrate such behaviour.
But the problem is,
<?php
commerce_order_new(0);
?>
All you need is :
<?php
commerce_cart_order_session_save($order->order_id);
?>
Attachment | Size |
---|---|
download.png | 11.64 KB |