copy content module and show it on the contact us or other pages

Ask the community for help and support.
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: copy content module and show it on the contact us or other pages

Post by raiwa »

Follow all instructions of my first message in this thread.
You are missing:
raiwa wrote: Sun Oct 24, 2021 4:39 pm
I suppose you made a copy and renamed these files and containing folder:


to something like:
includes\languages\english\modules\content\contact_us\cm_cu_recently_viewed.php
includes\modules\content\contact_us\templates\tpl_cm_cu_recently_viewed.php
includes\modules\content\contact_us\cm_cu_recently_viewed.php

………..

Then make a copy of:
templates\default\includes\pages\contact_us.php
to:
templates\override\includes\pages\contact_us.php
and add the content module call where you wish to show the recently viewed content module:

Code: Select all

  <div class="row">
    <?php echo $oscTemplate->getContent('contact_us'); ?>
  </div>
where "contact_us" must match the name of the folder containing the new content module.
Where it says “contact_us” it would be for you”password_forgotten”
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Post Reply