code/extensions/FoxyStripeSiteConfig.php 1 location
|
@@ 58-66 (lines=9) @@
|
| 55 |
|
)); |
| 56 |
|
|
| 57 |
|
// configuration warning |
| 58 |
|
if(FoxyCart::store_name_warning()!==null){ |
| 59 |
|
$fields->insertBefore(LiteralField::create( |
| 60 |
|
"StoreSubDomainHeaderWarning", |
| 61 |
|
_t( |
| 62 |
|
'FoxyStripeSiteConfig.StoreSubDomainHeadingWarning', |
| 63 |
|
"<p class=\"message error\">Store sub-domain must be entered in the <a href=\"/admin/settings/\">site settings</a></p>" |
| 64 |
|
) |
| 65 |
|
), 'StoreDetails'); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
// products tab |
| 69 |
|
$fields->addFieldsToTab('Root.FoxyStripe.Products', array( |
code/pages/ProductPage.php 1 location
|
@@ 217-222 (lines=6) @@
|
| 214 |
|
$prodOptField |
| 215 |
|
)); |
| 216 |
|
|
| 217 |
|
if (FoxyCart::store_name_warning() !== null) { |
| 218 |
|
$fields->addFieldToTab('Root.Main', LiteralField::create("StoreSubDomainHeaderWarning", _t( |
| 219 |
|
'ProductPage.StoreSubDomainHeaderWarning', |
| 220 |
|
"<p class=\"message error\">Store sub-domain must be entered in the <a href=\"/admin/settings/\">site settings</a></p>" |
| 221 |
|
)), 'Title'); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
// allows CMS fields to be extended |
| 225 |
|
$this->extend('updateCMSFields', $fields); |