Amp_Cart::get_cart_id()

Summary

Get the cart ID from the cookie


Return

(string)


Source

File: src/BigCommerce/Amp/Amp_Cart.php

	public function get_cart_id() {
		if ( get_option( Settings\Sections\Cart::OPTION_ENABLE_CART, true ) ) {
			return filter_input( INPUT_COOKIE, Cart::CART_COOKIE, FILTER_SANITIZE_STRING ) ?: false;
		} else {
			return false;
		}
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.