# usc-e-shop/1.3.9/functions/shortcode.php

Welcart e-Commerce, version 1.3.9. 17 lines.

- Page: https://pluginprobe.com/plugins/usc-e-shop/1.3.9/code/functions/shortcode.php
- Raw: https://pluginprobe.com/plugins/usc-e-shop/1.3.9/raw/functions/shortcode.php
- Modified: 2013-03-02T00:56:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/usc-e-shop/1.3.9/code/functions/shortcode.php#L10-L20`.

```php
<?php
function sc_direct_intoCart($atts) {
	global $usces;
	extract(shortcode_atts(array(
		'item' => '',
		'sku' => '',
		'value' => NULL,
		'options' => NULL,
	), $atts));

	if( WCUtils::is_blank($item) || WCUtils::is_blank($sku) ) return '';
	
	$post_id = $usces->get_ID_byItemName($item);
	
	return usces_direct_intoCart($post_id, $sku, true, $value, $options, 'return');
}
?>
```
