| 1 |
<?php |
| 2 |
/** |
| 3 |
* Abstract funnel |
| 4 |
* |
| 5 |
* @package |
| 6 |
*/ |
| 7 |
namespace WPFunnels\Admin\FunnelType; |
| 8 |
|
| 9 |
abstract class Wpfnl_Funnel_Type |
| 10 |
{ |
| 11 |
|
| 12 |
/** |
| 13 |
* Fetch product/course when search product/course in canvas for checkout/upsell/downsell |
| 14 |
*/ |
| 15 |
abstract public function retrieve_item( $term ); |
| 16 |
|
| 17 |
/** |
| 18 |
* Fetch product/course when search product/course in canvas for orderbump |
| 19 |
*/ |
| 20 |
abstract public function retrieve_ob_item( $term ); |
| 21 |
|
| 22 |
|
| 23 |
/** |
| 24 |
* Save checkout item to post meta |
| 25 |
* |
| 26 |
* @param Array $payload |
| 27 |
* @param String $product_id |
| 28 |
* @param Array $saved_products |
| 29 |
* |
| 30 |
* @since 2.4.6 |
| 31 |
*/ |
| 32 |
abstract public function save_items( $payload, $product_id, $saved_products ); |
| 33 |
|
| 34 |
|
| 35 |
/** |
| 36 |
* Get items for checkout step |
| 37 |
* |
| 38 |
* @param String $step_id |
| 39 |
* |
| 40 |
* @return Array |
| 41 |
* @since 2.4.6 |
| 42 |
*/ |
| 43 |
abstract public function get_items( $step_id ); |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
} |