Product::purchase_url()

Summary

No summary available.

Source

File: src/BigCommerce/Post_Types/Product/Product.php

	public function purchase_url() {
		if ( get_option( Cart::OPTION_ENABLE_CART, true ) ) {
			return home_url( sprintf( 'bigcommerce/cart/%d', $this->post_id ) );
		}

		return home_url( sprintf( 'bigcommerce/buy/%d', $this->post_id ) );
	}

User Contributed Notes

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