*********************************************************************************************************************
Recently Viewed Products (sales optimized) for OSCOM CE Phoenix 1.0.7.2.+
*********************************************************************************************************************
        Version 5.1.4. Phoenix
        by @raiwa
        info@oscaddons.com
        www.oscaddons.com
*********************************************************************************************************************
Compatibility:
Phoenix 1.0.7.2.+
Tested with Phoenix 1.0.7.9
PHP: 7.0-7.3
*********************************************************************************************************************
If you are using an earlier Phoenix version, please use Recently_Viewed_v5.0.1 or Recently_Viewed_v5.0.2.
*********************************************************************************************************************

What does this contribution do?

    Recently Viewed Products(sales optimized) allows a visitor to see what products they have viewed and then easily order those products.

    Features include:

        An optional box in either side column with each product's image, name, and price, plus a button linked to a page of recently viewed products. The number of products shown and each of the elements can be controlled from the Box Module Configuration.
        An optional module in the header area with each product's image, name and price, plus a button linked to a page of recently viewed products. The number of products shown, the length of the name, and each of the elements can be controlled from the Content Module Configuration.
        An optional module at the bottom of the product page with each product's image, name, description, and price, plus a button linked to a page of recently viewed products. The number of products shown, the length of the description, and each of the elements can be controlled from the Content Module Configuration.
        An optional module at the bottom of the home page (index top) with each product's image, name, description, and price, plus a button linked to a page of recently viewed products. The number of products shown, the length of the description, and each of the elements can be controlled from the Content Module Configuration.
        An optional module at the bottom of the Categories page (index nested) with each product's image, name, description, and price, plus a button linked to a page of recently viewed products. The number of products shown, the length of the description, and each of the elements can be controlled from the Content Module Configuration.
        An optional module on the shopping cart page with a continue shopping button which links to the last visited page, plus a drop down menu a list of recently viewed products. The number of products shown can be controlled from the Content Module Configuration.
        An optional module on the shopping cart page with each product's image, name, description, and price, plus a button linked to a page of recently viewed products. The number of products shown, the length of the description, and each of the elements can be controlled from the Content Module Configuration.
        A page with each product's image, name, description, price, and a Buy Now button.

*********************************************************************************************************************
How does this contribution work?

    Every time a product is viewed, the product ID is stored in a session variable. This variable is queried and the information retrieved from the database for each product.
*********************************************************************************************************************
How do I install this contribution?

    Backup your site PHP files and database. Do this before you even read the rest of these instructions.
*********************************************************************************************************************

STEP 1 - Upload all new files from the "uploads" folder keeping the same structure.
         No existing file will be overwritten.

