Celestino Posted June 20, 2020 Share Hello, I want to create a new page to prepare Christmas with some specific information. For example, I want to use the favorites and includes a checbox to specifiy if the product must be inserted in the new page. Is it possible ? Thank you for your help. Quote Link to post
Patrick Posted June 21, 2020 Share Hello @Celestino, I suppose you some skills in PHP. You can take this approach but I recommend to include an indicator in the listing of the page After, you must create follow this process. includes/Custome/Sitres/Sho/Pages/myDirectory to put the files Inside the Custom directory, you will have a a readme to help you how to proceed and I think there is a tutorial or a blog on that. 1 Quote Link to post
Celestino Posted June 21, 2020 Author Share If I understand the readme, I must reporduce the Sites/Shop/Page Directory inside the custom ? Quote Link to post
Drack Posted June 21, 2020 Share Yes, exactly, but you can use the same directory. For example, you make a new page in Account, you must create in Custom another directory as AccountNew for example. You can not use the same Directory that you have in Shop. 1 Quote Link to post
Celestino Posted June 25, 2020 Author Share Hello, Could you tell me if it's correct before to continue? Custom Sites Shop Pages MyNewPageDirectory Action MyNewPageDirectory.php Quote Link to post
Drack Posted June 26, 2020 Share Hello, Yes, it's correct, but you forgot to includes template directories and the main.php main.php There is a complete tutorial about that. Look the forum. ?php /** * * @copyright 2008 - https://www.clicshopping.org * @Brand : ClicShopping(Tm) at Inpi all right Reserved * @Licence GPL 2 & MIT * @licence MIT - Portion of osCommerce 2.4 * @Info : https://www.clicshopping.org/forum/trademark/ * */ use ClicShopping\OM\CLICSHOPPING; use ClicShopping\OM\Registry; $CLICSHOPPING_Breadcrumb = Registry::get('Breadcrumb'); $CLICSHOPPING_Template = Registry::get('Template'); $CLICSHOPPING_Language = Registry::get('Language'); $CLICSHOPPING_Language->loadDefinitions('best_products'); // templates $CLICSHOPPING_Breadcrumb->add(CLICSHOPPING::getDef('navbar_title'), CLICSHOPPING::link(null, 'BestProducts&Best')); //navBar require_once($CLICSHOPPING_Template->getTemplateHeaderFooter('header')); require_once($CLICSHOPPING_Template->getTemplateFiles('best_products')); // files directory in template require_once($CLICSHOPPING_Template->getTemplateHeaderFooter('footer')); Quote Link to post
Celestino Posted June 27, 2020 Author Share Hello, ok, Thank you @Drack If I understand, I must vreate the files in sources/files and sources/modules/mymodules also ? Quote Link to post
Celestino Posted June 28, 2020 Author Share After little time, not so little for the first time , I had a success; Thank your for your help Quote Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.