Jake Vanderwerf
10 hours ago 88d9e0e2b7997eb0c96dc737082c91b4e3f7ca6e
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;
    }
}