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 |
|
return $fields; |
| 225 |
|
} |
code/extensions/FoxyStripeSiteConfig.php 1 location
|
@@ 125-133 (lines=9) @@
|
| 122 |
|
]); |
| 123 |
|
|
| 124 |
|
// configuration warning |
| 125 |
|
if(FoxyCart::store_name_warning()!==null){ |
| 126 |
|
$fields->insertBefore(LiteralField::create( |
| 127 |
|
"StoreSubDomainHeaderWarning", |
| 128 |
|
_t( |
| 129 |
|
'FoxyStripeSiteConfig.StoreSubDomainHeadingWarning', |
| 130 |
|
"<p class=\"message error\">Store sub-domain must be entered in the <a href=\"/admin/settings/\">site settings</a></p>" |
| 131 |
|
) |
| 132 |
|
), 'StoreDetails'); |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
// products tab |
| 136 |
|
$fields->addFieldsToTab('Root.FoxyStripe.Products', array( |