Jake Vanderwerf
6 days ago a9b3b28d001941921aa70d37fdc87c758a163a44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
 
if (!defined('ABSPATH')) {
    exit;
}
trait checkoutPageURLTemplateTrait {
    /**
     * @var string A URL template (RFC 6570) for a checkout page for an offer. This approach allows merchants to specify a URL for online checkout of the offered product, by interpolating parameters such as the logged in user ID, product ID, quantity, discount code etc. Parameter naming and standardization are not specified here.
     * Example: https://www.example.com/checkout?items={VARIANT_ID_1}:{Quantity_1},{VARIANT_ID_2}:{Quantity_2}&discount={DISCOUNT_CODE}&store_id={pickup_store_id}
     */
    protected string $checkoutPageURLTemplate;
 
    public function getCheckoutPageURLTemplate():?string
    {
        return $this->checkoutPageURLTemplate??null;
    }
    public function setCheckoutPageURLTemplate(string $checkoutPageURLTemplate):void
    {
        $this->checkoutPageURLTemplate = $checkoutPageURLTemplate;
    }
}