X-Cart Mods

X-Cart XTestimonials v4.7.x

1 Upload the files from /upload to your store root.


2 In Admin > Tools > Patch/Upgrade, apply the SQL patch - patch_install_v4.7.x.sql.


3 In /skin/common_files/common_files.tpl ...

BEFORE...

{else}

INSERT...

{elseif $main eq 'xtestimonials_admin'}
{include file='admin/main/xtestimonials.tpl'}

{elseif $main eq 'xtestimonials'}
{include file='modules/XTestimonials/testimonials.tpl'}

{elseif $main eq 'xtestimonial_add'}
{include file='modules/XTestimonials/testimonial_add.tpl'}


4 In /skin/common_files/customer/service_head.tpl ...

BEFORE...

{load_defer_code type="css"}

INSERT...

{if $active_modules.XTestimonials}
  {include file="modules/XTestimonials/service_head.tpl"}
{/if}


5 In /skin/common_files/single/menu_box.tpl and if using X-Cart Platinum, /skin/common_files/admin/menu_box.tpl ...

AFTER...

{if $active_modules.Testimonials ne ""}
<a href="{$catalogs.admin}/testimonials.php">{$lng.lbl_testimonials}</a><br />
{/if}

INSERT...

{if $active_modules.XTestimonials ne ""}
<a href="{$catalogs.admin}/xtestimonials.php">{$lng.lbl_xtestimonials_manager}</a>
{/if}


6 In /postauth.php ...

BEFORE...

?>

INSERT...

if (!empty($active_modules['XTestimonials']) && $config['XTestimonials']['xtestimonials_sidebar'] == "Y") {
    include $xcart_dir . '/testimonials_get.php';
}


7 In your sidebar template eg. /skin/common_files/customer/left_bar.tpl or /skin/light_responsive/customer/left_bar.tpl etc...

INSERT...

{if $active_modules.XTestimonials && $main ne "xtestimonials" && $rtestimonials && $config.XTestimonials.xtestimonials_sidebar eq "Y"}
  {include file="modules/XTestimonials/testimonials_menu.tpl"}
{/if}


8 In Admin > Tools > Maintenance, clear the template cache.


DONE !

You'll see a new link in the admin header 'Content' dropdown menu, which takes you to the testimonials manager. You can access the module settings from there.

The testimonials page resides at /testimonials.php

Customers add testimonials at /testimonial_add.php

© 2021 xcartmods.co.uk