Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 11/16/17 in all areas

  1. Quick video about the process installation of ClicShopping :
    18 points
  2. Hello, Just a little notification to ell you the v3.2145 has been pushed. A phpmailer library security has been reported on the phpmailer github website and ClicShopping has been hupdated Other libraries have been updated also Paypal has been removed and changed by Stripe Some other little fix has been updated. Thank you to the administrator for this work.
    16 points
  3. The cart page is a very important element for an e-commerce site. This is when the customer will decide to place an order, see how much his order will cost him, modify his basket and reassure himself that the order has been delivered correctly. The shopping cart page is the first step in the order tunnel, and yet it is often not very worked on, or even poorly constructed. Here is some information on common practices regarding cart pages on e-commerce sites. Below some important feature to make or to implement inside your cart. Of course, some element can be added or updated. Now, if you have an e-commerce website, select what is the best for you and your customer. Do not allow to save the basket This functionality is still too little implemented in e-commerce sites. It has two major advantages: Save the customer's basket so that he can find it one click Get the customer's email (!!!) Just for the 2nd point it is worth it to put this technique in place. Here are some ideas insert a function with a clearly identifiable icon, of the "floppy" or "backup" type which will simply save the basket and send it by email. Insert an email record field Redirect the client to the online registration form Do not indicate that you deliver in the customer country, local or international If your customers are international you can indicate: that you deliver well the country where the user is located that you send your products internationally That you send your products only locally It is also a good practice to set up even if you only deliver to Canada for example: note: add a small line below the products: delivery in Canada for XXX $ CAD. It is always reassuring to identify where the user is and to see that the site is "active" to organize a delivery with the best service. The goal is always the same: to remove the many doubts that may arise in the mind of the user on the shopping cart page. Download the module or a Hook: - https://www.clicshopping.org/forum/files/file/186-modules-info-shipping-shopping-cart/ - https://www.clicshopping.org/forum/files/file/2-hooks-additional-checkout-info-free-shipping/ Group action buttons This bad practice is still fairly widespread on e-commerce sites, but fortunately in sharp decline. If your user spends time filling his basket and he “loses” it because he did not click on the right action button it is really an element that can stop a sale. The frustration in leaving the baskets is greatly underestimated. Especially since it is extremely simple to space your action buttons and improve your e-commerce ergonomics If you do not see the interest and the quantity of bad clicks which can be done on an e-commerce site because of grouping of button then imagine the following cases: touch interface, touchpad of laptop, ineffective mouse, etc ... The involuntary occasions of not clicking in the right place are very important ! Do not add Rating Reviews Adding the average of the comments next to the product makes it possible to comfort the customer in their purchase decision. It is important in this context to be able to allow the customer to leave a comment at the end of his purchase. It is an easy approach to implement and can help in the results. In correspondence emails and in particular when the product is delivered, o ask the customer to insert a comment concerning the product which he bought. In summary, you must involve the customer, because, it will serve in the consumer's decision to buy or not Do not add special information Indicate to the customer how much he earns from the promotion, may encourage him to order more products Indicate information concerning obtaining free shipping costs Indicate the value that the customer will gain by choosing this promotion Place an indicator concerning the percentage of the discount that the client has obtained. These indicators are not neutral because it can encourage the customer to order more to get a better discount or to get free shipping. This approach is not always used in e-commerce sites but how useful Download: Hooks : https://www.clicshopping.org/forum/files/file/3-hooks-additional-checkout-save-money/ Ask confirmation to delete a product The "classic of the classic". Many e-merchants are based on pre-pacified e-commerce solutions (CMS e-commerce) of Magento or Prestashop type, result the basic technical part is often mixed with a basic design without added value function. Most of the time these solutions have not gone very far in analyzing customer behavior and therefore offer poorly designed models. On most basket pages it is possible to delete a product line relatively easily: It’s a bit of a shame to offer this function directly without asking the customer for confirmation. Putting a doubt in his action can be useful, but not doing it, leaves the door open for the client to make a mistake It's silly but there are not a lot of sites that offer a different orientation or designers who have pushed a more important reflection, in case of error the customer must find the product himself to add it to his basket. Pity … Isolate customers in the basket Isolate the customer in the order process. To help the customer transform their order into a deed of purchase, it is preferable to avoid it being disturbed by other information, which could harm their decision or come to change their decision. Often in many e-commerce sites, it is difficult to configure the display of information or not. Here are some use cases that can be put into practice Delete site header Remove bottom of site Delete the information in the left and right columns Several approaches can be realized, you have to make the necessary tests to find the right compromise. I choose Amazon, but Cdiscount for example does the same. As soon as you are in the order process, it is difficult to back down. Conclusion Improving your cart page is not very complicated from the moment you stand on the consumer's side. You can thus define several customer cases and test the purchasing process. After it is "enough" to remove all blocking points 🙂 Easier said than done, but improving your site is one of the pleasures of all e-merchants. And what have you put in place to improve your basket? Note: I have not talked too much about displaying shipping costs or payment, but implementing it can be interesting. However, please be careful not to overload the page, the client can get lost too!
    12 points
  4. Hello Everybody, Follow the announcement, we will happy to present you the pre release 3.20. if you comment do not hesitate. During this month we will update the apps and look your comments. Enjoy
    12 points
  5. Like you can see, the 3.12 is out. Some files have been updated or improved. the 3.12 has been out because they have a security fix on jquery. We have updated also some script. To update ClicShopping : If you have modified the template default directory, it's better to use a beyond compare If you use another template directory, you nothing to do except to compare you have modified files to see if there is an update or not. Have a good day
    12 points
  6. ccording to a research by Accenture, AI could potentially boost profitability rates by an average of 38% across 16 industries by 2035. AI will particularly benefit the retail sector because of its immediate impact on two fundamental areas that have a serious impact in retail ecommerce; creating a very personalised shopping experience and making smart business decisions. Artificial intelligence in ecommerce is also helping ecommerce platforms to cater the needs and interest of the users. 1. AI-Assisted Product Recommendations Retailers are able to use Big Data (the collection and compilation of data from different channels, previous transactions and other activities) to determine the trends in the shopping habits. This analysis could be used for personalized product recommendation. 2. Advanced Semantic-Based Search When we talk about personalization in the context of ecommerce and customer support, right now there is nothing better than intelligent customer engagement at every point of contact. One of the most important aspects of personalization is the ‘search result’. With advanced semantic-based site search, customers are able to easily navigate the store and find the relevant products without wading through a lot of unnecessary results 3. Chatbots Chatbots might just be the ultimate solution for the customer support woes. The good news is that modern chatbots are able to interact with customer databases and extract details of a customer and respond in the most appropriate and personalized way in real-time. Chatbot provides a comfortable customer experience that keeps visitors from leaving the website without making a purchase. 4. Virtual Assistants Other application of artificial intelligence in ecommerce is through virtual assistants. Virtual Assistants contribute a lot in creating an efficient sales process. These assistants communicate with customers to understand their preferences and provide them with an intuitive shopping experience. 5. Efficient Company-Wide Decision Making Pricing and Inventory Management Pricing products is no more a guess work. AI can use complex learning algorithms that assess market dynamics and all the other relevant factors of market competition. Optimal pricing of the merchandise helps a business stay relevant and ultimately succeed in a competitive environment. Business Analysis Putting all the data to use, you can also determine the kinds of products and business actions that have decreased efficiency, increased conversions, and if anything needs readjustments. These comparisons pertain to market share, pricing patterns and overall progress of a business. 6. Cybersecurity Enhancement Ecommerce websites have a ton of customer data that will be vulnerable if there aren’t any proper cybersecurity measures in place. Detection of New Threats Unlike traditional software, AI software tend to get smarter with time as new types of malware and threats emerge. Therefore, they will be able to quickly detect malware or ransomware attacks on your website before they’re able to cause any serious problems. Blocking Out Bots Bots form a large amount of the internet traffic today, and they can prove to be dangerous. Bots can steal credentials, create fake accounts and cause data fraud. 7. Sales Forecasting Sales forecasting and inventory management has become an absolute necessity for every business. To avoid any unforeseen shortages or stock run-outs, ecommerce businesses can now use artificial intelligence for sales forecasting. Software like Mintigo make use of AI to predict future sales based on consumer patterns and help decision-makers predict the results of their marketing efforts. 8. Fighting Fake Reviews Believe it or not, online reviews can make or break your brand. One fake review from your competitor or a bot can turn things around for your brand
    11 points
  7. Hello, Happy to present you the ne release 3.21. All information is available there : https://www.clicshopping.org/forum/topic/398-version-321-release/ I hope you will be happy and the work continue !!! Have a good day
    11 points
  8. this capsule explains how to install the "minimalistic header multi template module" module in clicshopping. For more information you can go on the market place :https://www.clicshopping.org/forum/files/file/168-modules-page-header-multi-template-minimalistic/
    11 points
  9. Hi everybody You will find inside the zip a folder called update in the root. Open it and include the DB modification. Before to make that, look inside your DB if you have not these fields. Else, if you have installed modules use the products table, you must make an update . The most impact is inside ClicShopping, I recommend you to make before your update, a copy of your version and make the upgrade. If you have o problem, it's cool, else you can make a comment here. About the modules (free and paid) header_menu :slimmenu, upcomming products header_tag : grdp, analytics, facebook pixel, twitter_card, apps : antispam, frontpage_specials, favorites, featured, image, manufacturer modules_products_info : also_purchased, products_related, reviews, download This is the most of apps and modules impacted by the update. Note : the paid modules will be updated today
    11 points
  10. Hello, I have just created a new product new template. The approach is very basic and you can if you want to include some features inside like flash discount, qty, stock ... How it works, Inside directory template_html, create new files like template_boostrap_simple.php and insert this code below. You can copy this files in other template directory if you want to have a new design. I take the orginal design, but if you want to change the css parameters, It's better to create a new css. what do you think ? <?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; ?> <div class="col-md-<?php echo $bootstrap_column; ?> col-md-<?php echo $bootstrap_column; ?>"> <div class="card-deck-wrapper" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/Product"> <div class="card-deck"> <div class="card card-footer"> <div> <div class="col-md-6 float-md-left"> <div class="ModulesFrontPageBoostrapColumn6Image"> <?php echo $products_image; ?></div> </div> <div class="col-md-6 float-md-right"> <div class="ModulesFrontPageBoostrapColumn6Title"><h3><a href="<?php echo $products_name_url; ?> "><?php echo $products_name; ?></a></h3></div> <div class="separator"></div> <div class="separator"></div> </div> </div> <div class="separator"></div> <div class="hr"></div> <div> <ul class="list-inline"> <div class="ModulesFrontPageBoostrapColumn6TextPrice" itemprop="offers" itemscope itemtype="https://schema.org/Offer"><?php echo CLICSHOPPING::getDef('text_price') . ' ' . $product_price; ?></div> </ul> </div> </div> </div> <div class="separator"></div> </div> </div> the result :
    10 points
  11. Little note for the communauty, Gpt from OpenAI will be integrated for the next release of ClicShopping. I let you to read the blog to understand what you can do with this tool. Just a note, we must use the API, and it's free for 3 month. It will be easy to configure GPT Let's enjoy with an artificial intelligence
    9 points
  12. OpenAiGPT can help companies in online trade in several ways. Here are some examples : GPT and analysis Content generation: GPT can generate quality content for e-commerce websites, such as product descriptions, technical sheets and blog articles. This can help companies increase their online visibility and improve their natural referencing. Selling assistance: GPT can also be used to create virtual assistants to help customers find products and answer their questions. This can help companies improve customer experience and increase conversions. Data analysis: GPT can be used to analyze e-commerce data, such as sales trends, purchase behavior and customer comments. This can help companies make informed decisions on products for sale and the advertising campaigns to be launched. Generation of automated Chatbot script: GPT could help generate automated script for chatbot for better customer support and better shopping experience. Generation of slogan or catchy title: Chat GPT can also be used to generate slogans or catchy titles for online advertising campaigns. This can help companies attract customer attention and increase conversions. It is important to note that Chat GPT is a powerful tool but it does not replace creativity and human expertise. It is best to use it as a tool to help you improve the performance of your site and your customer experience Could GPT do the after -sales service of an online commerce site? ‍ GPT could certainly be used to manage the after-sales service of an online commerce site. It could be used to create a chatbot or a virtual assistant to help customers solve their problems and answer their questions. - It could also be used to analyze after-sales service data, such as support tickets and customer comments, to identify trends and recurring problems. - It could use pre-trained models on customer needs to be able to meet the most common requests. - It can help using standard expressions and responses for requests for return, refund, order, delivery monitoring etc. - It could also be used to generate scripts for customer service employees to help them respond to requests in an efficient and professional manner. It is important to emphasize that even if GPT has high capacities for language understanding, it is important to train it with data specific to your company, so that the generated responses are as appropriate as possible. It is also important to ensure the quality of these responses and check them regularly to ensure that they are correct and in accordance with the company's policies. Will it be possible to send emails directly to customers, in particular for informed of a delivery state for an order? ‍ - It would be possible to use Cat GPT to send automatic emails to customers to inform them of the state of their delivery. - This could be accomplished using the GPT API to generate automated emails, which would then be sent to customers via an email sending platform. For this, it would be necessary to configure an automated email generation system which will integrate into your order management system, so that it can recover the delivery data corresponding to a given command and use it to generate a personalized email to the customer. - GPT could then be used to generate the content of these emails, using delivery and shipping information to customize the message. - It would also be possible to use GPT to generate email models for different stages of the delivery process, such as order confirmation, shipping, delivery or return. This would automate the process for sending delivery monitoring and saving time for employees. It is important to note that the sending of automated email must respect the rules of confidentiality and spam and must comply with the applicable laws and regulations, such as the Data Protection Act (GDPR). It is important to ensure that customers have given their consent to receive communications of this type and give them the possibility of unsubscribing. Product content creation : How can GPT Chat be useful in their creation? ‍ GPT-4 can be very useful for the creation of product sheets for an online commerce site. It could be used to automatically generate product descriptions, technical characteristics, advantages and disadvantages, current uses, product images and even catchy titles for products. Here are some concrete examples of the use of Chat GPT for the creation of product sheets: - Generation of product descriptions: GPT could be used to generate convincing and attractive product descriptions, using information on the characteristics and advantages of the product. He can use examples of sales sentences to encourage the user to buy. - Generation of technical characteristics: GPT could be used to generate the detailed technical characteristics of products, such as dimensions, weight, materials used, etc. - Generation of product images: GPT could also be used to generate product images based on technical characteristics and product descriptions. He could use existing images based on tags for image recognition. - Generation of catchy titles: GPT could also be used to generate catchy titles for products, which would attract the attention of customers and encourage them to learn more about the products. - Generation of SEO content: GPT could also be used to generate SEO (Search Engine Optimization) content to improve product sheets in terms of natural referencing. It is important to note that even if GPT can automatically generate quality content and it is important to check and reread the product sheets before publishing them to ensure that they are correct and respect the rules of the company in terms of quality and presentation. It is also important to have complete information on products to feed GPT-4, to avoid errors or inaccuracies. How can GPT analyze the sales data of a website and what will interest be? ‍ GPT can be used to analyze sales data from an electronic commercial website using automated data analysis techniques. It could be used to identify sales trends, customer purchase behavior and the most popular products, for example. Here are some concrete examples of the use of Chat GPT for sales data analysis: - Identify sales trends: GPT could be used to analyze sales data and identify trends, such as periods of high activity or most popular products. This could help companies plan their inventory and adapt their marketing strategy. - Analysis of purchase behavior: GPT could also be used to analyze customer purchase behavior, such as products purchased together, purchase frequencies and spent amounts. This could help companies better understand their customers and adapt their marketing strategy accordingly. - Customer segmentation: GPT could use sales data to identify customer segments that have similar characteristics and similar purchase behavior. This could help companies target their marketing campaigns and personalize offers for each group of customers. - Sales forecasts: GPT could use machine learning techniques to predict to come from the historic sales data. This could help companies plan the inventory and marketing strategies. - Customer commentary data analysis: GPT could use feelings analysis techniques to extract positive and negative information from customer comments, to identify the strengths and weaknesses of the products and the purchasing experience . This could help companies improve their products and improve the purchasing experience. Analysis of sales data can provide businesses with valuable information on their market, customers and products. This can help them make informed decisions on products for sale, the advertising campaigns to be launched and the marketing strategies to use, to increase sales and improve customer experience. How can GPT help the purchase service from an online sales site? ‍ ‍ GPT can help the purchase service of an online sales site using its natural language and content generation comprehension capacities. It can be used to automate certain tasks and improve the efficiency of the purchasing service. Here are some concrete examples of the use of Chat GPT for the purchase service of an online sales site: - Supplier search: GPT could be used to carry out online supplier searches, using specific keywords and search criteria to find potential suppliers. It could also be used to assess the quality and reliability of potential suppliers. - Generation of purchase requests: GPT could be used to automatically generate purchase requests for products, using supplier information and business needs to personalize requests. It could also be used to generate quotes and contracts for suppliers. - Monitoring of orders: GPT could be used to monitor orders and to inform suppliers and internal employees about possible delays or delivery problems. It could also be used to generate reports on commands and deliveries. - Price negotiation: GPT could use its language understanding capacities to help buyers negotiate prices with suppliers, using relevant arguments and responding to objections. - Data analysis: GPT could use data analysis techniques to identify trends and purchase opportunities, using information on orders, deliveries, stocks and prices to make purchase decisions informed. By using GPT to automate certain tasks and to improve the efficiency of the purchasing service, companies can save time and resources while improving the quality and relevance of purchasing decisions. It is important to note that the use of Chat GPT for these tasks does not replace the need for human expertise to make crucial decisions for business management, especially for negotiations and data analyzes. What can be the use of GPT chat for images produced from an eCommerce site? ‍ GPT can be very useful for product images of an electronic commerce site using its image recognition and content generation capacities. It can be used to automate certain tasks related to products and to improve the user experience. Here are some concrete examples of the use of GPT-3 for product images of an electronic commerce site: - Image recognition: GPT could be used to identify the characteristics of product images, such as colors, shapes and sizes, using automated image recognition techniques. This information could be used to improve product search or to suggest similar products. - Image generation: GPT could be used to generate product images based on product descriptions, using technical characteristics and product descriptions to generate images that faithfully represent products. - Image compression and resizing: GPT could be used to optimize the size of product images to improve the loading time of the website pages. We hope these elements can be useful for you. GPT is disruptive tool and it's important to implement it if you want to improve your productivity.
    9 points
  13. ChatGPT (Generative Pre-trained Transformer) is a chatbot launched by OpenAI in November 2022. It is built on top of OpenAI's GPT-3 family of large language models, and is fine-tuned with both supervised and reinforcement learning techniques. ChatGPT was launched as a prototype on November 30, 2022, and quickly garnered attention for its detailed responses and articulate answers across many domains of knowledge. Its uneven factual accuracy was identified as a significant drawback. Following the release of ChatGPT, OpenAI was reportedly valued at $29 billion. (01/2023) There have also been extensions and guides developed to facilitate the usage of ChatGPT, as well as related tools that have been recently launched that are worthy to check out: ChatGPT for Search Engines ChatGPT for Google The Art of ChatGPT Prompting: A Guide to Crafting Clear and Effective Prompts Perplexity Ask Anything Jasper Chat YouChat Taking all of this into consideration, as many of you, I’ve been playing with ChatGPT to leverage in SEO tasks. Here are some ideas of them that you can use as a reference too: Technical Optimization . Generate Structured Data for your content “Generate the FAQPage Schema markup for the following questions and answers:…” . Generate Hreflang tags for to use as patterns for your site pages “Generate the hreflang tags to feature in pages targeted to the <country> in <language>, <country> in <language> and <country> in <language>…” . Generate .htaccess rewrite rules for redirects “Generate the .htaccess rewrite rules to 301-redirect <source location> to <location destination> …” . Generate the rules for your robots.txt “Generate a robots.txt rules to block the crawl <location to block> but allow the crawling of <location to crawl> within the domain …” Link Building . Help you answer Help a B2B Writer or HARO requests “Please write a professionally sounding and short reply to the following “Help a B2B Writer” request saying that I have first hand experience and happy to provide the input needed as long as I don’t mention the site names: …” . Generate popular and relevant sites to outreach “Recommend X popular blogs about <site area> that cover “<topic>” along with their URLs” . Reword outreach emails to make them unique Let’s use one of the templates shared by Ahrefs in this guide and ask to reword it to make it unique: “Rephrase the following email while keeping its meaning, to make it sound fun but still professional: …” SEO Reporting . Generate RegEx to filter Google Search Console Performance Report Keyword Research . Generate relevant topics to target “Generate a list of X popular questions related to “<keyword>, that are relevant for new <audience>” . Classify a list of keywords based on their search intent “Classify the following keyword list in groups based on their search intent, whether commercial, transactional or informational: …” . Cluster a list of keywords based on their semantic relevance “Cluster the following keywords into groups based on their semantic relevance: ….” . Translate a list of keywords “Translate the following keywords from <Source Language> to <Output Language> and generate the results in a table with two columns, with the keywords in <Source Language> in the first one, and their translation to <Output Language> in the second:” Content Optimization . Generate titles for your page content Copy/paste your page content and ask: “Generate X unique title tags, of a maximum of 60 characters, for the following text. They should be descriptive and include the term <keyword> in them: …. “ . Generate meta descriptions for your page content The same can be done for meta descriptions, also specifying that they should be catchy and include a call to action: “Generate Z unique meta descriptions, of a maximum of 150 characters, for the following text. They should be catchy with a call to action, including the term “Main keyword” in them: ….” . Rephrase your existing content to avoid duplication Generate different versions of a text to avoid content duplication: “Rephrase the following paragraph in X different ways, to avoid repetition, while keeping its meaning: … “ . Provide facts and stats to use as an input to back your content “Generate a list of the top 10 facts, statistics and trends related to <topic>, including their source” . Generate a summary of your content “Generate an X words summary of the following content: …” Conclusion As you see, we can use ChatGPT to optimize the content and it can give a new way to improve your content, your code and your strategies.
    8 points
  14. I played with ChatGpt inside ClicShopping, and I ask to create a request. The result : Now I ask to the chat to change the color of .container, there the result : And to close the simple test, I tried some more complicated. First I ask for the desktop categories to create me in bootstrap 5.2, a description ans to give me an image AS you see the result, but I can not copied this result, this function in the current development is not included. but it's a nice potential if we can have this function to copy or to include directly inside the description the result te other option is to save the request, but this approach completely developed for moment. Let see what's happen, there is nice potential to use the AI with this approach
    8 points
  15. ClicShopping has now a first implementation about api rest. For more information about how to use it, we recommend you to read our wiki on github. If you do not know what is an API REST, we invite you to read this website. https://restfulapi.net/
    8 points
  16. Time-based one-time password (TOTP) is a computer algorithm that generates a one-time password (OTP) that uses the current time as a source of uniqueness. As an extension of the HMAC-based one-time password algorithm (HOTP), it has been adopted as Internet Engineering Task Force (IETF) standard RFC 6238.[1] TOTP is the cornerstone of Initiative for Open Authentication (OATH), and is used in a number of two-factor authentication (2FA) systems. A Time-Based One-Time Password or TOTP is a passcode valid for 30 to 90 seconds that has been generated using the value of the Shared Secret and system time. How it works inside CliShopping, You have two options you can activate, one for the administration protection and one on Catalog login. The approach is the same for the both. You insert your email and your are redirected on Topt page QR code. You have just to scan the code with your phone. Aministration Login : Protection 1 Connexion : You must enter you login and password. If it's does not work you must restart. It's security normal process Protection 2 Ip identification : You Ip is registred everytime you want to try to log inside the administration. After 5 times (you can define), you account is blocked and you must wait to try another time. You can also receive an email to know if someone try to connect on you admin Protection 3 Double authentification by TOTP: (option) This is an option where you can include the TOTP identification. The process is quite simple. If you activate the TOTP, the first time when you tried to connect inside the admin, a TOTP password is generated and save inside your database. After a QR code appears and you must terminate your identification with the sanc of your QR code and include the number given by your phone. The process compare the TOTP number with your QR code number and allow you to connect or not inside the administration. The login This the same process as the administration. Protection 1 Connexion : You must enter you login and password. If it's does not work you must restart. It's security normal process Protection 2 Double authentification by Topt : (option) Same process as the Administration for the TOTP authentification. Conclusion : This approach is not a perfect process security but allow you to have something best with a low interference with the action client. It's in coformity with the regulation recommandtion proposed in Europe. You can activate this process only for administration or for the catalog. It's independent process. For example, Amazon is more restritive about the double identification because you must receive a code on your smartphone. The problem with this approach if you tried to connect with another computer and you do not have your phone, you can not. In other part, with the TOTP process implemented inside the ClicShopping, you can use on every computer. To increase the application security and data storage, you always have a compromise to choose and there is always a repercution on your client. For moment, it can be transparent, another moment, it must do an action. Also you can increase again the security to include and antispam App and create different kind to security approach inside different ClicShopping forms. The point aborded here is only about the identification.
    8 points
  17. With PHP 7.4, support for preloading was added, a feature that could improve the performance of your code significantly. In a nutshell, this is how it works: - In order to preload files, you need to write a custom PHP script - This script is executed once on server startup - All preloaded files are available in memory for all requests - Changes made to preloaded files won't have any effect, until the server is restarted If you want more information, some article are available on this new feature. library used (under MIT licence): https://github.com/DarkGhostHunter/Preloader 1 / Mandatory Requirement - Php 7.4 minimum version - opCache installed - An access to your php.ini - Work in 777 chmod 2 / How to implement : Step 1 : Know your path You must know your root on preloader.php inside your application. below an example www/var/..../shop/includes/ClicShopping/Work/Log/preloader.php Step 2 : Php.init implementation Edit your php.init and search this line : ;opcache.preload= replace by your root path : below an example opcache.preload=/home/www/..../shop/includes/ClicShopping/Work/Log/preloader.php Step4 : Restart apache2 Make this command inside your terminal sudo service apache2 restart Step5 : Configure ClicShopping * Go to ClicShopping Administration - Menu Configuration / Session & Cache / Compression & optimization - Activate the preload functionnalities * Go to your catalog and actualise a page - The sytem will create a preloader.php file inside your Work/Log directory - You can check if everything is correct in editing your preload.php files. You must see some information inside.
    8 points
  18. this capsule explains how to install the "hooks orders batch" module in clicshopping. For more information you can go on the market place : https://www.clicshopping.org/forum/files/file/21-hooks_orders_batch/
    8 points
  19. Hello @julie, Thank you for your idea, It's now integrating inside the solution. Some screen capture below The question must be precise The answer from AI : the code generated Of course, it's not perfect, but it's the beginning. The next step is to close this development and we will see if we publish for the next release.
    7 points
  20. Email is part of communication, below different examples how to set email inside ClicShopping Example 1 : o2switch.net User name : myemail@domain.com - Password : email password - Server : mail.test.domain.com - remove mail. and write only test.domain.com - SMTP Port: 26 - SMTP authentication : true - SMTP secured protocol : ssl - Emails activation : true Example 2 : gmail.com - User name : myemail@gmail.com - Password : Utilisez le mot de passe du compte de messagerie. - Server smtp : smtp.gmail.com - remove smtp. and write only gmail.com - SMTP Port: 25 ou 465 - SMTP authentication : true - SMTP secured protocol : ssl or Tls - Emails activation : true
    7 points
  21. When Google or other search engines come to your site to read and store the content in its search index, it will look for a special file called robots.txt. This file is a set of instructions to tell search engines where they can look to crawl content and where they are not allowed to crawl content. We can use these rules to ensure that search engines don't waste their time looking at links that do not have valuable content and avoid links that produce faceted content. Why is this important? Search engines need to look at and store as many pages that exist on the internet as possible. There are currently an estimated more 4.5 billion web pages active today. That's a lot of work for Google. It cannot look and store every single page, so it needs to decide what to keep and how long it will spend on your site indexing pages. This is called a crawl budget. How many pages a day Google will index depends on many factors, including how fresh the site is, how much content you have and how popular your site is. Some websites will have Google index as few as 30 links a day. We want every link to count and not waste Google's time. What does the suggested Robots.txt file do? ClicShopping optimised rules exclude site areas with no unique content but instead redirect links to existing topics. Also excluded are areas such as the privacy policy, cookie policy, log in and register pages and so on. Submit buttons and filters are also excluded to prevent faceted pages. Finally, user profiles are excluded as these offer little valuable content for Google but contain around 150 redirect links. Given that Google has more seconds on your site, these links that exist elsewhere eat up your crawl budget quickly. What is the suggested Robots.txt file? Here is the content of the suggested Robots.txt file. If your ClicSHoppingis inside a directory, you will need to apply it to the root of your site manually. So, for example, if your community was at /home/site/public_html/myDirectory/ - you would need to create this robots.txt file and add it to /home/site/public_html. It's simple just edit robot.txt and change inside the information example of robot.txt Note : domain.ltd must be changed by your domain. # Rules for ClicSopping (https://www.clicshopping.org) User-Agent: * # Block pages with no unique content Disallow: /Account/LogIn/ Disallow: /Account/CreatePro Disallow: /Account/Create Disallow: /Account/PasswordForgotten Disallow: /Search/AdvancedSearch/ Disallow: /Search/Q/ # Block faceted pages and 301 redirect pages Disallow: /*?page= Disallow: /*?sort= # Sitemap URL Sitemap: https://domain.tld/index.php?Sitemap&GoogleSitemapIndex
    7 points
  22. Hello, Just for your information, ClicShopping works very fine on php 8.0. I made some little modification and I take time to check the different page. All is in good way about php 8.0 TC 03 Some information below ClicShopping Version3.22 Hôte :localhost (127.0.0.1) Hôte de la base de données :localhost (127.0.0.1) Système d'exploitation :Linux 5.4.0-54-genericBase de données :MySQL 5.5.5-10.4.17-MariaDB-1:10.4.17+maria~focal Date du serveur :2020-11-23 09:30:09 +0000 UTC2020-11-23 10:30:09 Temps de fonctionnement :10:30:09 up 1 day, 18:58, 2 users, load average: 0.45, 1.09, 1.29 Serveur HTTP :Apache/2.4.41 (Ubuntu) Zend version8.0.0RC3 (Zend : 4.0.0-dev)
    7 points
  23. this capsule explains how to install the "bootstrap front page caroussel" module in clicshopping.
    7 points
  24. this capsule explains how to install the "Flash Sales" module in clicshopping. For more information you can go on the market place : https://www.clicshopping.org/forum/files/file/165-modules-products-comparison/
    7 points
  25. Hello, I just finished my ClicShopping website and just push in production : Could make a comment please ? The focus is on figures. For moment there is not lot of product but I will add more in the time. Thank you https://www.figures-shop.com
    6 points
  26. ClicShopping allow you to use the generative artificial intelligence with Gpt, there are 2 ways to use this new functionality What you do inside ClicShopping with the GenIA Across the chat : Use on all pages Across the Wysiwyg : Specific request about - Products (description - short description - SEO - image gallery) - Brands (description - SEO - image) - Categories (description - SEO - image) - Contact email - Newletters - Content page (description - SEO) ... All other page use the Wysiwyg - SEO in general - Request Help with a general chat - Front page Chatbot In the futur we want to develop and to implement more interactions with the IA like products recommendations, reviews summary ... 1 - Use the chatbox available in the header This approach is useful if you need to ask a specific request, for example for the seo (title, description, keywords) 2 - Use the wysiwig chatbox available for all descriptions This approach will allow you to include a product description easily. You must click on the map icon close the image icon. A dialog box is open and you can insert your question. 3 - Setting the Artificial Intelligence To use this approach, you must configure the API and to include the OpenAI key. Of course you can change some parameters. The key is available on OpenIA platform. Just note the API is not free (except for testing during 3 months) 4 - Front Page Chatbot You must activate the chatbot frontpage to use it and set it inside Template/footer. The focus is on product information. It was difficult to propose some others informationswith the generative AI because the consumption is too important for a bad result. The problem come from Maria Db, the database does not use the vector approach and when you have a long text to analyze, the vector approach is really useful. We tried with segmentation approach but the result is poor. To use generative AI for general condition is really bad idea because the legal approach can be very different on each website including the regulation. Documentation : if you want more information about the setting configuration, please look there : https://platform.openai.com/docs/quickstart/start-with-an-instruction 5 - Statistitics dashboard Settings 5 - More informations are available inside the blog : How can GPT help us to improve the productivity and the result inside ClicShopping ? SEO and GPT Use Artificial Intelligence In Ecommerce
    6 points
  27. Hello, The futur backoffice on development with bootstrap 5 and a vertical menu, an example.
    6 points
  28. Hello, Just a note , I just published the Release 3.2131 see announcement for more explanations.
    6 points
  29. Hello, The latest commit introduce the service worker and a manifest for web app. The advantage to use a web app is for the smartphone and improve the speed of the website. If you want more information about that, just follow these links : about the web app : https://developers.google.com/web/fundamentals/web-app-manifest service worker : https://developers.google.com/web/fundamentals/primers/service-workers About the manifest, you nothing to do but if you want change the logo, you must go in this directory /sources/images/logos/manifest just replace the logo by yours and you must respect also the size of the image. Do not change the name of the logo. I hope this information will be useful for you.
    6 points
  30. Included in 3.2111 new release who fix some bug indentified in 3.2110.
    6 points
  31. hello @SuperThin, Could you test (on several specific world) this please and tell me if it work ? in includes/Shop/RewriteUrl.php - change the function by this. In it's work it will be added on next update. I take different work on your website, and seems now ok inside the the url Thank you for your comment @SuperThin /** * Remove url accent * @param $str * @param string $charset * @return null|string|string[] */ protected function getSkipAccents(string $str, string $charset = 'utf-8'): string { if (!extension_loaded('intl')) { throw new Exception('intl module not loaded'); } else { $transliterator = \Transliterator::create('Any-Latin; Latin-ASCII'); $str = $transliterator->transliterate(mb_convert_encoding(htmlspecialchars_decode($str),$charset, 'auto')); } $str = htmlentities($str, ENT_NOQUOTES, $charset); $str = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $str); $str = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $str); $str = preg_replace('#&[^;]+;#', '', $str); $str = preg_replace('/[^A-Za-z0-9\-]/', '', $str); // Removes special chars return $str; }
    6 points
  32. Tutorial about how to configure double taxes system (QC, Canada) in ClicShopping. Quebec settings have been taken because it's little more complex to take 1 tax but the process is little the same.
    6 points
  33. this capsule explains how to install the "apps customers guest customer" module in clicshopping. For more information you can go on the market place :https://www.clicshopping.org/forum/files/file/63-apps-guest-customer/
    6 points
  34. this capsule explains how to install the "contact us map " module in clicshopping. For more information you can go on the market place : https://www.clicshopping.org/forum/files/file/157-modules-contact-us-map/
    6 points
  35. this capsule explains how to install the "Extra Field" module in ClicShopping. For more information, you can go on the marketplace : https://www.clicshopping.org/forum/files/file/5-quantities-discount/
    6 points
  36. Nice idea for the newbiz. Thre is a specific tutorial on the blog. https://www.clicshopping.org/forum/blogs/entry/4-clicshopping-installation-process/
    6 points
  37. hello @Reflex I made a little video for you about the banner creation process :
    6 points
  38. @Patrick, Yes and no, some elements have been updated but with jquery fix, it was better to make an update.
    6 points
  39. Yes it look nice. It enough easy to make another one : Take this file IndexDashboardTopStockWarning and rename it : IndexDashboardTopTest Change inside the class and the request The file will be like this ! ........... must be removed and adapted at your needs. <?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/ * */ namespace ClicShopping\OM\Module\Hooks\ClicShoppingAdmin\Dashboard; use ClicShopping\OM\CLICSHOPPING; use ClicShopping\OM\Registry; use ClicShopping\OM\HTML; class IndexDashboardTopTest { protected $db; public function __construct() { if (CLICSHOPPING::getSite() != 'ClicShoppingAdmin') { CLICSHOPPING::redirect(); } $this->db = Registry::get('Db'); } public function execute() { $Qproducts = $this->db->prepare('select count(*) as count from :table_products where .......... '); $Qproducts->execute(); $number_products_test = $Qproducts->valueInt('count'); if ($number_products_test > 0) { $text = CLICSHOPPING::getDef('text_number_products_........'); $text_view = CLICSHOPPING::getDef('text_view'); $output = ' <div style="padding-right:0.5rem; padding-top:0.5rem"> <div class="card bg-warning"> <div class="card-body"> <div class="row"> <h5 class="card-title text-white"><i class="fas fa-bell-slash" aria-hidden="true"></i> ' . $text . '</h5> </div> <div class="col-md-12"> <span h5 class="text-white">' . $number_products_test . '</span> <span><small class="text-white">' . HTML::link(CLICSHOPPING::link(null, 'A&...........'), $text_view, 'class="text-white"') . '</small></span> </div> </div> </div> </div> ';
    6 points
  40. An example : $CLICSHOPPING_ProductsLength->convert($products_dimension_depth, $products_length_class_id, 2) In this case, all the products_dimension_depth will be converted in cm. You can also use the default unit (can be defined in configuration store)
    6 points
  41. Hello @Patrick, The product length has been introduced because some shipping module takes the length (ups, postcanada, boxtal, fedex ..) You can define different length in function your need. When you create a new shipping app, you can convert the length in function of characteristics of the service. For example, in France, we use the cm but in USA, this is the inch. If you have your length in cm, you can convert automatically in inch . Some others updates resolve bug fix.
    6 points
  42. Good morning, Some of you have certainly noticed a change on the logo. Since the 2 last versions, we have set out to put generative artificial intelligence in the application with GPT and OPENAI. The module will certainly evolve in time to integrate other approach like Google Bard for example. We go there in stages. For the next version 3.431 a Charbot will be integrated into the application on the front office. It will use generative AI to give additional information to the user allowing him to have more information on the product. We wanted to go more far including generation conditions for example. But the expected result was not there. We have tried to use text segmentation to reduce the processing time but the limitation obtained is not good. This is due to the fact that Mariadb does not have a feature to include a vector inside a table. This approach improves treatment time but drastically reducing the number of Token sent to GPT and the cost linked to treatment. In addition, proposing a solution whose reaction time and a cost of treatment too much did not seem to us to be careful as an approach. Furthermore, like the administration where we use Davinci-003 model, in the front office, we use GPT 3.5 Turbo is a model largely cheaper than Davinci. We have included a parameter allowing to manage the chatbot display in the offering front so that you can better manage your budget. To complete the next evolution will have updates concerning the GPT including new statistics, a preditive security stock -analyse and an update on customer recommendations. Our objective is to be able to offer a new generation of e-commerce platform allowing merchants (small company, medium company) to be able to use artificial intelligence with a budget control, to be able to carry out more impactful communication campaign, marketing and finally to optimize production time, creation of product sheets and increase the sell. The work continues and will continue in this orientation in the future.
    5 points
  43. The version 3.323 allows to use htaccess to rewrite the url. To use this function you must activate in Shop/SEO urls this 2 options 1 - Use Search-Engine Safe Native URLs this option rewrites the url like this : https://demo.clicshopping.org/index.php/Products/Description/logitech-trackman-marble-mouse/Id-12 and 2- Use Search-Engine Safe URLs Pro (with htaccess) This option rewrites the url like this : https://demo.clicshopping.org/Products/Description/logitech-trackman-marble-mouse/Id-12 To use the last option, you must include inside your root an htaccess with this syntax. Of course, it can updated in function of your server. note : This option works only on the catalog without customer, if your are logged you will see the url above. It's optimized only for the search engine. For apache 2.4 ################################## # url rewiting #improve url rewriting #work fine without directory https://mydomain.com/test/index.php #the rewriting must be activated inside the application # uncomment ################################## <IfModule mod_rewrite.c> RewriteEngine On DirectorySlash Off # # Remove WWW # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [R=302,L] # # Remove Trailing Slashes # RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{THE_REQUEST} \s(.+?)//+[?\s] RewriteRule ^ %1 [R=302,L] # # Reroute to index.php # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
    5 points
  44. Hello, Thank you for you comment, it's always welcome. @Juliana, Yes you can always use the last image gallery but you must follow this process - Do not remove the jquery hooks because the module use jquery - For this version, we do not touch on the module - No pb - You must change inside the image gallery these elements : edit : pi_products_info_gallery.php Inside sql configuration : 'configuration_title' => 'Where do want to display the gallery position ?', update by this 'set_function' => 'clic_cfg_set_boolean_value(array(\'float-end\', \'float-start\', \'float-none\'))', Of course, remove and reinstall it. I will push when I have a little time a specific module in the marketplace and github community.
    5 points
  45. Hello, Below the information, how to configure ClicShopping with the SMTP approach. For hotmail Hotmail SMTP Server: smtp-mail.outlook.com Hotmail SMTP Port: 587 Hotmail Security: STARTTLS Hotmail SMTP Username: Your complete Windows Live Hotmail email address (e.g. me@hotmail.com or me@live.com) Hotmail SMTP Password: Your Windows Live Hotmail password SMTP transport : TLS For gmail Server name SMTP : smtp.gmail.com Username SMTP : your Gmail email SMTP Password : you Gmail password SMTP Portl: 25 ou 465 SMTP transport : TLS More general Server name SMTP : smtp.mydomain.com Username SMTP : your emaill SMTP Password : you email password SMTP Portl: 25 ou 465 or 587 SMTP transport : TLS
    5 points
  46. Hello, I saw a problem about implode and language class, it creates deprecated error. I let the solution found. implode($get_params, '&'); by implode('&', $get_params);
    5 points
  47. A little example allow you to configure your htaccess to increase the speed and security Options -Indexes Options +FollowSymlinks #### Your config to change ############### #AllowOverride All AcceptPathInfo on ################################## # Security ################################## <IfModule mod_headers.c> # prevent mime based attacks Header set X-Content-Type-Options "nosniff" # XSS Protection Header set X-XSS-Protection "1; mode=block" #content policy #Header set Content-Security-Policy "script-src 'self' https://www.mydomain.org" #X Frame Header always set X-FRAME-OPTIONS "DENY" </IfModule> #Header always append X-Frame-Options SAMEORIGIN #CORS # Always set these headers. #Header always set Access-Control-Allow-Origin "*" #Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" #Header always set Access-Control-Max-Age "1000" #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" #### Your config to change URL rewriting ############### #Uncomment and adapt <IfModule mod_rewrite.c> RewriteEngine On ## URL Canonicalization #to change in function your website RewriteBase /shop/ RewriteCond %{HTTP_HOST} !^mydomain.org$ [NC] RewriteRule ^(.*)$ https://www.mydomain.org/$1 [L,R=301] #to change in function your website RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #to change in function your website RewriteRule . /shop/index.php [L] #Caching schema <IfModule mod_headers.c> Header unset ETag </IfModule> #Caching schema ## EXPIRES CACHING ## ## https://gtmetrix.com/leverage-browser-caching.html ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType font/woff2 "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> #apache 2.4 <IfModule mod_version.c> <IfModule mod_filter.c> <IfVersion >= 2.4> FilterDeclare COMPRESS FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/html'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/css'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/plain'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/xml'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/x-component'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/javascript'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/json'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/xml'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/xhtml+xml'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/rss+xml'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/atom+xml'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/vnd.ms-fontobject'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'image/svg+xml'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'image/x-icon'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/x-font-ttf'" FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'font/opentype'" FilterChain COMPRESS FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no </IfVersion> </IfModule> </IfModule>
    5 points
  48. this capsule explains how to set the "PayPal payment apps" module in ClicShopping.
    5 points
  49. quick video about banners in ClicShopping :
    5 points
  50. @Victorious, I will help you, it's very simple to make a new file. You mus create 6 files modules_footer/fo_footer_my_template.php modules_footer/content/fo_footer_my_template.php language/english/modules/modules_footer/fo_footer_my_template.php language/french/modules/modules_footer/fo_footer_my_template.php css/english/modules/modules_footer/fo_footer_my_template.php css/french/modules/modules_footer/fo_footer_my_template.php (if it used) Below an example, make that quickly, it can have litle error inside the files. The most important files (after you can make the other) modules_footer/fo_footer_my_template.php <?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\Registry; use ClicShopping\OM\CLICSHOPPING; class fo_footer_my_template { public $code; public $group; public $title; public $description; public $sort_order; public $enabled = false; public $pages; protected $rewriteUrl; public function __construct() { $this->code = get_class($this); $this->group = basename(__DIR__); $this->title = CLICSHOPPING::getDef('module_footer_my_template_title'); $this->description = CLICSHOPPING::getDef('module_footer_my_template_description'); $this->rewriteUrl = Registry::get('RewriteUrl'); if ( defined('MODULES_FOOTER_MY_TEMPLATE_STATUS') ) { $this->sort_order = MODULES_FOOTER_MY_TEMPLATE_SORT_ORDER; $this->enabled = (MODULES_FOOTER_MY_TEMPLATE_STATUS == 'True'); $this->pages = MODULE_FOOTER_MY_TEMPLATE_DISPLAY_PAGES; } } public function execute() { $CLICSHOPPING_Template = Registry::get('Template'); $CLICSHOPPING_Customer = Registry::get('Customer'); $CLICSHOPPING_PageManagerShop = Registry::get('PageManagerShop'); $CLICSHOPPING_Db = Registry::get('Db'); if ( MODE_VENTE_PRIVEE == 'false' || (MODE_VENTE_PRIVEE == 'true' && $CLICSHOPPING_Customer->isLoggedOn() )) { // change pages_id = 55 by your id $Qpages = $CLICSHOPPING_Db->prepare('select pd.pages_title, p.links_target from :table_pages_manager p, :table_pages_manager_description pd where p.status = 1 and ( p.customers_group_id = :customers_group_id or p.customers_group_id = 99) and p.pages_id = pd.pages_id and p.pages_id = 55 '); $Qpages->bindInt(':customers_group_id', (int)$CLICSHOPPING_Customer->getCustomersGroupID() ); $Qpages->execute(); $content = HTML::link($this->rewriteUrl->getPageManagerContentUrl($Qpages->valueInt('pages_id')), $Qpages->value('pages_title'), 'target="' . $Qpages->value('links_target') . '"') $content_width = (int)MODULE_FOOTER_MY_TEMPLATE_CONTENT_WIDTH; $my_template_footer = '<!-- footer page manager start -->' . "\n"; ob_start(); require($CLICSHOPPING_Template->getTemplateModules($this->group . '/content/footer_my_template')); $my_template_footer .= ob_get_clean(); $my_template_footer .='<!-- footer page manager end -->' . "\n"; $CLICSHOPPING_Template->addBlock($my_template_footer, $this->group); } } public function isEnabled() { return $this->enabled; } public function check() { return defined('MODULES_FOOTER_MY_TEMPLATE_STATUS'); } public function install() { $CLICSHOPPING_Db = Registry::get('Db'); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Do you want activate this module ?', 'configuration_key' => 'MODULES_FOOTER_MY_TEMPLATE_STATUS', 'configuration_value' => 'True', 'configuration_description' => 'Do you want activate this module in your shop ?', 'configuration_group_id' => '6', 'sort_order' => '1', 'set_function' => 'clic_cfg_set_boolean_value(array(\'True\', \'False\'))', 'date_added' => 'now()' ] ); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Please select the width of the module', 'configuration_key' => 'MODULE_FOOTER_MY_TEMPLATE_CONTENT_WIDTH', 'configuration_value' => '12', 'configuration_description' => 'Select a number between 1 and 12', 'configuration_group_id' => '6', 'sort_order' => '1', 'set_function' => 'clic_cfg_set_content_module_width_pull_down', 'date_added' => 'now()' ] ); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Sort order', 'configuration_key' => 'MODULES_FOOTER_MY_TEMPLATE_SORT_ORDER', 'configuration_value' => '10', 'configuration_description' => 'Sort order of display. Lowest is displayed first', 'configuration_group_id' => '6', 'sort_order' => '4', 'set_function' => '', 'date_added' => 'now()' ] ); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Indicate the page where the module is displayed', 'configuration_key' => 'MODULE_FOOTER_MY_TEMPLATE_DISPLAY_PAGES', 'configuration_value' => 'all', 'configuration_description' => 'Select the page where the module is displayed.', 'configuration_group_id' => '6', 'sort_order' => '5', 'set_function' => 'clic_cfg_set_select_pages_list', 'date_added' => 'now()' ] ); } public function remove() { return Registry::get('Db')->exec('delete from :table_configuration where configuration_key in ("' . implode('", "', $this->keys()) . '")'); } public function keys() { return ['MODULES_FOOTER_MY_TEMPLATE_STATUS', 'MODULE_FOOTER_MY_TEMPLATE_CONTENT_WIDTH', 'MODULES_FOOTER_MY_TEMPLATE_SORT_ORDER', 'MODULE_FOOTER_MY_TEMPLATE_DISPLAY_PAGES' ]; } } modules_footer/content/footer_my_template.php <div class="col-md-<?php echo $content_width; ?> moduleFooterMyTemplater"> <span class="moduleFooterMyTemplate"> <span class="footerMyTemplate"><?php echo $content; ?></span> </span> </div>
    5 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use