Are you ready for some Football.
Step 1
includes/ extra_datafiles/1. >
- create a php. file called:
- popup_monogram_style.php
- Now inside this file copy and paste:
-
<?php
// About Us Filename Define
define('FILENAME_POPUP_MONOGRAM_STYLE', 'popup_monogram_style');
?>
> includes/ languages/ english/ your_own_template/1. >
2. create a .php file called
>
3. popup_monogram_style.php
>
4. Now inside this file copy and paste:
>
5. ```html
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: popup_monogram_style.php 1969 2005-09-13 06:57:21Z drbyte $
//
define('HEADING_MONOGRAM_STYLE', 'MONOGRAM STYLES');
define('TEXT_MONOGRAM_STYLE1', '<strong>Please Take The Time To Accurately Determine Bracelet Size:</strong><br /> All our bracelets are measured from end to end including the clasp.<br /> If you follow our guidelines you will receive a nice fitting bracelet with a little bit of movement and room.<br /><br />
<strong>Measuring Your Wrist:</strong><br />
To determine the bracelet size you need, measure wrist with a soft flexible measuring tape and add 1/2" depending on the desired dangle length.<br /> If you do not have a measuring tape you can use a ribbon or piece of string.<br /> Mark the length then measure with a ruler.<br /><br />
<strong>Please Note:</strong><br /> Depending on the beads used in making your bracelet - your bracelet may vary from the size you specified by up to approximately 1/8".<br /> We make all bracelets "as close as possible" to the size you order.');
define('TEXT_MONOGRAM_STYLE2', '<br />');
define('TEXT_CLOSE_MONOGRAM_STYLE_WINDOW', 'Close Window [x]');
?>
- This will be the file you will edit for a customer to view the popup:smile:Step 3
includes/ templates/ your_custom_template/1. >
- create a new folder called:
- popup_monogram_style
- Inside this folder, create a .php file called:
- tpl_main_page.php
- now inside this file paste and copy
-
<?php
/**
* tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*
@version $Id: tpl_main_page.php 2870 2006-01-21 21:36:02Z birdbrain $
*/
?>
<body id="popupMONOGRAM_STYLE">
<h1><?php echo HEADING_MONOGRAM_STYLE ?></h1>
<div id="braceletSize"><?php echo TEXT_MONOGRAM_STYLE1 ?></div>
<div><?php echo TEXT_MONOGRAM_STYLE2 ?></div>
<div><?php echo '<a href="javascript:window.close()">' . TEXT_CLOSE_MONOGRAM_STYLE_WINDOW . '</a>'; ?></div>
</body>
```Step 4
> includes/ templates/ your_custom_template/ templates/ tpl_modules_attributes.php1. >
2. You are going to edit this puppy.
>
3. Find this:
>
4. ```html
<h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3>
<?php
}
```
>
5. Right blow this Add the following:
>
6. if (preg_match("/
monogram style/i", $options_name[$i]))
> {
> $guideLink = '<a href="javascript:popupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_MONOGRAM_STYLE) . '\')">(<u>
Guidelines</u>)</a>';
> }
> else if (preg_match("/
engraving typestyle/i", $options_name[$i]))
> {
> $guideLink = '<a href="javascript:popupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_ ENGRAVING_TYPESTYLE) . '\')">(<u>
Guidelines</u>)</a>';
>
> }
> else if (preg_match("/
embroidery typestyle/i", $options_name[$i]))
> {
> $guideLink = '<a href="javascript:popupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_ EMBROIDERY_TYPESTYLE) . '\')">(<u>
Guidelines</u>)</a>';
>
> }
> else
> $guideLink = null;
> ?>
>
7. The
lime green font above will change to your subcategory name.
>
8. I did not have a url to your web site to view so I just put up wording
>
9. That freekin smile face, must be the code to enter needs to be changed:
>
10. delete the :p with : p No space between the colon & p Of all times it happens
>
11. The
red font above is the Wording you need to change beside the Option Name to whatever you like. The link to view the popup when clicked on..
>
12. I edited all the proper files for the first preg_match to work
>
13. Your will half to clone the rest for all of the popups you want
>
14. Notice I used 3 preg_match above
>
15. You will half to add on if you want more, As it looks by the option names you send back to me..