PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Services/ShortCodeParser/Parsers/SettingsParser.php +33 -9 1.3.26 → 1.6.5 View file →
@@ -17,17 +17,21 @@
17 17 parent::__construct($data);
18 18 }
19 19
20 20 protected array $methodMap = [
21 - 'store_logo' => 'getStoreLogo',
22 - 'store_brand' => 'getStoreBrandHtml',
23 - 'store_name' => 'getStoreName',
24 - 'store_address' => 'getStoreAddress',
25 - 'store_address2' => 'getStoreAddressLine2',
26 - 'store_country' => 'getStoreCountry',
27 - 'store_state' => 'getStoreState',
28 - 'store_city' => 'getStoreCity',
29 - 'store_postcode' => 'getStorePostcode',
21 + 'store_logo' => 'getStoreLogo',
22 + 'store_brand' => 'getStoreBrandHtml',
23 + 'store_name' => 'getStoreName',
24 + 'store_address' => 'getStoreAddress',
25 + 'store_address2' => 'getStoreAddressLine2',
26 + 'store_country' => 'getStoreCountry',
27 + 'store_state' => 'getStoreState',
28 + 'store_city' => 'getStoreCity',
29 + 'store_postcode' => 'getStorePostcode',
30 + 'company_name' => 'getCompanyName',
31 + 'legal_registration_id' => 'getLegalRegistrationId',
32 + 'seller_vat_id' => 'getSellerVatId',
33 + 'seller_tax_id' => 'getSellerTaxId',
30 34 ];
31 35
32 36 public function parse($accessor = null, $code = null): ?string
33 37 {
@@ -96,6 +100,26 @@
96 100
97 101 public function getStorePostcode()
98 102 {
99 103 return $this->storeSettings->get('store_postcode');
104 + }
105 +
106 + public function getCompanyName(): ?string
107 + {
108 + return $this->storeSettings->get('company_name');
109 + }
110 +
111 + public function getLegalRegistrationId(): ?string
112 + {
113 + return $this->storeSettings->get('legal_registration_id');
114 + }
115 +
116 + public function getSellerVatId(): ?string
117 + {
118 + return $this->storeSettings->get('seller_vat_id');
119 + }
120 +
121 + public function getSellerTaxId(): ?string
122 + {
123 + return $this->storeSettings->get('seller_tax_id');
100 124 }
101 125 }