Class sales
Class that represents shortcuts around the sale of BluePrint-Q's services and
themes.
Namespace: bpq
Located at services/bpq.service.market.php
Methods summary
public static
string
|
#
edition_name( string $edition = null )
Gets the name of the edition.
Gets the name of the edition.
Parameters
- $edition
string $edition The constant that describes the edition desired; if not provided,
queries BPQ_EDITION
Returns
string The edition name
|
public static
boolean
|
#
is_product_in_cart( integer $product_id )
Determines if the given product is already in the cart.
Determines if the given product is already in the cart.
Parameters
- $product_id
integer $product_id The ID of the product to be tested
Returns
boolean 'True' if the product is in the cart; otherwise, false
|
public static
integer
|
#
price( string $edition = null )
Retrieves the price for a specific edition.
Retrieves the price for a specific edition.
Parameters
- $edition
string $edition The constant that describes the edition desired; if not provided,
queries BPQ_EDITION
Returns
integer The price
|
public static
integer
|
#
product_id( string $edition = null )
Retrieves the ID of the desired product.
Retrieves the ID of the desired product.
Parameters
- $edition
string $edition The constant that describes the edition desired; if not provided,
queries BPQ_EDITION
Returns
integer The ID as defined with WC in the WP database
|
public static
string
|
#
url_buy( string $edition = null )
Retrieves the public address that places the given edition in the current
visitor's cart and checks them out through PayPal.
Retrieves the public address that places the given edition in the current
visitor's cart and checks them out through PayPal.
Parameters
- $edition
string $edition The constant that describes the edition desired; if not provided,
queries BPQ_EDITION
Returns
string The URL
|
public static
|
#
url_cart( )
Retrieves the public address to the BluePrint-Q Cart page.
Retrieves the public address to the BluePrint-Q Cart page.
|
public static
string
|
#
url_checkout( )
Retrieves the public address to the BluePrint-Q Checkout page.
Retrieves the public address to the BluePrint-Q Checkout page.
Returns
string The URL
|
Magic methods summary