[catalog/]includes/languages/english/modules/boxes/bm_recently_viewed.php
[catalog/]includes/languages/english/modules/content/header/cm_header_recently_viewed.php
[catalog/]includes/languages/english/modules/content/index/cm_i_recently_viewed.php
[catalog/]includes/languages/english/modules/content/index_nested/cm_in_recently_viewed.php
[catalog/]includes/languages/english/modules/content/product_info/cm_pi_recently_viewed.php
[catalog/]includes/languages/english/modules/content/shopping_cart/cm_sc_continue_recently_viewed.php
[catalog/]includes/languages/english/modules/content/shopping_cart/cm_sc_recently_viewed.php
[catalog/]includes/languages/english/recently_viewed.php
[catalog/]includes/languages/espanol/modules/boxes/bm_recently_viewed.php
[catalog/]includes/languages/espanol/modules/content/header/cm_header_recently_viewed.php
[catalog/]includes/languages/espanol/modules/content/index/cm_i_recently_viewed.php
[catalog/]includes/languages/espanol/modules/content/index_nested/cm_in_recently_viewed.php
[catalog/]includes/languages/espanol/modules/content/product_info/cm_pi_recently_viewed.php
[catalog/]includes/languages/espanol/modules/content/shopping_cart/cm_sc_continue_recently_viewed.php
[catalog/]includes/languages/espanol/modules/content/shopping_cart/cm_sc_recently_viewed.php
[catalog/]includes/languages/espanol/recently_viewed.php
[catalog/]includes/languages/german/modules/boxes/bm_recently_viewed.php
[catalog/]includes/languages/german/modules/content/header/cm_header_recently_viewed.php
[catalog/]includes/languages/german/modules/content/index/cm_i_recently_viewed.php
[catalog/]includes/languages/german/modules/content/index_nested/cm_in_recently_viewed.php
[catalog/]includes/languages/german/modules/content/product_info/cm_pi_recently_viewed.php
[catalog/]includes/languages/german/modules/content/shopping_cart/cm_sc_continue_recently_viewed.php
[catalog/]includes/languages/german/modules/content/shopping_cart/cm_sc_recently_viewed.php
[catalog/]includes/languages/german/recently_viewed.php
[catalog/]includes/modules/boxes/templates/tpl_bm_recently_viewed.php
[catalog/]includes/modules/boxes/bm_recently_viewed.php
[catalog/]includes/modules/content/header/templates/tpl_cm_header_recently_viewed.php
[catalog/]includes/modules/content/header/cm_header_recently_viewed.php
[catalog/]includes/modules/content/index/templates/tpl_cm_i_recently_viewed.php
[catalog/]includes/modules/content/index/cm_i_recently_viewed.php
[catalog/]includes/modules/content/index_nested/templates/tpl_cm_in_recently_viewed.php
[catalog/]includes/modules/content/index_nested/cm_in_recently_viewed.php
[catalog/]includes/modules/content/product_info/templates/tpl_cm_pi_recently_viewed.php
[catalog/]includes/modules/content/product_info/cm_pi_recently_viewed.php
[catalog/]includes/modules/content/shopping_cart/templates/tpl_cm_sp_continue_recently_viewed.php
[catalog/]includes/modules/content/shopping_cart/cm_sc_continue_recently_viewed.php
[catalog/]includes/modules/content/shopping_cart/templates/tpl_cm_sc_recently_viewed.php
[catalog/]includes/modules/content/shopping_cart/cm_sc_recently_viewed.php
[catalog/]templates/default/includes/hooks/shop/siteWide/recentlyViewed.php
[catalog/]templates/default/pages/recently_viewed.php
[catalog/]recently_viewed.php


*********************************************************************************************************************
How to Use this Contribution
*********************************************************************************************************************

After uploading the files, point your browser in your Admin area to:
You need to install/use at least one of the following optional modules :-)

A.  Optional Module
    Admin > Modules > Boxes:
    Install Box Module: Recently Viewed
Shows the Recently Viewed box on the left or right column

B.  Optional Module
    Admin > Modules > Content:
    Install Content Module: Recently Viewed (index)
Shows the Recently Viewed module on the home page

C.  Optional Module
    Admin > Modules > Content:
    Install Content Module: Recently Viewed (index_nested)
Shows the Recently Viewed module on the category level

D.  Optional Module
    Admin > Modules > Content:
    Install Content Module: Recently Viewed (product_info)
Shows the Recently Viewed module on the product page

E.  Optional Module
    Admin > Modules > Content:
    Install Content Module: Continue shopping & Recently menu (shopping_cart)
Shows the Continue shopping button & Recently viewed drop down menu on the shopping cart page
OR
F.  Optional Module
    Admin > Modules > Content:
    Install Content Module: Recently Viewed (shopping_cart)
Shows the Recently Viewed module on the shopping cart page

G.  Optional Module
    Admin > Modules > Content:
    Install Content Module: Recently Viewed (header)
Shows the Recently Viewed module in the header area

*********************************************************************************************************************
  Support

    If you still have questions after reading these instructions, go to the Recently Viewed Products(sales optimized) forum and search first. If you still can't find an answer, ask.

    http://forums.oscommerce.com/topic/282340-contribution-recently-viewed-productssales-optimized/
    Note: I will only support this version for CE Bootstrap and CE Phoenix, @raiwa

    The original author's contribution button has been left here as a courtesy.

Credits and History

    This contribution contains code derived from many contributions including - recently viewed, new products, sitemap & wishlist (the html code for this page).

        1.0 Original version by b00
        2.0 Updates and additional features by Kymation

