Zen Cart Logo
Forums / All Other Contributions/Addons / Define Page Anywhere

Define Page Anywhere

Views: 1,302

Results 1 to 2 of 2
1 Jan 2022, 2:44 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Define Page Anywhere

Zen Cart Define Page Anywhere is a new plugin that allows you to show define page content on any page in your cart, including on the product info page under various conditions.

  • Add define pages for any page you wish, by creating a file in the folder
    includes/languages/english/html_includes

using the naming convention define_NAME-OF-PAGE.php

For example:
define_checkout_shipping.php
define_checkout_payment.php
define_checkout_confirmation.php
define_advanced_search_result.php
define_unsubscribe.php
define_account.php
define_account_newsletters.php
define_account_edit.php
define_address_book.php

Note: Follow the same pattern for any custom pages you have created that
don't have their own define pages.

  • Add define pages for specific categories and any subcategories they contain: If someone is on your site viewing a listing page like
    index.php?main_page=index&cPath=3_12_27

then the following define pages will be displayed if they exist:

define_category_3.php
define_category_12.php
define_category_27.php

  • Add define pages for the product_info page based on any variable
    retrieved in the product_info query, such as manufacturers_id or
    products_quantity. See the commented out examples in define_page_anywhere.php.

Download here: https://www.zen-cart.com/downloads.php?do=file&id=2333

4 Jan 2022, 9:17 PM
#2
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Define Page Anywhere

THIS will hopefully be an amazing add-on. Downloading and preparing to test.