Quick Mods (v. 2.62 - 2.84e)
Some features can only be accessed through the coding:
-
Alt Tags: Open the openinfo.php page in the /enc/ folder, and change the line:
$use_alt_kw = "no";
to:
$use_alt_kw = "yes";
if you want the system to use keywords in the alt tags.
-
Member/Wholesale Only Prices: You can now set the system to show prices only to members (who use a member code) or wholesalers with proper login details. Open the openinfo.php page in the /enc/ folder, and change the line:
$membersonly_showprices = "no";
to:
$membersonly_showprices = "yes";
if you want to show prices only to logged in members or wholesalers.
-
Permanent Redirect: If you are using static pages, you can force the system to redirect back to the static page if a customer views the direct page. (ie. If a customer goes to yoursite.com/catalog.php?category=3 it will automatically direct them back to yoursite.com/category_3/candles.htm, etc.). Open the openinfo.php page in the /enc/ folder, and change the line:
$permanent_dynamic = "no";
to:
$permanent_dynamic = "yes";
to permanently redirect pages. These pages are redirected with a 301 header as well.
-
Get Image Size Toggle: If pages load very slowly, and the image pop ups do not come up quickly or at the right size, you might want to try disabling the get image size function. Open the openinfo.php page in the /enc/ folder, and change the line:
$use_getimg_size = "yes";
to:
$use_getimg_size = "no";
Which will keep that image size function from showing.
-
Max Upload Size: Open the open.php page in the /includes/ folder inside the /storeadmin/ folder and change the 200 in the line:
$MaxUploadKBytes = 200;
to a higher number if you want the uploaders to max out at a value over 200 KB. You can change that to any number of kilobytes as desired. Just include the number; do not include 'kb'.
-
Inventory Close Out: The site can give an error price if the customer tries to order more stock than is available. To set this up, open the order.php page in the /go/ folder and change the line:
$inv_inc_amt = "";
to:
$inv_inc_amt = 0;
if you want the cart to set a price of zero if the customer tries to order more than is in stock. If you would instead like to show a high number, you can change this to:
$inv_inc_amt = 999;
using whatever price value you want in place of 999. To completely disable this function, change this back to the default:
$inv_inc_amt = "";
-
Easy Product Layouts: All the product layout variables are contained in one common page, products_variables.php (in the /enc/ folder). To change any of the text (ie. the 'Price' label or the 'Out of Stock' notice, etc.) in the layouts, open this page and change the appropriate variable under the // DEFINE LABELS section at the top of the page.
ADVANCED: The products_single.php, products_detail.php, products_multiple.php and products_multisingle.php pages also use the variables page to create different parts of the layout. More details will be coming later; in the meantime, you can play with the coding in these pages to rearrange different elements and create the look you want. Try mixing and matching the different pieces - for instance, in the products_multiple.php page, the code:
if (!empty($display_imglink1))
echo $display_imglink1;shows the first thumbnail image of a product and links it to the detail page, while in the products_single.php page, the code:
if (!empty($display_smimage1))
echo $display_smimage1;shows the same thumbnail image but clicking it opens a pop up instead of taking you to the detail page. Try swapping the lines if you want different functionality in your files.
-
Instant Inventory Control: An optional inventory checker temporarily removes inventory as a customer orders it. This greatly decreases the chance of overordering. It will not completely eliminate oversells, but can be used to more efficiently limit one of a kind items. Please note that using this system will mean that the inventory counts are temporarily decremented as soon as a customer adds an item to the cart, keeping another customer from ordering that item. Therefore, decreased sales should be expected when using this modification.
To use the instant inventory control system, rename the file 'tempinv_file.php' in the /go/ folder to 'tempinv.php'.
You may also update the following variables in the tempinv.php page:
$delete_minutes = 60;
$self_minutes = 5;
The 'delete_minutes' variable shows how long items other users have added to their carts will remain temporarily out of stock before it is released. The 'self_minutes' variable shows how long an item that the customer added to the cart will remain temporarily out of stock until it is released. -
Alternate Pages: Site administrators can redirect a page to another page on their site. Simply enter the URL - without any other text - in the 'Content' field, and the system will point to that page in the navigation.
IMPORTANT! Never redirect a page back to a page within the system if that page also has a redirect, as this can cause indefinite looping. For instance, do not redirect the /pages/aboutus.php page to http://yoursite/pages/about_us.php if you also redirect /pages/about_us.php to http://yoursite/pages/aboutus.php, as that will continue to loop without resolving.
-
Move Config File: If you want to keep the config details (passwords, etc.) out of the main public folders, allowing for quick updates in the future, you may do so by moving the entire /sbconf/ folder (and files) to the root directory, outside the /public_html/ folder. Then open the stconfig.php page and change the line:
require_once("sbconf/config.php");
to use the direct path, as in:
require_once("/home/username/sbconf/config.php");
Also change the config.php reference in the setup.php page, if you have not already set up the system.
This update is very handy for web hosts who would like to store config details outside the client's site for control purposes. Web hosts who have server control can move the file to a higher level in the server, and can change the folder or config page accordingly. For instance, you may want to create a master /config/ folder in the home of the server, then set up a config file for each user (ie. /home/config/user1.php, /home/config/user2.php, /home/config/user3.php, etc.). This is optional, and used mostly for larger resellers, so if you aren't familiar with file structures or don't want to make file changes, you do not have to use this mod.