(167,38,'footer','','footer','footer','','<footer id=\"footer\" class=\"container\">\n  <div class=\"row\">\n    <?php\n    $current_lang = $_SESSION[\'lang\'][\'shortcode\'];\n      \n    $links = array();\n    \n    if ($current_lang == \'fr\') {\n        $links[\'about_us\'] = array(\'title\' => \'Mentions légales - Politique de confidentialité\', \'url\' => \'mentions-legales-a-propos\');\n        $links[\'terms\'] = array(\'title\' => \'Conditions générales d\\\'utilisation\', \'url\' => \'conditions-generales-dutilisation\');\n        $links[\'terms_module_providers\'] = array(\'title\' => \'Conditions générales d\\\'utilisation - vendeurs de modules\', \'url\' => \'conditions-generales-dutilisation_vendeurs-de-modules\');\n        $links[\'contact\'] = array(\'title\' => \'Contactez-nous\', \'url\' => \'contactez-nous\');\n        $links[\'about_payments\'] = array(\'title\' => \'Payments et securisation\', \'url\' => \'paiements-et-securisation\');\n    } elseif ($current_lang == \'es\') {\n        $links[\'about_us\'] = array(\'title\' => \'Legal Notice - Quiénes somos\', \'url\' => \'legal-notice-quienes-somos\');\n        $links[\'terms\'] = array(\'title\' => \'Términos y condicones de uso\', \'url\' => \'terminos-y-condicones-de-uso\');\n        $links[\'terms_module_providers\'] = array(\'title\' => \'Términos y condiciones de uso - Vendedores de módulos\', \'url\' => \'terminos-y-condiciones-de-uso_vendedores-de-modulos\');\n        $links[\'contact\'] = array(\'title\' => \'Contact\', \'url\' => \'acerca-de-nosotros\');\n        $links[\'about_payments\'] = array(\'title\' => \'Acerca de los pago\', \'url\' => \'acerca-de-los-pagos\');\n    } elseif ($current_lang == \'it\') {\n        $links[\'about_us\'] = array(\'title\' => \'Nota legale - Chi siamo\', \'url\' => \'nota-legale-chi-siamo\');\n        $links[\'terms\'] = array(\'title\' => \'Condizioni d\\\'uso\', \'url\' => \'condizioni-duso\');\n        $links[\'terms_module_providers\'] = array(\'title\' => \'Condizioni d\\\'uso - Venditori di modul\', \'url\' => \'condizioni-duso_venditori-di-moduli\');\n        $links[\'contact\'] = array(\'title\' => \'Contact\', \'url\' => \'contact\');\n        $links[\'about_payments\'] = array(\'title\' => \'Pagamenti e sicurezza\', \'url\' => \'pagamenti-e-sicurezza\');\n    } elseif ($current_lang == \'de\') {\n        $links[\'about_us\'] = array(\'title\' => \'Rechtlicher Hinweise - Über uns\', \'url\' => \'rechtlicher-hinweise-ber-uns\');\n        $links[\'terms\'] = array(\'title\' => \'Unsere Nutzungsbedingungen\', \'url\' => \'unsere-nutzungsbedingungen\');\n        $links[\'terms_module_providers\'] = array(\'title\' => \'Unsere Nutzungsbedingungen - Modulverkäufer\', \'url\' => \'unsere-nutzungsbedingungen_modulverkaufer\');\n        $links[\'contact\'] = array(\'title\' => \'Unser Kontakt\', \'url\' => \'unser-kontakt\');\n        $links[\'about_payments\'] = array(\'title\' => \'Sicheres Bezahlen\', \'url\' => \'sicheres-bezahlen\');\n    } else {\n        $links[\'about_us\'] = array(\'title\' => \'Legal Notice - About us\', \'url\' => \'about-us\');\n        $links[\'terms\'] = array(\'title\' => \'Terms and conditions of use\', \'url\' => \'terms-and-conditions\');\n        $links[\'terms_module_providers\'] = array(\'title\' => \'Terms and conditions of use - Module providers\', \'url\' => \'terms-and-conditions-of-use-module-providers\');\n        $links[\'contact\'] = array(\'title\' => \'Contact\', \'url\' => \'contact-us\');\n        $links[\'about_payments\'] = array(\'title\' => \'About payments\', \'url\' => \'about-payments\');\n    }\n    /*\n    $other_pages[\'about_payments\'] = $websitepage->fetchAll($website->id, \'\', \'\', 1, 0, array(\'title\' => \'About payments\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'contact\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Contact\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'terms\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Terms and conditions\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'terms_module_providers\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Terms and conditions of use - Module providers\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'about_us\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'About us\', \'status\' => \'1\', \'lang\' => $website->lang));\n    foreach ($other_pages as $key => $pages) {\n      $obj = $pages[key($pages)];\n      $links[$key][\'title\'] = $obj->title;\n      $links[$key][\'url\'] = $obj->pageurl;\n      if ($website->lang != $current_lang) {\n        $trans_page = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'fk_page\' => $obj->id, \'status\' => \'1\', \'lang\' => $current_lang));\n        $trans_page = $trans_page[key($trans_page)];\n        $links[$key][\'title\'] = $trans_page->title;\n        $links[$key][\'url\'] = $trans_page->pageurl;\n      }\n    }\n    */\n    \n    ?>\n    <section class=\"footer-block col-xs-12 col-sm-6\" id=\"block_various_links_footer\" contenteditable=\"true\">\n      <h4><?php echo $weblangs->trans(\"Information\") ?></h4>\n      <ul class=\"toggle-footer\">\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'about_us\'][\'url\'] ?>.php\"> <?php print $links[\'about_us\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'terms\'][\'url\'] ?>.php\"> <?php print $links[\'terms\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'terms_module_providers\'][\'url\'] ?>.php\"> <?php print $links[\'terms_module_providers\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'contact\'][\'url\'] ?>.php\"> <?php print $links[\'contact\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'about_payments\'][\'url\'] ?>.php\"> <?php print $links[\'about_payments\'][\'title\'] ?> </a>\n        </li>\n      </ul>\n    </section>\n    <section class=\"footer-block col-xs-12 col-sm-6\" contenteditable=\"true\">\n      <h4>\n        <a href=\"/myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" rel=\"nofollow\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n      </h4>\n      <div class=\"block_content toggle-footer\">\n        <ul class=\"bullet\">\n          <li>\n            <a href=\"order-history.php\" title=\"<?php print $weblangs->trans(\"orderHistoryDetails\"); ?>\" rel=\"nofollow\"><?php print $weblangs->trans(\"orderHistoryDetails\"); ?></a>\n          </li>\n          <li>\n            <a href=\"account-information.php\" title=\"<?php print $weblangs->trans(\"personalInfo\"); ?>\" rel=\"nofollow\"><?php print $weblangs->trans(\"personalInfo\"); ?></a>\n          </li>\n\n        </ul>\n      </div>\n    </section>\n  </div>\n</footer>',1,'2024-02-02 16:48:47',NULL,'2025-01-16 01:37:24',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(168,38,'forgot-password','','Forgot password','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/class/html.formcompany.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/admin.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/security2.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/modules/security/generate/modGeneratePassStandard.class.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n$form = new Form($db);\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php includeContainer(\'header\'); ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"resetPassword\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php \n            includeContainer(\'sidebar\');\n            $__PAGE__TITLE__ = $weblangs->trans(\"forgotPasswordPageTitle\");\n        ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <div class=\"row\">\n                    <div class=\"col-xs-12\">\n                        <?php\n                            $error = 0;\n                            $error_messages = array();\n                            \n                            // Send reset password email\n            			    if (!empty(GETPOST(\'email\'))) {\n\n                                $customer_email = GETPOST(\'email\');\n\n                            	if (!isValidEmail($customer_email)) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"emailInvalid\");\n                            	}\n                            	\n                            	$sql  = \"select lsa.rowid, lsa.login, lsa.fk_soc \";\n                                $sql .= \"from \".MAIN_DB_PREFIX.\"societe_account lsa \";\n                                $sql .= \"where lsa.login = \'\". $db->escape($customer_email) .\"\' \";\n                                $sql .= \"and lsa.fk_website = \". ((int) $website->id) . \" \";\n                                $sql .= \"limit 1\";\n                                \n                                $result = $db->query($sql);\n                            	$objsql = $db->fetch_object($result);\n                            	\n                            	if (empty($objsql)) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"emailDoesNotExist\");\n                                }\n                            \n\n                                if($error == 0){\n                                    // Start of transaction\n                                    $db->begin();\n                                    \n                                    // Generate a random password\n                                    $newpass = getRandomPassword(true, null, 16);\n                                    $pass_temp_crypted = dol_hash($newpass, \'md5\');\n                                    \n                                    $societeaccount = new SocieteAccount($db);\n                                    $societeaccount->fetch($objsql->rowid);\n                                    $societeaccount->id = $objsql->rowid;\n                                    $societeaccount->pass_temp = $pass_temp_crypted;\n                                    $societeaccount->date_last_reset_password = dol_now();\n                            \n                                    $result = $societeaccount->update($user);\n                                    if ($result < 0) {\n                            			$error++;\n                            			$error_messages[] = $weblangs->trans(\"errorOccurred\");\n                            		}\n                            		\n                            		if ($error == 0) {\n                            		    \n                            		    $sql  = \"select ls.nom \";\n                                        $sql .= \"from \".MAIN_DB_PREFIX.\"societe ls \";\n                                        $sql .= \"where ls.rowid = \'\". $objsql->fk_soc .\"\' \";\n                                        $sql .= \"limit 1\";\n                                        \n                                        $result = $db->query($sql);\n                                		$objsql_customer = $db->fetch_object($result);\n                                		\n                                		// Generate the link\n                                        $protocol = (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\' || $_SERVER[\'SERVER_PORT\'] == 443) ? \"https://\" : \"http://\";\n                                        $host = $_SERVER[\'HTTP_HOST\'];\n                                        $requestUri = $_SERVER[\'REQUEST_URI\'];\n                                        $currentUrl = $protocol . $host . $requestUri;\n                                        \n                                		// Check if the URL already contains GET parameters\n                                        if (strpos($requestUri, \'?\') !== false) {\n                                            // If the URL contains parameters, append the token with &\n                                            $resetLink = $currentUrl . \"&token=\" . urlencode($pass_temp_crypted);\n                                        } else {\n                                            // If the URL does not contain parameters, append the token with ?\n                                            $resetLink = $currentUrl . \"?token=\" . urlencode($pass_temp_crypted);\n                                        }\n\n                            		    // Send welcome email\n                            		    $substitutionarray = array(\n                            	            \'__USER_NAME__\' => $objsql_customer->nom,\n                            	            \'__PASSWORD__RESET_LINK__\' => $resetLink\n                            	        );\n                                    	$email_sended = marketplace_send_email(getDolGlobalInt(\"MARKETPLACE_FORGOT_PASSWORD_EMAIL_TEMPLATE\"), \'thirdparty\', $societeaccount, $objsql->login, $substitutionarray);\n                                        \n                                        $db->commit();\n                            		} else {\n                            		    $db->rollback();\n                            		}\n                                }\n                            		\n                            }\n\n\n                            // Check token\n                            if (!empty(GETPOST(\'token\'))) {\n                                \n                                $token = GETPOST(\'token\');\n                                $sql  = \"select lsa.rowid, lsa.pass_encoding, lsa.pass_crypted, lsa.pass_temp, lsa.date_last_reset_password, ls.nom, fk_soc \";\n                                $sql .= \"from \".MAIN_DB_PREFIX.\"societe_account lsa \";\n                                $sql .= \"left join \".MAIN_DB_PREFIX.\"societe ls on ls.rowid = lsa.fk_soc \";\n                                $sql .= \"where lsa.pass_temp = \'\". $db->escape($token) .\"\' \";\n                                $sql .= \"and lsa.fk_website = \". ((int) $website->id) . \" \";\n                                $sql .= \"limit 1\";\n                                \n                                $result = $db->query($sql);\n                        		$objsql = $db->fetch_object($result);\n                                if (!empty($objsql)) {\n                                    $dateTokenDateTime = new DateTime($objsql->date_last_reset_password);\n                                    $now = new DateTime();\n                                    $interval = $now->diff($dateTokenDateTime);\n                                    \n                                    if ($interval->days < 1 && $interval->h < 24 && $objsql->pass_temp == $token) {\n                                        $correct_token = 1;\n                                    } else {\n                                        $error++;\n                            		    $error_messages[] = $weblangs->trans(\"wrongOrExpiredToken\");\n                                    }\n\n                                }else{\n                                    $error++;\n                            		$error_messages[] = $weblangs->trans(\"wrongOrExpiredToken\");\n                                }\n                                \n                            }\n                            \n                            // Change password\n                            if (!empty(GETPOST(\'token\')) && !empty($correct_token) && $correct_token == 1) {\n                                $token = GETPOST(\'token\');\n                                $new_passwd1 = GETPOST(\'new_passwd1\');\n                                $new_passwd2 = GETPOST(\'new_passwd2\');\n                                \n                                if (empty($new_passwd1) || empty($new_passwd2)) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"bothFieldsRequired\");\n                            	}\n                            	\n                            	if (!empty($new_passwd1) && !empty($new_passwd2) && $new_passwd1 != $new_passwd2) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"passwordsAreNotTheSame\");\n                            	}\n\n                                if ($error == 0) {\n                                   	$check_pass = new modGeneratePassStandard($db, $conf, $langs, $user);\n                                	$is_valid = $check_pass->validatePassword($new_passwd1);\n                                	if(!$is_valid){\n                                	    $error++;\n                                	    $weblangs->load(\"other\");\n                                		$error_messages[] = $weblangs->trans(\"YourPasswordMustHaveAtLeastXChars\", (string) $check_pass->length2);\n                                	}\n                                }\n                                \n                                if ($error == 0) {\n                                    $societeaccount = new SocieteAccount($db);\n                                    $societeaccount->fetch($objsql->rowid);\n                    				$societeaccount->pass_encoding = \"dolibarr\";\n                    				$societeaccount->pass_crypted = dol_hash($new_passwd1);\n                    				$ret_account = $societeaccount->update($user);\n                    				if ($ret_account < 0) {\n                    					$error++;\n                    					$error_messages[] = $weblangs->trans(\"errorOccurred\");\n                    				} else {\n                    				    $passwordChanged = 1;\n                    				}\n                                }\n                                \n                            }\n            			?>\n            			\n            			<?php\n            			    // Choose content to display\n                			$page_content = \"email_form\";\n                			if (isset($email_sended) && $email_sended != 0) {\n                			    $page_content = \"email_sent\";\n                			}\n                			if (!empty(GETPOST(\'token\'))) {\n                			    $page_content = \"password_form\";\n                			}\n                			if (!empty(GETPOST(\'token\')) && !empty($passwordChanged) && $passwordChanged == 1) {\n                			    $page_content = \"password_changed\";\n                			}\n            			?>\n            			\n            			<?php if ($page_content == \"email_sent\"): ?>\n                        	<p>\n                        	    <div class=\"account_creation\">\n                        			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                        	        <p class=\"p_with_margin box\"><?php print $weblangs->trans(\"resetPasswordEmailSent\"); ?></p>\n                        	    </div>\n                        	</p>\n                        <?php endif; ?>\n\n\n                        <?php if ($page_content == \"password_form\"): ?>\n                            <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                            <form action=\"\" method=\"post\" id=\"account-creation_form\" class=\"std box\">\n                                <div class=\"account_creation\">\n                                    <?php if (isset($error) && $error != 0): ?>\n                        		        <div class=\'alert alert-danger\'>\n                            		        <?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n                                	\n                                	<div class=\"required password form-group\">\n                        				<label for=\"passwd\"><?php print $weblangs->trans(\"newPasswd\"); ?> <sup>*</sup></label>\n                        				<input type=\"password\" class=\"is_required validate form-control\" required name=\"new_passwd1\" id=\"passwd\" value=\"\">\n                        			</div>\n                        			<div class=\"required password form-group\">\n                        				<label for=\"passwd\"><?php print $weblangs->trans(\"reEnterNewPassword\"); ?><sup>*</sup></label>\n                        				<input type=\"password\" class=\"is_required validate form-control\" required name=\"new_passwd2\" id=\"passwd\" value=\"\">\n                        			</div>\n                                    \n                                    <hr>\n                        			<button type=\"submit\" name=\"submitAccount\" id=\"submitAccount\" class=\"btn btn-default button button-medium\">\n                        				<span><?php print $weblangs->trans(\"Save\"); ?> <i class=\"icon-chevron-right right\"></i></span>\n                        			</button>\n                			\n                                </div>\n                            </form>\n                        <?php endif; ?>\n\n\n                        <?php if ($page_content == \"password_changed\"): ?>\n                            <p>\n                                <div class=\"account_creation\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                                    <p class=\"p_with_margin box\"><?php print $weblangs->trans(\"passwordChangedMessage\"); ?></p>\n                                </div>\n                            </p>\n                        <?php endif; ?>\n                        \n                        \n                        <?php if ($page_content == \"email_form\"): ?>\n                            <form action=\"\" method=\"post\" id=\"account-creation_form\" class=\"std box\">\n                        		<div class=\"account_creation\">\n                        			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                        			<?php if (isset($error) && $error != 0): ?>\n                                		<div class=\'alert alert-danger\'>\n                                    		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n    \n                        			<div class=\"required form-group\">\n                        				<label for=\"email\"><?php print $weblangs->trans(\"email\"); ?> <sup>*</sup></label>\n                        				<input type=\"text\" class=\"is_required validate form-control\" required id=\"email\" name=\"email\" value=\"<?php if (isset($customer_email)){print $customer_email;} ?>\">\n                        			</div>\n                        		</div>\n    \n                        		<input type=\"hidden\" name=\"action\" value=\"resetpassword\">\n                        		<div class=\"submit clearfix\">\n                        			<hr>\n                        			<button type=\"submit\" name=\"submitAccount\" id=\"submitAccount\" class=\"btn btn-default button button-medium\">\n                        				<span><?php print $weblangs->trans(\"submit\"); ?> <i class=\"icon-chevron-right right\"></i></span>\n                        			</button>\n                        		</div>\n                        	</form>\n                        <?php endif ?>\n                        \n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                			<span>\n                				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                			</span>\n                		</a>\n                	</li>\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                		</a>\n                	</li>\n                </ul>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-19 16:32:47',NULL,'2025-01-17 19:00:43',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(169,38,'goodies','','goodies','','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n$root_cat_object = new Categorie($db);\n$result = $root_cat_object->fetch(0,\"goodies\");\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"goodiesPageTitle\");\n        $__PAGE__KEYWORDS__ = $weblangs->trans(\"goodiesPageKeywords\");\n        $__PAGE__DESC__ = $weblangs->trans(\"goodiesPageDescription\");\n    ?>\n    \n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"Goodies\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <section id=\"category_info_section\" contenteditable=\"true\">\n                	<div class=\"content_scene_cat\">\n                		<!-- Category image -->\n                		<div class=\"content_scene_cat_bg\">\n                			<div class=\"cat_desc\">\n                				<span class=\"category-name\"><?php print $root_cat_object->label; ?></span>\n                				<div class=\"rte\">\n                					<p><?php print strip_tags($root_cat_object->description); ?></p>\n                				</div>\n                			</div>\n                		</div>\n                		\n                		<div class=\"shop-container\">\n                            <div class=\"shop-image\">\n                                <img src=\"viewimage.php?modulepart=medias&entity=1&file=image/test/img/goodies-shop.jpg\">\n                                <div class=\"shop-overlay\">\n                                    <button target=\"new\" class=\"shop-button\"><?php print $weblangs->trans(\"goodiesbuttonTitle\"); ?> <i class=\"icon-chevron-right\"></i></button>\n                                </div>\n                            </div>\n                        </div>\n            \n                	</div>\n                </section>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-11-19 14:59:06',NULL,'2025-01-11 12:34:59',NULL,NULL,'page','',NULL,'','<script>\n    $(document).ready(function () {\n        // Redirect on button click\n        $(\'.shop-button\').on(\'click\', function () {\n            window.open(\'https://shop.spreadshirt.fr/dolibarr-goodies\', \'_blank\'); // Replace with your shop URL\n        });\n    });\n</script>',NULL,'','',0,NULL,NULL),
(170,38,'header','','header','header','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nincludeContainer(\'_library_page_lib.php\', 1);\nsetSessionLang();\n$weblangs->load(\"marketplace@marketplace\", \"languages\");\n$langs->load(\"languages\");\n\n// Get available langs for the website\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\n\n\n\n$mc_website_id = getDolGlobalInt(\"MARKETPLACE_WEBSITE_ID\");\nif (empty($mc_website_id)) {\n  print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_WEBSITE_ID\');\n  exit;\n}\n\n$mc_secret_key = getDolGlobalString(\"MARKETPLACE_SECRET_KEY\");\nif (empty($mc_secret_key)) {\n  print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_SECRET_KEY\');\n  exit;\n}\n\nif (!(isModEnabled(\'paypal\') || isModEnabled(\'stripe\') || isModEnabled(\'paybox\'))) {\n    print $weblangs->trans(\"noPaymentModuleIsActivated\");\n    exit;\n}\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<script type=\"text/javascript\">\n  var shopping_cart_url = \"_service_page_ajax.php\";\n  //var shopping_cart_url = \"<?php //echo DOL_URL_ROOT . \'/custom/dolibarr-foundation/marketplace/doctemplates/websites/website_template-dolistore/containers/shopping_cart.php\'; ?>\";\n</script>\n<header id=\"header\">\n  <div class=\"nav\">\n    <div class=\"container\">\n      <div class=\"row\">\n        <nav>\n            <?php if (!empty($_SESSION[\'user\'][\'pseudo\'])): ?>\n                <div class=\"header_user_info\">\n                	<a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"viewMyCustomerAccount\"); ?>\" class=\"account\" rel=\"nofollow\"><span><?php print $_SESSION[\'user\'][\'pseudo\']; ?></span></a>\n                </div>\n            <?php endif ?>\n          <div class=\"header_user_info\">\n            <?php if (empty($_SESSION[\'user\'][\'id_user\'])): ?>\n                <a class=\"login\" href=\"login-register.php\" rel=\"nofollow\" title=\"<?php print $weblangs->trans(\"logInToYourCustomerAccount\"); ?>\"> <?php print $weblangs->trans(\"signIn\"); ?> </a>\n            <?php else: ?>\n                <a class=\"login\" href=\"myaccount.php?action=logout\" rel=\"nofollow\" title=\"<?php print $weblangs->trans(\"logOutFromYourCustomerAccount\"); ?>\"> <?php print $weblangs->trans(\"logOut\"); ?> </a>\n            <?php endif ?>\n            \n          </div>\n          <div id=\"languages-block-top\" class=\"languages-block\">\n            <div class=\"current\">\n              <span><?php print trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$_SESSION[\'lang\'][\'shortcode\']]))[0]); ?></span>\n            </div>\n            <ul id=\"first-languages\" class=\"languages-block_ul toogle_content\">\n                <?php foreach ($available_langs as $key => $value) : ?>\n                    <?php $value = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]); ?>\n                    <?php if ($key == $_SESSION[\'lang\'][\'shortcode\']): ?>\n		                <li class=\"selected\">\n                            <span><?php print $value; ?></span>\n                        </li>\n                	<?php else: ?>\n                		<li>\n                          <form id=\"languageForm-<?php print $key; ?>\" method=\"post\" action=\"#\">\n                            <input type=\"hidden\" name=\"l\" value=\"<?php print $key; ?>\">\n                            <!--<a href=\"#\" title=\"<?php //print $langs->trans(\"Language_\".$langs_code_shortcode[$key]); ?>\" onclick=\"document.getElementById(\'languageForm-<?php //print $key; ?>\').submit(); return false;\">-->\n                            <a href=\"#\" title=\"<?php print $langs->trans(\"Language_\".$langs_code_shortcode[$key]); ?>\" onclick=\"\n                                   const form = document.getElementById(\'languageForm-<?php print $key; ?>\');\n                                   const parser = document.createElement(\'a\');\n                                   parser.href = form.action || window.location.href;\n                                   const params = new URLSearchParams(parser.search);\n                                   params.delete(\'l\');\n                                   parser.search = params.toString();\n                                   form.action = parser.href;\n                                   form.submit();\n                                   return false;\n                               \">    \n                              <span><?php print $value ; ?></span>\n                            </a>\n                          </form>\n                        </li>\n                	<?php endif ?>\n                <?php endforeach ?>\n            </ul>\n          </div>\n        </nav>\n      </div>\n    </div>\n  </div>\n  <div>\n    <div class=\"container\">\n      <div class=\"row\">\n        <div id=\"header_logo\">\n          <?php\n          if(getDolGlobalString(\'MARKETPLACE_URL_FOR_LOGO\')){\n              $html_logo = \'<img class=\"logo img-responsive-logo img-responsive\" alt=\"\" widthold=\"520\" src=\"\'.getDolGlobalString(\'MARKETPLACE_URL_FOR_LOGO\').\'\">\';\n          }else{\n              $path = getImageFileNameForSize($mysoc->logo_squarred ? $mysoc->logo_squarred : $mysoc->logo, \'_small\');\n              $html_logo = \'<img class=\"logo img-responsive-logo img-responsive\" alt=\"\" widthold=\"520\" src=\"\' . DOL_URL_ROOT . \'/viewimage.php?modulepart=mycompany&file=\'.urlencode(\'logos/\'.$path).\'\">\';\n          }\n          ?>\n          <a href=\"index.php\" title=\"DoliStore\">\n            <?php print $html_logo; ?>\n          </a>\n        </div>\n        <div id=\"search_block_top\" class=\"col-sm-4 clearfix\">\n          <?php $test = \"11\"; ?>\n          <form id=\"searchbox\" method=\"get\" action=\"index.php\">\n            <input type=\"hidden\" name=\"controller\" value=\"search\" />\n            <input type=\"hidden\" name=\"orderby\" value=\"position\" />\n            <input type=\"hidden\" name=\"orderway\" value=\"desc\" />\n            <input type=\"hidden\" name=\"tag\" value=\"<?php (isset($tag)) ? print $tag : \'\'; ?>\" />\n            <input type=\"hidden\" name=\"website\" value=\"<?php print $websitekey; ?>\" />\n            <input class=\"search_query form-control\" type=\"text\" id=\"search_query_top\" name=\"search_query\" placeholder=\"<?php print $weblangs->trans(\"Search\"); ?>\" value=\"<?php print GETPOST(\'search_query\', \'alpha\'); ?>\" />\n            <button type=\"submit\" name=\"submit_search\" class=\"btn btn-default button-search\">\n              <span><?php print $weblangs->trans(\"Search\"); ?></span>\n            </button>\n          </form>\n          <div class=\"filterbyversion\">\n          <?php (!empty($tag)) ? print $weblangs->trans(\"filteredByVersion\") . \' \' . $tag . \' - <a href=\"index.php\">\' . $weblangs->trans(\"removeFilter\") . \'</a>\' : \'\'; ?>\n          </div>\n        </div>\n        <div class=\"col-sm-4 clearfix\">\n            \n        <?php if ($websitepage->ref != \"payment\"): ?>\n            <div class=\"shopping_cart\">\n            <a href=\"order.php\" title=\"<?php print $weblangs->trans(\"viewMyCart\"); ?>\" rel=\"nofollow\">\n              <b><?php print $weblangs->trans(\"Cart\"); ?></b>\n              <span class=\"ajax_cart_quantity unvisible\">0</span>\n              <span class=\"ajax_cart_product_txt unvisible\"><?php print $weblangs->trans(\"product\"); ?></span>\n              <span class=\"ajax_cart_product_txt_s unvisible\"><?php print $weblangs->trans(\"products\"); ?></span>\n              <span class=\"ajax_cart_total unvisible\"></span>\n                <?php if (!empty($_SESSION[\'products\'])): ?>\n                    <span class=\"ajax_cart_no_product\"><?php print count($_SESSION[\'products\']); ?></span> Product<?php if(count($_SESSION[\'products\']) > 1){ print \'s\';} ?>\n                <?php else: ?>\n                    <span class=\"ajax_cart_no_product\">0</span> <?php print $weblangs->trans(\"product\"); ?>\n                <?php endif ?>\n            </a>\n            <div class=\"cart_block block exclusive\">\n              <div class=\"block_content\">\n                <div class=\"cart_block_list\">\n                    \n                  <p class=\"cart-buttons\">\n                    <a id=\"button_order_cart\" class=\"btn btn-default button button-small\" href=\"order.php\" title=\"Check out\" rel=\"nofollow\">\n                      <span> <?php print $weblangs->trans(\"checkOut\"); ?> <i class=\"icon-chevron-right right\"></i>\n                      </span>\n                    </a>\n                  </p>\n\n                    <?php if (!$_SESSION[\'products\']): ?>\n                        <p class=\"cart_block_no_products\"> <?php print $weblangs->trans(\"noProducts\"); ?> </p>\n                    <?php else: ?>\n                        <?php $total = 0; ?>\n                        <?php foreach ($_SESSION[\'products\'] as $cart_product): ?>\n                            <dl class=\"products\">\n                               <dt class=\"item\" data-id=\"cart_block_product_<?php print $cart_product[\'product_id\']; ?>\" style=\"display: block;\">\n                                  <a class=\"cart-images\" href=\"product.php?id=<?php print $cart_product[\'product_id\']; ?>\" title=\"<?php print $cart_product[\'product_name\']; ?>\"><img src=\"<?php print $cart_product[\'product_thumb\']; ?>\" alt=\"<?php print $cart_product[\'product_name\']; ?>\"></a>\n                                  <div class=\"cart-info\">\n                                     <div class=\"product-name\"><span class=\"quantity-formated\"><span class=\"quantity\"><?php print $cart_product[\'product_qty\']; ?></span>&nbsp;x&nbsp;</span><a href=\"product.php?id=<?php print $cart_product[\'product_id\']; ?>\" title=\"<?php print $cart_product[\'product_name\']; ?>\" class=\"cart_block_product_name truncate3\"><?php print $cart_product[\'product_name\']; ?></a></div>\n                                     <span class=\"price\"><?php print price($cart_product[\'product_price\']); ?> €</span>\n                                  </div>\n                                  <span class=\"remove_link\"><a rel=\"nofollow\" class=\"ajax_cart_block_remove_link\" href=\"\" data-code=\"<?php print $cart_product[\'product_id\']; ?>\"> </a></span>\n                               </dt>\n                            </dl>	\n                            <?php\n                                $subtotal = ($cart_product[\'product_price\'] * $cart_product[\'product_qty\']);\n                                $total = ($total + $subtotal);\n                            ?>\n                        <?php endforeach ?>\n                    <?php endif ?>\n\n                  <div class=\"cart-prices\">\n                    <!--\n                    <div class=\"cart-prices-line first-line\">\n                      <span class=\"price cart_block_shipping_cost ajax_cart_shipping_cost\"> <?php print $weblangs->trans(\"freeShipping\"); ?> </span>\n                      <span> <?php print $weblangs->trans(\"Shipping\"); ?> </span>\n                    </div>\n                    -->\n                    <div class=\"cart-prices-line last-line\">\n                      <span class=\"price cart_block_total ajax_block_cart_total\"><?php print $total; ?> €</span>\n                      <span><?php print $weblangs->trans(\"Total\"); ?></span>\n                    </div>\n                    <p> <?php print $weblangs->trans(\"pricesMayVaryDependingOnYourCountry\"); ?> </p>\n                  </div>\n                  \n\n                </div>\n              </div>\n            </div>\n        </div>\n        <?php endif ?>\n        \n        \n        \n        </div>\n        <div id=\"layer_cart\" class=\"lightbox3\">\n            <div id=\"content3\">\n                <div class=\"clearfix\">\n            <div class=\"layer_cart_product col-xs-12 col-md-6\">\n              <span class=\"cross\" title=\"Close window\"></span>\n              <h2>\n                <i class=\"icon-ok\"></i><?php print $weblangs->trans(\"productAddedToCart\"); ?>\n              </h2>\n              <div class=\"product-image-container layer_cart_img\">\n                  \n              </div>\n              <div id=\"layer_cart_product_info\">\n                <span id=\"layer_cart_product_title\" class=\"product-name\"></span>\n                <span id=\"layer_cart_product_attributes\"></span>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"quantity\"); ?></strong>\n                  <span id=\"layer_cart_product_quantity\"></span>\n                </div>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"total\"); ?></strong>\n                  <span id=\"layer_cart_product_price\"></span>\n                </div>\n              </div>\n            </div>\n            <div class=\"layer_cart_cart col-xs-12 col-md-6\">\n              <h2>\n                <span class=\"ajax_cart_product_txt_s  unvisible\"> <?php print $weblangs->trans(\"nbrItemsInCart\"); ?> </span>\n                <span class=\"ajax_cart_product_txt \"> <?php print $weblangs->trans(\"thereIsItemInYourCart\"); ?> </span>\n              </h2>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalProductsTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_products_total\"></span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalShippingTaxIncl\"); ?> </strong>\n                <span class=\"ajax_cart_shipping_cost\"> <?php print $weblangs->trans(\"freeShipping\"); ?> </span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"><?php print $weblangs->trans(\"tax\"); ?></strong>\n                <span class=\"price cart_block_tax_cost ajax_cart_tax_cost\">0,00 €</span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_cart_total\"></span>\n              </div>\n              <div class=\"button-container\">\n                <span class=\"continue btn btn-default button exclusive-medium\" title=\"<?php print $weblangs->trans(\"continueShopping\"); ?>\">\n                  <span>\n                    <i class=\"icon-chevron-left left\"></i><?php print $weblangs->trans(\"continueShopping\"); ?> </span>\n                </span>\n                <a class=\"btn btn-default button button-medium\" href=\"order.php\" title=\"<?php print $weblangs->trans(\"proceedToCheckout\"); ?>\" rel=\"nofollow\">\n                  <span> <?php print $weblangs->trans(\"proceedToCheckout\"); ?> <i class=\"icon-chevron-right right\"></i>\n                  </span>\n                </a>\n              </div>\n            </div>\n          </div>\n            </div>\n        </div>\n        <div id=\"layer_cart\">\n          <div class=\"clearfix\">\n            <div class=\"layer_cart_product col-xs-12 col-md-6\">\n              <span class=\"cross\" title=\"Close window\"></span>\n              <h2>\n                <i class=\"icon-ok\"></i><?php print $weblangs->trans(\"productAddedToCart\"); ?>\n              </h2>\n              <div class=\"product-image-container layer_cart_img\">\n                  \n              </div>\n              <div id=\"layer_cart_product_info\">\n                <span id=\"layer_cart_product_title\" class=\"product-name\"></span>\n                <span id=\"layer_cart_product_attributes\"></span>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"quantity\"); ?></strong>\n                  <span id=\"layer_cart_product_quantity\"></span>\n                </div>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"total\"); ?></strong>\n                  <span id=\"layer_cart_product_price\"></span>\n                </div>\n              </div>\n            </div>\n            <div class=\"layer_cart_cart col-xs-12 col-md-6\">\n              <h2>\n                <span class=\"ajax_cart_product_txt_s  unvisible\"> <?php print $weblangs->trans(\"nbrItemsInCart\"); ?> </span>\n                <span class=\"ajax_cart_product_txt \"> <?php print $weblangs->trans(\"thereIsItemInYourCart\"); ?> </span>\n              </h2>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalProductsTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_products_total\"></span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalShippingTaxIncl\"); ?> </strong>\n                <span class=\"ajax_cart_shipping_cost\"> <?php print $weblangs->trans(\"freeShipping\"); ?> </span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"><?php print $weblangs->trans(\"tax\"); ?></strong>\n                <span class=\"price cart_block_tax_cost ajax_cart_tax_cost\">0,00 €</span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_cart_total\"></span>\n              </div>\n              <div class=\"button-container\">\n                <span class=\"continue btn btn-default button exclusive-medium\" title=\"Continue shopping\">\n                  <span>\n                    <i class=\"icon-chevron-left left\"></i><?php print $weblangs->trans(\"continueShopping\"); ?> </span>\n                </span>\n                <a class=\"btn btn-default button button-medium\" href=\"order.php\" title=\"<?php print $weblangs->trans(\"proceedToCheckout\"); ?>\" rel=\"nofollow\">\n                  <span> <?php print $weblangs->trans(\"proceedToCheckout\"); ?> <i class=\"icon-chevron-right right\"></i>\n                  </span>\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class=\"crossseling\"></div>\n        </div>\n        <div class=\"layer_cart_overlay\"></div>\n      </div>\n    </div>\n  </div>\n    \n    <!-- The div for the image preview -->\n    <div id=\"lightbox\" class=\"marketplacelightbox\" style=\"display: none;\">\n      <p><?php print $weblangs->trans(\"clickToClose\"); ?></p>\n      <div id=\"content\" class=\"marketplacelightbox2\"><!-- Do not include a img src tag here, it will generate a load by the parent page --></div>\n    </div>\n',1,'2024-02-02 16:48:47',NULL,'2025-01-18 12:50:09',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(171,38,'income-payments','','Income and Payments','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\nrequire_once DOL_DOCUMENT_ROOT.\'/fourn/class/fournisseur.facture.class.php\';\n\ninclude_once DOL_DOCUMENT_ROOT.\'/core/class/html.form.class.php\';\n\n//error_reporting(E_ALL);\n//ini_set(\'display_errors\', 1);\n\nprint \'<script nonce=\"\'.getNonce().\'\" type=\"text/javascript\" src=\"\'.DOL_MAIN_URL_ROOT.\'/core/js/lib_head.js.php\"></script>\'.\"\\n\";\n\n$form = new Form($db);\n\n$date_start_timestamp = \'\';\n$date_end_timestamp = \'\';\nif (!empty(GETPOST(\'datestart\')) || !empty(GETPOST(\'dateend\'))) {\n    \n    $date_start = GETPOST(\'datestart\');\n    $date_end = GETPOST(\'dateend\');\n    \n    $date_start_timestamp = dol_mktime(0, 0, 0, GETPOSTINT(\'datestartmonth\'), GETPOSTINT(\'datestartday\'), GETPOSTINT(\'datestartyear\'));\n    $date_end_timestamp = dol_mktime(0, 0, 0, GETPOSTINT(\'dateendmonth\'), GETPOSTINT(\'dateendday\'), GETPOSTINT(\'dateendyear\'));\n    \n    $error = 0;\n    $error_messages = array();\n    \n    if ((empty($date_start) && !empty($date_end)) || (!empty($date_start) && empty($date_end))) {\n        $error++;\n        $error_messages[] = \"oneDateEmpty\";\n    }\n    \n    if ($date_end_timestamp < $date_start_timestamp) {\n        $error++;\n        $error_messages[] = \"endDateMustBeGreater\";\n    }\n    \n    $filter = \'\';\n    if ($error == 0 && !empty($date_start) && !empty($date_end)) {\n        $filter = \" AND c.date_commande BETWEEN \'\".$db->idate($date_start_timestamp).\"\' AND \'\".$db->idate($date_end_timestamp).\"\'\";\n    }\n}\n\n\n\n$weblangs->load(\'companies\');\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n\n// Get Account ID.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer_account = new SocieteAccount($db);\n$result = $customer_account->fetch($user_id);\n$customer_id = $customer_account->fk_soc;\n\n// Get soc info.\n$socInfo = new Societe($db);\n$socInfo->fetch($customer_id);\n\n// Get account info\n$accounts = array();\n$sql = \"select rowid, login from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".$customer_id.\" AND fk_website = \".$website->id.\" LIMIT 100\";\n$resql = $db->query($sql);\nwhile ($objsql = $db->fetch_object($resql)) {\n    $accounts[] = array(\'id\' => $objsql->rowid, \'login\' => $objsql->login);\n}\n\n/*\n$cContacts = $socInfo->contact_array_objects();\nforeach ($cContacts as $cContact) {\n    if ($cContact->ref_ext == $user_id) {\n        $customer_firstname = $cContact->firstname;\n        $customer_lastname = $cContact->lastname;\n        $customer_email = $cContact->email;\n        $customer_address = $cContact->address;\n    }\n}\n*/\n\n\n// To render the view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\n    // Only for members with a specific role\n    require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n    $membre = new Adherent($db);\n    $result = $membre->fetch(\'\', 0, $customer_id);\n    \n    $adminsCat = new Categorie($db);\n	$adminsCat->fetch(1);\n	\n	$result = $adminsCat->containsObject(\'member\', $membre->id);\n	if ($result > 0) {\n	    \n        $customer_id = GETPOST(\'id_customer\');\n        // Get soc info.\n        $socInfo = new Societe($db);\n        $socInfo->fetch($customer_id);\n        \n        // Get soc acount email\n        $sql = \"select rowid from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".$customer_id.\" AND fk_website = \".$website->id;\n        $result = $db->query($sql);\n        $objsql = $db->fetch_object($result);\n        \n        // Get account info\n        /*\n        $cContacts = $socInfo->contact_array_objects();\n        foreach ($cContacts as $cContact) {\n            if ($cContact->ref_ext == $objsql->rowid) {\n                $customer_firstname = $cContact->firstname;\n                $customer_lastname = $cContact->lastname;\n                $customer_email = $cContact->email;\n                $customer_address = $cContact->address;\n            }\n        }\n        */\n	}\n}\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n// Get liste of products\n$products_ids = array();\n/*$sql = \'SELECT fk_product, datec FROM \'.MAIN_DB_PREFIX.\"product_fournisseur_price, \'.MAIN_DB_PREFIX.\'categorie_product AS cp WHERE fk_soc = \".((int) $customer_id). \" AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' GROUP BY fk_product ORDER BY datec DESC\";*/\n$sql = \'SELECT pf.fk_product, MIN(pf.datec) AS first_date\n        FROM \'.MAIN_DB_PREFIX.\'product_fournisseur_price as pf, \'.MAIN_DB_PREFIX.\'categorie_product AS cp \n        WHERE pf.fk_soc = \'.$customer_id.\' AND pf.fk_product = cp.fk_product \n        AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' \n        GROUP BY fk_product \n        ORDER BY first_date DESC\';\n\nif ($result_products = $db->query($sql)) {\n	while ($product_id = $result_products->fetch_object()) {\n        $products_ids[] = $product_id->fk_product;\n	}\n}\n$products_ids_str = implode(\',\', $products_ids);\n\nif (!empty($products_ids_str)) {\n    $all_sells_period = \"SELECT SUM(d.qty) AS sells \";\n    $all_sells_period .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $all_sells_period .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and d.total_ht != 0 and c.fk_statut IN (1,3) and (c.facture = 1 OR c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    if (!empty($filter)) {\n       $all_sells_period .=  $filter;\n    }\n    $resql = $db->query($all_sells_period);\n    $all_sells_period = $db->fetch_object($resql);\n    \n    $sum_all_sells_period = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_sells_period .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_sells_period .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    if (!empty($filter)) {\n       $sum_all_sells_period .=  $filter;\n    }\n    $resql = $db->query($sum_all_sells_period);\n    $sum_all_sells_period = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells_period = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_validated_sells_period .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_validated_sells_period .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $sum_all_validated_sells_period .= \"AND c.date_commande < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    if (!empty($filter)) {\n       $sum_all_validated_sells_period .=  $filter;\n    }\n    $resql = $db->query($sum_all_validated_sells_period);\n    $sum_all_validated_sells_period = $db->fetch_object($resql);\n    \n    $sum_all_sells = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_sells .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_sells .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $resql = $db->query($sum_all_sells);\n    $sum_all_sells = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_validated_sells .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_validated_sells .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $sum_all_validated_sells .= \"AND c.date_commande < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    \n    $resql = $db->query($sum_all_validated_sells);\n    $sells_done_validated = $db->fetch_object($resql);\n    \n    // Calculate all discounts for this customer products\n    $TOTAL_DISCOUNTS = 0;\n    $like_conditions = [];\n    foreach ($products_ids as $product_id) {\n        $like_conditions[] = \"d.description LIKE \'\" . $product_id . \"# %\'\";\n    }\n    // Join all conditions with OR\n    $like_clause = implode(\' OR \', $like_conditions);\n    \n    $sum_all_discounts = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_discounts .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_discounts .= \"WHERE c.rowid = d.fk_commande \";\n    $sum_all_discounts .= \"AND (\" . $like_clause . \") \";\n    $sum_all_discounts .= \"AND (c.facture = 1 OR c.ref_ext IS NOT NULL) \";\n    $sum_all_discounts .= \"AND c.module_source = \'Marketplace\' \";\n    $resql = $db->query($sum_all_discounts);\n    $sells_discounts = $db->fetch_object($resql);\n    $TOTAL_DISCOUNTS = $sells_discounts->total;\n    \n    /*=========== Payment History ====================*/\n    $payment_history = \"SELECT f.rowid, f.ref, f.fk_statut, f.fk_soc, f.datec, f.datef, f.date_closing, f.total_ht , f.total_ttc \";\n    $payment_history .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $payment_history .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 ORDER BY f.datef DESC\";\n\n    $alreadyreceived=0;\n    $dolistoreinvoices=array();\n    $linesinvoice = array();\n    if ($result_payment_history = $db->query($payment_history)) {\n\n        while ($payment = $result_payment_history->fetch_object()) {\n            $invoice = new FactureFournisseur($db);\n            $result = $invoice->fetch($payment->rowid);\n            \n            // Define lines of invoice\n            $linesresp = array();\n            foreach ($invoice->lines as $line) {\n                    $linesresp[] = array(\n                            \'id\' => $line->rowid,\n                            \'type\' => $line->product_type,\n                            \'desc\' => dol_htmlcleanlastbr($line->desc),\n                            \'total_net\' => $line->total_ht,\n                            \'total_vat\' => $line->total_tva,\n                            \'total\' => $line->total_ttc,\n                            \'vat_rate\' => $line->tva_tx,\n                            \'qty\' => $line->qty,\n                            \'product_ref\' => $line->product_ref,\n                            \'product_label\' => $line->product_label,\n                            \'product_desc\' => $line->product_desc,\n                    );\n            }\n            \n            // Now define invoice\n            $linesinvoice[] = array(\n                    \'id\' => $invoice->id,\n                    \'ref\' => $invoice->ref,\n                    \'ref_supplier\' => $invoice->ref_supplier,\n                    \'ref_ext\' => $invoice->ref_ext,\n                    \'fk_user_author\' => $invoice->user_creation_id,\n                    \'fk_user_valid\' => $invoice->user_validation_id,\n                    \'fk_thirdparty\' => $invoice->socid,\n                    \'type\' => $invoice->type,\n                    \'status\' => $invoice->status,\n                    \'total_net\' => $invoice->total_ht,\n                    \'total_vat\' => $invoice->total_tva,\n                    \'total\' => $invoice->total_ttc,\n                    \'date_creation\' => dol_print_date($invoice->datec, \'dayhourrfc\'),\n                    \'date_modification\' => dol_print_date($invoice->tms, \'dayhourrfc\'),\n                    \'date_invoice\' => dol_print_date($invoice->date, \'dayhourrfc\'),\n                    \'date_term\' => dol_print_date($invoice->date_echeance, \'dayhourrfc\'),\n                    \'label\' => $invoice->label,\n                    \'paid\' => $invoice->paid,\n                    \'note_private\' => $invoice->note_private,\n                    \'note_public\' => $invoice->note_public,\n                    \'close_code\' => $invoice->close_code,\n                    \'close_note\' => $invoice->close_note,\n\n                    \'lines\' => $linesresp\n            );\n        }\n        \n        foreach($linesinvoice as $invoice) {\n            $dateinvoice=substr($invoice[\'date_invoice\'], 0, 10);\n            \n            // Rule to detect invoice found is for dolistore payment back\n			$isfordolistore=0;\n			if ((preg_match(\'/dolistore/i\',$invoice[\'note_private\']) || preg_match(\'/dolistore/i\',$invoice[\'label\']))\n				&& ! preg_match(\'/agios/i\',$invoice[\'ref_supplier\'])\n				&& ! preg_match(\'/frais/i\',$invoice[\'ref_supplier\'])\n				&& ! preg_match(\'/comDolistore/i\',$invoice[\'ref_supplier\'])\n				) $isfordolistore=1;\n				\n			if (! $isfordolistore) {\n				foreach($invoice[\'lines\'] as $line)\n				{\n					if (preg_match(\'/dolistore/i\',$line[\'desc\'])\n						&& ! preg_match(\'/Remboursement certificat|Remboursement domaine/i\',$line[\'desc\'])\n						&& ! preg_match(\'/agios/i\',$invoice[\'ref_supplier\'])\n						&& ! preg_match(\'/frais/i\',$invoice[\'ref_supplier\'])\n						&& ! preg_match(\'/comDolistore/i\',$invoice[\'ref_supplier\'])\n						)\n					{\n						$isfordolistore++;\n					}\n				}\n			}\n			\n			if ($isfordolistore)\n			{\n				// Array of already received and paid invoices\n				$dolistoreinvoices[]=array(\n					\'dolistore_customer_id\'=>$customer_id,\n					\'id\'=>$invoice[\'id\'],\n					\'ref\'=>$invoice[\'ref\'],\n					\'ref_supplier\'=>$invoice[\'ref_supplier\'],\n					\'status\'=>$invoice[\'status\'],\n					\'date\'=>$invoice[\'date_invoice\'],\n					\'datenohour\'=>$dateinvoice,\n					\'amount_ht\'=>$invoice[\'total_net\'],\n					\'amount_vat\'=>$invoice[\'total_vat\'],\n					\'amount_ttc\'=>$invoice[\'total\'],\n					\'fk_thirdparty\'=>$invoice[\'fk_thirdparty\']\n				);\n			}\n        }\n    }\n    \n    // Calculte total recived amount\n    foreach ($dolistoreinvoices as $item) {\n        $tmpdate=preg_replace(\'/(\\s|T)00:00:00Z/\',\'\',$item[\'date\']);\n        if (strcmp($tmpdate,\'2013-01-01\') < 0) $alreadyreceived+=$item[\'amount_ttc\'];\n		else $alreadyreceived+=$item[\'amount_ht\'];\n    }\n    /*=========== Payment History ====================*/\n\n    \n    \n    /*$sum_payment_done_before_2013 = \"SELECT SUM(f.total_ttc) as payment_done \";\n    $sum_payment_done_before_2013 .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $sum_payment_done_before_2013 .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') and f.datef < \'2013-01-01\' \";\n    $resql = $db->query($sum_payment_done_before_2013);\n    $sum_payment_done_before_2013 = $db->fetch_object($resql);\n    \n    $sum_payment_done_after_2013 = \"SELECT SUM(f.total_ht) as payment_done \";\n    $sum_payment_done_after_2013 .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $sum_payment_done_after_2013 .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') and f.datef > \'2013-01-01\' \";\n    $resql = $db->query($sum_payment_done_after_2013);\n    $sum_payment_done_after_2013 = $db->fetch_object($resql);\n    \n    \n    $sum_payment_done = \"SELECT SUM(f.total_ht) as payment_done \";\n    $sum_payment_done .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $sum_payment_done .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') \";\n    $resql = $db->query($sum_payment_done);\n    $sum_payment_done = $db->fetch_object($resql);*/\n    \n    $sum_payment_done = $alreadyreceived;\n}\n\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php\n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"incomePaymentsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"incomeAndPayments\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n        <div class=\"row\">\n            <!-- include lefet sidebar container -->\n            <?php includeContainer(\'sidebar\'); ?>\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n                <?php if (empty($products_ids_str)): ?>\n	                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"incomeAndPayments\"); ?></h1>\n	                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noProductToDisplay\"); ?> </p>\n                <?php else: ?>\n                    <div class=\"clearfix\">\n                        <h1 class=\"page-heading\"><?php print $weblangs->trans(\"incomeAndPayments\"); ?></h1>\n                        <button class=\"btn btn-default button\" id=\"generate-csv\" onclick=\"generateCSV(<?php print $customer_id; ?>)\"><?php print $weblangs->trans(\"downloadAllSales\"); ?> <i class=\"icon-cloud-download\"></i></button>\n                        \n                        <div id=\"block-history\" class=\"block-center\">\n                            <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                                \n                                <div <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\">Info</h3>\n                                    <div class=\"row\">\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Company\"); ?> :</b> <?php print $socInfo->name; ?> &nbsp; <span class=\"opacitymedium\">(ID <?php print $socInfo->id; ?>)</span></p>\n                                        <!--<p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"ThirdPartyEmail\"); ?> :</b> <?php print $socInfo->mail; ?></p>-->\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"ThirdPartyAddress\"); ?> :</b> <?php print $socInfo->address; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Country\"); ?> :</b> <?php print $socInfo->country_code; ?></p>\n                                        <p class=\"col-xs-12\">&nbsp;</p>\n                                        <p class=\"col-xs-12\"><b><?php print $weblangs->trans(\"Logins\") ?> :</b></p>\n                                        <?php\n                                        foreach ($accounts as $account) {\n                                            print \'<p class=\"col-xs-12\">\';\n                                            if (count($accounts) > 1) {\n                                                print \'- \';   \n                                            }\n                                            print $account[\'login\'];\n                                            if (count($accounts) > 1) {\n                                                print ($user_id == $account[\'id\'] ? \' <span class=\"opacitymedium\">(You)</span>\' : \'\');\n                                            }\n                                            print \'</p>\';\n                                        }\n                                        ?>\n                                        <!--\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Login\").\' - \'.$weblangs->trans(\"Firstname\"); ?> :</b> <?php print $customer_firstname; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Login\").\' - \'. $weblangs->trans(\"Lastname\"); ?> :</b> <?php print $customer_lastname; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Login\").\' - \'. $weblangs->trans(\"Email\"); ?> :</b> <?php print $customer_email; ?></p>\n                                        -->\n                                    </div>\n                                </div>\n                                \n                        		<div id=\"order-detail-content\" class=\"table_block table-responsive box\">\n                        		    <?php if (isset($error) && $error != 0): ?>\n                                		<div class=\'alert alert-danger\'>\n                                    		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n                                	\n                                	<h3 class=\"page-subheading\">statistics</h3>\n            \n                        		    <form action=\"\" method=\"post\" id=\"account-creation_form\">\n                                        <div class=\"form-row align-items-center\">\n                                            <div class=\"col-xs-12 form-group row required inline-date-filter\">\n                                                <span class=\"\">\n                                                    <?php print $form->selectDate(($date_start_timestamp ? $date_start_timestamp : -1), \'datestart\', 0, 0, 1, \'\', 1, 0, 0, \'\', \'\', \'\', \'\', 1, \'\', $weblangs->trans(\"from\"), \'auto\', DOL_URL_ROOT.\'/document.php?modulepart=medias&file=image/test/img/datepicker/object_calendarday.png\'); ?>\n                                                </span>\n                                                <span class=\"\">\n                                                    <?php print $form->selectDate($date_end_timestamp ? $date_end_timestamp : -1, \'dateend\', 0, 0, 1, \'\', 1, 0, 0, \'\', \'\', \'\', \'\', 1, \'\', $weblangs->trans(\"to\"), \'auto\', DOL_URL_ROOT.\'/document.php?modulepart=medias&file=image/test/img/datepicker/object_calendarday.png\'); ?>\n                                                </span>\n                                                <span class=\"\">\n                                                  <button type=\"submit\" class=\"btn-filter\"><?php print $weblangs->trans(\"Refresh\"); ?></button>\n                                                </span>\n                                            </div>\n                                        </div>\n                        		    </form>\n                                    <hr>\n                        		    <table class=\"table-no-border\">\n                        		        <?php\n                        		            // Check if there is an amount of coupons \n                        		            $TOTAL_REDUC_OLD_SYSTEM = 0;\n                            		        if (getDolGlobalString(\"MARKETPLACE_TOTAL_REDUC_OLD_SYSTEM_\" . $customer_id)) {\n                            		            $TOTAL_REDUC_OLD_SYSTEM = getDolGlobalString(\"MARKETPLACE_TOTAL_REDUC_OLD_SYSTEM_\" . $customer_id);\n                            		        }\n                        		        ?>\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"numberOfProducts\"); ?></td>\n                        		            <td><span><?php print count($products_ids); ?></span></td>\n                        		        </tr>\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"numberOfPaidSells\"); ?></td>\n                        		            <td><span class=\"span-blue\"><?php print $all_sells_period->sells; ?></span></td>\n                        		        </tr>\n                        		        <tr>\n                                            <td><?php print $weblangs->trans(\"totalOfSellsDone\"); ?></td>\n                                            <td>\n                                                80% x ( \n                                                <?php print price($sum_all_sells_period->total); ?> \n                                                <?php if ($TOTAL_DISCOUNTS) { \n                                                    print \" \" . price($TOTAL_DISCOUNTS) . \"*\"; \n                                                } ?> \n                                                <?php if ($TOTAL_REDUC_OLD_SYSTEM) { \n                                                    print \" - \" . price($TOTAL_REDUC_OLD_SYSTEM) . \"**\"; \n                                                } ?> \n                                                ) = \n                                                <span class=\"span-blue\">\n                                                    <?php print price(($sum_all_sells_period->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80, 0, \'\', 1, -1, 2); ?>€\n                                                </span> \n                                                <?php print $weblangs->trans(\"exclTax\"); ?>\n                                            </td>\n                                        </tr>\n                                        <tr>\n                                            <td><?php print $weblangs->trans(\"totalValidatedSells\"); ?></td>\n                                            <td>\n                                                80% x ( \n                                                <?php print price($sum_all_validated_sells_period->total); ?> \n                                                <?php if ($TOTAL_DISCOUNTS) { \n                                                    print \" \" . price($TOTAL_DISCOUNTS) . \"*\"; \n                                                } ?> \n                                                <?php if ($TOTAL_REDUC_OLD_SYSTEM) { \n                                                    print \" - \" . price($TOTAL_REDUC_OLD_SYSTEM) . \"**\"; \n                                                } ?> \n                                                ) = \n                                                <span class=\"span-blue\">\n                                                    <?php print price(($sum_all_validated_sells_period->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80, 0, \'\', 1, -1, 2); ?>€\n                                                </span> \n                                                <?php print $weblangs->trans(\"exclTax\"); ?>\n                                            </td>\n                                        </tr>\n                                        <?php if ($TOTAL_DISCOUNTS != 0): ?>\n                                            <tr>\n                            		            <td><small> * <?php print $weblangs->trans(\"totalDiscountsOffered\"); ?></small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		        <?php if ($TOTAL_REDUC_OLD_SYSTEM != 0): ?>\n                                            <tr>\n                            		            <td><small> ** <?php print $weblangs->trans(\"totalVouchersOffered\"); ?></small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		    </table>\n\n                                </div>\n                        		    \n            \n            \n                                <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"amountToClaim\"); ?></h3>\n                        		    <table class=\"table-no-border\">\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"remainedAmountInOneMonth\"); ?></td>\n                        		            <td><span class=\"span-blue\"><?php print price((($sum_all_sells->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?></td>\n                        		        </tr>\n                        		        <tr>\n                        		            <?php\n                        		            // Check if there is at least one supplier invoice done during this current month\n                        		            $checkLastPaymentCount = \"SELECT COUNT(*) AS payment_count \";\n                                            $checkLastPaymentCount .= \"FROM \" . MAIN_DB_PREFIX . \"facture_fourn AS f \";\n                                            $checkLastPaymentCount .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" AND f.fk_statut = 2 AND f.paye = 1 \";\n                                            $checkLastPaymentCount .= \"AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') \";\n                                            $checkLastPaymentCount .= \"AND MONTH(f.datef) = MONTH(CURDATE()) AND YEAR(f.datef) = YEAR(CURDATE())\";\n                                            $resql = $db->query($checkLastPaymentCount);\n                                            $hasRecivedPaymentThisMonth = $db->fetch_object($resql);\n                        		            ?>\n                        		            <td><?php print $weblangs->trans(\"remainedAmountToday\"); ?>*</td>\n                        		            <?php if ($hasRecivedPaymentThisMonth->payment_count > 0): ?>\n                        		                <td><span class=\"span-blue\"><?php print price((($sells_done_validated->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?> <small><?php print $weblangs->trans(\"aPaymentWasDoneThisMonth\"); ?></small></td>\n                        		            <?php else: ?>\n                        		                <td><span class=\"span-blue\"><?php print price((($sells_done_validated->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?></td>\n                        		            <?php endif ?>\n                        		        </tr>\n                        		        \n                        		        <?php if (getDolGlobalInt(\"MARKETPLACE_MINIMUM_PAYOUT_AMOUNT\")): ?>\n                                            <tr>\n                            		            <td><small> <?php print $weblangs->trans(\"minAmountToClaim\"); ?> : <?php print getDolGlobalInt(\"MARKETPLACE_MINIMUM_PAYOUT_AMOUNT\"); ?> €</small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		        <tr>\n                        		            <td><small> * <?php print $weblangs->trans(\"minAmountToClaimDesc\"); ?></small></td>\n                        		        </tr>\n                        		    </table>\n                        		    \n                                </div>\n                                \n                                <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"paymentHistory\"); ?></h3>\n                        		    <table class=\"table table-bordered table-bordered-block-order-detail order-history table-payment-recap\">\n                        		        <thead>\n                        					<tr>\n                        						<th class=\"first_item\" width=\"60\">#</th>\n                        						<th class=\"item\" width=\"170\"><?php print $weblangs->trans(\"date\"); ?></th>\n                        						<th class=\"item\" width=\"170\"><?php print $weblangs->trans(\"Ref\"); ?></th>\n                        						<th class=\"item\"><?php print $weblangs->trans(\"AmountHT\"); ?></th>\n                        						<th class=\"item\"><?php print $weblangs->trans(\"AmountTTC\"); ?></th>\n                        					</tr>\n                        				</thead>\n                        				<tbody>\n                        				    <?php\n                                            /*$payment_history = \"SELECT f.rowid, f.ref, f.fk_statut, f.fk_soc, f.datec, f.datef, f.date_closing, f.total_ht , f.total_ttc \";\n                                            $payment_history .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n                                            $payment_history .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') ORDER BY f.datef DESC\";*/\n                        				    if ($dolistoreinvoices) {\n                        				        $i = 1;\n                        				        $total_ht = 0;\n                                                $total_ttc = 0;\n                        				        foreach ($dolistoreinvoices as $payment) {\n                        				            $tmpdate=preg_replace(\'/(\\s|T)00:00:00Z/\',\'\',$payment[\'date\']);\n                        				            if (strcmp($tmpdate ,\'2013-01-01\') < 0) $payment[\'amount_ht\']=$payment[\'amount_ttc\'];\n                        				            $total_ht += $payment[\'amount_ht\'];\n                                                    $total_ttc += $payment[\'amount_ttc\'];\n                        				    ?>\n                                		        <tr>\n                                		            <td><?php print $i; ?></td>\n                                		            <td><?php print dol_print_date($tmpdate); ?></td>\n                                		            <td><?php print $payment[\'ref_supplier\']; ?><!-- <?php print $payment[\'ref\']; ?> --></td>\n                                		            <td><?php print price($payment[\'amount_ht\']); ?> €</td>\n                                		            <td><?php print price($payment[\'amount_ttc\']); ?> €</td>\n                                		        </tr>\n                            		        <?php\n                        					    $i++;\n                                            	}\n                                            	?>\n                                            	<tr>\n                                                    <td colspan=\"3\"><strong><?php print $weblangs->trans(\"AmountTotal\"); ?></strong></td>\n                                                    <td><strong><?php print price($total_ht); ?> €</strong></td>\n                                                    <td><strong><?php print price($total_ttc); ?> €</strong></td>\n                                                </tr>\n                                            <?php\n                                            }\n                                            ?>\n                                        </tbody>\n            \n                        		    </table>\n                                </div>\n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		</div>\n                            </div>\n                    </div>\n                <?php endif ?>\n                <ul class=\"footer_links clearfix\">\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                    			<span>\n                    				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                    			</span>\n                    		</a>\n                    	</li>\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                    			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                    		</a>\n                    	</li>\n                    </ul>\n            </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-11 14:37:39',NULL,'2025-01-21 10:38:18',NULL,NULL,'page','',NULL,'','<script>\nvar generate_csv = \"_service_page_ajax.php\";\nfunction generateCSV(customerId) {\n    $.ajax({\n        url: generate_csv,\n        type: \'GET\',\n        data: {sells_history : 1 , id_customer: customerId},\n        dataType: \'json\',\n        success: function(response) {\n            if (response.filepath) {\n                downloadCSV(response.filepath);\n            }\n        },\n        error: function(xhr, status, error) {\n            console.error(\'Erreur lors de la génération du CSV:\', error);\n        }\n    });\n}\n\nfunction downloadCSV(filepath) {\n    var a = document.createElement(\'a\');\n    a.href = filepath;\n    a.download = filepath.split(\'/\').pop();\n    document.body.appendChild(a);\n    a.click();\n    document.body.removeChild(a);\n\n    $.ajax({\n        url: generate_csv,\n        type: \'POST\',\n        data: { filepath: filepath, action: \'remove_csv\' },\n        success: function(response) {\n            console.log(\'file deleted.\');\n        }\n    });\n}\n</script>',NULL,'','',0,NULL,NULL),
(172,38,'income-payments2','','income-payments2','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\nrequire_once DOL_DOCUMENT_ROOT.\'/fourn/class/fournisseur.facture.class.php\';\n\ninclude_once DOL_DOCUMENT_ROOT.\'/core/class/html.form.class.php\';\n\nerror_reporting(E_ALL);\nini_set(\'display_errors\', 1);\n\nprint \'<script nonce=\"\'.getNonce().\'\" type=\"text/javascript\" src=\"\'.DOL_MAIN_URL_ROOT.\'/core/js/lib_head.js.php\"></script>\'.\"\\n\";\n\n$form = new Form($db);\n\n$date_start_timestamp = \'\';\n$date_end_timestamp = \'\';\nif (!empty(GETPOST(\'datestart\')) || !empty(GETPOST(\'dateend\'))) {\n    \n    $date_start = GETPOST(\'datestart\');\n    $date_end = GETPOST(\'dateend\');\n    \n    $date_start_timestamp = dol_mktime(0, 0, 0, GETPOSTINT(\'datestartmonth\'), GETPOSTINT(\'datestartday\'), GETPOSTINT(\'datestartyear\'));\n    $date_end_timestamp = dol_mktime(0, 0, 0, GETPOSTINT(\'dateendmonth\'), GETPOSTINT(\'dateendday\'), GETPOSTINT(\'dateendyear\'));\n    \n    $error = 0;\n    $error_messages = array();\n    \n    if ((empty($date_start) && !empty($date_end)) || (!empty($date_start) && empty($date_end))) {\n        $error++;\n        $error_messages[] = \"oneDateEmpty\";\n    }\n    \n    if ($date_end_timestamp < $date_start_timestamp) {\n        $error++;\n        $error_messages[] = \"endDateMustBeGreater\";\n    }\n    \n    $filter = \'\';\n    if ($error == 0 && !empty($date_start) && !empty($date_end)) {\n        $filter = \" AND c.date_commande BETWEEN \'\".$db->idate($date_start_timestamp).\"\' AND \'\".$db->idate($date_end_timestamp).\"\'\";\n    }\n    \n    $filterOrders = \'\';\n    if ($error == 0 && !empty($date_start) && !empty($date_end)) {\n        $filterOrders = \" AND c.date_commande BETWEEN \'\".$db->idate($date_start_timestamp).\"\' AND \'\".$db->idate($date_end_timestamp).\"\'\";\n    }\n    \n    $filterInvoices = \'\';\n    if ($error == 0 && !empty($date_start) && !empty($date_end)) {\n        $filterInvoices = \" AND f.datef BETWEEN \'\".$db->idate($date_start_timestamp).\"\' AND \'\".$db->idate($date_end_timestamp).\"\'\";\n    }\n}\n\n\n\n$weblangs->load(\'companies\');\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n\n// Get Account ID.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer_account = new SocieteAccount($db);\n$result = $customer_account->fetch($user_id);\n$customer_id = $customer_account->fk_soc;\n\n// Get soc info.\n$socInfo = new Societe($db);\n$socInfo->fetch($customer_id);\n\n// Get account info\n$accounts = array();\n$sql = \"select rowid, login from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".$customer_id.\" AND fk_website = 18 LIMIT 100\";\n$resql = $db->query($sql);\nwhile ($objsql = $db->fetch_object($resql)) {\n    $accounts[] = array(\'id\' => $objsql->rowid, \'login\' => $objsql->login);\n}\n\n/*\n$cContacts = $socInfo->contact_array_objects();\nforeach ($cContacts as $cContact) {\n    if ($cContact->ref_ext == $user_id) {\n        $customer_firstname = $cContact->firstname;\n        $customer_lastname = $cContact->lastname;\n        $customer_email = $cContact->email;\n        $customer_address = $cContact->address;\n    }\n}\n*/\n\n\n// To render the view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\n    // Only for members with a specific role\n    require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n    $membre = new Adherent($db);\n    $result = $membre->fetch(\'\', 0, $customer_id);\n    \n    $adminsCat = new Categorie($db);\n	$adminsCat->fetch(1);\n	\n	$result = $adminsCat->containsObject(\'member\', $membre->id);\n	if ($result > 0) {\n	    \n        $customer_id = GETPOST(\'id_customer\');\n        // Get soc info.\n        $socInfo = new Societe($db);\n        $socInfo->fetch($customer_id);\n        \n        // Get soc acount email\n        $sql = \"select rowid from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".$customer_id.\" AND fk_website = \".$website->id;\n        $result = $db->query($sql);\n        $objsql = $db->fetch_object($result);\n        \n        // Get account info\n        /*\n        $cContacts = $socInfo->contact_array_objects();\n        foreach ($cContacts as $cContact) {\n            if ($cContact->ref_ext == $objsql->rowid) {\n                $customer_firstname = $cContact->firstname;\n                $customer_lastname = $cContact->lastname;\n                $customer_email = $cContact->email;\n                $customer_address = $cContact->address;\n            }\n        }\n        */\n	}\n}\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n// Get liste of products\n$products_ids = array();\n/*$sql = \'SELECT fk_product, datec FROM \'.MAIN_DB_PREFIX.\"product_fournisseur_price, \'.MAIN_DB_PREFIX.\'categorie_product AS cp WHERE fk_soc = \".((int) $customer_id). \" AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' GROUP BY fk_product ORDER BY datec DESC\";*/\n$sql = \'SELECT pf.fk_product, MIN(pf.datec) AS first_date\n        FROM \'.MAIN_DB_PREFIX.\'product_fournisseur_price as pf, \'.MAIN_DB_PREFIX.\'categorie_product AS cp \n        WHERE pf.fk_soc = \'.$customer_id.\' AND pf.fk_product = cp.fk_product \n        AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' \n        GROUP BY fk_product \n        ORDER BY first_date DESC\';\n\nif ($result_products = $db->query($sql)) {\n	while ($product_id = $result_products->fetch_object()) {\n        $products_ids[] = $product_id->fk_product;\n	}\n}\n$products_ids_str = implode(\',\', $products_ids);\n\nif (!empty($products_ids_str)) {\n\n    /*==========================================================*/\n    $all_sells_period_orders = \"SELECT SUM(d.qty) AS sells \";\n    $all_sells_period_orders .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $all_sells_period_orders .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and d.total_ht != 0 and c.fk_statut IN (1,3) and (c.facture = 1 OR c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' and c.date_commande < \'2025-01-01\' \";\n    if (!empty($filterOrders)) {\n       $all_sells_period_orders .=  $filterOrders;\n    }\n    \n    $resql = $db->query($all_sells_period_orders);\n    $all_sells_period_orders = $db->fetch_object($resql);\n    \n    $all_sells_period_invoices = \"SELECT SUM(fd.qty) AS sells \";\n    $all_sells_period_invoices .= \"FROM \".MAIN_DB_PREFIX.\"facture as f, \".MAIN_DB_PREFIX.\"facturedet as fd \";\n    $all_sells_period_invoices .= \"WHERE f.rowid = fd.fk_facture and fd.fk_product IN (\" . $products_ids_str . \") and fd.total_ht > 0 and f.type = 0 and f.paye = 1 and f.module_source = \'Marketplace\' and f.datef > \'2025-01-01\' \";\n    if (!empty($filterInvoices)) {\n       $all_sells_period_invoices .=  $filterInvoices;\n    }\n    $resql = $db->query($all_sells_period_invoices);\n    $all_sells_period_invoices = $db->fetch_object($resql);\n\n    $all_sells_period = $all_sells_period_orders->sells + $all_sells_period_invoices->sells;\n    /*==========================================================*/\n\n\n\n    /*==========================================================*/\n    $sum_all_sells_period_orders = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_sells_period_orders .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_sells_period_orders .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' and c.date_commande < \'2025-01-01\' \";\n    if (!empty($filterOrders)) {\n       $sum_all_sells_period_orders .=  $filterOrders;\n    }\n    $resql = $db->query($sum_all_sells_period_orders);\n    $sum_all_sells_period_orders = $db->fetch_object($resql);\n    \n    $sum_all_sells_period_invoices = \"SELECT SUM(fd.total_ht) as total \";\n    $sum_all_sells_period_invoices .= \"FROM \".MAIN_DB_PREFIX.\"facture as f, \".MAIN_DB_PREFIX.\"facturedet as fd \";\n    $sum_all_sells_period_invoices .= \"WHERE f.rowid = fd.fk_facture and fd.fk_product IN (\" . $products_ids_str . \") and f.paye = 1 and f.datef > \'2025-01-01\' \";\n    if (!empty($filterInvoices)) {\n       $sum_all_sells_period_invoices .=  $filterInvoices;\n    }\n    $resql = $db->query($sum_all_sells_period_invoices);\n    $sum_all_sells_period_invoices = $db->fetch_object($resql);\n    \n    $sum_all_sells_period = $sum_all_sells_period_orders->total + $sum_all_sells_period_invoices->total;\n    /*==========================================================*/\n\n\n\n    /*==========================================================*/\n    // TODO CREDIT NOTES ARE VALIDATED IMMEDIATELY\n    $sum_all_validated_sells_period_orders = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_validated_sells_period_orders .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_validated_sells_period_orders .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' and c.date_commande < \'2025-01-01\' \";\n    $sum_all_validated_sells_period_orders .= \"AND c.date_commande < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    if (!empty($filterOrders)) {\n       $sum_all_validated_sells_period_orders .=  $filterOrders;\n    }\n    $resql = $db->query($sum_all_validated_sells_period_orders);\n    $sum_all_validated_sells_period_orders = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells_period_invoices = \"SELECT SUM(fd.total_ht) as total \";\n    $sum_all_validated_sells_period_invoices .= \"FROM \".MAIN_DB_PREFIX.\"facture as f, \".MAIN_DB_PREFIX.\"facturedet as fd \";\n    $sum_all_validated_sells_period_invoices .= \"WHERE f.rowid = fd.fk_facture and fd.fk_product IN (\" . $products_ids_str . \") and f.paye = 1 and f.datef > \'2025-01-01\' \";\n    $sum_all_validated_sells_period_invoices .= \"AND f.datef < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    if (!empty($filterInvoices)) {\n       $sum_all_validated_sells_period_invoices .=  $filterInvoices;\n    }\n    $resql = $db->query($sum_all_validated_sells_period_invoices);\n    $sum_all_validated_sells_period_invoices = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells_period = $sum_all_validated_sells_period_orders->total + $sum_all_validated_sells_period_invoices->total;\n    /*==========================================================*/\n    \n    \n    \n    /*==========================================================*/\n    $sum_all_sells_orders = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_sells_orders .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_sells_orders .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' and c.date_commande < \'2025-01-01\' \";\n    $resql = $db->query($sum_all_sells_orders);\n    $sum_all_sells_orders = $db->fetch_object($resql);\n    \n    $sum_all_sells_invoices = \"SELECT SUM(fd.total_ht) as total \";\n    $sum_all_sells_invoices .= \"FROM \".MAIN_DB_PREFIX.\"facture as f, \".MAIN_DB_PREFIX.\"facturedet as fd \";\n    $sum_all_sells_invoices .= \"WHERE f.rowid = fd.fk_facture and fd.fk_product IN (\" . $products_ids_str . \") and f.paye = 1 and f.datef > \'2025-01-01\' \";\n    $resql = $db->query($sum_all_sells_invoices);\n    $sum_all_sells_invoices = $db->fetch_object($resql);\n    \n    $sum_all_sells = $sum_all_sells_orders->total + $sum_all_sells_invoices->total;\n    /*==========================================================*/\n    \n    \n    \n    /*==========================================================*/\n    // TODO CREDIT NOTES ARE VALIDATED IMMEDIATELY\n    $sum_all_validated_sells_orders = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_validated_sells_orders .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_validated_sells_orders .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' and c.date_commande < \'2025-01-01\' \";\n    $sum_all_validated_sells_orders .= \"AND c.date_commande < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    \n    $resql = $db->query($sum_all_validated_sells_orders);\n    $sells_done_validated_orders = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells_invoices = \"SELECT SUM(fd.total_ht) as total \";\n    $sum_all_validated_sells_invoices .= \"FROM \".MAIN_DB_PREFIX.\"facture as f, \".MAIN_DB_PREFIX.\"facturedet as fd \";\n    $sum_all_validated_sells_invoices .= \"WHERE f.rowid = fd.fk_facture and fd.fk_product IN (\" . $products_ids_str . \") and f.paye = 1 and f.datef > \'2025-01-01\' \";\n    $sum_all_validated_sells_invoices .= \"AND f.datef < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n\n    $resql = $db->query($sum_all_validated_sells_invoices);\n    $sells_done_validated_invoices = $db->fetch_object($resql);\n    \n    $sells_done_validated = $sells_done_validated_orders->total + $sells_done_validated_invoices->total;\n    /*==========================================================*/\n    \n    \n    \n    /*==========================================================*/\n    // Calculate all discounts for this customer products (before 01/01/2025)\n    // TODO CHECK DISCOUNTS AFTER 01/01/2025\n    $TOTAL_DISCOUNTS = 0;\n    $like_conditions = [];\n    foreach ($products_ids as $product_id) {\n        $like_conditions[] = \"d.description LIKE \'\" . $product_id . \"# %\'\";\n    }\n    // Join all conditions with OR\n    $like_clause = implode(\' OR \', $like_conditions);\n    \n    $sum_all_discounts = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_discounts .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_discounts .= \"WHERE c.rowid = d.fk_commande \";\n    $sum_all_discounts .= \"AND (\" . $like_clause . \") \";\n    $sum_all_discounts .= \"AND (c.facture = 1 OR c.ref_ext IS NOT NULL) \";\n    $sum_all_discounts .= \"AND c.module_source = \'Marketplace\' \";\n    $resql = $db->query($sum_all_discounts);\n    $sells_discounts = $db->fetch_object($resql);\n    $TOTAL_DISCOUNTS = $sells_discounts->total;\n    /*==========================================================*/\n    \n    \n    \n    /*=========== Payment History ====================*/\n    $payment_history = \"SELECT f.rowid, f.ref, f.fk_statut, f.fk_soc, f.datec, f.datef, f.date_closing, f.total_ht , f.total_ttc \";\n    $payment_history .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $payment_history .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 ORDER BY f.datef DESC\";\n\n    $alreadyreceived=0;\n    $dolistoreinvoices=array();\n    $linesinvoice = array();\n    if ($result_payment_history = $db->query($payment_history)) {\n\n        while ($payment = $result_payment_history->fetch_object()) {\n            $invoice = new FactureFournisseur($db);\n            $result = $invoice->fetch($payment->rowid);\n            \n            // Define lines of invoice\n            $linesresp = array();\n            foreach ($invoice->lines as $line) {\n                    $linesresp[] = array(\n                            \'id\' => $line->rowid,\n                            \'type\' => $line->product_type,\n                            \'desc\' => dol_htmlcleanlastbr($line->desc),\n                            \'total_net\' => $line->total_ht,\n                            \'total_vat\' => $line->total_tva,\n                            \'total\' => $line->total_ttc,\n                            \'vat_rate\' => $line->tva_tx,\n                            \'qty\' => $line->qty,\n                            \'product_ref\' => $line->product_ref,\n                            \'product_label\' => $line->product_label,\n                            \'product_desc\' => $line->product_desc,\n                    );\n            }\n            \n            // Now define invoice\n            $linesinvoice[] = array(\n                    \'id\' => $invoice->id,\n                    \'ref\' => $invoice->ref,\n                    \'ref_supplier\' => $invoice->ref_supplier,\n                    \'ref_ext\' => $invoice->ref_ext,\n                    \'fk_user_author\' => $invoice->user_creation_id,\n                    \'fk_user_valid\' => $invoice->user_validation_id,\n                    \'fk_thirdparty\' => $invoice->socid,\n                    \'type\' => $invoice->type,\n                    \'status\' => $invoice->status,\n                    \'total_net\' => $invoice->total_ht,\n                    \'total_vat\' => $invoice->total_tva,\n                    \'total\' => $invoice->total_ttc,\n                    \'date_creation\' => dol_print_date($invoice->datec, \'dayhourrfc\'),\n                    \'date_modification\' => dol_print_date($invoice->tms, \'dayhourrfc\'),\n                    \'date_invoice\' => dol_print_date($invoice->date, \'dayhourrfc\'),\n                    \'date_term\' => dol_print_date($invoice->date_echeance, \'dayhourrfc\'),\n                    \'label\' => $invoice->label,\n                    \'paid\' => $invoice->paid,\n                    \'note_private\' => $invoice->note_private,\n                    \'note_public\' => $invoice->note_public,\n                    \'close_code\' => $invoice->close_code,\n                    \'close_note\' => $invoice->close_note,\n\n                    \'lines\' => $linesresp\n            );\n        }\n        \n        foreach($linesinvoice as $invoice) {\n            $dateinvoice=substr($invoice[\'date_invoice\'], 0, 10);\n            \n            // Rule to detect invoice found is for dolistore payment back\n			$isfordolistore=0;\n			if ((preg_match(\'/dolistore/i\',$invoice[\'note_private\']) || preg_match(\'/dolistore/i\',$invoice[\'label\']))\n				&& ! preg_match(\'/agios/i\',$invoice[\'ref_supplier\'])\n				&& ! preg_match(\'/frais/i\',$invoice[\'ref_supplier\'])\n				&& ! preg_match(\'/comDolistore/i\',$invoice[\'ref_supplier\'])\n				) $isfordolistore=1;\n				\n			if (! $isfordolistore) {\n				foreach($invoice[\'lines\'] as $line)\n				{\n					if (preg_match(\'/dolistore/i\',$line[\'desc\'])\n						&& ! preg_match(\'/Remboursement certificat|Remboursement domaine/i\',$line[\'desc\'])\n						&& ! preg_match(\'/agios/i\',$invoice[\'ref_supplier\'])\n						&& ! preg_match(\'/frais/i\',$invoice[\'ref_supplier\'])\n						&& ! preg_match(\'/comDolistore/i\',$invoice[\'ref_supplier\'])\n						)\n					{\n						$isfordolistore++;\n					}\n				}\n			}\n			\n			if ($isfordolistore)\n			{\n				// Array of already received and paid invoices\n				$dolistoreinvoices[]=array(\n					\'dolistore_customer_id\'=>$customer_id,\n					\'id\'=>$invoice[\'id\'],\n					\'ref\'=>$invoice[\'ref\'],\n					\'ref_supplier\'=>$invoice[\'ref_supplier\'],\n					\'status\'=>$invoice[\'status\'],\n					\'date\'=>$invoice[\'date_invoice\'],\n					\'datenohour\'=>$dateinvoice,\n					\'amount_ht\'=>$invoice[\'total_net\'],\n					\'amount_vat\'=>$invoice[\'total_vat\'],\n					\'amount_ttc\'=>$invoice[\'total\'],\n					\'fk_thirdparty\'=>$invoice[\'fk_thirdparty\']\n				);\n			}\n        }\n    }\n    \n    // Calculte total recived amount\n    foreach ($dolistoreinvoices as $item) {\n        $tmpdate=preg_replace(\'/(\\s|T)00:00:00Z/\',\'\',$item[\'date\']);\n        if (strcmp($tmpdate,\'2013-01-01\') < 0) $alreadyreceived+=$item[\'amount_ttc\'];\n		else $alreadyreceived+=$item[\'amount_ht\'];\n    }\n    /*=========== Payment History ====================*/\n    \n    $sum_payment_done = $alreadyreceived;\n}\n\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php\n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"incomePaymentsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"incomeAndPayments\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n        <div class=\"row\">\n            <!-- include lefet sidebar container -->\n            <?php includeContainer(\'sidebar\'); ?>\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n                <?php if (empty($products_ids_str)): ?>\n	                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"incomeAndPayments\"); ?></h1>\n	                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noProductToDisplay\"); ?> </p>\n                <?php else: ?>\n                    <div class=\"clearfix\">\n                        <h1 class=\"page-heading\"><?php print $weblangs->trans(\"incomeAndPayments\"); ?></h1>\n                        <button class=\"btn btn-default button\" id=\"generate-csv\" onclick=\"generateCSV(<?php print $customer_id; ?>)\"><?php print $weblangs->trans(\"downloadAllSales\"); ?> <i class=\"icon-cloud-download\"></i></button>\n                        \n                        <div id=\"block-history\" class=\"block-center\">\n                            <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                                \n                                <div <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\">Info</h3>\n                                    <div class=\"row\">\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Company\"); ?> :</b> <?php print $socInfo->name; ?> &nbsp; <span class=\"opacitymedium\">(ID <?php print $socInfo->id; ?>)</span></p>\n                                        <!--<p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"ThirdPartyEmail\"); ?> :</b> <?php print $socInfo->mail; ?></p>-->\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"ThirdPartyAddress\"); ?> :</b> <?php print $socInfo->address; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Country\"); ?> :</b> <?php print $socInfo->country_code; ?></p>\n                                        <p class=\"col-xs-12\">&nbsp;</p>\n                                        <p class=\"col-xs-12\"><b><?php print $weblangs->trans(\"Logins\") ?> :</b></p>\n                                        <?php\n                                        foreach ($accounts as $account) {\n                                            print \'<p class=\"col-xs-12\">\';\n                                            if (count($accounts) > 1) {\n                                                print \'- \';   \n                                            }\n                                            print $account[\'login\'];\n                                            if (count($accounts) > 1) {\n                                                print ($user_id == $account[\'id\'] ? \' <span class=\"opacitymedium\">(You)</span>\' : \'\');\n                                            }\n                                            print \'</p>\';\n                                        }\n                                        ?>\n                                        <!--\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Login\").\' - \'.$weblangs->trans(\"Firstname\"); ?> :</b> <?php print $customer_firstname; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Login\").\' - \'. $weblangs->trans(\"Lastname\"); ?> :</b> <?php print $customer_lastname; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Login\").\' - \'. $weblangs->trans(\"Email\"); ?> :</b> <?php print $customer_email; ?></p>\n                                        -->\n                                    </div>\n                                </div>\n                                \n                        		<div id=\"order-detail-content\" class=\"table_block table-responsive box\">\n                        		    <?php if (isset($error) && $error != 0): ?>\n                                		<div class=\'alert alert-danger\'>\n                                    		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n                                	\n                                	<h3 class=\"page-subheading\">statistics</h3>\n            \n                        		    <form action=\"\" method=\"post\" id=\"account-creation_form\">\n                                        <div class=\"form-row align-items-center\">\n                                            <div class=\"col-xs-12 form-group row required inline-date-filter\">\n                                                <span class=\"\">\n                                                    <?php print $form->selectDate(($date_start_timestamp ? $date_start_timestamp : -1), \'datestart\', 0, 0, 1, \'\', 1, 0, 0, \'\', \'\', \'\', \'\', 1, \'\', $weblangs->trans(\"from\"), \'auto\', DOL_URL_ROOT.\'/document.php?modulepart=medias&file=image/test/img/datepicker/object_calendarday.png\'); ?>\n                                                </span>\n                                                <span class=\"\">\n                                                    <?php print $form->selectDate($date_end_timestamp ? $date_end_timestamp : -1, \'dateend\', 0, 0, 1, \'\', 1, 0, 0, \'\', \'\', \'\', \'\', 1, \'\', $weblangs->trans(\"to\"), \'auto\', DOL_URL_ROOT.\'/document.php?modulepart=medias&file=image/test/img/datepicker/object_calendarday.png\'); ?>\n                                                </span>\n                                                <span class=\"\">\n                                                  <button type=\"submit\" class=\"btn-filter\"><?php print $weblangs->trans(\"Refresh\"); ?></button>\n                                                </span>\n                                            </div>\n                                        </div>\n                        		    </form>\n                                    <hr>\n                        		    <table class=\"table-no-border\">\n                        		        <?php\n                        		            // Check if there is an amount of coupons \n                        		            $TOTAL_REDUC_OLD_SYSTEM = 0;\n                            		        if (getDolGlobalString(\"MARKETPLACE_TOTAL_REDUC_OLD_SYSTEM_\" . $customer_id)) {\n                            		            $TOTAL_REDUC_OLD_SYSTEM = getDolGlobalString(\"MARKETPLACE_TOTAL_REDUC_OLD_SYSTEM_\" . $customer_id);\n                            		        }\n                        		        ?>\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"numberOfProducts\"); ?></td>\n                        		            <td><span><?php print count($products_ids); ?></span></td>\n                        		        </tr>\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"numberOfPaidSells\"); ?></td>\n                        		            <td><span class=\"span-blue\"><?php print $all_sells_period; ?></span></td>\n                        		        </tr>\n                        		        <tr>\n                                            <td><?php print $weblangs->trans(\"totalOfSellsDone\"); ?></td>\n                                            <td>\n                                                80% x ( \n                                                <?php print price($sum_all_sells_period); ?> \n                                                <?php if ($TOTAL_DISCOUNTS) { \n                                                    print \" \" . price($TOTAL_DISCOUNTS) . \"*\"; \n                                                } ?> \n                                                <?php if ($TOTAL_REDUC_OLD_SYSTEM) { \n                                                    print \" - \" . price($TOTAL_REDUC_OLD_SYSTEM) . \"**\"; \n                                                } ?> \n                                                ) = \n                                                <span class=\"span-blue\">\n                                                    <?php print price(($sum_all_sells_period - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80, 0, \'\', 1, -1, 2); ?>€\n                                                </span> \n                                                <?php print $weblangs->trans(\"exclTax\"); ?>\n                                            </td>\n                                        </tr>\n                                        <tr>\n                                            <td><?php print $weblangs->trans(\"totalValidatedSells\"); ?></td>\n                                            <td>\n                                                80% x ( \n                                                <?php print price($sum_all_validated_sells_period); ?> \n                                                <?php if ($TOTAL_DISCOUNTS) { \n                                                    print \" \" . price($TOTAL_DISCOUNTS) . \"*\"; \n                                                } ?> \n                                                <?php if ($TOTAL_REDUC_OLD_SYSTEM) { \n                                                    print \" - \" . price($TOTAL_REDUC_OLD_SYSTEM) . \"**\"; \n                                                } ?> \n                                                ) = \n                                                <span class=\"span-blue\">\n                                                    <?php print price(($sum_all_validated_sells_period - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80, 0, \'\', 1, -1, 2); ?>€\n                                                </span> \n                                                <?php print $weblangs->trans(\"exclTax\"); ?>\n                                            </td>\n                                        </tr>\n                                        <?php if ($TOTAL_DISCOUNTS != 0): ?>\n                                            <tr>\n                            		            <td><small> * <?php print $weblangs->trans(\"totalDiscountsOffered\"); ?></small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		        <?php if ($TOTAL_REDUC_OLD_SYSTEM != 0): ?>\n                                            <tr>\n                            		            <td><small> ** <?php print $weblangs->trans(\"totalVouchersOffered\"); ?></small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		    </table>\n\n                                </div>\n                        		    \n            \n            \n                                <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"amountToClaim\"); ?></h3>\n                        		    <table class=\"table-no-border\">\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"remainedAmountInOneMonth\"); ?></td>\n                        		            <td><span class=\"span-blue\"><?php print price((($sum_all_sells - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?></td>\n                        		        </tr>\n                        		        <tr>\n                        		            <?php\n                        		            // Check if there is at least one supplier invoice done during this current month\n                        		            $checkLastPaymentCount = \"SELECT COUNT(*) AS payment_count \";\n                                            $checkLastPaymentCount .= \"FROM \" . MAIN_DB_PREFIX . \"facture_fourn AS f \";\n                                            $checkLastPaymentCount .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" AND f.fk_statut = 2 AND f.paye = 1 \";\n                                            $checkLastPaymentCount .= \"AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') \";\n                                            $checkLastPaymentCount .= \"AND MONTH(f.datef) = MONTH(CURDATE()) AND YEAR(f.datef) = YEAR(CURDATE())\";\n                                            $resql = $db->query($checkLastPaymentCount);\n                                            $hasRecivedPaymentThisMonth = $db->fetch_object($resql);\n                        		            ?>\n                        		            <td><?php print $weblangs->trans(\"remainedAmountToday\"); ?>*</td>\n                        		            <?php if ($hasRecivedPaymentThisMonth->payment_count > 0): ?>\n                        		                <td><span class=\"span-blue\"><?php print price((($sells_done_validated - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?> <small><?php print $weblangs->trans(\"aPaymentWasDoneThisMonth\"); ?></small></td>\n                        		            <?php else: ?>\n                        		                <td><span class=\"span-blue\"><?php print price((($sells_done_validated - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?></td>\n                        		            <?php endif ?>\n                        		        </tr>\n                        		        \n                        		        <?php if (getDolGlobalInt(\"MARKETPLACE_MINIMUM_PAYOUT_AMOUNT\")): ?>\n                                            <tr>\n                            		            <td><small> <?php print $weblangs->trans(\"minAmountToClaim\"); ?> : <?php print getDolGlobalInt(\"MARKETPLACE_MINIMUM_PAYOUT_AMOUNT\"); ?> €</small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		        <tr>\n                        		            <td><small> * <?php print $weblangs->trans(\"minAmountToClaimDesc\"); ?></small></td>\n                        		        </tr>\n                        		    </table>\n                        		    \n                                </div>\n                                \n                                <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"paymentHistory\"); ?></h3>\n                        		    <table class=\"table table-bordered table-bordered-block-order-detail order-history table-payment-recap\">\n                        		        <thead>\n                        					<tr>\n                        						<th class=\"first_item\" width=\"60\">#</th>\n                        						<th class=\"item\" width=\"170\"><?php print $weblangs->trans(\"date\"); ?></th>\n                        						<th class=\"item\" width=\"170\"><?php print $weblangs->trans(\"Ref\"); ?></th>\n                        						<th class=\"item\"><?php print $weblangs->trans(\"AmountHT\"); ?></th>\n                        						<th class=\"item\"><?php print $weblangs->trans(\"AmountTTC\"); ?></th>\n                        					</tr>\n                        				</thead>\n                        				<tbody>\n                        				    <?php\n                                            /*$payment_history = \"SELECT f.rowid, f.ref, f.fk_statut, f.fk_soc, f.datec, f.datef, f.date_closing, f.total_ht , f.total_ttc \";\n                                            $payment_history .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n                                            $payment_history .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') ORDER BY f.datef DESC\";*/\n                        				    if ($dolistoreinvoices) {\n                        				        $i = 1;\n                        				        $total_ht = 0;\n                                                $total_ttc = 0;\n                        				        foreach ($dolistoreinvoices as $payment) {\n                        				            $tmpdate=preg_replace(\'/(\\s|T)00:00:00Z/\',\'\',$payment[\'date\']);\n                        				            if (strcmp($tmpdate ,\'2013-01-01\') < 0) $payment[\'amount_ht\']=$payment[\'amount_ttc\'];\n                        				            $total_ht += $payment[\'amount_ht\'];\n                                                    $total_ttc += $payment[\'amount_ttc\'];\n                        				    ?>\n                                		        <tr>\n                                		            <td><?php print $i; ?></td>\n                                		            <td><?php print dol_print_date($tmpdate); ?></td>\n                                		            <td><?php print $payment[\'ref_supplier\']; ?><!-- <?php print $payment[\'ref\']; ?> --></td>\n                                		            <td><?php print price($payment[\'amount_ht\']); ?> €</td>\n                                		            <td><?php print price($payment[\'amount_ttc\']); ?> €</td>\n                                		        </tr>\n                            		        <?php\n                        					    $i++;\n                                            	}\n                                            	?>\n                                            	<tr>\n                                                    <td colspan=\"3\"><strong><?php print $weblangs->trans(\"AmountTotal\"); ?></strong></td>\n                                                    <td><strong><?php print price($total_ht); ?> €</strong></td>\n                                                    <td><strong><?php print price($total_ttc); ?> €</strong></td>\n                                                </tr>\n                                            <?php\n                                            }\n                                            ?>\n                                        </tbody>\n            \n                        		    </table>\n                                </div>\n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		</div>\n                            </div>\n                    </div>\n                <?php endif ?>\n                <ul class=\"footer_links clearfix\">\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                    			<span>\n                    				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                    			</span>\n                    		</a>\n                    	</li>\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                    			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                    		</a>\n                    	</li>\n                    </ul>\n            </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2025-01-24 18:39:23',NULL,'2025-01-24 18:40:42',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(173,38,'index','','Official market place for Dolibarr modules - DoliStore','Official market place for Dolibarr modules - DoliStore','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$cat_extid = GETPOST(\'extcat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n$isHomePage = !GETPOST(\'tag\', \'alpha\') && !GETPOST(\'cat\', \'alpha\') && !GETPOST(\'list\', \'alpha\') && !GETPOST(\'search_query\', \'alpha\') && !GETPOST(\'extcat\', \'alpha\');\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php includeContainer(\'header\'); ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n      <?php includeContainer(\'breadcrumb\'); ?>\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include left sidebar container -->\n        <?php includeContainer(\'sidebar\', 0, 0); \n        \n        // TODO Use includeContainer(\'sidebar\', 0, 60) mais mettre le js dynamic ici.\n        ?>\n\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix divhomepage\">\n            \n            <!-- To remove later -->\n            <?php if (!empty(getDolGlobalInt(\"MARKETPLACE_IN_MIGRATION\"))) : ?>\n                <div style=\"color: red; font-weight: bold; font-size: 1.2em;\"><br>\n                [EN] This site is currently under maintenance. Please do not create account, submit, edit or buy modules yet.<br>\n                [FR] Ce site est toujours en maintenance. Merci de ne pas creer de compte, soumettre, éditer ou acheter des modules.<br>\n                <br><br>\n                </div>\n            <?php endif ?>\n            <!-- To remove later -->\n\n            <!-- include welcome message -->\n            <?php\n                $__PAGE__TITLE__ = $weblangs->trans(\"indexPageTitle\");\n                $__PAGE__KEYWORDS__ = $weblangs->trans(\"indexPageKeywords\");\n                $__PAGE__DESC__ = $weblangs->trans(\"indexPageDescription\");\n                \n                if ($isHomePage) {\n                    $current_lang = $_SESSION[\'lang\'][\'shortcode\'];\n                    \n                    if ($current_lang == \'fr\') {\n                        $welcomecontainer = \'message-de-bienvenue\';\n                    } elseif ($current_lang == \'es\') {\n                        $welcomecontainer = \'mensaje-de-bienvenida\';\n                    } elseif ($current_lang == \'it\') {\n                        $welcomecontainer = \'messaggio-di-benvenuto\';\n                    } elseif ($current_lang == \'de\') {\n                        $welcomecontainer = \'willkommensnachricht \';\n                    } else {\n                        $welcomecontainer = \'welcome-message\';\n                    }\n                    /*\n                    $welcome_message = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'pageurl\' => \'welcome-message\', \'status\' => \'1\', \'lang\' => $website->lang));\n                    if ($website->lang == $current_lang) {\n                        includeContainer($welcome_message[key($welcome_message)]->pageurl);\n                    } else {\n                        $trans_welcome_message = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'fk_page\' => $welcome_message[key($welcome_message)]->id, \'status\' => \'1\', \'lang\' => $current_lang));\n                        includeContainer($trans_welcome_message[key($trans_welcome_message)]->pageurl);\n                    }*/\n                    includeContainer($welcomecontainer);\n                } else {\n                    // Define SEO meta tags\n                    $root_cat_object = new Categorie($db);\n                    if (!empty($cat_extid)) {\n                        $result = $root_cat_object->fetch(\'\', \'\', Categorie::TYPE_PRODUCT, $cat_extid);\n            	    } \n            	    if (!empty($cat_id)) {\n            	        $result = $root_cat_object->fetch($cat_id,\"\");\n            	    }\n\n        	        $__PAGE__TITLE__ = $root_cat_object->label;\n                    $__PAGE__DESC__ = $root_cat_object->description;\n                    \n                    if (!empty($tag) || !empty($search)) {\n                        $__PAGE__TITLE__ = $weblangs->trans(\"search\");\n                    }\n\n                }\n                ?>\n            <!-- include product container -->\n            <?php includeContainer(\'products-list-grid\'); ?>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-02-02 16:48:47',NULL,'2025-01-19 21:06:10',NULL,NULL,'page','',NULL,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(174,38,'legal-notice-quienes-somos','','Legal Notice - Quiénes somos','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> Legal notice - About us\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n                    \n                    \n<div class=\"rte\">\n		<h3>Presentación</h3>\n<p>La asociación Dolibarr ofrece la plataforma DoliStore.com para ayudar a conectar a vendedores y compradores. Solo el servicio de visibilidad de los productos vendidos es proporcionado por la fundación. La fundación no garantiza la calidad de los productos comprados por el cliente.</p>\n<p>La asociación Dolibarr, a través de DoliStore, recauda los pagos de los bienes vendidos en nombre de los autores/editoriales y gestiona la distribución de los fondos que les corresponden. En este sentido, la asociación actúa bajo la exención de autorización de institución de pago prevista en el artículo L521-3 I 2° del código monetario y financiero.</p>\n<p>La asociación Dolibarr es una asociación francesa (Ley 1901) creada para promover y desarrollar el software ERP y CRM de código abierto Dolibarr.</p>\n<p><strong>Información legal sobre la fundación:</strong></p>\n<ul>\n<li>WALDEC: W452006878</li>\n<li>SIRÈNE: 52033993800018</li>\n<li>NAF: 9499Z</li>\n</ul>\n<p>Más información en la página <a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\">https://asso.dolibarr.org/index.php/Dolibarr_foundation</a>.</p>\n<h3>Principios de Protección de Datos</h3>\n<p>Al utilizar el sitio DoliStore.com, usted acepta el procesamiento de sus datos personales tal como se describe en esta política de privacidad.</p>\n<p><strong>Nuestros compromisos con los principios de protección de datos son los siguientes:</strong></p>\n<ul>\n<li><strong>Procesamiento legal, justo y transparente:</strong> Nuestras actividades de procesamiento de datos tienen motivos legítimos. Siempre consideramos sus derechos antes de procesar datos personales.</li>\n<li><strong>Limitación de la finalidad:</strong> El procesamiento de datos está limitado al propósito para el cual se recolectaron los datos personales.</li>\n<li><strong>Minimización de datos:</strong> Recolectamos y procesamos solo la cantidad mínima de datos personales necesarios para cualquier propósito.</li>\n<li><strong>Periodo de almacenamiento:</strong> El procesamiento está limitado a un período de tiempo específico. No conservaremos sus datos personales más tiempo del necesario.</li>\n<li><strong>Integridad:</strong> Hacemos todo lo posible para asegurar la exactitud, integridad y confidencialidad de los datos.</li>\n</ul>\n<h3>Definición de Derechos sobre los Datos Personales</h3>\n<ul>\n<li><strong>Derecho a la información:</strong> Usted debe saber si sus datos personales están siendo procesados; qué datos se recolectan, de dónde provienen, y por qué y por quién se procesan.</li>\n<li><strong>Derecho de acceso:</strong> Usted tiene derecho a acceder a los datos recolectados de/sobre usted. Esto incluye su derecho a solicitar y obtener una copia de sus datos personales recolectados.</li>\n<li><strong>Derecho de rectificación:</strong> Usted tiene derecho a solicitar la rectificación o eliminación de sus datos personales que sean inexactos o incompletos.</li>\n<li><strong>Derecho de eliminación:</strong> En ciertas circunstancias, usted puede solicitar que sus datos personales sean eliminados de nuestros registros.</li>\n<li><strong>Derecho a la restricción o a la oposición al procesamiento:</strong> Bajo ciertas condiciones, usted tiene derecho a restringir o oponerse al procesamiento de sus datos personales.</li>\n<li><strong>Derecho a la portabilidad de los datos:</strong> Usted tiene derecho a obtener sus datos personales en un formato legible por máquina.</li>\n<li><strong>Derecho a retirar su consentimiento:</strong> Usted tiene derecho a retirar cualquier consentimiento dado para el procesamiento de sus datos personales.</li>\n</ul>\n<h3>Datos que Recolectamos</h3>\n<p><strong>Información proporcionada por los vendedores:</strong></p>\n<ul>\n<li>Dirección de correo electrónico, nombre, apellido, nombre de la empresa, número de empresa o fiscal (número de IVA intracomunitario), información de facturación.</li>\n</ul>\n<p><strong>Información proporcionada por los compradores:</strong></p>\n<ul>\n<li>Dirección de correo electrónico, nombre, apellido, nombre de la empresa, número de empresa o fiscal (número de IVA intracomunitario), información de facturación, estado de miembro o no de la asociación.</li>\n</ul>\n<p><strong>Nota:</strong> La información de pagos (tarjeta de crédito o ID de socio de pagos) no es recolectada ni conocida por DoliStore, ya que se proporciona directamente al proveedor de pagos.</p>\n<p><strong>Información recolectada automáticamente:</strong></p>\n<ul>\n<li>Incluye la información almacenada automáticamente por las cookies de sesión o de análisis estadístico (basado en Google y Matomo).</li>\n<li>También incluye el historial de compras.</li>\n</ul>\n<p><strong>Información de socios:</strong></p>\n<ul>\n<li>No recolectamos información de socios.</li>\n</ul>\n<p><strong>Enlaces a otros sitios:</strong></p>\n<ul>\n<li>Las páginas del sitio pueden incluir contenido incrustado (por ejemplo, videos, imágenes, artículos, enlaces). El contenido incrustado desde otros sitios se comporta de la misma manera que si el visitante estuviera en ese otro sitio. Estos sitios web podrían recolectar datos sobre usted (dirección IP, uso de cookies, herramientas de seguimiento de terceros) o rastrear sus interacciones con dicho contenido incrustado si usted tiene una cuenta y está conectado en su sitio web.</li>\n</ul>\n<h3>Uso de sus Datos Personales</h3>\n<p>Usamos sus datos personales para los siguientes fines:</p>\n<ul>\n<li>Para identificarlo (correo electrónico de inicio de sesión y contraseña hasheada)</li>\n<li>Para comunicarnos con usted en relación con los productos vendidos para los vendedores o los productos comprados para los compradores (correo electrónico)</li>\n<li>Para mejorar su experiencia como vendedor o cliente y responder a sus preguntas (historial de compras o ventas)</li>\n<li>Para cumplir con una obligación legal o contractual (datos de facturación)</li>\n<li>Para realizar análisis e investigaciones para mejorar nuestros servicios (datos anónimos de estadísticas de consulta y navegación en el sitio web).</li>\n</ul>\n<p>Procesamos sus datos personales para cumplir con las obligaciones derivadas de la ley y/o usar sus datos personales para las opciones previstas por la ley. Nos reservamos el derecho de anonimizar los datos personales recolectados y usar esos datos anonimizados a largo plazo. Solo usaremos datos fuera del alcance de esta política si están anonimizados.</p>\n<p>Podríamos procesar sus datos personales para otros fines no mencionados aquí. En ese caso, este documento se actualizará.</p>\n<h3>Períodos de Retención de sus Datos</h3>\n<p>Para los usuarios que se registran en nuestro sitio, almacenamos los datos personales indicados en su perfil. Todos los usuarios pueden ver, modificar o eliminar su información personal en cualquier momento.</p>\n<p>También guardamos la información de facturación el tiempo necesario por razones contables u otras obligaciones derivadas de la ley, hasta su solicitud de eliminación de sus datos personales o el tiempo legal para los datos de facturación.</p>\n<h3>Con Quién se Comparten sus Datos Personales</h3>\n<p><strong>Vendedores:</strong> Los siguientes datos personales de los compradores se proporcionan a los vendedores para facilitar la prestación del servicio o mejorar la experiencia del cliente: correo electrónico, nombre y apellido, nombre del módulo comprado, su precio y fecha de compra.</p>\n<p><strong>Compradores:</strong> Los siguientes datos personales de los vendedores se proporcionan a los compradores para facilitar la prestación del servicio o mejorar la experiencia del cliente: correo electrónico o URL de contacto del soporte del módulo (si el vendedor proporciona soporte).</p>\n<p><strong>Entidades de pago:</strong> Para asegurar el rol de terceros en el pago, utilizamos los servicios de Stripe y Paypal. Les proporcionamos el correo electrónico y la dirección del comprador. La información sobre el método de pago no es almacenada por DoliStore sino recogida y almacenada directamente por Stripe o Paypal, quienes nos informan del éxito o fracaso de los pagos.</p>\n<p><strong>Entidades legales:</strong> Divulgamos sus datos personales a terceros o a funcionarios cuando estamos legalmente obligados a hacerlo.</p>\n<p><strong>Otros terceros fuera del Espacio Económico Europeo:</strong> No transmitimos datos a otros terceros que no sean los mencionados anteriormente. Cuando transferimos información personal a países que no forman parte del Espacio Económico Europeo (casos mencionados anteriormente para vendedores fuera de Europa o entidades de pago), nos aseguramos de que esta información se transfiera de acuerdo con este Aviso y en aplicación de las leyes aplicables a la protección de datos personales. Nos basamos en las decisiones de adecuación de la Comisión Europea o utilizamos contratos con garantías estándar publicadas por la Comisión Europea.</p>\n<p><strong>Administradores y moderadores:</strong> La plataforma DoliStore es administrada y moderada por los miembros del Consejo de Administración de la asociación Dolibarr. Cada miembro del consejo de administración tiene derechos de acceso y modificación de la información en el perfil de los vendedores, los compradores y en la lista de ventas/compras.</p>\n<p>La Asociación Dolibarr no se hace responsable del uso que puedan hacer de estos datos los vendedores o cualquier otro tercero con acceso autorizado.</p>\n<p></p>\n<h3>Cómo Protegemos sus Datos</h3>\n<p>Hacemos todo lo posible para proteger sus datos personales.</p>\n<p><strong>Encriptación de las comunicaciones:</strong> Utilizamos protocolos seguros para la comunicación y transferencia de datos (como HTTPS). Utilizamos la anonimización y la seudonimización cuando es apropiado.</p>\n<p><strong>Supervisión:</strong> Supervisamos nuestros sistemas para detectar posibles vulnerabilidades y ataques.</p>\n<p><strong>Copias de seguridad:</strong> Las copias de seguridad regulares están automatizadas.</p>\n<p>Aunque hacemos todo lo posible, no podemos garantizar la seguridad total de la información. Sin embargo, nos comprometemos a informar a las autoridades competentes sobre violaciones de datos. También le informaremos si existe una amenaza para sus derechos o intereses. Haremos todo lo que esté razonablemente a nuestro alcance para prevenir las violaciones de seguridad y ayudar a las autoridades en caso de una violación.</p>\n<p><strong>Contraseña:</strong> Su contraseña se conserva de manera cifrada a través de un cifrado no reversible (hash). Si tiene una cuenta con nosotros, debe mantener su nombre de usuario y contraseña en secreto.</p>\n<h3>Cookies y Otras Tecnologías que Usamos</h3>\n<p>Utilizamos cookies y/o tecnologías similares para habilitar la funcionalidad de sesión de usuario y obtener estadísticas anónimas de navegación en el sitio.</p>\n<p>Una cookie es un pequeño archivo de texto almacenado en su computadora (en memoria o en el disco). Las cookies almacenan información utilizada para ayudar a operar los sitios. Solo podemos acceder a las cookies creadas por nuestro sitio. Puede controlar sus cookies a nivel del navegador. Desactivar las cookies puede impedirle usar ciertas funciones.</p>\n<p><strong>Usamos cookies para los siguientes fines:</strong></p>\n<ul>\n<li><strong>Cookies necesarias:</strong> Estas cookies son necesarias para usar funciones esenciales en nuestro sitio, como el inicio de sesión y la persistencia de la sesión. Estas cookies no recolectan ninguna información personal.</li>\n<li><strong>Cookies de funcionalidad:</strong> Estas cookies proporcionan funcionalidades que hacen que nuestro servicio sea más conveniente y permiten funciones más personalizadas. Por ejemplo, pueden recordar su nombre y dirección de correo electrónico en formularios de comentarios, por lo que no necesita volver a ingresar esta información la próxima vez.</li>\n<li><strong>Cookies analíticas:</strong> Estas cookies se utilizan para rastrear el uso y rendimiento anónimo de nuestro sitio web y servicios.</li>\n</ul>\n<p>Puede eliminar las cookies almacenadas en su computadora a través de la configuración de su navegador. También puede controlar algunas cookies de terceros utilizando una plataforma de mejora de privacidad, como optout.aboutads.info o youronlinechoices.com. Para más información sobre cookies, visite allaboutcookies.org.</p>\n<h3>Información de Contacto - DPO</h3>\n<p>El Delegado de Protección de Datos (DPO) es el Presidente de la asociación Dolibarr. Su nombre se indica en esta página: <a href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>.</p>\n<p>Cualquier solicitud relativa a sus datos personales puede hacerse por correo electrónico a <a>dolistore@dolibarr.org</a>.</p>\n<h3>Modificaciones a esta Política de Privacidad</h3>\n<p>Nos reservamos el derecho de hacer cambios a esta política de privacidad. Última modificación realizada el 14/05/2024.</p>\n	</div>\n	\n	\n				</section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 19:19:33',NULL,'2025-01-13 23:24:10',NULL,NULL,'page','es',154,'','',NULL,'','',0,NULL,NULL),
(175,38,'login','','login','','','<?php\n    if(!empty(GETPOST(\'action\')) && GETPOST(\'action\') == \"login\") {\n        $customer_email = GETPOST(\'email\');\n        $customer_passwd = GETPOST(\'passwd\');\n        $back = GETPOST(\'back\');\n        \n        $login = ws_login($customer_email, $customer_passwd);\n\n		if (!empty($login[\'status\']) && $login[\'status\'] == 1) {\n		    \n            //session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\n            session_start(); // start session\n\n        	if (isset($_SESSION[\'user\'])) {  //if session var already exist\n                unset($_SESSION[\'user\']);\n            }\n\n            $_SESSION[\'user\'][\'id_user\'] = $login[\'userid\'];\n            $_SESSION[\'user\'][\'pseudo\'] = $login[\'pseudo\'];\n            $_SESSION[\'user\'][\'email\'] = $login[\'email\'];\n            $_SESSION[\'user\'][\'socid\'] = $login[\'socid\'];\n            $_SESSION[\'user\'][\'is_preferred_member\'] = $login[\'is_preferred_member\'];\n            \n            \n            if($back == \'payement\'){\n                redirectToContainer(\'payment\');\n            }\n\n            ws_refreshCart($login[\'socid\']);\n            \n            redirectToContainer(\'myaccount\');\n        }else{\n            $error++;\n    		$error_messages[] = $weblangs->trans(\"authError\");\n        }\n    }\n?>\n\n\n\n<?php\n    $back = GETPOST(\'back\');\n?>\n<div class=\"col-xs-12 col-sm-5\">\n	\n	<form action=\"login-register.php\" method=\"post\" id=\"login_form\" class=\"box\">\n	    \n	    <!--<input type=\"hidden\" name=\"token\" value=\"<?php echo newToken() ?>\">-->\n			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"alreadyRegistered\"); ?></h3>\n			<?php if (isset($error) && $error != 0): ?>\n        		<div class=\'alert alert-danger\'>\n            		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n            		<p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n            		<ol>\n            		    <?php foreach ($error_messages as $key => $value): ?>\n                    		<li><?php print $value; ?></li>\n                    	<?php endforeach ?>\n            		</ol>\n            	</div>\n        	<?php endif ?>\n			<div class=\"form_content clearfix\">\n				<div class=\"form-group\">\n					<label for=\"email\"><?php print $weblangs->trans(\"Email\"); ?></label>\n					<input class=\"is_required validate account_input form-control\" data-validate=\"isEmail\" type=\"text\" id=\"emaillogin\" name=\"email\" value=\"<?php if (isset($customer_email)){print $customer_email;} ?>\">\n				</div>\n				<div class=\"form-group\">\n					<label for=\"passwd\"><?php print $weblangs->trans(\"Password\"); ?></label>\n					<span><input class=\"is_required validate account_input form-control\" type=\"password\" data-validate=\"isPasswd\" id=\"passwdlogin\" name=\"passwd\" value=\"<?php if (isset($customer_passwd)){print $customer_passwd;} ?>\"></span>\n				</div>\n				<input type=\"hidden\" name=\"action\" value=\"login\">\n				<input type=\"hidden\" name=\"back\" value=\"<?php print $back; ?>\">\n				<p class=\"lost_password form-group\"><a href=\"forgot-password.php\" title=\"<?php print $weblangs->trans(\"recoverPass\"); ?>\" rel=\"nofollow\"><?php print $weblangs->trans(\"forgotPassword\"); ?></a></p>\n				<p class=\"submit\">\n					<button type=\"submit\" id=\"SubmitLogin\" name=\"SubmitLogin\" class=\"button btn btn-default button-medium\">\n						<span>\n							<?php print $weblangs->trans(\"signIn\"); ?>\n							<i class=\"icon-chevron-right right\"></i>\n						</span>\n					</button>\n				</p>\n			</div>\n	</form>\n	\n</div>\n',1,'2024-03-13 15:47:35',NULL,'2025-01-19 18:13:18',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(176,38,'login-register','','Login/Register','','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"loginRegisterPageTitle\");\n        $__PAGE__KEYWORDS__ = $weblangs->trans(\"loginRegisterPageKeywords\");\n        $__PAGE__DESC__ = $weblangs->trans(\"loginRegisterPageDescription\");\n    ?>\n    \n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"Authentication\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"Authentication\"); ?></h1>\n                <div class=\"row\">\n                    <?php includeContainer(\'login\'); ?>\n                    <?php includeContainer(\'register\'); ?>\n                </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-03-13 10:07:51',NULL,'2025-01-17 23:47:53',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(177,38,'manage-products','','manage-products','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$current_lang = $_SESSION[\'lang\'][\'code\'];\n$weblangs->load(\"products\");\n\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n\n// Get Account ID.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer_account = new SocieteAccount($db);\n$result = $customer_account->fetch($user_id);\n$customer_id = $customer_account->fk_soc;\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n$isAdmin = false;\n\n// To render view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\n    // Only for members with a specific role\n    require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n    $membre = new Adherent($db);\n    $result = $membre->fetch(\'\', 0, $customer_id);\n    \n    $adminsCat = new Categorie($db);\n    $idcategoryoftheboardteam = getDolGlobalInt(\'MARKETPLACE_MEMBER_CATEGORY_ADMIN_ID\');\n	$adminsCat->fetch($idcategoryoftheboardteam);\n	\n	$result = $adminsCat->containsObject(\'member\', $membre->id);\n	if ($result > 0) {\n	    $isAdmin = true;\n	    \n        $customer_id = GETPOSTINT(\'id_customer\');\n        // Get soc info.\n        $socInfo = new Societe($db);\n        $socInfo->fetch($customer_id);\n        \n        // Get soc acount email\n        $sql = \"select rowid from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".((int) $customer_id).\" AND fk_website = \".((int) $website->id).\" limit 1\";\n        $result = $db->query($sql);\n        $objsql = $db->fetch_object($result);\n        \n        // Get account info\n        $cContacts = $socInfo->contact_array_objects();\n        foreach ($cContacts as $cContact) {\n            if ($cContact->ref_ext == $objsql->rowid) {\n                $customer_firstname = $cContact->firstname;\n                $customer_lastname = $cContact->lastname;\n                $customer_email = $cContact->email;\n                $customer_address = $cContact->address;\n            }\n        }\n	}\n}\n\n// Get liste of products\n$products_ids = array();\n\n$sql = \'SELECT pf.fk_product, MIN(pf.datec) AS first_date \';\n$sql .= \'FROM \'.MAIN_DB_PREFIX.\'product_fournisseur_price AS pf, \'.MAIN_DB_PREFIX.\'categorie_product AS cp \';\n$sql .= \'WHERE pf.fk_soc = \'.((int) $customer_id).\' \';\n$sql .= \'AND cp.fk_product = pf.fk_product \';\n$sql .= \'AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' \';\n$sql .= \'GROUP BY pf.fk_product \';\n$sql .= \'ORDER BY first_date ASC\';\n\nif ($result_products = $db->query($sql)) {\n	while ($product_id = $result_products->fetch_object()) {\n        $products_ids[] = $product_id->fk_product;\n	}\n}\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"manageProductsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"manageProducts\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"ListOfProductsServices\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n            <?php if (empty($products_ids)): ?>\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"ListOfProductsServices\"); ?></h1>\n                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noProductToDisplay\"); ?> </p>\n            <?php else: ?>\n                <div class=\"clearfix\">\n                    <h1 class=\"page-heading\"><?php print $weblangs->trans(\"ListOfProductsServices\"); ?></h1>\n                    <div id=\"block-history\" class=\"block-center\">\n                        <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                    		<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n                    			<table class=\"table table-bordered table-bordered-block-order-detail order-history\">\n                    				<thead>\n                    					<tr>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"coverImage\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"product\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"Nb\"); ?></th>\n                    						<th class=\"item\" width=\"80\"><?php print $weblangs->trans(\"amountEarned\"); ?></th>\n                    						<th class=\"last_item\"></th>\n                    					</tr>\n                    				</thead>\n                    				<tbody>\n                    					<!-- Customized products -->\n                    					<!-- Classic products -->\n                    					<?php foreach ($products_ids as $products_id): ?>\n                    					    <?php\n                    					        $weblangs->load(\"products\");\n                                                // Get order object\n                                                $product = new Product($db);\n                                                $result = $product->fetch($products_id);\n                                                \n                                                // Get nbr of sales\n                                                $sql = \"SELECT sum(d.qty) as qty, sum(d.total_ht) as total_ht\";\n                                        		$sql .= \" FROM \".$db->prefix().\"commandedet as d, \".$db->prefix().\"commande as c, \".$db->prefix().\"societe as s\";\n                                        		$sql .= \" WHERE c.rowid = d.fk_commande\";\n                                        		$sql .= \" AND d.fk_product = \".((int) $product->id);\n                                        		$sql .= \" AND c.fk_soc = s.rowid\";\n                                        		$sql .= \" AND c.module_source = \'marketplace\'\";\n                                        		$sql .= \" AND (c.facture = 1 OR c.pos_source = \'2161031@prestashop\')\";  // Filter on c.pos_source is to take old imported record\n\n                                        		$resql = $db->query($sql);\n    		                                    $stats = $db->fetch_object($resql);\n    		                                    \n    		                                    // Calculate refunded products\n    		                                    $refunded_sql = \"SELECT SUM(fd.qty) AS refund_qty, sum(fd.total_ht) as refund_total_ht \";\n                                                $refunded_sql .= \" FROM \" . MAIN_DB_PREFIX . \"facture AS f, \" . MAIN_DB_PREFIX . \"facturedet AS fd \";\n                                                $refunded_sql .= \" WHERE f.rowid = fd.fk_facture \";\n                                                $refunded_sql .= \" AND fd.fk_product = \" . ((int) $product->id) . \" \";\n                                                $refunded_sql .= \" AND f.type = 2 AND f.paye = 1\";\n                                                //print $refunded_sql;\n                                                \n                                                $resql = $db->query($refunded_sql);\n                                                if ($resql) {\n                                                    $row = $db->fetch_object($resql);\n                                                    $refund_qty = $row->refund_qty ?? 0;\n                                                    $refund_total_ht = $row->refund_total_ht ?? 0;\n                                                }\n    		                                    \n    		                                    // Calculate all discounts for this product\n                                                $TOTAL_DISCOUNTS = 0;\n                                                $sum_all_discounts = \"SELECT SUM(d.total_ht) as total \";\n                                                $sum_all_discounts .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n                                                $sum_all_discounts .= \"WHERE c.rowid = d.fk_commande \";\n                                                $sum_all_discounts .= \"AND c.module_source = \'marketplace\' \";\n                                                $sum_all_discounts .= \"AND d.description LIKE \'\" . ((int) $product->id) . \"# %\' \";\n                                                $sum_all_discounts .= \"AND (c.facture = 1 OR c.pos_source = \'2161031@prestashop\' OR c.ref_ext IS NOT NULL) \";  // Filter on c.pos_source is to take old imported record\n                                                $resql = $db->query($sum_all_discounts);\n                                                $sells_discounts = $db->fetch_object($resql);\n                                                $TOTAL_DISCOUNTS = $sells_discounts->total;\n    		                                    \n    		                                    // Get package\n    		                                    $files_and_images = getPublicFilesOfObject($product);\n            			                        foreach ($files_and_images as $key => $file) {\n                                                    if ($file[\'position\'] == 100) {\n                                                        $virtual_product_file = $file;\n                                                    }\n                                                }\n                                            ?>\n                        					<tr class=\"item\">\n                        					    <td>\n                        					        <img class=\"img-responsive\" src=\"<?php print getImagePublicURLOfObject($product, 0, \'_small\'); ?>\" alt=\"<?php print $product->label; ?>\" title=\"<?php print $product->label; ?>\" width=\"160\" itemprop=\"image\" style=\"margin: auto;\" />\n                        					    </td>\n                        					    <td>\n                        						    <p>\n                        						        <b><?php print $product->label; ?> <?php print $product->array_options[\'options_marketplace_module_version\']; ?> </b> \n                        						        \n                        						        <small class=\"opacitymedium\"> (<?php print $product->array_options[\'options_marketplace_min_version\']; ?> - <?php print $product->array_options[\'options_marketplace_max_version\']; ?>)</small>\n                        						    </p>\n                        						    <p>\n                        						        <small class=\"cart_ref\">\n                        						            <?php print $product->description; ?><br><br>\n                        						            <?php print $weblangs->trans(\"CurrentProductPrice\"); ?>: <b><?php print price($product->price); ?> €</b>\n                        						            <?php print $weblangs->trans(\"exclTax\"); ?>\n                        						            <!-- &nbsp; - &nbsp; <?php print price($product->price_ttc); ?> € <?php print $weblangs->trans(\"inclTax\"); ?> -->\n                        						            <br>\n                                                            <?php print $weblangs->trans(\"Ref\"); ?>: <?php print $product->ref; ?><br>\n                                                            <?php print $weblangs->trans(\"Status\"); ?>: <?php \n                                                                if ($product->status > 0) {\n                                                                    print \'<span style=\"color: #28a745;\">\'.$langs->trans(\"Enabled\").\'</span>\';\n                                                                } else {\n                                                                    print \'<span style=\"color: #dc3545;\">\'.$langs->trans(\"Disabled\").\'</span>\';\n                                                                    print \'<span class=\"opacitymedium\"> - \'.$product->array_options[\'options_marketplace_reason_disabled\'].\'</span>\';\n                                                                }\n                                                            ?><br>\n                                                            <?php if (!empty($virtual_product_file[\'url\'])) { ?>\n                                                                <?php print $weblangs->trans(\"File\"); ?>: <a href=\"<?php print $virtual_product_file[\'url\']; ?>\" target=\"_new\" ><?php print $virtual_product_file[\'filename\']; ?> <i class=\"icon-cloud-download\"></i></a><br>\n                                                            <?php } ?>\n                                                            <?php print $weblangs->trans(\"DateCreation\"); ?>: <?php print dol_print_date($product->date_creation, \'day\'); ?> - <?php print $weblangs->trans(\"DateModification\"); ?>: <?php print dol_print_date($product->date_modification, \'day\'); ?><br>\n                       						        </small>\n                        						    </p>\n                        						</td>\n                        						<td>\n                        						        <?php print $stats->qty; ?>\n                        						        <?php if (!empty($refund_qty)) { ?>\n                        						            <br>\n                                                		    <span style=\"color:red;font-size:12px;\">-<?php print $refund_qty . \" \" . $weblangs->trans(\"Refunded\"); ?></span>\n                                                		<?php } ?>\n    											</td>\n                        						<td class=\"nowraponall right\">\n                        							    <span class=\"price\"><?php print price($stats->total_ht + $TOTAL_DISCOUNTS); ?> €</span>\n                        							    <?php if (!empty($refund_total_ht)) { ?>\n                        						            <br>\n                                                		    <span style=\"color:red;font-size:12px;display: contents;\"><?php print price($refund_total_ht)  . \" € \" . $weblangs->trans(\"Refunded\"); ?></span>\n                                                		<?php } ?>\n                        						</td>\n                        						<td class=\"btn-table\">\n                        						    <a href=\"edit-module-product.php?id=<?php print $product->id; ?>\" class=\"btn btn-default button button-small\"><span title=\"<?php print $weblangs->trans(\"edit\"); ?>\"> \n                        						    <i class=\"icon-edit product-table-icons\" style=\"width:18px\"></i></span></a>\n                        						    <br><br>\n                        						    <a href=\"product-statistics.php?id=<?php print $product->id; ?>\" class=\"btn btn-default button button-small\"><span title=\"<?php print $weblangs->trans(\"listOfSells\"); ?>\"> \n                        						    <i class=\"icon-shopping-cart product-table-icons\" style=\"width:18px\"></i></span></a>\n                        						</td>\n                        					</tr>\n                    					<?php endforeach ?>\n                    				</tbody>\n                    			</table>\n                    		</div>\n                        </div>\n                    </div>\n                    <ul class=\"footer_links clearfix\">\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                    			<span>\n                    				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                    			</span>\n                    		</a>\n                    	</li>\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                    			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                    		</a>\n                    	</li>\n                    </ul>\n                </div>\n            <?php endif ?>\n          \n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-03 08:34:43',NULL,'2025-01-24 09:13:21',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(178,38,'mensaje-de-bienvenida','','mensaje de bienvenida','mensaje de bienvenida','','<section id=\"welcome_section\" contenteditable=\"true\">\n  <div id=\"editorial_block_center\" class=\"editorial_block\">\n    <a href=\"https://www.dolibarr.org\" title=\"\">\n      <img class=\"img-responsive\"\n        src=\"viewimage.php?modulepart=medias&entity=1&file=image/test/img/dolibarr_logo.png\"\n        alt=\"\" width=\"578\" height=\"160\" />\n    </a>\n    <div class=\"rte\">\n        <br>\n        <p>Este sitio es el mercado oficial para encontrar módulos y complementos para el proyecto <a\n                href=\"https://www.dolibarr.org\" target=\"_blank\">Dolibarr ERP/CRM</a>.</p>\n        <ul>\n            <li><span style=\"color: #a45931;\"><strong>Si usted es un usuario Dolibarr</strong>:</span></li>\n        </ul>\n        <p>Puede buscar funcionalidades complementarias y encontrar módulos o características adicionales. Navegue por las\n            categorías para encontrar su extensión o utilice el buscador en la parte superior La página ... La mayoría de\n            los complementos/módulos son gratuitos, algunos son de pago (Los miembros de la asociación Dolibarr se pueden\n            beneficiar de un descuento del 20% si la solicitud a la asociación se realiza una vez creada la cuenta en\n            DoliStore y antes de la compra)</p>\n        <ul>\n            <li><span style=\"color: #a45931;\"><strong>Si usted es desarrollador</strong>:</span></li>\n        </ul>\n        <p>Puede enviar sus módulos con el precio de venta de su elección (o gratuitos). Para ello, basta con crear una\n            cuenta y enviar el módulo.</p>\n    </div>\n  </div>\n</section>',1,'2024-05-12 12:01:33',NULL,'2025-01-14 00:38:36',NULL,NULL,'banner','es',206,'','',NULL,'','',0,NULL,NULL),
(179,38,'mentions-legales-a-propos','','Mentions légales - Politique de confidentialité','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> \n\n\n<div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include left sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n				        \n				        \n		<h2>Présentation</h2>\n<p><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>L\'association <b>Dolibarr</b> propose la plateforme <b>DoliStore.com</b> pour aider vendeur et acheteur à se rencontrer. Seul le service de visibilité des produits vendus est proposé par la fondation. La fondation ne garantit rien sur la qualité des produits achetés par le client.</span></span></span></p>\n<p><br><em><span><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>L’association Dolibarr, via le DoliStore, collecte pour le compte des&nbsp;auteurs / éditeurs les paiements des biens vendus et gère le reversement des&nbsp;fonds leur revenant. A ce titre, l’association agit sous le couvert de l’exemption&nbsp;d’agrément d’établissement de paiement prévu à l’article L521-3 I 2° du code&nbsp;monétaire et financier.</span></span></span></span></em></p>\n<p></p>\n<p><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>L\'association Dolibarr est une association française (Loi 1901) créée pour contribuer à la promotion et au développement du logiciel ERP et CRM Open Source Dolibarr.</span></span></p>\n<p><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>Informations légales sur la fondation&nbsp;:</span></span></span></p>\n<ul>\n<li>\n<p><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>WALDEC&nbsp;: W452006878</span></span></span></p>\n</li>\n<li>\n<p><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>SIRÈNE&nbsp;: 52033993800018</span></span></span></p>\n</li>\n<li>\n<p><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>NAF&nbsp;: 9499Z</span></span></span></p>\n</li>\n</ul>\n<p><span><span style=\"color:#000000;\"><span style=\"font-family:\'Liberation Sans\', sans-serif;\"><span>Plus d\'informations sur la page&nbsp;<a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\" target=\"_blank\">https://asso.dolibarr.org/index.php/Dolibarr_foundation</a></span></span></span></span></p>\n<h2 class=\"western\"><br><br></h2>\n<h2 class=\"western\">Principes de protection des données</h2>\n<p>En utilisant le site<b> DoliStore.com</b>, vous acceptez le traitement de vos données personnelles tel que décrit dans cette politique de confidentialité.</p>\n<p><br><br></p>\n<p>Nos engagements vis-à-vis des principes de protection des données sont les suivants:</p>\n<ul>\n<li>\n<p>Le traitement des données est légal, juste, transparent&nbsp;: nos activités de traitement des données ont des motifs légitimes. Nous considérons toujours vos droits avant de traiter des données personnelles.</p>\n</li>\n<li>\n<p>Limitation des finalités&nbsp;: le traitement des données est limité à l’objectif pour lequel les données personnelles ont été collectées.</p>\n</li>\n<li>\n<p>Minimisation&nbsp;: Nous collectons et traitons uniquement la quantité minimale de données personnelles requises à quelque fin que ce soit.</p>\n</li>\n<li>\n<p>Durée de conservation&nbsp;: le traitement est limité avec une période de temps. Nous ne conserverons pas vos données personnelles plus longtemps que nécessaire.</p>\n</li>\n<li>\n<p>Intégrité&nbsp;: Nous faisons de notre mieux pour assurer l’exactitude,&nbsp;l’intégrité et la confidentialité des données.</p>\n</li>\n</ul>\n<p></p>\n<p></p>\n<h2 class=\"western\">Définition des droits sur les données personnelles</h2>\n<ol>\n<li>\n<p>Droit à l’information – ce qui signifie que vous devez savoir si vos données personnelles sont en cours de traitement; quelles sont les données collectées, d’où elles proviennent et pourquoi et par qui elles sont traitées.</p>\n</li>\n<li>\n<p>Droit d’accès – ce qui signifie que vous avez le droit d’accéder aux données collectées de / à votre sujet. Cela inclut votre droit de demander et d’obtenir une copie de vos données personnelles recueillies.</p>\n</li>\n<li>\n<p>Droit de rectification – ce qui signifie que vous avez le droit de demander la rectification ou l’effacement de vos données personnelles qui sont inexactes ou incomplètes.</p>\n</li>\n<li>\n<p>Droit d’effacement – ce qui signifie que dans certaines circonstances, vous pouvez demander que vos données personnelles soient effacées de nos archives.</p>\n</li>\n<li>\n<p>Droit de restriction ou d’opposition au traitement – signifiant que certaines conditions s’appliquent, vous avez le droit de restreindre ou de vous opposer au traitement de vos données personnelles.</p>\n</li>\n<li>\n<p>Droit à la portabilité des données – vous avez le droit d’obtenir vos données personnelles dans un format lisible par machine.</p>\n</li>\n<li>\n<p>Droit de retirer votre consentement – vous avez le droit de retirer tout consentement donné pour le traitement de vos données personnelles.</p>\n</li>\n</ol>\n<p></p>\n<p></p>\n<h2 class=\"western\">Les données que nous recueillons</h2>\n<h3 class=\"western\"><strong>Informations que les vendeurs ont fournis</strong></h3>\n<p>Les informations suivantes fournis par les vendeurs de modules sont collectées&nbsp;:</p>\n<ul>\n<li>\n<p>- adresse e-mail, nom, prénom, nom de société, numéro entreprise ou fiscal (numéro de TVA intracommunautaire), informations de facturation.</p>\n</li>\n</ul>\n<h3 class=\"western\"><strong>Informations que les acheteurs ont fournis</strong></h3>\n<p><strong><span>Les informations suivantes fournis par les acheteurs de modules sont collectées&nbsp;:</span></strong></p>\n<ul>\n<li>\n<p align=\"left\">- adresse e-mail, nom, prénom, nom de société, numéro entreprise ou fiscal (numéro de TVA intracommunautaire), informations de facturation, statut d’adhérent ou non à l’association</p>\n<p>Note&nbsp;: Les informations de paiements (carte bancaire ou identifiant de partenaires de paiements) ne sont pas recueillies ni connues de DoliStore, car fournie directement au prestataire de paiement.</p>\n</li>\n</ul>\n<h3 class=\"western\"><strong>Informations collectées automatiquement à votre sujet</strong></h3>\n<p>Cela inclut les informations stockées automatiquement par les cookies de session ou d’analyse statistiques (basé sur Google et Matomo).</p>\n<p>Cela inclut aussi l’historique d’achat.</p>\n<h3 class=\"western\"><strong>Informations issues de partenaires</strong></h3>\n<p>Nous ne recueillons pas d’informations issus de partenaires.</p>\n<h3 class=\"western\"><span><strong>Liens vers </strong><strong>d’autres sites</strong></span></h3>\n<p align=\"justify\">Les pages du site peuvent inclure des contenus intégrés (par exemple des vidéos, images, articles, liens…). Le contenu intégré depuis d’autres sites se comporte de la même manière que si le visiteur se rendait sur cet autre site, aussi ces sites web pourraient collecter des données sur vous (adresse IP, utiliser des cookies, embarquer des outils de suivis tiers) ou suivre vos interactions avec ces contenus embarqués si vous disposez d’un compte connecté sur leur site web.</p>\n<p><br><br></p>\n<h2 class=\"western\">Utilisation de vos données personnelles</h2>\n<p>Nous utilisons vos données personnelles pour les finalités suivantes :</p>\n<ul>\n<li>\n<p>pour vous identifier <span style=\"color:#888888;\">(email de de login et mot de passe hashé)</span></p>\n</li>\n<li>\n<p>communiquer avec vous relativement aux produits vendus pour les vendeurs ou les produits achetés pour les acheteurs<span style=\"color:#888888;\"> (email)</span></p>\n</li>\n<li>\n<p>améliorer votre expérience vendeur ou client et répondre à vos questions<span style=\"color:#888888;\"> (historique des achats ou vente)</span></p>\n</li>\n<li>\n<p>remplir une obligation légale ou contractuelle <span style=\"color:#888888;\">(données de facturations)</span></p>\n</li>\n<li>\n<p>mener des analyses et des recherches afin d\'améliorer nos services<span style=\"color:#888888;\"> (données anonymisés statistiques de consultation et navigation dans le site web).</span></p>\n</li>\n</ul>\n<ul>\n<li>\n<p></p>\n</li>\n</ul>\n<p>Nous traitons vos données personnelles afin de remplir les obligations découlant de la loi et / ou utiliser vos données personnelles pour les options prévues par la loi.</p>\n<p>Nous nous réservons le droit d’anonymiser les données personnelles recueillies et d’utiliser ces données anonymisées sur le long terme.</p>\n<p>Nous n’utiliserons des données en dehors du champ d’application de cette politique que si elles sont anonymisées.</p>\n<p>Nous pourrions traiter vos données personnelles à d’autres fins qui ne sont pas mentionnées ici. Dans ce cas ce document fera l’objet d’une mise à jour.</p>\n<p><br><br></p>\n<h2 class=\"western\">Durées de stockage de vos données</h2>\n<p>Pour les utilisateurs et utilisatrices qui s’enregistrent sur notre site, nous stockons les données personnelles indiquées dans leur profil. Tous les utilisateurs et utilisatrices peuvent voir, modifier ou supprimer leurs informations personnelles à tout moment.</p>\n<p align=\"justify\">Nous sauvegardons aussi les informations de facturation aussi longtemps que nécessaire pour des raisons comptables ou d’autres obligations découlant de la loi, jusqu’à votre demande de suppression de vos données personnelles ou le temps légal pour les données de facturation.</p>\n<h2 class=\"western\" align=\"justify\"><br><br></h2>\n<h2 class=\"western\">Avec qui vos données personnelles sont partagées</h2>\n<h3 class=\"western\">Les Vendeurs</h3>\n<ul>\n<li>\n<p>Les données personnelles suivantes des acheteurs sont fournies aux vendeurs&nbsp;afin de permettre de fournir le service ou d’améliorer l’expérience client&nbsp;: email, nom et prénom, nom du module qui a été acheté avec son tarif et date d’achat.</p>\n</li>\n</ul>\n<h3 class=\"western\">Les Acheteurs</h3>\n<ul>\n<li>\n<p>Les données personnelles suivantes des vendeurs sont fournies aux acheteurs&nbsp;afin de permettre de fournir le service ou d’améliorer l’expérience client&nbsp;: email ou url de contact du support du module (si le vendeur fournit un support).</p>\n</li>\n</ul>\n<h3 class=\"western\">Organisme de paiements</h3>\n<p>Afin d’assurer le rôle de tiers de paiement, nous utilisons le service Stripe et Paypal. Nous transmettons à ces derniers l’email et adresse de l’acheteur. Les informations sur le mode de paiement ne sont pas stockées par DoliStore mais recueillies et stockées directement par Stripe ou Paypal qui nous informe du succès ou non des paiements.</p>\n<h3 class=\"western\">Les Tiers et organismes légaux</h3>\n<p>Nous divulguons vos données personnelles à des tiers ou à des fonctionnaires lorsque nous sommes légalement tenus de le faire.</p>\n<h3 class=\"western\"><strong>Autres Tiers hors de l\'Espace Economique Européen</strong></h3>\n<ul>\n<li>\n<p>Nous ne transmettons pas de données à d’autres tiers que ceux cités précédemment.</p>\n<p>Lorsque nous transférons des informations personnelles à des pays ne faisant pas partie de l\'Espace économique européen (cas cités précédemment pour les vendeurs hors Europe ou les organismes de paiements), nous nous assurons que ces informations sont transférées en conformité avec la présente Notice et en application des lois applicables à la protection des données personnelles. Nous nous appuyons sur les décisions de la Commission européenne en matière d\'adéquation ou utilisons des contrats assortis de garanties standard publiés par la Commission européenne.</p>\n</li>\n</ul>\n<h3 class=\"western\">Administrateurs et modérateurs</h3>\n<p>La plateforme DoliStore est administré et modéré par les membres du Conseil d’Administration de l’association Dolibarr. Chaque membre du conseil d’administration a les droits d’accès et de modification des informations sur le profil des vendeurs, des acheteurs et sur la liste des ventes/achats.</p>\n<p><br>The Dolibarr Association ne peut être tenu pour responsable de l\'utilisation qui pourrait être faite de ces données par les vendeurs ou tout autre tiers ayant autorisation d\'accès.</p>\n<p></p>\n<h2 class=\"western\">Comment nous sécurisons vos données</h2>\n<p>Nous faisons de notre mieux pour protéger vos données personnelles.</p>\n<h3 class=\"western\">Hébergement</h3>\n<p>Le service est hébergé sous l\'offre Public Cloud d\'OVH SAS. R<span>CS Lille: 537 407 926,&nbsp;</span><span>2, rue Kellermann, 59100 Roubaix</span></p>\n<h3 class=\"western\">Chiffrement des communications</h3>\n<p>Nous utilisons des protocoles sécurisés pour la communication et le transfert de données (tel que le HTTPS). Nous utilisons l’anonymisation et le pseudonymisation lorsque cela est approprié.</p>\n<h3 class=\"western\">Supervision</h3>\n<p>Nous surveillons nos systèmes pour détecter d’éventuelles vulnérabilités et attaques.</p>\n<h3 class=\"western\">Sauvegardes</h3>\n<p>Des sauvegardes régulières sont automatisées et stockées chez notre hébergeur OVH sous forme de snapshot, mais aussi Google Drive sous forme de fichiers.</p>\n<p>Même si nous faisons de notre mieux, nous ne pouvons pas garantir la sécurité totale de l’information. Cependant, nous nous engageons à informer les autorités compétentes des violations de données. Nous vous aviserons également s’il existe une menace pour vos droits ou intérêts. Nous ferons tout ce qui est raisonnablement possible pour prévenir les violations de la sécurité et aider les autorités en cas de violation.</p>\n<h3 class=\"western\">Mot de passe</h3>\n<p>Votre mot de passe est conservé de manière chiffré via un chiffrement non réversible (hash). Si vous avez un compte chez nous, sachez que vous devez garder votre nom d’utilisateur et votre mot de passe secrets.</p>\n<h3 class=\"western\">Cookies et autres technologies que nous utilisons</h3>\n<p>Nous utilisons des cookies et / ou des technologies similaires pour permettre la fonctionnalité de session utilisateur et obtenir des statistiques anonymes de navigations sur le site.</p>\n<p>Un cookie est un petit fichier texte stocké sur votre ordinateur (en mémoire ou sur le disque). Les cookies stockent les informations utilisées pour aider à faire fonctionner les sites. Nous ne pouvons accéder qu’aux cookies créés par notre site. Vous pouvez contrôler vos cookies au niveau du navigateur. Choisir de désactiver les cookies peut vous empêcher d’utiliser certaines fonctions.</p>\n<p><br><br></p>\n<p><span><strong>Nous utilisons des cookies pour les finalités suivantes:</strong></span></p>\n<ul>\n<li>\n<p>Cookies nécessaires: ces cookies sont nécessaires pour que vous puissiez utiliser certaines fonctionnalités importantes sur notre site Web, telles que la connexion et la persistance de votre sessions. Ces cookies ne collectent aucune information personnelle.</p>\n</li>\n<li>\n<p>Cookies de fonctionnalité – ces cookies fournissent des fonctionnalités qui rendent l’utilisation de notre service plus pratique et permettent d’offrir des fonctionnalités plus personnalisées. Par exemple, ils peuvent se souvenir de votre nom et de votre adresse e-mail dans des formulaires de commentaire. Vous n’avez donc pas besoin de ressaisir cette information la prochaine fois que vous commentez.</p>\n</li>\n<li>\n<p>Cookies analytiques: ces cookies sont utilisés pour suivre de manière anonyme l’utilisation et les performances de notre site Web et de nos services</p>\n</li>\n</ul>\n<p><br><br></p>\n<p>Vous pouvez supprimer les cookies stockés dans votre ordinateur via les paramètres de votre navigateur. Vous pouvez également contrôler certains cookies tiers en utilisant une plate-forme d’amélioration de la confidentialité, telle que&nbsp;<span><a href=\"http://optout.aboutads.info/#!/\" target=\"_blank\">optout.aboutads.info</a></span>&nbsp;ou&nbsp;<span><a href=\"http://www.youronlinechoices.com/\" target=\"_blank\">youronlinechoices.com</a></span>.&nbsp;Pour plus d’informations sur les cookies, visitez&nbsp;<span><a href=\"http://www.allaboutcookies.org/\" target=\"_blank\">allaboutcookies.org</a></span>.</p>\n<p><br><br></p>\n<h2 class=\"western\">Information de contact - DPO</h2>\n<p><span><span><strong>Le responsable du traitement des données personnelles (DPO) est le&nbsp;Président de l\'association Dolibarr. </strong></span><span><strong>S</strong></span><span><strong>on nom </strong></span><span><strong>est indiqué </strong></span><span><strong>sur cette page&nbsp;:&nbsp;</strong></span></span></p>\n<p><span><span><strong><a href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a></strong></span></span></p>\n<p></p>\n<p>Toute demande concernant vos données personnelles peut être faite par mail à&nbsp;<span><b><a href=\"mailto:dolistore@dolibarr.org\">dolistore@dolibarr.org</a></b></span></p>\n<p><br><br></p>\n<h2 class=\"western\">Modifications de cette politique de confidentialité</h2>\n<p>Nous nous réservons le droit d’apporter des modifications à cette politique de confidentialité.<br>Dernière modification effectuée le 14/05/2024</p>\n<p></p>\n\n\n                    	\n                    </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n',1,'2024-05-06 19:12:53',NULL,'2025-01-13 23:54:26',NULL,NULL,'page','fr',154,'','',NULL,'','',0,NULL,NULL),
(180,38,'message-de-bienvenue','','message de bienvenue','message de bienvenue','','<section id=\"welcome_section\" contenteditable=\"true\">\n  <div id=\"editorial_block_center\" class=\"editorial_block\">\n    <a href=\"https://www.dolibarr.org\" title=\"\">\n      <img class=\"img-responsive\"\n        src=\"viewimage.php?modulepart=medias&entity=1&file=image/test/img/dolibarr_logo.png\"\n        alt=\"\" width=\"578\" height=\"160\" />\n    </a>\n    <div class=\"rte\">\n        <br>\n        <p>Ce site est la place de marché officielle pour trouver des modules et extensions au projet <a\n                href=\"http://www.dolibarr.fr\" target=\"_blank\">Dolibarr ERP/CRM</a>.</p>\n        <ul>\n            <li><span style=\"color: #a45931;\"><strong>Si vous êtes utilisateur de Dolibarr</strong></span> :</li>\n        </ul>\n        <p>Vous pouvez rechercher des fonctionnalités supplémentaires et trouver des modules ou extensions diverses.\n            Naviguer dans les categories pour trouver votre extension ou utiliser le formulaire de recherche en haut de la\n            page...</p>\n        <p>La plupart des extensions/modules sont gratuits, certains sont payants (Les adhérents à l\'<a\n                title=\"Dolibarr foundation\" href=\"https://asso.dolibarr.org\" target=\"_blank\">association Dolibarr</a>\n            peuvent bénéficer de 20% de réduction si la demande est faite à l\'association une fois le compte DoliStore créé\n            et avant l\'achat)</p>\n        <ul>\n            <li><strong><span style=\"color: #a45931;\">Si vous êtes développeur :</span></strong></li>\n        </ul>\n        <p>Vous pouvez soumettre vos modules à la vente au prix de votre choix (ou gratuit). Pour cela, il vous suffit de\n            créer un compte, et soumettre votre module.</p>\n        <p></p>\n    </div>\n  </div>\n</section>',1,'2024-05-12 10:58:10',NULL,'2025-01-14 00:38:43',NULL,NULL,'banner','fr',206,'','',NULL,'','',0,NULL,NULL),
(181,38,'messaggio-di-benvenuto','','messaggio di benvenuto','messaggio di benvenuto','','<section id=\"welcome_section\" contenteditable=\"true\">\n  <div id=\"editorial_block_center\" class=\"editorial_block\">\n    <a href=\"https://www.dolibarr.org\" title=\"\">\n      <img class=\"img-responsive\"\n        src=\"viewimage.php?modulepart=medias&entity=1&file=image/test/img/dolibarr_logo.png\"\n        alt=\"\" width=\"578\" height=\"160\" />\n    </a>\n    <div class=\"rte\">\n        <br>\n        <p>Questo è il marketplace ufficiale dove trovare moduli e plugin per&nbsp;<a href=\"https://www.dolibarr.org\" target=\"_blank\">Dolibarr ERP/CRM</a>.</p>\n        <ul>\n        <li>Se sei un utente Dolibarr:</li>\n        </ul>\n        <p>Puoi cercare funzionalità aggiuntive e trovare vari moduli o estensioni. Sfoglia&nbsp;le categorie o usa il modulo di ricerca in alto&nbsp;per trovare il plugin&nbsp;adatto alle tue necessità...</p>\n        <p>Molti modulsono gratuiti, altri sono a pagamento (I soci della <a href=\"https://asso.dolibarr.org\">Dolibarr Foundation</a>&nbsp;hanno diritto ad uno sconto del 20% facendo richiesta all\'associazione dopo aver creato il proprio account DoliStore. Per ricevere lo sconto del 20% bisogna attendere l\'approvazione della richiesta prima di effettuare gli acquisti)</p>\n        <ul>\n        <li><strong>Se sei uno sviluppatore:</strong></li>\n        </ul>\n        <p>Puoi pubblicare i tuoi moduli stabilendo&nbsp;tu il prezzo (se è gratis ancora meglio). Ti basta creare un account e inviare il tuo modulo usando il menu a sinistra.</p>\n        <p></p>\n    </div>\n  </div>\n</section>',1,'2024-05-12 11:59:51',NULL,'2025-01-13 18:56:02',NULL,NULL,'banner','it',206,'','',NULL,'','',0,NULL,NULL),
(182,38,'myaccount','','myaccount','','','<?php\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\nincludeContainer(\'_library_page_lib.php\', 1);\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$action = GETPOST(\'action\', \'alpha\');\n\nif (!empty($action) && $action == \"logout\") {\n    // Update Order details before unset session and logout\n    ws_refreshOrder();\n    unset($_SESSION[\'user\']);\n    redirectToContainer(\'index\');\n}\nif (empty($_SESSION[\'user\'][\'id_user\'])) {\n    redirectToContainer(\'login-register\');\n}\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php\n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"myAccountPageTitle\");\n    ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"myAccount\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n            <div id=\"my-account\">\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"myAccount\"); ?></h1>\n                <p class=\"info-account\"><?php print $weblangs->trans(\"welcomeToYourAccount\"); ?></p>\n                <br>\n                <div class=\"row addresses-lists\">\n                	<div class=\"col-xs-12 col-sm-12 col-lg-12\">\n                		<ul class=\"myaccount-link-list\">\n                		    <li><a href=\"account-information.php\" title=\"<?php print $weblangs->trans(\"personalInfo\"); ?>\"><i class=\"icon-user\"></i><span><?php print $weblangs->trans(\"personalInfo\"); ?></span></a></li>\n                            <li><a href=\"order-history.php\" title=\"<?php print $weblangs->trans(\"orderHistoryDetails\"); ?>\"><i class=\"icon-list-ol\"></i><span><?php print $weblangs->trans(\"orderHistoryDetails\"); ?></span></a></li>\n                        </ul>\n                	</div>\n                    \n                    <br>\n                	\n                	\n                	<div class=\"col-xs-12 col-sm-12 col-lg-12\">\n                    	<br><b><?php print $weblangs->trans(\"VendorArea\"); ?></b><br><br>\n\n                        <ul class=\"myaccount-link-list\">\n                		    <li><a href=\"edit-module-product.php\" title=\"<?php print $weblangs->trans(\"newModuleProduct\"); ?>\"><i class=\"icon-add\"></i><span><?php print $weblangs->trans(\"newModuleProduct\"); ?></span></a></li>\n                		    <li><a href=\"manage-products.php\" title=\"<?php print $weblangs->trans(\"manageProducts\"); ?>\"><i class=\"icon-manage\"></i><span><?php print $weblangs->trans(\"manageProducts\"); ?></span></a></li>\n                            <li><a href=\"income-payments.php\" title=\"<?php print $weblangs->trans(\"incomeAndPayments\"); ?>\"><i class=\"icon-euro\"></i><span><?php print $weblangs->trans(\"incomeAndPayments\"); ?></span></a></li>\n                        </ul>\n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                    <li><a class=\"btn btn-default button button-small\" href=\"https://www.dolistore.com/\" title=\"<?php print $weblangs->trans(\"Home\"); ?>\"><span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span></a></li>\n                </ul>\n            </div>\n		</div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-03-18 12:14:17',NULL,'2025-01-23 23:16:38',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(183,38,'myproducts','','myproducts','','','',1,'2024-06-30 13:45:26',NULL,'2024-06-30 13:45:26',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(184,38,'nota-legale-chi-siamo','','Nota legale - Chi siamo','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n\n\n\n<div class=\"rte\">\n		<h3>Presentazione</h3>\n<p>L\'associazione Dolibarr offre la piattaforma DoliStore.com per aiutare venditori e acquirenti a incontrarsi. Solo il servizio di visibilità dei prodotti venduti è fornito dalla fondazione. La fondazione non garantisce nulla sulla qualità dei prodotti acquistati dal cliente.</p>\n<p>L\'associazione Dolibarr, attraverso DoliStore, raccoglie per conto degli autori/editori i pagamenti dei beni venduti e gestisce la distribuzione dei fondi spettanti. A questo proposito, l\'associazione agisce sotto l\'esenzione di autorizzazione dell\'istituzione di pagamento prevista dall\'articolo L521-3 I 2° del codice monetario e finanziario.</p>\n<p>L\'associazione Dolibarr è un\'associazione francese (Legge 1901) creata per contribuire alla promozione e allo sviluppo del software ERP e CRM Open Source Dolibarr.</p>\n<p><strong>Informazioni legali sulla fondazione:</strong></p>\n<ul>\n<li>WALDEC: W452006878</li>\n<li>SIRÈNE: 52033993800018</li>\n<li>NAF: 9499Z</li>\n</ul>\n<p>Maggiori informazioni sulla pagina <a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\">https://asso.dolibarr.org/index.php/Dolibarr_foundation</a>.</p>\n<h3>Principi di Protezione dei Dati</h3>\n<p>Utilizzando il sito DoliStore.com, accetti il trattamento dei tuoi dati personali come descritto in questa politica sulla privacy.</p>\n<p><strong>I nostri impegni relativi ai principi di protezione dei dati sono i seguenti:</strong></p>\n<ul>\n<li><strong>Trattamento legale, equo e trasparente:</strong> Le nostre attività di trattamento dei dati hanno motivi legittimi. Consideriamo sempre i tuoi diritti prima di trattare dati personali.</li>\n<li><strong>Limitazione della finalità:</strong> Il trattamento dei dati è limitato allo scopo per cui i dati personali sono stati raccolti.</li>\n<li><strong>Minimizzazione dei dati:</strong> Raccogliamo e trattiamo solo la quantità minima di dati personali necessari per qualsiasi scopo.</li>\n<li><strong>Periodo di conservazione:</strong> Il trattamento è limitato a un periodo di tempo specifico. Non conserveremo i tuoi dati personali più a lungo del necessario.</li>\n<li><strong>Integrità:</strong> Facciamo del nostro meglio per garantire l\'accuratezza, l\'integrità e la riservatezza dei dati.</li>\n</ul>\n<h3>Definizione dei Diritti sui Dati Personali</h3>\n<ul>\n<li><strong>Diritto all\'informazione:</strong> Devi sapere se i tuoi dati personali sono in corso di trattamento; quali dati vengono raccolti, da dove provengono e perché e da chi vengono trattati.</li>\n<li><strong>Diritto di accesso:</strong> Hai il diritto di accedere ai dati raccolti su di te. Ciò include il diritto di richiedere e ottenere una copia dei tuoi dati personali raccolti.</li>\n<li><strong>Diritto di rettifica:</strong> Hai il diritto di richiedere la rettifica o la cancellazione dei tuoi dati personali che sono inesatti o incompleti.</li>\n<li><strong>Diritto di cancellazione:</strong> In determinate circostanze, puoi richiedere che i tuoi dati personali vengano cancellati dai nostri archivi.</li>\n<li><strong>Diritto alla restrizione o all\'opposizione al trattamento:</strong> Sotto determinate condizioni, hai il diritto di limitare o opporti al trattamento dei tuoi dati personali.</li>\n<li><strong>Diritto alla portabilità dei dati:</strong> Hai il diritto di ottenere i tuoi dati personali in un formato leggibile da una macchina.</li>\n<li><strong>Diritto di ritirare il consenso:</strong> Hai il diritto di ritirare qualsiasi consenso dato per il trattamento dei tuoi dati personali.</li>\n</ul>\n<h3>Dati che Raccogliamo</h3>\n<p><strong>Informazioni fornite dai venditori:</strong></p>\n<ul>\n<li>Indirizzo email, nome, cognome, nome della società, numero aziendale o fiscale (numero di IVA intracomunitaria), informazioni di fatturazione.</li>\n</ul>\n<p><strong>Informazioni fornite dagli acquirenti:</strong></p>\n<ul>\n<li>Indirizzo email, nome, cognome, nome della società, numero aziendale o fiscale (numero di IVA intracomunitaria), informazioni di fatturazione, stato di membro o meno dell\'associazione.</li>\n</ul>\n<p><strong>Nota:</strong> Le informazioni di pagamento (carta di credito o ID del partner di pagamento) non sono raccolte né conosciute da DoliStore, poiché fornite direttamente al fornitore di pagamento.</p>\n<p><strong>Informazioni raccolte automaticamente:</strong></p>\n<ul>\n<li>Includono le informazioni memorizzate automaticamente dai cookie di sessione o di analisi statistica (basato su Google e Matomo).</li>\n<li>Includono anche la cronologia degli acquisti.</li>\n</ul>\n<p><strong>Informazioni dai partner:</strong></p>\n<ul>\n<li>Non raccogliamo informazioni dai partner.</li>\n</ul>\n<p><strong>Link ad altri siti:</strong></p>\n<ul>\n<li>Le pagine del sito possono includere contenuti incorporati (ad esempio video, immagini, articoli, link). Il contenuto incorporato da altri siti si comporta allo stesso modo come se il visitatore si recasse su quell\'altro sito. Questi siti web potrebbero raccogliere dati su di te (indirizzo IP, utilizzo dei cookie, strumenti di tracciamento di terze parti) o tracciare le tue interazioni con tali contenuti incorporati se hai un account e sei connesso al loro sito web.</li>\n</ul>\n<h3>Uso dei Tuoi Dati Personali</h3>\n<p>Utilizziamo i tuoi dati personali per i seguenti scopi:</p>\n<ul>\n<li>Per identificarti (email di accesso e password hashata)</li>\n<li>Per comunicare con te relativamente ai prodotti venduti per i venditori o ai prodotti acquistati per gli acquirenti (email)</li>\n<li>Per migliorare la tua esperienza come venditore o cliente e rispondere alle tue domande (cronologia degli acquisti o delle vendite)</li>\n<li>Per adempiere a un obbligo legale o contrattuale (dati di fatturazione)</li>\n<li>Per condurre analisi e ricerche al fine di migliorare i nostri servizi (dati anonimi di statistiche di consultazione e navigazione nel sito web).</li>\n</ul>\n<p>Trattiamo i tuoi dati personali per adempiere agli obblighi derivanti dalla legge e/o per utilizzare i tuoi dati personali per le opzioni previste dalla legge. Ci riserviamo il diritto di anonimizzare i dati personali raccolti e di utilizzare tali dati anonimi a lungo termine. Utilizzeremo i dati al di fuori dell\'ambito di questa politica solo se sono anonimizzati.</p>\n<p>Potremmo trattare i tuoi dati personali per altri scopi non menzionati qui. In tal caso, questo documento sarà aggiornato.</p>\n<h3>Periodi di Conservazione dei Tuoi Dati</h3>\n<p>Per gli utenti che si registrano sul nostro sito, memorizziamo i dati personali indicati nel loro profilo. Tutti gli utenti possono vedere, modificare o eliminare le loro informazioni personali in qualsiasi momento.</p>\n<p>Conserviamo anche le informazioni di fatturazione per il tempo necessario per ragioni contabili o per altri obblighi derivanti dalla legge, fino alla tua richiesta di eliminazione dei dati personali o per il tempo legale per i dati di fatturazione.</p>\n<h3>Con Chi Condividiamo i Tuoi Dati Personali</h3>\n<p><strong>Venditori:</strong> I seguenti dati personali degli acquirenti sono forniti ai venditori per facilitare la fornitura del servizio o migliorare l\'esperienza del cliente: email, nome e cognome, nome del modulo acquistato, prezzo e data di acquisto.</p>\n<p><strong>Acquirenti:</strong> I seguenti dati personali dei venditori sono forniti agli acquirenti per facilitare la fornitura del servizio o migliorare l\'esperienza del cliente: email o URL di contatto del supporto del modulo (se il venditore fornisce supporto).</p>\n<p><strong>Entità di pagamento:</strong> Per garantire il ruolo di terzi nel pagamento, utilizziamo i servizi di Stripe e Paypal. Forniamo loro l\'email e l\'indirizzo dell\'acquirente. Le informazioni sul metodo di pagamento non sono memorizzate da DoliStore ma raccolte e memorizzate direttamente da Stripe o Paypal, che ci informano sul successo o meno dei pagamenti.</p>\n<p><strong>Entità legali:</strong> Divulghiamo i tuoi dati personali a terzi o a funzionari quando siamo legalmente obbligati a farlo.</p>\n<p><strong>Altri terzi al di fuori dello Spazio Economico Europeo:</strong> Non trasmettiamo dati ad altri terzi che non siano quelli citati in precedenza. Quando trasferiamo informazioni personali a paesi che non fanno parte dello Spazio Economico Europeo (casi menzionati in precedenza per i venditori al di fuori dell\'Europa o per le entità di pagamento), ci assicuriamo che tali informazioni siano trasferite in conformità con questa Informativa e in applicazione delle leggi applicabili alla protezione dei dati personali. Facciamo affidamento sulle decisioni di adeguatezza della Commissione Europea o utilizziamo contratti con garanzie standard pubblicati dalla Commissione Europea.</p>\n<p><strong>Amministratori e moderatori:</strong> La piattaforma DoliStore è amministrata e moderata dai membri del Consiglio di Amministrazione dell\'associazione Dolibarr. Ogni membro del consiglio di amministrazione ha i diritti di accesso e modifica delle informazioni sul profilo dei venditori, degli acquirenti e sulla lista delle vendite/acquisti.</p>\n<p></p>\n<p>L\'Associazione Dolibarr non può essere ritenuta responsabile dell\'uso che potrebbe essere fatto di questi dati da parte dei venditori o di qualsiasi altro terzo con accesso autorizzato.</p>\n<p></p>\n<h3>Come Proteggiamo i Tuoi Dati</h3>\n<p>Facciamo del nostro meglio per proteggere i tuoi dati personali.</p>\n<p><strong>Crittografia delle comunicazioni:</strong> Utilizziamo protocolli sicuri per la comunicazione e il trasferimento dei dati (come HTTPS). Utilizziamo l\'anonimizzazione e la pseudonimizzazione quando appropriato.</p>\n<p><strong>Monitoraggio:</strong> Monitoriamo i nostri sistemi per rilevare eventuali vulnerabilità e attacchi.</p>\n<p><strong>Backup:</strong> I backup regolari sono automatizzati.</p>\n<p>Anche se facciamo del nostro meglio, non possiamo garantire la sicurezza totale delle informazioni. Tuttavia, ci impegniamo a informare le autorità competenti delle violazioni dei dati. Ti informeremo anche se c\'è una minaccia per i tuoi diritti o interessi. Faremo tutto il possibile per prevenire violazioni della sicurezza e assistere le autorità in caso di violazione.</p>\n<p><strong>Password:</strong> La tua password è conservata in modo crittografato tramite crittografia non reversibile (hash). Se hai un account con noi, devi mantenere segreti il tuo nome utente e la tua password.</p>\n<h3>Cookies e Altre Tecnologie che Usiamo</h3>\n<p>Utilizziamo cookie e/o tecnologie simili per abilitare la funzionalità di sessione utente e ottenere statistiche anonime di navigazione sul sito.</p>\n<p>Un cookie è un piccolo file di testo memorizzato sul tuo computer (in memoria o su disco). I cookie memorizzano informazioni utilizzate per aiutare il funzionamento dei siti. Possiamo accedere solo ai cookie creati dal nostro sito. Puoi controllare i tuoi cookie a livello di browser. La scelta di disabilitare i cookie potrebbe impedire l\'uso di alcune funzionalità.</p>\n<p><strong>Utilizziamo cookie per i seguenti scopi:</strong></p>\n<ul>\n<li><strong>Cookie necessari:</strong> Questi cookie sono necessari per utilizzare funzioni essenziali nel nostro sito, come il login e la persistenza della sessione. Questi cookie non raccolgono informazioni personali.</li>\n<li><strong>Cookie di funzionalità:</strong> Questi cookie forniscono funzionalità che rendono il nostro servizio più conveniente e permettono funzionalità più personalizzate. Ad esempio, possono ricordare il tuo nome e il tuo indirizzo email nei moduli di commento, così non devi reinserire queste informazioni la prossima volta.</li>\n<li><strong>Cookie analitici:</strong> Questi cookie sono utilizzati per tracciare l\'uso e le prestazioni anonime del nostro sito web e servizi.</li>\n</ul>\n<p>Puoi eliminare i cookie memorizzati sul tuo computer attraverso le impostazioni del browser. Puoi anche controllare alcuni cookie di terze parti utilizzando una piattaforma di miglioramento della privacy, come optout.aboutads.info o youronlinechoices.com. Per maggiori informazioni sui cookie, visita allaboutcookies.org.</p>\n<h3>Informazioni di Contatto - DPO</h3>\n<p>Il responsabile del trattamento dei dati personali (DPO) è il Presidente dell\'associazione Dolibarr. Il suo nome è indicato su questa pagina: <a href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>.</p>\n<p>Qualsiasi richiesta riguardante i tuoi dati personali può essere fatta via email a <a>dolistore@dolibarr.org</a>.</p>\n<h3>Modifiche a Questa Politica sulla Privacy</h3>\n<p>Ci riserviamo il diritto di apportare modifiche a questa politica sulla privacy. Ultima modifica effettuata il 14/05/2024.</p>\n	</div>\n				        \n				        \n\n\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 19:20:07',NULL,'2025-01-13 23:25:11',NULL,NULL,'page','it',154,'','',NULL,'','',0,NULL,NULL),
(185,38,'order','','order','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<div id=\"page\">\n	<div class=\"header-container\">\n		<?php includeContainer(\'header\'); ?>\n	</div>\n	<div class=\"columns-container\">\n		<div id=\"columns\" class=\"container\">\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"<?php print $weblangs->trans(\"backHome\"); ?>\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"yourShoppingCart\"); ?>\n			</div>\n			<!--  Breadcrumb  -->\n			<div id=\"slider_row\" class=\"row\">\n				<div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n			</div>\n			<div class=\"row\">\n				<!-- include lefet sidebar container -->\n				<?php includeContainer(\'sidebar\'); ?>\n				<div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n					<div class=\"clearfix\">\n						<h1 class=\"page-heading\"><?php print $weblangs->trans(\"cartSummary\"); ?>\n						<span class=\"heading-counter\"><?php print $weblangs->trans(\"yourCartContains\"); ?>:\n    						<?php if ($_SESSION[\'products\']): ?>\n                                <span class=\"ajax_cart_no_product\"><?php print count($_SESSION[\'products\']); ?></span> <?php if(count($_SESSION[\'products\']) > 1){ print $weblangs->trans(\"products\");}else{ print $weblangs->trans(\"product\");} ?>\n                            <?php else: ?>\n                                <span id=\"ajax_cart_no_product\">0</span> <?php print $weblangs->trans(\"product\"); ?>\n                            <?php endif ?>\n						</span>\n						</h1>\n						<?php if (!$_SESSION[\'products\']): ?>\n                            <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"cartIsEmpty\"); ?></p>\n                        <?php else: ?>\n							<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n							    \n							    <?php if (getDolGlobalInt(\"MARKETPLACE_BLOCK_SALES\")): ?>\n                                    <div class=\"block-sells-notification\">\n                                        <?php print $weblangs->trans(\"marketplacePurchasesDisabled\"); ?>\n                                    </div>\n                                <?php endif ?>\n                                \n								<table id=\"cart_summary\" class=\"table table-bordered stock-management-off\">\n									<thead>\n										<tr>\n											<th class=\"cart_product first_item\"><?php print $weblangs->trans(\"product\"); ?></th>\n											<th class=\"cart_description item\"><?php print $weblangs->trans(\"Description\"); ?></th>\n											<th class=\"cart_unit item\"><?php print $weblangs->trans(\"unitPrice\"); ?></th>\n											<th class=\"cart_quantity item\"><?php print $weblangs->trans(\"Quantity\"); ?></th>\n											<th class=\"cart_total item\"><?php print $weblangs->trans(\"Total\"); ?></th>\n											<th class=\"cart_delete last_item\">&nbsp;</th>\n										</tr>\n									</thead>\n									\n									<tbody>\n                                        <?php $total = 0; ?>\n                                        <?php foreach ($_SESSION[\'products\'] as $cart_product): ?>\n                                            <tr id=\"product_<?php print $cart_product[\'product_id\']; ?>\" class=\"cart_item\">\n    											<td class=\"cart_product\">\n    												<a href=\"product.php?id=<?php print $cart_product[\'product_id\']; ?>\"><img src=\"<?php print $cart_product[\'product_thumb\']; ?>\" id=\"product_img_<?php print $cart_product[\'product_id\']; ?>\" alt=\"<?php print $cart_product[\'product_name\']; ?>\" width=\"98\" height=\"98\"></a>\n    											</td>\n    											<td class=\"cart_description\">\n    												<p class=\"product-name\"><a href=\"product.php?id=<?php print $cart_product[\'product_id\']; ?>\"><?php print $cart_product[\'product_name\']; ?></a></p>\n    												<small class=\"cart_ref\"><?php print $weblangs->trans(\"Ref\"); ?> : <?php print $cart_product[\'product_ref\']; ?></small>\n    											</td>\n    											<td class=\"cart_unit\" data-title=\"Unit price\">\n    												<span class=\"price\" id=\"product_price\"><span class=\"price\" id=\"product_price_<?php print $cart_product[\'product_id\']; ?>\"><?php print price($cart_product[\'product_price\']); ?></span> €</span>\n    											</td>\n    \n    											<td class=\"cart_quantity text-center\">\n    \n    												<input type=\"hidden\" value=\"1\" name=\"quantity_<?php print $cart_product[\'product_id\']; ?>_hidden\">\n    												<input size=\"2\" type=\"text\" autocomplete=\"off\" class=\"cart_quantity_input form-control grey\" value=\"<?php print $cart_product[\'product_qty\']; ?>\" name=\"quantity_<?php print $cart_product[\'product_id\']; ?>\">\n    												<div class=\"cart_quantity_button clearfix\">\n    													<a rel=\"nofollow\" class=\"product_quantity_down btn btn-default button-minus button-minus-order\" id=\"cart_quantity_down\" data-field-qty=\"quantity_<?php print $cart_product[\'product_id\']; ?>\" data-ref=\"<?php print $cart_product[\'product_id\']; ?>\" href=\"\" title=\"<?php print $weblangs->trans(\"subtract\"); ?>\">\n    														<span><i class=\"icon-minus\"></i></span>\n    													</a>\n    													<a rel=\"nofollow\" class=\"product_quantity_up btn btn-default button-plus button-plus-order\" id=\"cart_quantity_up\" data-field-qty=\"quantity_<?php print $cart_product[\'product_id\']; ?>\" data-ref=\"<?php print $cart_product[\'product_id\']; ?>\" href=\"\" title=\"<?php print $weblangs->trans(\"add\"); ?>\"><span><i class=\"icon-plus\"></i></span></a>\n    												</div>\n    											</td>\n    											<td class=\"cart_total\" data-title=\"Total\">\n    												<span class=\"price\"><span class=\"total_line\" id=\"total_product_price_<?php print $cart_product[\'product_id\']; ?>\"><?php print price(price2num($cart_product[\'product_price\'] * $cart_product[\'product_qty\'], \'MT\')); ?></span> €</span>\n    											</td>\n    											<td class=\"cart_delete text-center\" data-title=\"Delete\">\n    												<div>\n    													<a rel=\"nofollow\" title=\"<?php print $weblangs->trans(\"delete\"); ?>\" class=\"cart_quantity_delete ajax_cart_block_remove_link\" data-code=\"<?php print $cart_product[\'product_id\']; ?>\" href=\"\"><i class=\"icon-trash\"></i></a>\n    												</div>\n    											</td>\n    										</tr>\n										\n                                            	\n                                            <?php\n                                                $subtotal = ($cart_product[\'product_price\'] * $cart_product[\'product_qty\']);\n                                                $total = ($total + $subtotal);\n                                            ?>\n                                        <?php endforeach ?>\n										\n									</tbody>\n									<tfoot>\n										<tr class=\"cart_total_price\">\n											<td rowspan=\"5\" colspan=\"2\" id=\"cart_voucher\" class=\"cart_voucher\">\n											</td>\n											<td colspan=\"2\" class=\"text-right\"><?php print $weblangs->trans(\"totalProductsTaxIncl\"); ?></td>\n											<td colspan=\"2\" class=\"price\" ><span id=\"total_product\"><?php print price(price2num($total, \'MT\')); ?></span> €</td>\n										</tr>\n										<tr class=\"cart_total_delivery\">\n											<td colspan=\"2\" class=\"text-right\"><?php print $weblangs->trans(\"Shipping\"); ?></td>\n											<td colspan=\"2\" class=\"price\" id=\"total_shipping\"><?php print $weblangs->trans(\"freeShipping\"); ?></td>\n										</tr>\n\n										<tr class=\"cart_total_price\">\n											<td colspan=\"2\" class=\"total_price_container text-right\">\n												<span><?php print $weblangs->trans(\"total\"); ?></span>\n											</td>\n											<td colspan=\"2\" class=\"price\" id=\"total_price_container\">\n												<span><span id=\"total_price\"><?php print price(price2num($total, \'MT\')); ?></span> €</span>\n											</td>\n										</tr>\n									</tfoot>\n								</table>\n							</div>\n\n							<p class=\"cart_navigation clearfix\">\n							    <?php if (!getDolGlobalInt(\"MARKETPLACE_BLOCK_SALES\") || in_array($_SESSION[\'user\'][\'id_user\'], array_map(\'trim\', explode(\',\', getDolGlobalString(\"MARKETPLACE_ADMIN_USER_IDS\"))))): ?>\n                                    <a href=\"payment.php\" class=\"button btn btn-default standard-checkout button-medium\" title=\"<?php print $weblangs->trans(\"LoginCheckout\"); ?>\">\n    									<span><?php print $retVal = (empty($_SESSION[\'user\'][\'id_user\'])) ? $weblangs->trans(\"LoginCheckout\") : $weblangs->trans(\"proceedToCheckout\") ; ?><i class=\"icon-chevron-right right\"></i></span>\n    								</a>\n                                <?php endif ?>\n\n								<a href=\"/\" class=\"button-exclusive btn btn-default\" title=\"<?php print $weblangs->trans(\"continueShopping\"); ?>\">\n									<i class=\"icon-chevron-left\"></i><?php print $weblangs->trans(\"continueShopping\"); ?>\n								</a>\n							</p>\n\n\n						<?php endif ?>\n					</div>\n				</div>\n			</div>\n		</div>\n	</div>\n	<!-- .columns-container -->\n	<div class=\"footer-container\">\n		<?php includeContainer(\'footer\'); ?>\n	</div>\n</div>',1,'2024-03-26 14:44:16',NULL,'2025-01-18 13:47:56',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL);
INSERT INTO `llx_website_page` VALUES
(186,38,'order-details','','order details','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\n//error_reporting(E_ALL);\n//ini_set(\'display_errors\', 1);\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\ninclude_once DOL_DOCUMENT_ROOT.\'/ecm/class/ecmfiles.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/security2.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/date.lib.php\';\n\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$order_ref = GETPOST(\'ref\', \'alpha\');\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n// Check if all necessary parameters are passed.\nif (empty($order_ref)) {\n	redirectToContainer(\'404\');\n    exit;\n}\n\n// Get Account ID.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer_account = new SocieteAccount($db);\n$result = $customer_account->fetch($user_id);\n$customer_id = $customer_account->fk_soc;\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n// To render view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\n    // Only for members with a specific role\n    require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n    $membre = new Adherent($db);\n    $result = $membre->fetch(\'\', 0, $customer_id);\n    \n    $adminsCat = new Categorie($db);\n	$adminsCat->fetch(1);\n	\n	$result = $adminsCat->containsObject(\'member\', $membre->id);\n	if ($result > 0) {\n	    \n        $customer_id = GETPOST(\'id_customer\');\n	}\n}\n\n// Check if there is a paid order for this customer with the sent information.\n$sql_find_order = \"SELECT c.rowid, c.ref, c.fk_statut, c.fk_soc, c.date_creation, c.module_source \";\n$sql_find_order .= \"FROM \".MAIN_DB_PREFIX.\"commande as c \";\n$sql_find_order .= \"WHERE c.fk_soc = \" . $customer_id . \" and c.ref = \'\" . $order_ref . \"\' and ( c.fk_statut= 1 or c.fk_statut= -1 ) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n$sql_find_order .= \"limit 1\";\n$find_order = $db->query($sql_find_order);\n$obj_order = $db->fetch_object($find_order);\n\nif (empty($obj_order)) {\n    redirectToContainer(\'404\');\n} else {\n    // Get order object\n    $order_ref = $obj_order->ref;\n    $order_object = new Commande($db);\n    $result = $order_object->fetch(\'\', $order_ref);\n    if ($result < 0) {\n    	redirectToContainer(\'404\');\n    }\n    \n    // Get invoice object\n    $order_object->fetchObjectLinked();\n    \n    if (!empty($order_object->linkedObjects[\'facture\'])) {\n        $linked_invoices = $order_object->linkedObjects[\'facture\'];\n        /*$last_invoice_object = $linked_invoices[reset(array_keys($linked_invoices))];\n        if ($last_invoice_object instanceof Facture) {\n            $invoice_object = $last_invoice_object;\n        }*/\n        \n        // Extract only regular invoices \n        $regular_invoices = array_filter($linked_invoices, function ($invoice) {\n            return ($invoice instanceof Facture) && ($invoice->type == 0);\n        });\n    \n        // Get first regular invoice if exist\n        if (!empty($regular_invoices)) {\n            $first_regular_invoice = reset($regular_invoices);\n            $invoice_object = $first_regular_invoice;\n        }\n        \n        // Get payment details\n        $sql_payment_details = \"SELECT c.libelle AS payment_method \";\n        $sql_payment_details .= \"FROM \";\n        $sql_payment_details .= \"\".MAIN_DB_PREFIX.\"paiement_facture AS pf \";\n        $sql_payment_details .= \"JOIN \".MAIN_DB_PREFIX.\"paiement AS p ON pf.fk_paiement = p.rowid \";\n        $sql_payment_details .= \"LEFT JOIN \".MAIN_DB_PREFIX.\"c_paiement AS c ON p.fk_paiement = c.id \";\n        $sql_payment_details .= \"WHERE \";\n        $sql_payment_details .= \"pf.fk_facture = \" . $invoice_object->id ;\n        \n        $invoice_ref = $invoice_object->ref;\n        \n        $find_payment_details = $db->query($sql_payment_details);\n        $obj_payment = $db->fetch_object($find_payment_details);\n        $payment_method = $obj_payment->payment_method;\n        \n        \n        // Generate invoice PDF (share it)\n        $sql_invoice_pdf = \"select lef.rowid as invoice_pdf_id \";\n        $sql_invoice_pdf .= \"from \".MAIN_DB_PREFIX.\"ecm_files lef \";\n        $sql_invoice_pdf .= \"where lef.src_object_type = \'facture\' and lef.src_object_id = \" . $invoice_object->id ;\n\n        $find_invoice_pdf = $db->query($sql_invoice_pdf);\n        $obj_invoice_pdf = $db->fetch_object($find_invoice_pdf);\n        $invoice_pdf_id = $obj_invoice_pdf->invoice_pdf_id;\n\n        $ecmfile = new EcmFiles($db);\n    	$result = $ecmfile->fetch($invoice_pdf_id);\n    	if ($result > 0 && empty($ecmfile->share)) {\n    		$ecmfile->share = getRandomPassword(true);\n    		$result = $ecmfile->update($user);\n    		if ($result < 0) {\n    			setEventMessages($ecmfile->error, $ecmfile->errors, \'warnings\');\n    		}\n    	}\n    	$invoice_pdf_link = DOL_URL_ROOT . \"/document.php?hashp=\" . $ecmfile->share;\n    	\n    	// Looking for credit notes for the main invoice. It can be more then one\n		$linked_credits = array();\n		foreach ($linked_invoices as $linked_invoice) {\n		    if ($linked_invoice instanceof Facture && $linked_invoice->fk_facture_source == $invoice_object->id && $linked_invoice->type == Facture::TYPE_CREDIT_NOTE && $linked_invoice->paye == 1) {\n		        $linked_credits[$linked_invoice->id][\'ref\'] = $linked_invoice->ref;\n		        \n		        // Get credit note PDF\n				$sql_credit_pdf = \"select lef.rowid, lef.share \";\n				$sql_credit_pdf .= \"from \".MAIN_DB_PREFIX.\"ecm_files lef \";\n				$sql_credit_pdf .= \"where lef.src_object_type = \'facture\' and lef.src_object_id = \" . $linked_invoice->id ;\n\n				$find_credit_pdf = $db->query($sql_credit_pdf);\n				$obj_credit_pdf = $db->fetch_object($find_credit_pdf);\n				$linked_credits[$linked_invoice->id][\'pdf_link\'] = DOL_URL_ROOT . \"/document.php?hashp=\" . $obj_credit_pdf->share;\n		    }\n		}\n\n    } else {\n        $payment_method = \"\";\n        $invoice_object = null;\n    }\n}\n\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php\n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"orderDetailsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"<?php print $weblangs->trans(\"backHome\"); ?>\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"order-history.php\" title=\"<?php print $weblangs->trans(\"orderHistory\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"orderHistory\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"orderDetails\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"orderDetails\"); ?></h1>\n                <div id=\"block-history\" class=\"block-center\">\n                    <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                    	<div class=\"info-order box\">\n                    	    <p class=\"dark\">\n                				<?php print $weblangs->trans(\"orderReference\"); ?> <strong><?php print $order_object->ref; ?></strong> - <?php print $weblangs->trans(\"placedOn\"); ?> <strong><?php print dol_print_date($order_object->date, \'day\'); ?></strong>\n                				<span style=\"background-color:#DDEEFF; border-color:#DDEEFF;padding: 4px 10px;float:right;\" class=\"label dark\"><?php print $weblangs->trans(\"paymentAccepted\"); ?></span>\n                			</p>\n                			<?php if (!empty($invoice_ref)): ?>\n                    			<p class=\"dark\">\n                    				<?php print $weblangs->trans(\"invoiceRef\"); ?> <strong><?php print $invoice_ref; ?></strong>\n                    			</p>\n                			<?php endif ?>\n                    		<p><strong class=\"dark\"><?php print $weblangs->trans(\"paymentMethod\"); ?> : </strong> <span class=\"color-myaccount\"><?php print $payment_method; ?></span></p>\n                    		<p class=\"download_invoice\">\n                    			<i class=\"icon-file-text\"></i>\n                    			<?php\n                    			    if ($invoice_object === null) {\n                    			        print $weblangs->trans(\"ifYouNeedAnInvoice\", \"https://wwwold.dolistore.com\", \"wwwold.dolistore.com\");\n                    			    } else{ ?>\n                    			        <a target=\"_blank\" href=\"<?php print $invoice_pdf_link; ?>\"><?php print $weblangs->trans(\"downloadInvoicePDF\"); ?></a>\n                    			    <?php } \n                    			?>\n                    			<?php if (!empty ($linked_credits) && count($linked_credits) > 0): ?>\n                    			    <hr>\n                    			    <?php\n                    			        // Prepare list of credit notes to be used after\n                    			        $credit_note_refs = array();\n                                        foreach ($linked_credits as $key => $linked_credit) {\n                                            $credit_note_refs[] = $linked_credit[\'ref\'];\n                                        }\n                                        $credit_note_refs_placeholder = implode(\',\', array_map(function($ref) use ($db) {\n                                            return \"\'\" . $db->escape($ref) . \"\'\";\n                                        }, $credit_note_refs));\n                    			    ?>\n                        		    <?php foreach ($linked_credits as $linked_credit): ?>\n        			                    <p class=\"invoice-pdf-link\">\n                                			<i class=\"icon-file-text\"></i>\n                                			<a target=\"_blank\" href=\"<?php print $linked_credit[\'pdf_link\']; ?>\"> <?php print $linked_credit[\'ref\']; ?></a>\n                                		</p>\n									<?php endforeach ?>\n                        		<?php endif ?>\n                    		</p>\n                    	</div>\n                    \n                        <!--\n                    	<div class=\"adresses_bloc\">\n                    		<div class=\"row\">\n                    			<div class=\"col-xs-12 col-sm-6\">\n                    				<ul class=\"address item full_width box\">\n                    					<li>\n                    						<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"invoiceAddress\"); ?></h3>\n                    					</li>\n                    					<li><span class=\"address_firstname\"><?php print $customer->name; ?></span></li>\n                    					<li><span class=\"address_address1\"><?php print $customer->address; ?></span></li>\n                    					<li><span class=\"address_Country:name\"><?php print $customer->country; ?></span></li>\n                    					<li><span class=\"address_phone\"></span></li>\n                    				</ul>\n                    			</div>\n                    		</div>\n                    	</div>\n                        -->\n                        \n                    	<form action=\"\" method=\"post\">\n                    		<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n                    			<table class=\"table table-bordered table-bordered-block-order-detail\">\n                    				<thead>\n                    					<tr>\n                    						<th class=\"first_item\"><?php print $weblangs->trans(\"product\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"download\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"Quantity\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"unitPrice\"); ?></th>\n                    						<th class=\"last_item\"><?php print $weblangs->trans(\"totalPrice\"); ?></th>\n                    					</tr>\n                    				</thead>\n                    				<tfoot>\n                    					<tr class=\"item\">\n                    						<td colspan=\"1\">\n                    							<strong> <?php print $weblangs->trans(\"TotalHT\"); ?> </strong>\n                    						</td>\n                    						<td colspan=\"4\">\n                    							<span class=\"price\"><?php print price($order_object->total_ht); ?> €</span></span>\n                    						</td>\n                    					</tr>\n                    					<tr class=\"totalprice item\">\n                    						<td colspan=\"1\">\n                    							<strong><?php print $weblangs->trans(\"TotalTTC\"); ?></strong>\n                    						</td>\n                    						<td colspan=\"4\">\n                    							<span class=\"price\"><?php print price($order_object->total_ttc); ?> €</span></span>\n                    						</td>\n                    					</tr>\n                    				</tfoot>\n                    				<tbody>\n                    					<!-- Customized products -->\n                    					<!-- Classic products -->\n                    					<?php $lines = $order_object->lines; ?>\n                    					<?php foreach ($lines as $line): ?>\n                    					    <?php\n                                                $product = new Product($db);\n                                                $ret = $product->fetch($line->fk_product);\n                                            ?>\n                        					<tr class=\"item\">\n                        						<td class=\"cart_description\">\n    												<p class=\"product-name\"><a target=\"_blank\" href=\"product.php?id=<?php print $product->id; ?>\"><?php print $line->desc; ?> <i class=\"icon-external-link\"></i></a></p>\n    												<small class=\"cart_ref\"><?php print $weblangs->trans(\"Ref\"); ?> : <?php print $product->ref; ?></small>\n    											</td>\n    											<td class=\"download_icon\">\n                        						    <?php \n                        						        // Get attached file\n        												$files = getPublicFilesOfObject($product);\n        												\n        												$url_attached_file = \'\';\n        												foreach ($files as $file) {\n                                                            if ($file[\'position\'] == 100) {     // TODO If we change position, this detection is broken. We should take the last file.\n                                                                $url_attached_file = $file[\'url\'];\n                                                            }\n                                                        }\n\n                                                        // Check Link Validity\n                                                        $now = dol_now();\n                                                        $one_year_ago = dol_time_plus_duree($now, -1, \'y\');\n                                                        $isValidLink = 1;\n                                                        if ($order_object->date < $one_year_ago) {\n                                                            $isValidLink = 0;\n                                                            $unvalidlinkmessage= $weblangs->trans(\"invalidLink\");\n                                                        }\n\n                                                        // Check refund qty\n                                            		    if (!empty($credit_note_refs) && is_array($credit_note_refs) && count($credit_note_refs) > 0) {\n                                        		            $sum_qty_returned = \"SELECT SUM(fd.qty) AS return_qty \";\n                                                            $sum_qty_returned .= \"FROM \" . MAIN_DB_PREFIX . \"facture AS f, \" . MAIN_DB_PREFIX . \"facturedet AS fd \";\n                                                            $sum_qty_returned .= \"WHERE f.rowid = fd.fk_facture \";\n                                                            $sum_qty_returned .= \"AND fd.fk_product = \" . ((int) $line->fk_product) . \" \";\n                                                            $sum_qty_returned .= \"AND f.ref IN (\" . $credit_note_refs_placeholder . \")\";\n                                                            //print $sum_qty_returned;exit;\n                                                            \n                                                            $resql = $db->query($sum_qty_returned);\n                                                            if ($resql) {\n                                                                $row = $db->fetch_object($resql);\n                                                                $total_return_qty = $row->return_qty ?? 0;\n                                                            }\n                                                            \n                                                            if (($line->qty - $total_return_qty) < 1) {\n                                                                $isValidLink = 0;\n                                                                $unvalidlinkmessage= \"-\";\n                                                            }\n                                                        }\n                                                        \n    												?>\n    												<?php if ($isValidLink == 1) { ?>\n    												    <p><a target=\"_blank\" href=\"_service_download.php?t=paied&r=<?php print $order_object->ref; ?>&p=<?php print $line->fk_product; ?>&u=<?php print $user_id; ?>\">\n    												        <i class=\"icon-cloud-download small\"></i> <?php echo $weblangs->trans(\"Download\"); ?>\n    												    </a></p>\n    												    <!--<p><a target=\"_blank\" href=\"<?php //print $url_attached_file; ?>\"><i class=\"icon-cloud-download\"></i></a></p>-->\n    												<?php } else { ?>\n    												    <p><?php print $unvalidlinkmessage; ?> </p>\n    												<?php } ?>\n    											</td>\n                        						<td class=\"return_quantity right\">\n                        							<span class=\"order_qte_span\"><?php print $line->qty; ?></span>\n                                            		    \n                                            		<?php if (!empty($total_return_qty)) { ?>\n                                            		    <span class=\"order_qte_span\" style=\"color:red;\">(<?php print $total_return_qty . \" \" . $weblangs->trans(\"Refunded\"); ?>)</span>\n                                            		<?php } ?>\n                        						</td>\n                        						<td class=\"right\">\n                        						    <?php print price($line->price); ?> €</span>\n                        						</td>\n                        						<td class=\"right\">\n                        							<?php print price($line->total_ttc); ?> €</span>\n                        						</td>\n                        					</tr>\n                    					<?php endforeach ?>\n                    					\n                    				</tbody>\n                    			</table>\n                    		</div>\n                    	</form>\n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                			<span>\n                				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                			</span>\n                		</a>\n                	</li>\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                		</a>\n                	</li>\n                </ul>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-04-24 10:40:25',NULL,'2025-01-24 11:14:02',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(187,38,'order-history','','order history','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOSTINT(\'cat\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n$weblangs->load(\"bills\");\n\n// Get Account ID.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer_account = new SocieteAccount($db);\n$result = $customer_account->fetch($user_id);\n$customer_id = $customer_account->fk_soc;\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n$isAdmin = false;\n\n// To render view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\n    // Only for members with a specific role\n    require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n    $membre = new Adherent($db);\n    $result = $membre->fetch(\'\', 0, $customer_id);\n    \n    $adminsCat = new Categorie($db);\n	$adminsCat->fetch(1);\n	\n	$result = $adminsCat->containsObject(\'member\', $membre->id);\n	if ($result > 0) {\n	    $isAdmin = true;\n\n        $customer_id = GETPOST(\'id_customer\');\n        // Get soc info.\n        $socInfo = new Societe($db);\n        $socInfo->fetch($customer_id);\n        \n        // Get soc acount email\n        $sql = \"select rowid from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".((int) $customer_id).\" AND fk_website = \".((int) $website->id).\" limit 1\";\n        $result = $db->query($sql);\n        $objsql = $db->fetch_object($result);\n        \n        // Get account info\n        $cContacts = $socInfo->contact_array_objects();\n        foreach ($cContacts as $cContact) {\n            if ($cContact->ref_ext == $objsql->rowid) {\n                $customer_firstname = $cContact->firstname;\n                $customer_lastname = $cContact->lastname;\n                $customer_email = $cContact->email;\n                $customer_address = $cContact->address;\n            }\n        }\n	}\n}\n\n// Get all paid orders for this customer when module_source is Marketplace.\n$sql_find_orders = \"SELECT c.rowid, c.ref, c.fk_statut, c.fk_soc, c.date_creation, c.date_commande, c.date_valid, c.module_source \";\n$sql_find_orders .= \"FROM \".MAIN_DB_PREFIX.\"commande as c \";\n$sql_find_orders .= \"WHERE c.fk_soc = \" . ((int) $customer_id) . \" and ( c.fk_statut= 1 or c.fk_statut= -1 ) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n$sql_find_orders .= \"ORDER BY c.date_commande desc \";\n$resql = $db->query($sql_find_orders);\nif ($resql) {\n    $orders_id = array();\n	while ($obj = $db->fetch_object($resql)) {\n	    $orders_id[] = $obj->rowid;\n	}\n}/* else {\n	print $weblangs->trans(\"noOrderFounded\");\n	exit();\n}*/\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"orderHistoryPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"orderHistory\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n            <?php if (empty($orders_id)): ?>\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"orderHistory\"); ?></h1>\n                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noOrderFounded\"); ?> </p>\n            <?php else: ?>\n              <div class=\"clearfix\">\n                    <h1 class=\"page-heading\"><?php print $weblangs->trans(\"orderHistory\"); ?></h1>\n                    <div id=\"block-history\" class=\"block-center\">\n                        <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                    		<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n                    			<table class=\"table table-bordered table-bordered-block-order-detail order-history\">\n                    				<thead>\n                    					<tr>\n                    						<th class=\"first_item\"><?php print $weblangs->trans(\"orderRef\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"products\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"Date\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"totalPrice\"); ?></th>\n                    						<th class=\"item\" width=\"80\"><?php print $weblangs->trans(\"paymentMethod\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"Invoice\"); ?></th>\n                    						<th class=\"last_item\"><?php print $weblangs->trans(\"details\"); ?></th>\n                    					</tr>\n                    				</thead>\n                    				<tbody>\n                    					<!-- Customized products -->\n                    					<!-- Classic products -->\n                    					<?php foreach ($orders_id as $order_id): ?>\n                    					    <?php\n                                                // Get order object\n                                                $order_object = new Commande($db);\n                                                $result = $order_object->fetch($order_id);\n                                                \n                                                // Get invoice object\n                                                $order_object->fetchObjectLinked();\n                                                if (!empty($order_object->linkedObjects[\'facture\'])) {\n    												$linked_invoices = $order_object->linkedObjects[\'facture\'];\n                                                    /*$last_invoice_object = $linked_invoices[reset(array_keys($linked_invoices))];\n    \n                                                    if ($last_invoice_object instanceof Facture) {\n                                                        $invoice_object = $last_invoice_object;\n                                                        print $invoice_object->ref;\n                                                    }*/\n                                                    \n                                                    // Extract only regular invoices \n                                                    $regular_invoices = array_filter($linked_invoices, function ($invoice) {\n                                                        return ($invoice instanceof Facture) && ($invoice->type == 0);\n                                                    });\n                                                \n                                                    // Get first regular invoice if exist\n                                                    if (!empty($regular_invoices)) {\n                                                        $first_regular_invoice = reset($regular_invoices);\n                                                        $invoice_object = $first_regular_invoice;\n                                                    }\n    \n    												// Get payment details\n    												$sql_payment_details = \"SELECT c.libelle AS payment_method \";\n    												$sql_payment_details .= \"FROM \";\n    												$sql_payment_details .= \"\".MAIN_DB_PREFIX.\"paiement_facture AS pf \";\n    												$sql_payment_details .= \"JOIN \".MAIN_DB_PREFIX.\"paiement AS p ON pf.fk_paiement = p.rowid \";\n    												$sql_payment_details .= \"LEFT JOIN \".MAIN_DB_PREFIX.\"c_paiement AS c ON p.fk_paiement = c.id \";\n    												$sql_payment_details .= \"WHERE \";\n    												$sql_payment_details .= \"pf.fk_facture = \" . ((int) $invoice_object->id);\n    												\n    												$invoice_ref = $invoice_object->ref;\n    												\n    												$find_payment_details = $db->query($sql_payment_details);\n    												$obj_payment = $db->fetch_object($find_payment_details);\n    												$payment_method = $obj_payment->payment_method;\n    \n    												// Get invoice PDF\n    												$sql_invoice_pdf = \"select lef.rowid, lef.share \";\n    												$sql_invoice_pdf .= \"from \".MAIN_DB_PREFIX.\"ecm_files lef \";\n    												$sql_invoice_pdf .= \"where lef.src_object_type = \'facture\' and lef.src_object_id = \" . ((int) $invoice_object->id);\n    \n    												$find_invoice_pdf = $db->query($sql_invoice_pdf);\n    												$obj_invoice_pdf = $db->fetch_object($find_invoice_pdf);\n    												$invoice_pdf_link = DOL_URL_ROOT . \"/document.php?hashp=\" . urlencode($obj_invoice_pdf->share);\n    												\n    												// Looking for credit notes for the main invoice. It can be more then one\n    												$linked_credits = array();\n    												foreach ($linked_invoices as $linked_invoice) {\n    												    if ($linked_invoice instanceof Facture && $linked_invoice->fk_facture_source == $invoice_object->id && $linked_invoice->type == Facture::TYPE_CREDIT_NOTE && $linked_invoice->paye == 1) {\n    												        $linked_credits[$linked_invoice->id][\'ref\'] = $linked_invoice->ref;\n    												        $linked_credits[$linked_invoice->id][\'total_ttc\'] = $linked_invoice->total_ttc;\n    												        \n    												        // Get credit note PDF\n            												$sql_credit_pdf = \"select lef.rowid, lef.share \";\n            												$sql_credit_pdf .= \"from \".MAIN_DB_PREFIX.\"ecm_files lef \";\n            												$sql_credit_pdf .= \"where lef.src_object_type = \'facture\' and lef.src_object_id = \" . $linked_invoice->id ;\n            \n            												$find_credit_pdf = $db->query($sql_credit_pdf);\n            												$obj_credit_pdf = $db->fetch_object($find_credit_pdf);\n            												$linked_credits[$linked_invoice->id][\'pdf_link\'] = DOL_URL_ROOT . \"/document.php?hashp=\" . $obj_credit_pdf->share;\n    												    }\n    												}\n    \n                                                } else {\n    												$payment_method = \"\";\n    												$invoice_pdf_link = \"#\";\n    												$invoice_ref = \"/\";\n                                                }\n                                            ?>\n                        					<tr class=\"item\">\n                        					    <td class=\"nowraponall center\">\n                        						    <span class=\"cart_ref\"><?php print dolPrintHTML($order_object->ref); ?></span>\n                        						</td>\n                        						<td class=\"order-history\">\n                        						    <?php $order_lines = $order_object->lines; ?>\n                        						    <ul class=\"order-history-products-list\">\n                        						    <?php foreach ($order_lines as $order_line): ?>\n                        			                    <li><?php print $order_line->desc; ?></li>\n    												<?php endforeach ?>\n    												</ul>\n    											</td>\n                        						<td>\n    												<p title=\"<?php print dol_print_date($order_object->date_commande, \'dayhour\'); ?>\"><?php print dol_print_date($order_object->date_commande, \'day\'); ?></p>\n    											</td>\n                        						<td>\n                        							<p><span class=\"price\"><?php print price($order_object->total_ttc); ?> €</span></p>\n                        						</td>\n                        						<td>\n                        						    <p><?php print $payment_method; ?></p>\n                        						</td>\n                        						<td class=\"nowraponall\">\n                        						    <?php if ($invoice_pdf_link != \"#\"): ?>\n                            						    <p class=\"invoice-pdf-link\">\n                                                			<i class=\"icon-file-text\"></i>\n                                                			<a target=\"_blank\" href=\"<?php print $invoice_pdf_link; ?>\"> <?php print $invoice_ref; ?></a>\n                                                		</p>\n                                                		<?php if (count($linked_credits) > 0): ?>\n                                                		    <?php foreach ($linked_credits as $linked_credit): ?>\n                                			                    <p class=\"invoice-pdf-link\">\n                                                        			<i class=\"icon-file-text\"></i>\n                                                        			<a target=\"_blank\" href=\"<?php print $linked_credit[\'pdf_link\']; ?>\"> <?php print $linked_credit[\'ref\']; ?></a>\n                                                        			<span style=\"font-size: 12px;\">(<?php print price($linked_credit[\'total_ttc\']); ?> €)</span>\n                                                        		</p>\n            												<?php endforeach ?>\n                                                		<?php endif ?>\n                                                	<?php endif ?>\n                        						</td>\n                        						<td class=\"btn-table\">\n                        						    <a href=\"order-details.php?ref=<?php print $order_object->ref; ?>\" class=\"btn btn-default button button-small\"><span><?php print $weblangs->trans(\"details\"); ?> <i class=\"icon-chevron-right right\"></i></span></a>\n                        						</td>\n                        					</tr>\n                    					<?php endforeach ?>\n                    				</tbody>\n                    			</table>\n                    		</div>\n                        </div>\n                    </div>\n                    <ul class=\"footer_links clearfix\">\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                    			<span>\n                    				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                    			</span>\n                    		</a>\n                    	</li>\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                    			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                    		</a>\n                    	</li>\n                    </ul>\n              </div>\n          \n            <?php endif ?>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-04-26 08:50:17',NULL,'2025-01-24 11:55:49',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(188,38,'pagamenti-e-sicurezza','','Pagamenti e sicurezza','Pagamenti e sicurezza','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n            \n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"about_payement_section\" contenteditable=\"true\">\n				<div class=\"rte\">\n                  <h2>Pagamenti sicuri</h2>\n                  <p>&nbsp;</p>\n                  <h3>Perché dovrei pagare se il software è rilasciato sotto licenza Open Source &nbsp;(GPL, ...) ?</h3>\n                  <p>La maggior parte dei prodotti disponibili sulla piattaforma sono gratuiti e possono essere scaricati liberamente. In tali casi non è previsto alcun pagamento.</p>\n                  <p>In alcuni casi gli autori decidono di richiedere un pagamento a fronte del loro lavoro. I due approcci non sono in conflitto (Vendita e distribuzione libera sotto licenza OpenSource): La <strong>&nbsp;Free Software Foundationche ha creato la celebre</strong>&nbsp;licenza GPL, una delle licenze più usate per il software&nbsp;OpenSource, permette ed incoraggia questa ciò e fornisce qualche spiegazione sulla seguente pagina: <br>\n                    <a href=\"http://www.gnu.org/philosophy/selling.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.html</a>\n                  </p>\n                  <p>&nbsp;</p>\n                  <h3>Pagamento sicuro</h3>\n                  <p>Tutti i pagamenti sono protetti con&nbsp;SSL.</p>\n                  <p>&nbsp;</p>\n                  <h3>Usare Visa/Mastercard/Paypal</h3>\n                  <p>I pagamenti effettuati tramite carta di credito vengono processati tramite Stripe.</p>\n                  <p>Per i pagamenti tramite Paypal vengono usati i servizi online forniti da Paypal&nbsp;stessa.</p>\n                </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:13:17',NULL,'2025-01-14 01:26:59',NULL,NULL,'page','it',153,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(189,38,'paiements-et-securisation','','Paiements et sécurisation','Paiements et sécurisation','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n            \n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"about_payement_section\" contenteditable=\"true\">\n				<div class=\"rte\">\n                  <h2>Paiement sécurisé</h2>\n                  <p>&nbsp;</p>\n                  <h3>Quand et pourquoi un paiement si le logiciel est en OpenSource (GPL, ...) ?</h3>\n                  <p>La plupart des produits disponibles sur cette place de marché sont gratuit et peuvent être téléchargés directement depuis leur fiche. Aucun paiement dans ce cas n\'est requis.</p>\n                  <p>Toutefois, certains auteurs decident de faire payer quelquechose en échange de la distribution de leur travail. Il n\'y a aucun problème à conciler les 2 approches (Prix pour distribuer du code face à&nbsp; licence OpenSource): La <strong>Free Software Foundation</strong>, qui a créé la licence GNU GPL, une des licence pour les logiciels libre les plus utilisées, autorise et même encourage cela et en donne les explications, sur cette page : <br>\n                    <a href=\"http://www.gnu.org/philosophy/selling.fr.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.fr.html</a>\n                  </p>\n                  <p>&nbsp;</p>\n                  <h3>Notre offre de paiement sécurisé</h3>\n                  <p>Les paiements sont sécurisé avec SSL</p>\n                  <p>&nbsp;</p>\n                  <h3>Utilisation de Visa/Mastercard/Paypal</h3>\n                  <p>Les paiements par carte bancaire sont assurés par un service de Stripe.</p>\n                  <p>Les paiement par porte monnaie électronique sont assurés via le service de paiement en ligne de Paypal.</p>\n                </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:10:45',NULL,'2025-01-16 00:36:38',NULL,NULL,'page','fr',153,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(190,38,'payment','','payment','','','<?php\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\nif (empty($_SESSION[\'user\'][\'id_user\'])) {\n    $login_page_url = \"index.php?website=\".$website->ref.\"&pageref=login-register&back=payement\";\n    header(\"Location:\".$login_page_url);\n    exit;\n}\n                        \n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n?>\n\n<div id=\"page\">\n	<div class=\"header-container\">\n		<?php\n		    includeContainer(\'header\');\n		    $__PAGE__TITLE__ = $weblangs->trans(\"paymentPageTitle\");\n		?>\n	</div>\n	<div class=\"columns-container\">\n		<div id=\"columns\" class=\"container\">\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"yourShoppingCart\"); ?>\n			</div>\n			<!--  Breadcrumb  -->\n			<div id=\"slider_row\" class=\"row\">\n				<div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n			</div>\n			<div class=\"row\">\n				<!-- include lefet sidebar container -->\n				<?php includeContainer(\'sidebar\'); ?>\n				\n				<div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n					<div class=\"clearfix\">\n\n                        <?php\n                            if(!empty($_SESSION[\'products\'])){\n                                \n                                include_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\n                                require_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\n                                // Load user and its permissions\n                                $result = $user->fetch(\'\', \'admin\');	// Load user for login \'admin\'. Comment line to run as anonymous user.\n                                if (!$result > 0) {\n                                	dol_print_error(null, $user->error);\n                                	exit;\n                                }\n                                $user->getrights();\n                                \n                                $user_id = $_SESSION[\'user\'][\'id_user\'];\n                                $customer = new SocieteAccount($db);\n                                $result = $customer->fetch($user_id);\n                                $customer_id = $customer->fk_soc;\n                                if (empty($customer_id)) {\n                                	dol_print_error(null, $customer->error);\n                                	exit;\n                                }\n                                \n                                $com = new Commande($db);\n                            \n                                $com->socid          = $customer_id;\n                                $com->date           = dol_now();\n                                $com->note_private   = \'Order from the marketplace\';\n                                $com->module_source  = \'marketplace\';\n                                $com->pos_source	 = dol_getmypid() . \"@\" . $website->id;\n                                $com->remise_percent = 0;\n                                \n                                $db->begin();\n                                \n                                // Check if there is an existing open order for this thirdparty.\n                                $sql_find_order = \"SELECT c.rowid, c.fk_statut, c.fk_soc, c.date_creation, c.module_source \";\n                                $sql_find_order .= \"FROM \".MAIN_DB_PREFIX.\"commande as c \";\n                                $sql_find_order .= \"WHERE c.fk_soc = \" . ((int) $customer_id) . \" and c.fk_statut= 1 and c.facture = 0 and c.ref_ext is null \"; // ignore billed orders and imported orders\n                                $sql_find_order .= \"AND c.date_commande >= DATE_SUB(NOW(), INTERVAL 30 DAY) and c.module_source = \'marketplace\' \";  // ignore too old open orders\n                                $sql_find_order .= \"ORDER BY c.date_creation DESC \";\n                                $sql_find_order .= \"LIMIT 1\";\n                                \n                                $find_order = $db->query($sql_find_order);\n                                $obj_order = $db->fetch_object($find_order);\n                                \n                                // If there is an order, update the current unpaid order lines by SESSION articles.\n                                if (!empty($obj_order)) {\n                                    $com->fetch($obj_order->rowid);\n                                    \n                                    //$com->fetch_lines();      // the fetch_lines is already included into the fetch\n                                    \n                                    $lines = $com->lines;\n                                    \n                                    $com->setDraft($user);      // ensure order is set back to draft status\n                                    \n                                    // remove current order lines \n                                    foreach ($lines as $line){\n                                        $ree = $com->deleteLine($user, $line->id);\n                                        //print $com->error . \'<br>\';\n                                    }\n\n                                    $result = $com->id;\n                                } else {\n                                    $result = $com->create($user);\n                                }\n                                \n                                if ($result >= 0) {\n                                    // Loop on each product into session and add it into the order\n                                    foreach ($_SESSION[\'products\'] as $session_product) {\n                                        // Get  product\n                                        $product = new Product($db);\n                                        $result = $product->fetch($session_product[\'product_id\']);\n                                        if (!$result > 0) {\n                                        	dol_print_error($db, $product->error);\n                                        	exit;\n                                        }\n                                        \n                                		// Get buyer\n                                	    $thirdparty_buyer = new Societe($db);\n                                        $result = $thirdparty_buyer->fetch($customer_id);\n                                        if (!$result > 0) {\n                                        	dol_print_error($db, $thirdparty_buyer->error);\n                                        	exit;\n                                        }\n\n                                        // Get seller\n                                        $sql_get_seller_id = \"select lpfp.rowid, lpfp.fk_soc \n                                            from \".MAIN_DB_PREFIX.\"product_fournisseur_price lpfp \n                                            where lpfp.fk_product = \" .((int) $session_product[\'product_id\']) . \" LIMIT 1\"; // we hope to have only one supplier for each product\n                                        $resql = $db->query($sql_get_seller_id);\n                                		$objsql = $db->fetch_object($resql);\n                                		\n                                		if (!empty($objsql->fk_soc)) {\n                                		    $thirdparty_seller = new Societe($db);\n                                            $thirdparty_seller->fetch($objsql->fk_soc);\n\n                                            //$tva_tx = get_default_tva($thirdparty_seller, $thirdparty_buyer, $product->id, $objsql->rowid);   // it seems tha vat rate of supplier price not always correctly defined, so we redo the generic code\n                                            $tva_tx = get_default_tva($thirdparty_seller, $thirdparty_buyer, $product->id);\n                                		} else {\n                                		    // To complete with default third party if no price/no seller was found for product ?\n\n                                            $tva_tx = get_default_tva($thirdparty_seller, $thirdparty_buyer, $product->id);\n                                		}\n                                        \n                                        // Check discount\n                            			$discount = marketplace_check_discount($product->id);\n                            			$discount_percent = ($discount[\'mode\'] === \'percent\') ? $discount[\'value\'] : 0;\n                                        \n                                        $result = $com->addline($product->label, $product->price, $session_product[\'product_qty\'], $tva_tx, 0, 0, $product->id, $discount_percent, 0, 0, $product->price_base_type, $product->price_ttc, \'\', \'\', $product->type);\n                            			if ($result <= 0) {\n                            				dol_print_error($db, $product->error);\n                            				exit;\n                            			}\n                            			\n                            			// TODO\n                    					if ($discount[\'mode\'] === \'amount\' && $discount[\'value\'] > 0) {\n                                            // Add amount discount\n                    					}\n\n                                    } \n                                    \n                                    $com->set_date($user, dol_now(), 1);\n                                    \n                                    $result = $com->valid($user);\n                                    \n                            		if ($result > 0) {\n                            			$db->commit();\n                                        $order_is_created = \'1\';\n                                        $order_id = $com->id;\n                            		} else {\n                            			$db->rollback();\n                            			dol_print_error($db, $com->error);\n                            		}\n                            	} else {\n                            		$db->rollback();\n                            		dol_print_error($db, $com->error);\n                            	}\n                            }\n                            \n        \n                            if (isset($order_is_created)){\n                                $commande = new Commande($db);\n                                $ret = $commande->fetch($order_id);\n                                \n                                //$commande->fetch_lines();     // already included into the fetch()\n                                \n                                $lines = $commande->lines;\n                            }\n                        ?>\n\n						<h1 class=\"page-heading\"><?php print $weblangs->trans(\"cartSummary\"); ?>\n    						<span class=\"heading-counter\"><?php print $weblangs->trans(\"yourCartContains\"); ?>:\n        						<?php if (isset($lines)): ?>\n                                    <span class=\"ajax_cart_no_product\"><?php print count($lines); ?></span> <?php if(count($lines) > 1){ print $weblangs->trans(\"products\");}else{ print $weblangs->trans(\"product\");} ?>\n                                <?php else: ?>\n                                    <span id=\"ajax_cart_no_product\">0</span> <?php print $weblangs->trans(\"product\"); ?>\n                                <?php endif ?>\n    						</span>\n						</h1>\n						<?php if (!$_SESSION[\'products\'] || !isset($order_is_created)): ?>\n                            <?php if (!$_SESSION[\'products\']): ?>\n                                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"cartIsEmpty\"); ?></p>\n                            <?php endif ?>\n                            <?php if (!isset($order_is_created)): ?>\n                                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"errorOccurred\"); ?> </p>\n                            <?php endif ?>\n                        <?php else: ?>\n							<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n								<table id=\"cart_summary\" class=\"table table-bordered stock-management-off\">\n									<thead>\n										<tr>\n											<th class=\"cart_product first_item\"><?php print $weblangs->trans(\"product\"); ?></th>\n											<th class=\"cart_description item\"><?php print $weblangs->trans(\"Description\"); ?></th>\n											<th class=\"cart_unit item text-center\"><?php print $weblangs->trans(\"UnitPriceHT\"); ?></th>\n											<th class=\"cart_quantity item text-center\"><?php print $weblangs->trans(\"Quantity\"); ?></th>\n											<th class=\"cart_total item cart_total_payment\"><?php print $weblangs->trans(\"TotalTTC\"); ?></th>\n										</tr>\n									</thead>\n									\n									<tbody>\n                                        <?php $total = 0; ?>\n                                        \n                                        <?php foreach ($lines as $line): ?>\n                                            <?php\n                                                $product = new Product($db);\n                                                $ret = $product->fetch($line->fk_product);\n                                            ?>\n                                            <tr id=\"product_<?php print $product->id; ?>\" class=\"cart_item\">\n    											<td class=\"cart_product\">\n    												<a href=\"product.php?id=<?php print $product->id; ?>\"><img src=\"<?php print getImagePublicURLOfObject($product,1);; ?>\" id=\"product_img_<?php print $product->id; ?>\" alt=\"<?php print $product->name; ?>\" width=\"98\" height=\"98\"></a>\n    											</td>\n    											<td class=\"cart_description\">\n    												<p class=\"product-name\"><a href=\"product.php?id=<?php print $product->id; ?>\"><?php print $line->desc; ?></a></p>\n    												<small class=\"cart_ref\"><?php print $weblangs->trans(\"sku\"); ?> : <?php print $product->ref; ?></small>\n    											</td>\n    											<td class=\"cart_unit\" data-title=\"Unit price\">\n    												<span class=\"price\" id=\"product_price\"><span class=\"price\" id=\"product_price_<?php print $product->id; ?>\"><?php print price($line->price); ?></span> €</span>\n    											</td>\n    \n    											<td class=\"cart_quantity text-center\">\n                                                    <span class=\"text-center\"><?php print $line->qty; ?></span>\n    											</td>\n    											<td class=\"cart_total cart_total_payment\" data-title=\"Total\">\n    												<span class=\"price\"><span class=\"total_line\" id=\"total_product_price_<?php print $product->id; ?>\"><?php print price($line->total_ttc); ?></span> €</span>\n    											</td>\n    										</tr>\n                                        <?php endforeach ?>\n                                    </tbody>\n                                    \n                                    <tfoot>\n										<tr class=\"cart_total_price\">\n											<td rowspan=\"5\" colspan=\"2\" id=\"cart_voucher\" class=\"cart_voucher\">\n											</td>\n											<td colspan=\"2\" class=\"text-right\"><?php print $weblangs->trans(\"totalProductsTaxIncl\"); ?></td>\n											<td colspan=\"2\" class=\"price\" ><span id=\"total_product\"><?php print price($commande->total_ttc); ?></span> €</td>\n										</tr>\n										<tr class=\"cart_total_delivery\">\n											<td colspan=\"2\" class=\"text-right\"><?php print $weblangs->trans(\"Shipping\"); ?></td>\n											<td colspan=\"2\" class=\"price\" id=\"total_shipping\"><?php print $weblangs->trans(\"freeShipping\"); ?></td>\n										</tr>\n\n										<tr class=\"cart_total_price\">\n											<td colspan=\"2\" class=\"total_price_container text-right\">\n												<span><?php print $weblangs->trans(\"total\"); ?></span>\n											</td>\n											<td colspan=\"2\" class=\"price\" id=\"total_price_container\">\n												<span><span id=\"total_price\"><?php print price($commande->total_ttc); ?></span> €</span>\n											</td>\n										</tr>\n									    </tfoot>\n								</table>\n							</div>\n    						\n    						<?php if (!getDolGlobalInt(\"MARKETPLACE_BLOCK_SALES\") || in_array($_SESSION[\'user\'][\'id_user\'], array_map(\'trim\', explode(\',\', getDolGlobalString(\"MARKETPLACE_ADMIN_USER_IDS\"))))): ?>\n    							<div id=\"HOOK_PAYMENT\">\n    							    <?php $current_lang = $_SESSION[\'lang\'][\'code\']; ?>\n    							    <?php \n        							    require_once DOL_DOCUMENT_ROOT.\'/core/lib/payments.lib.php\';\n        							    $urlforframe = getOnlinePaymentUrl(0, \'order\', $commande->ref, 0, \'\', $website->virtualhost);\n    							    ?>\n        				            <iframe frameborder=\"0\" style=\"overflow:hidden;height:100%;width:100%\" height=\"100%\" width=\"100%\" src=\"<?php print $urlforframe ?>&ws=<?php print $website->ref; ?>&lang=<?php print $current_lang; ?>&paymentmethod=stripe\"></iframe>\n    							</div>\n    							\n    							<br>\n    							\n    							<a href=\"/\" class=\"button-exclusive btn btn-default\" title=\"<?php print $weblangs->trans(\"continueShopping\"); ?>\">\n									<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"continueShopping\"); ?>\n								</a>\n    						<?php else: ?>\n    						    <div class=\"block-sells-notification\">\n                                    <?php print $weblangs->trans(\"marketplacePurchasesDisabled\"); ?>\n                                </div>\n    						<?php endif ?>\n    						\n						<?php endif ?>\n					</div>\n				</div>\n			</div>\n		</div>\n	</div>\n	<!-- .columns-container -->\n	<div class=\"footer-container\">\n		<?php includeContainer(\'footer\'); ?>\n	</div>\n</div>\n\n',1,'2024-03-29 15:29:50',NULL,'2025-01-19 17:40:09',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(191,38,'paymentok','','paymentok','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$fulltag = GETPOST(\'fulltag\', \'alpha\');\n$param_order_id = preg_match(\'/ORD=([^\\.]+)/\', $fulltag, $reg_order) ? $reg_order[1] : 0;\n$param_customer_id = preg_match(\'/CUS=([^\\.]+)/\', $fulltag, $reg_customer) ? $reg_customer[1] : 0;\n\ndol_syslog(\"The page paymentok.php is called with tag=\".$tag.\" fulltag=\".$fulltag);\n\n// If not login redirect to login\nif (empty($_SESSION[\'user\'][\'id_user\'])) {\n    redirectToContainer(\'login-register\');\n}\n\n// Check if all necessary parameters are passed.\nif (empty($fulltag) || empty($param_order_id) || empty($param_customer_id)) {\n	print \'An error has occurred. Bad value for some parameters.\';\n	exit;\n}\n\n// Check if the customer_id passed via GET is the same as the one stored in the session.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer = new SocieteAccount($db);\n$result = $customer->fetch($user_id);\n$customer_id = $customer->fk_soc;\nif ($customer_id != $param_customer_id) {\n	print \'An error has occurred. Id of login account in session is not of the same thirdparty than the thirdparty ID received in parameter CUS.\';\n	exit;\n}\n\n// Check if there is a paid order for this customer with the sent information.\n$sql_find_order = \"SELECT c.rowid, c.ref, c.fk_statut, c.fk_soc, c.date_creation, c.module_source \";\n$sql_find_order .= \"FROM \".MAIN_DB_PREFIX.\"commande as c \";\n$sql_find_order .= \"WHERE c.fk_soc = \" . $customer_id . \" and c.rowid = \" . $param_order_id . \" and c.fk_statut= 1 and c.facture = 1 and c.module_source = \'marketplace\' \";\n$sql_find_order .= \"limit 1\";\n$find_order = $db->query($sql_find_order);\n$obj_order = $db->fetch_object($find_order);\n\nif (empty($obj_order)) {\n    print \'An error has occurred. Order with ID received \'.$param_order_id.\' and thirdparty found from session \'.$customer_id.\' was not found in database.\';\n    print $sql_find_order;\n	exit;\n} else {\n    $order_ref = $obj_order->ref;\n    $order_id = $obj_order->rowid;\n    if(isset($_SESSION[\'products\'])){\n        unset($_SESSION[\'products\']);\n    }\n}\n// END PHP \n?>\n<div id=\"page\">\n	<div class=\"header-container\">\n		<?php \n		    includeContainer(\'header\');\n		    $__PAGE__TITLE__ = $weblangs->trans(\"paymentOkPageTitle\");\n		?>\n		<?php\n            marketplaceNotifySellersBuyerByEmail($order_id);\n		?>\n	</div>\n	<div class=\"columns-container\">\n		<div id=\"columns\" class=\"container\">\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> Payment Success \n			</div>\n			<!--  Breadcrumb  -->\n			<div id=\"slider_row\" class=\"row\">\n				<div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n			</div>\n			<div class=\"row\">\n				<!-- include lefet sidebar container -->\n				<?php includeContainer(\'sidebar\'); ?>\n				<div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n					<div class=\"clearfix payment_accepted\">\n					    <h1><?php print $weblangs->trans(\"paymentAccepted\"); ?></h1>\n                        <p><?php print $weblangs->trans(\"paymentSuccessProcessed\"); ?></p>\n                        <p><?php print $weblangs->trans(\"youWillBeRedirectedToOrderPage\"); ?></p>\n                        <div class=\"countdown-container\">\n                            <div id=\"countdown\">5</div>\n                        </div>\n					</div>\n				</div>\n			</div>\n		</div>\n	</div>\n	<!-- .columns-container -->\n	<div class=\"footer-container\">\n		<?php includeContainer(\'footer\'); ?>\n	</div>\n</div>\n\n<?php\nif (!defined(\'USEDOLIBARRSERVER\') && $website->virtualhost) {\n	$url_order_details = $website->virtualhost . \'/order-details.php?ref=\'.urlencode($order_ref);\n} else {\n	$url_order_details = DOL_URL_ROOT.\'/public/website/index.php?website=\'.urlencode($website->ref).\'&pageref=order-details&ref=\'.urlencode($order_ref);\n}\n?>\n\n<script>\n$(document).ready(function() {\n  var urlOrderDetails = \"<?php echo $url_order_details; ?>\";\n  var count = 5;\n\n  var countdownInterval = setInterval(function() {\n    count--;\n    $(\"#countdown\").text(count);\n    \n    if (count <= 0) {\n      clearInterval(countdownInterval);\n      window.location.href = urlOrderDetails;\n    }\n  }, 1000);\n});\n</script>\n\n',1,'2024-04-22 12:33:58',NULL,'2025-01-23 18:58:23',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(192,38,'product','','product','product','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n\n// END PHP ?> \n<html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"bodywebsite\" class=\"bodywebsite bodywebpage-\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->\n            <?php includeContainer(\'sidebar\'); ?>\n            \n            <?php\n                $current_lang = $_SESSION[\'lang\'][\'code\'];\n                $product_id = GETPOST(\'id\', \'alpha\');\n                $product_extid = GETPOST(\'extid\', \'alpha\');\n                \n                $product = new Product($db);\n                if (!empty($product_id)) {\n                    $result = $product->fetch($product_id);\n                } else {\n                    $result = $product->fetch(\'\', \'\', $product_extid);\n                }\n                \n                if ($result <= 0 || $product->status != 1) {\n                    // No product to display\n                    print $weblangs->trans(\"noProductToDisplay\");\n                } else {\n                    \n                    $__PAGE__TITLE__ = $product->label;\n                    $__PAGE__KEYWORDS__ = $product->array_options[\'options_marketplace_module_keywords\'];\n                    $__PAGE__DESC__ = $product->description;\n\n                    // check discount and calculate discounted price\n        		    $discount = marketplace_check_discount($product->id);\n        		    $discounted_price = marketplace_calculate_discounted_price($product->price_ttc, $discount);\n            ?>\n                <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n\n				\n              <div itemscope itemtype=\"http://schema.org/Product\">\n                <div class=\"primary_block row\">\n                  <div class=\"container hideonsmartphone\">\n                    <div class=\"top-hr\"></div>\n                  </div>\n                  <!-- left infos-->\n                  <div class=\"pb-left-column col-xs-12 col-sm-4 col-md-5\">\n                    <!-- product img-->\n                    <div id=\"image-block\" class=\"clearfix\">\n                    \n            		    <?php\n            		    $date_creation = $product->date_creation;\n            		    if ($date_creation >= strtotime(\'-\'.getDolGlobalString(\'MARKETPLACE_DELAY_FOR_NEW\', 30).\' days\')) { ?>\n            		    <!-- for ban New -->\n            		    <a class=\"new-box\" href=\"/\">\n    								<span class=\"new-label\"><?php print $langs->trans(\"New\"); ?></span>\n    					</a>\n            		    <?php } ?>\n\n                      <span id=\"view_full_size\">\n                        <img id=\"bigpic\" itemprop=\"image\" src=\"<?php print(getImagePublicURLOfObject($product,1)); ?>\" title=\"<?php print $product->label; ?>\" alt=\"<?php print $product->label; ?>\" width=\"458\" height=\"458\" />\n                        <a href=\"<?php print(getImagePublicURLOfObject($product,1)); ?>\" src=\"<?php print(getImagePublicURLOfObject($product,1)); ?>\" class=\"span_link no-print lightbox_trigger\" id=\"view_large_button\"><?php print $weblangs->trans(\"PhotoViewLarger\"); ?></a>\n                      </span>\n                    </div>\n                  </div>\n                  <!-- end pb-left-column -->\n                  <!-- end left infos-->\n                  <!-- center infos -->\n                  <div class=\"pb-center-column col-xs-12 col-sm-5 col-md-5 productlabel\">\n                    <h1 itemprop=\"name\"><?php print $product->label; ?></h1>\n                      <p id=\"product_reference\">\n                        <label><?php print $weblangs->trans(\"model\"); ?> </label>\n                        <span class=\"editable\"><?php print $product->ref; ?></span>\n                      </p>\n                    <?php if ($product->date_creation > strtotime(\'-\'.getDolGlobalString(\'MARKETPLACE_DELAY_FOR_NEW\', 30).\' days\')) { ?>\n                      <p id=\"product_condition\">\n                        <label><?php print $weblangs->trans(\"condition\"); ?> </label>\n                        <link itemprop=\"itemCondition\" href=\"https://schema.org/NewCondition\" />\n                        <span class=\"editable\"><?php print $weblangs->trans(\"New\"); ?></span>\n                      </p>\n                    <?php }?>\n                    <div id=\"short_description_block\">\n                      <div id=\"short_description_content\" class=\"rte align_justify\" itemprop=\"description\">\n                        <p>\n                        <?php \n                          if (isset($product->description)){\n                            print $product->description;\n                          }\n                        ?>\n                      </div>\n\n                      <!---->\n                    </div>\n                    <!-- end short_description_block -->\n\n                    <!-- Out of stock hook -->\n                    <div id=\"oosHook\" style=\"display: none;\"></div>\n                    <!-- usefull links-->\n                    <br>\n                    <ul id=\"usefull_link_block\" class=\"clearfix no-print\">\n                      <li class=\"print\">\n                        <a href=\"javascript:print();\"> <?php print $weblangs->trans(\"print\"); ?> </a>\n                      </li>\n                    </ul>\n                  </div>\n                  <!-- end center infos-->\n                  <!-- pb-right-column-->\n                  <div class=\"pb-right-column col-xs-12 col-sm-3 col-md-2\">\n                      \n                      \n                    <!-- add to cart form-->\n                    <?php if ($product->price_ttc > 0): ?>\n                        <form class=\"addtocart\" method=\"post\">\n                    <?php endif ?>\n                      <!-- hidden datas -->\n                      <p class=\"hidden\">\n                        <input type=\"hidden\" name=\"product_id\" value=\"<?php print $product->id; ?>\">\n                        <input type=\"hidden\" name=\"product_thumb\" value=\"<?php print getImagePublicURLOfObject($product,1); ?>\">\n                      </p>\n                      <div class=\"box-info-product\">\n                        <div class=\"content_prices clearfix\">\n                          <!-- prices -->\n                          <div class=\"price\">\n                            <p class=\"our_price_display\" itemprop=\"offers\" itemscope itemtype=\"http://schema.org/Offer\">\n                              <link itemprop=\"availability\" href=\"https://schema.org/InStock\" />\n                                <?php if ($product->price_ttc > 0): ?>\n                                    <?php if ($discounted_price != $product->price_ttc): ?>\n                                    	<span class=\"price product-price original-price-product-view\"> <?php print price($product->price_ttc); ?> € </span>\n                                    	<span class=\"price product-price\" id=\"our_price_display\"><?php print price($discounted_price); ?> €</span>\n                                    <?php else: ?>\n                					    <span id=\"our_price_display\"><?php print price($product->price_ttc); ?> €</span>\n                					<?php endif ?>\n                				<?php else: ?>\n                    			    <span class=\"our_price_display\"> FREE </span>\n                    			<?php endif ?>\n					\n                              \n                              <!-- tax incl. -->\n                              <meta itemprop=\"price\" content=\"<?php print price($product->price_ttc); ?>\" />\n                              <meta itemprop=\"priceCurrency\" content=\"EUR\" />\n                            </p>\n                            <p id=\"reduction_percent\" style=\"display:none;\">\n                              <span id=\"reduction_percent_display\"></span>\n                            </p>\n                            <p id=\"reduction_amount\" style=\"display:none\">\n                              <span id=\"reduction_amount_display\"></span>\n                            </p>\n                            <p id=\"old_price\" class=\"hidden\">\n                              <span id=\"old_price_display\"></span>\n                              <!-- tax incl. -->\n                            </p>\n                          </div>\n                          <!-- end prices -->\n                          <div class=\"clear\"></div>\n                        </div>\n                        <!-- end content_prices -->\n                        <?php if ($product->price_ttc > 0): ?>\n                            <div class=\"product_attributes clearfix\">\n                              <!-- quantity wanted -->\n                              <p id=\"quantity_wanted_p\">\n                                <label><?php print $weblangs->trans(\"Quantity\"); ?></label>\n                                <input type=\"text\" name=\"product_quantity\" id=\"quantity_wanted\" class=\"text\" value=\"1\" />\n                                <a href=\"#\" data-field-qty=\"product_quantity\" class=\"btn btn-default button-minus product_quantity_down\">\n                                  <span>\n                                    <i class=\"icon-minus\"></i>\n                                  </span>\n                                </a>\n                                <a href=\"#\" data-field-qty=\"product_quantity\" class=\"btn btn-default button-plus product_quantity_up\">\n                                  <span>\n                                    <i class=\"icon-plus\"></i>\n                                  </span>\n                                </a>\n                                <span class=\"clearfix\"></span>\n                              </p>\n                            </div>\n                        <?php endif ?>\n                        <!-- end product_attributes -->\n                        <div class=\"box-cart-bottom\">\n                          <div>\n\n                            <?php if ($product->price_ttc > 0): ?>\n                                <p id=\"add_to_cart\" class=\"buttons_bottom_block no-print\">\n                                  <button class=\"btn btn-default btn-lg btn-add-to-cart-product\">\n                                    <i class=\"icon-cart-plus\"></i> <p><?php print $weblangs->trans(\"addToCart\"); ?></p>\n                                  </button>\n                                </p>\n                			<?php else: ?>\n                			    <?php \n    						        // Get attached file\n									$files = getPublicFilesOfObject($product);\n									$url_attached_file = \'\';\n									foreach ($files as $file) {\n                                        if ($file[\'position\'] == 100) {\n                                            $url_attached_file = $file[\'url\'];\n                                        }\n                                    }\n								?>\n								<?php if (!empty($url_attached_file)) : ?>\n                    			    <a href=\"_service_download.php?t=free&p=<?php print $product->id; ?>\" target=\"new\">\n                    			         <p id=\"add_to_cart\" class=\"buttons_bottom_block no-print\">\n                                            <button class=\"btn btn-default btn-lg btn-add-to-cart-product\">\n                                                <i class=\"icon-cloud-download\"></i> <p><?php print $weblangs->trans(\"download\"); ?></p>\n                                            </button>\n                                        </p>\n                                    </a>\n                                <?php else : ?>\n                                    <!-- Disabled button with message -->\n                                    <p id=\"add_to_cart\" class=\"buttons_bottom_block no-print\">\n                                        <button class=\"btn btn-default btn-lg btn-add-to-cart-product\" disabled style=\"opacity: 0.5;\" title=\"<?php print $weblangs->trans(\"NoAttachedFileFound\"); ?>\">\n                                            <i class=\"icon-cloud-download\"></i>\n                                            <p><?php print $weblangs->trans(\"download\"); ?></p>\n                                        </button>\n                                        <p style=\"\n                                            color: #721c24;\n                                            font-size: 11.5px;\n                                            max-width: 90%;\n                                            margin: 0px auto;\n                                        \">\n                                            <?php print $weblangs->trans(\"NoAttachedFileFound\"); ?>\n                                        </p>\n                                    </p>\n                                <?php endif; ?>\n                			<?php endif ?>\n                          </div>\n                        </div>\n                        <!-- end box-cart-bottom -->\n                      </div>\n                      <!-- end box-info-product -->\n                    </form>\n                  </div>\n                  <!-- end pb-right-column-->\n                  \n                  <!-- thumbnails -->\n                  <div id=\"views_block\" class=\"clearfix \">\n                      <?php if (getNbOfImagePublicURLOfObject($product) > 4): ?>\n                        <span class=\"view_scroll_spacer\">\n                        	<a id=\"view_scroll_left\" class=\"\" title=\"<?php print $weblangs->trans(\"otherViews\"); ?>\" href=\"javascript:{}\"> Previous </a>\n                        </span>\n                      <?php endif ?>\n                    <div id=\"thumbs_list\">\n                      <ul id=\"thumbs_list_frame\">\n                        <?php for ($i=1; $i <= getNbOfImagePublicURLOfObject($product) ; $i++): ?>\n                          <li id=\"thumbnail_<?php print $i; ?>\">\n                            <a href=\"<?php print getImagePublicURLOfObject($product,$i); ?>\" src=\"<?php print getImagePublicURLOfObject($product,$i); ?>\" class=\"lightbox_trigger\" title=\"<?php print $product->label; ?>\">\n                              <img class=\"img-responsive\" id=\"thumb_9597\" src=\"<?php print getImagePublicURLOfObject($product,$i); ?>\" alt=\"<?php print $product->label; ?>\" title=\"<?php print $product->label; ?>\" height=\"80\" width=\"80\" itemprop=\"image\" />\n                            </a>\n                          </li>\n                        <?php endfor ?>\n                      </ul>\n                    </div>\n                    <!-- end thumbs_list -->\n                    <?php if (getNbOfImagePublicURLOfObject($product) > 4): ?>\n                        <a id=\"view_scroll_right\" title=\"<?php print $weblangs->trans(\"otherViews\"); ?>\" href=\"javascript:{}\"> Next </a>\n                    <?php endif ?>\n                  </div>\n                  <!-- end thumbnails -->\n                </div>\n                <!-- end primary_block -->\n                <!-- More info -->\n                <section class=\"page-product-box\">\n                  <div>\n                  <table class=\"info-table-box\">\n                    <tbody>\n                        <tr>\n                            <td>\n                                <ul class=\"info-list-box\">\n                                    <?php\n                                    include_once DOL_DOCUMENT_ROOT.\'/fourn/class/fournisseur.product.class.php\';\n                                    $tmpproductfourn = new ProductFournisseur($db);\n                                    $tmpproductfourn->find_min_price_product_fournisseur($product->id);\n                                    $supplier = new Societe($db);\n                                    $supplier->fetch($tmpproductfourn->fourn_id);\n                                    ?>\n                                    <li><b><?php print $weblangs->trans(\"Author\"); ?></b> <span class=\"infos-module\"><?php print $supplier->name; ?></span> </li>\n                                  <?php if (isset($product->array_options[\'options_marketplace_module_version\'])): ?>\n                                    <li><b><?php print $weblangs->trans(\"moduleVersion\"); ?></b> <span class=\"infos-module\"><?php print $product->array_options[\'options_marketplace_module_version\']; ?></span> </li>\n                                  <?php endif ?>\n                                  <?php if (isset($product->array_options[\'options_marketplace_min_version\']) && $product->array_options[\'options_marketplace_max_version\']): ?>\n                                    <li><b><?php print $weblangs->trans(\"compatibility\"); ?></b> Dolibarr <span class=\"infos-module\"><?php print $product->array_options[\'options_marketplace_min_version\']; ?> - <?php print $product->array_options[\'options_marketplace_max_version\']; ?></span> </li>\n                                  <?php endif ?>\n                                  <?php if (isset($product->date_creation)): ?>\n                                    <li><b><?php print $weblangs->trans(\"releaseDate\"); ?></b> <span class=\"infos-module\"><?php print dol_print_date($product->date_creation, \'day\'); ?></span> </li>\n                                  <?php endif ?>\n                                </ul>\n                            </td>\n                            <td>\n                                <ul class=\"info-list-box\">\n                                  <?php if (isset($product->date_modification)): ?>\n                                    <li><b><?php print $weblangs->trans(\"lastUpdate\"); ?></b> <span class=\"infos-module\"><?php print dol_print_date($product->date_modification, \'dayhour\'); ?></span> </li>\n                                  <?php endif ?>\n                                  <?php if (isset($product->array_options[\'options_marketplace_contact_support\'])): ?>\n                                    <li><b><?php print $weblangs->trans(\"contactSupport\"); ?></b> <span class=\"infos-module\"><?php print $product->array_options[\'options_marketplace_contact_support\']; ?></span> </li>\n                                  <?php endif ?>\n                                </ul>\n                            </td>\n                        </tr>\n                    </tbody>\n                  </table>\n                  </div>\n                  <h3 class=\"page-product-heading\"><?php print $weblangs->trans(\"moreInfo\"); ?></h3>\n                  <!-- full description -->\n                  <div class=\"rte\">\n                    <?php\n                        if (isset($product->multilangs[$current_lang][\"other\"])){\n                            print $product->multilangs[$current_lang][\"other\"];\n                        }\n                    ?>\n                  </div>\n                  <br>\n                  <br>\n                  <!--<ul id=\"usefull_link_block\" class=\"clearfix no-print\">\n                    <br>\n                    <b>This module has not been sold enough or has been on sale for a too short to have statistics</b>\n                    <li id=\"left_share_fb\">\n                      <a href=\"#\" class=\"_blank\">Share on Facebook!</a>\n                    </li>\n                  </ul>-->\n                </section>\n                <!--end  More info -->\n                <!--HOOK_PRODUCT_TAB -->\n                <section class=\"page-product-box\"></section>\n                <!--end HOOK_PRODUCT_TAB -->\n                <!-- description & features -->\n              </div>\n              <!-- itemscope product wrapper -->\n              </div>\n            </div>\n            <?php } ?>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n    \n    <!-- Disabled, file does not exists\n    <script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n    -->\n    \n  </body>\n</html>',1,'2024-02-02 16:48:47',NULL,'2025-01-23 23:49:25',NULL,NULL,'page','',NULL,'','<script type=\"text/javascript\">\n$(document).ready(function() {\n    let scrollContainer = document.querySelector(\"#thumbs_list_frame\");\n    let backBtn = document.getElementById(\"view_scroll_left\");\n    let nextBtn = document.getElementById(\"view_scroll_right\");\n    \n    nextBtn.addEventListener(\"click\", (evt) => {\n    	scrollContainer.style.scrollBehavior = \"smooth\";\n    	scrollContainer.scrollLeft += 300;\n    });\n    \n    backBtn.addEventListener(\"click\", (evt) => {\n    	scrollContainer.style.scrollBehavior = \"smooth\";\n    	scrollContainer.scrollLeft -= 300;\n    });\n});\n</script>',NULL,'','',0,NULL,NULL),
(193,38,'product-statistics','','product statistics','','','<?php // BEGIN PHP\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$product_id = GETPOST(\'id\');\n$current_lang = $_SESSION[\'lang\'][\'code\'];\n$weblangs->load(\"companies\");\n\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n\n// Get Account ID.\n$user_id = $_SESSION[\'user\'][\'id_user\'];\n$customer_account = new SocieteAccount($db);\n$result = $customer_account->fetch($user_id);\n$customer_id = $customer_account->fk_soc;\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n// Check if this product is owned by this customer\n$product = new Product($db);\n$result = $product->fetch($product_id);\n$sql = \'SELECT count(rowid) as prices FROM \'.MAIN_DB_PREFIX.\'product_fournisseur_price WHERE fk_product = \'.((int) $product_id).\' and fk_soc = \'.((int) $customer_id);\n$resql = $db->query($sql);\n$is_owner = $db->fetch_object($resql);\nif ($is_owner->prices == 0) {\n    // To render view of another user\n    if (!empty(GETPOST(\'id_customer\'))) {\n        // Only for members with a specific role\n        require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n        $membre = new Adherent($db);\n        $result = $membre->fetch(\'\', 0, $customer_id);\n        \n        $adminsCat = new Categorie($db);\n    	$adminsCat->fetch(1);\n    	\n    	$result = $adminsCat->containsObject(\'member\', $membre->id);\n    	if ($result <= 0) {\n            redirectToContainer(\'manage-products\');\n    	}\n    } else {\n        redirectToContainer(\'manage-products\');\n    }\n}\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"productStatisticsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"manageProducts\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"orderHistory\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <?php\n                    // Get product object\n                    $product = new Product($db);\n                    $result = $product->fetch($product_id);\n                ?>\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"product\"); ?> : <?php print $product->label; ?></h1>\n                <div id=\"block-history\" class=\"block-center\">\n                    <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                		<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n                			<table class=\"table table-bordered table-bordered-block-order-detail order-history\">\n                				<thead>\n                					<tr>\n                						<th class=\"item\" width=\"50\">#</th>\n                						<th class=\"item\" width=\"150\"><?php print $weblangs->trans(\"orderRef\"); ?></th>\n                						<th class=\"item\"><?php print $weblangs->trans(\"ThirdPartyName\"); ?></th>\n                						<th class=\"item\" width=\"120\"><?php print $weblangs->trans(\"date\"); ?></th>\n                						<th class=\"last_item\"><?php print $weblangs->trans(\"amountEarned\"); ?></th>\n                					</tr>\n                				</thead>\n                				<tbody>\n                				    <?php\n                				    // Get list of orders for this product After 01/01/2025 (from invoices)\n                					$orders_for_product = \"SELECT f.rowid, f.type, f.ref, f.fk_statut, f.fk_soc, f.datec as date_commande, f.module_source , fd.total_ht, fk_facture_source \";\n                                    $orders_for_product .= \"FROM \".MAIN_DB_PREFIX.\"facture as f, \".MAIN_DB_PREFIX.\"facturedet as fd \";\n                                    $orders_for_product .= \"WHERE f.rowid = fd.fk_facture and fd.fk_product = \" . ((int) $product->id) . \" and f.paye = 1 and f.datef > \'2025-01-01\' \";\n                                    $orders_for_product .= $db->order(\"datef\", \"DESC\");\n                                    \n                                    if ($result_orders = $db->query($orders_for_product)) {\n                                        $i = 1;\n                                    	while ($order_details = $result_orders->fetch_object()) {\n                                    	    if (!empty($conf->cache[\'thirdparty\'][$order_details->fk_soc])) {\n                                    	        $customer = $conf->cache[\'thirdparty\'][$order_details->fk_soc];\n                                    	    } else {\n                                    	        $customer = new Societe($db);\n                                    	        $customer->fetch($order_details->fk_soc);\n                                    	    \n                                    	        $conf->cache[\'thirdparty\'][$order_details->fk_soc] = $customer;\n                                    	    }\n                                    	    \n                                    	    // Calculate discount for this order line\n                                            // TODO\n                                    ?>\n                    					<tr class=\"item <?php if ($order_details->type == 2) { print \"refundLine\"; } ?>\">\n                    					    <td>\n                    					        <p><?php print $i; ?></p>\n                    					    </td>\n                    					    <td>\n                    					        <p><?php print $order_details->ref; ?></p>\n                    					        <?php if (!empty($order_details->fk_facture_source)): ?>\n                    					            <?php\n                    					                $refund_source = \"SELECT f.ref \";\n                                                        $refund_source .= \"FROM \".MAIN_DB_PREFIX.\"facture as f \";\n                                                        $refund_source .= \"WHERE f.rowid = \" . $order_details->fk_facture_source;\n                                                        $resql_refund_source = $db->query($refund_source);\n                                                        $sourceOfRefund = $db->fetch_object($resql_refund_source);\n                    					            ?>\n                    					            <p><s><?php print $sourceOfRefund->ref; ?></s></p>\n                    					        <?php endif ?>\n                    					    </td>\n                    					    <td>\n                    						        <b><?php print $customer->name; ?></b><br>\n\n                    						        <small class=\"cart_ref\">\n                                                        <?php print $weblangs->trans(\"Email\"); ?>: <?php print $customer->email; ?><br>\n                                                        <?php print $weblangs->trans(\"registredOn\"); ?>: <?php print dol_print_date($customer->date_creation, \'day\'); ?>\n                    						        </small>\n\n                    						</td>\n                    						<td>\n                    						    <p><?php print dol_print_date($order_details->date_commande, \'day\'); ?></p>\n											</td>\n                    						<td width=\"160\">\n                    							<p><span class=\"price\"><?php print price($order_details->total_ht); ?> €</span> </p>\n                    						</td>\n                    					</tr>\n                					    <?php\n                					    $i++;\n                                    	}\n                                    }\n                                    ?>\n                                    \n                                    \n                                    \n                				    \n                				    \n                				    \n                				    \n                				    \n                				    \n                				    <?php\n                				    // Get list of orders for this product before 01/01/2025\n                					$orders_for_product = \"SELECT c.rowid, c.ref, c.fk_statut, c.fk_soc, c.date_commande, c.module_source , d.total_ht \";\n                                    $orders_for_product .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n                                    $orders_for_product .= \"WHERE c.rowid = d.fk_commande and d.fk_product = \" . ((int) $product->id) . \" and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' and c.date_commande < \'2025-01-01\'\";\n                                    $orders_for_product .= $db->order(\"date_commande\", \"DESC\");\n                                    \n                                    if ($result_orders = $db->query($orders_for_product)) {\n                                        $i = 1;\n                                    	while ($order_details = $result_orders->fetch_object()) {\n                                    	    if (!empty($conf->cache[\'thirdparty\'][$order_details->fk_soc])) {\n                                    	        $customer = $conf->cache[\'thirdparty\'][$order_details->fk_soc];\n                                    	    } else {\n                                    	        $customer = new Societe($db);\n                                    	        $customer->fetch($order_details->fk_soc);\n                                    	    \n                                    	        $conf->cache[\'thirdparty\'][$order_details->fk_soc] = $customer;\n                                    	    }\n                                    	    \n                                    	    // Calculate discount for this order line\n                                            $TOTAL_DISCOUNTS = 0;\n                                            $sum_all_discounts = \"SELECT SUM(d.total_ht) as total \";\n                                            $sum_all_discounts .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n                                            $sum_all_discounts .= \"WHERE c.rowid = d.fk_commande \";\n                                            $sum_all_discounts .= \"AND c.rowid = \".$order_details->rowid.\" \";\n                                            $sum_all_discounts .= \"AND d.description LIKE \'\" . ((int) $product->id) . \"# %\' \";\n                                            $sum_all_discounts .= \"AND (c.facture = 1 OR c.note_private LIKE \'%Order imported%\' OR c.ref_ext IS NOT NULL) \";\n                                            $sum_all_discounts .= \"AND c.module_source = \'Marketplace\' \";\n                                            $resql = $db->query($sum_all_discounts);\n                                            $sells_discounts = $db->fetch_object($resql);\n                                            $TOTAL_DISCOUNTS = $sells_discounts->total;\n                                    ?>\n                    					<tr class=\"item\">\n                    					    <td>\n                    					        <p><?php print $i; ?></p>\n                    					    </td>\n                    					    <td>\n                    					        <p><?php print $order_details->ref; ?></p>\n                    					    </td>\n                    					    <td>\n                    						        <b><?php print $customer->name; ?></b><br>\n\n                    						        <small class=\"cart_ref\">\n                                                        <?php print $weblangs->trans(\"Email\"); ?>: <?php print $customer->email; ?><br>\n                                                        <?php print $weblangs->trans(\"registredOn\"); ?>: <?php print dol_print_date($customer->date_creation, \'day\'); ?>\n                    						        </small>\n\n                    						</td>\n                    						<td>\n                    						    <p><?php print dol_print_date($order_details->date_commande, \'day\'); ?></p>\n											</td>\n                    						<td width=\"160\">\n                    							<p><span class=\"price\"><?php print price($order_details->total_ht); ?> €</span> <?php if ($TOTAL_DISCOUNTS) { print \"(\" . price($TOTAL_DISCOUNTS) . \")\"; } ?> </p>\n                    						</td>\n                    					</tr>\n                					    <?php\n                					    $i++;\n                                    	}\n                                    }\n                                    ?>\n                				</tbody>\n                			</table>\n                		</div>\n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                			<span>\n                				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                			</span>\n                		</a>\n                	</li>\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"Home\"); ?></span>\n                		</a>\n                	</li>\n                </ul>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-10 09:54:18',NULL,'2025-01-24 11:38:23',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(194,38,'products-list-grid','','product list grid','product list grid','','<script type=\"text/javascript\">\n  var displayList = false;\n  var page_name = \'tt\';\n  var quickView = false;\n  var request = window.location.href;\n  var display = \"grid\";\n</script>\n\n<?php // BEGIN PHP\nincludeContainer(\'_library_page_lib.php\', 1);\n$current_lang = $_SESSION[\'lang\'][\'code\'];\n$current_lang_short_code = $_SESSION[\'lang\'][\'shortcode\'];\n\n\n$root_cat_object = new Categorie($db);\n\nif (GETPOST(\'cat\', \'alpha\')) {\n	$root_category_id = GETPOST(\'cat\', \'alpha\');\n}\nif (GETPOST(\'extcat\', \'alpha\')) {\n	$root_category_extid = GETPOST(\'extcat\', \'alpha\');\n}\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$list = GETPOST(\'list\', \'alpha\');\n$search_words = GETPOST(\'search_query\', \'alpha\');\n$cat = GETPOST(\'cat\', \'alpha\');\n$extcat = GETPOST(\'extcat\', \'alpha\');\n\n$isHomePage = !GETPOST(\'tag\', \'alpha\') && !GETPOST(\'cat\', \'alpha\') && !GETPOST(\'list\', \'alpha\') && !GETPOST(\'search_query\', \'alpha\') && !GETPOST(\'extcat\', \'alpha\');\n\nif (!empty($search_words)) {\n    $keywords = explode(\" \", $search_words);\n    $request = \'\';\n    $order = \'ORDER BY CASE \';\n\n    foreach ($keywords as $key => $value) {\n        if ($key != 0) {\n            $request .= \" AND \";\n        }\n        $value = $db->escape($db->escapeforlike($value));\n\n        // Build the search conditions for labels, notes, and vendor names\n        $request .= \"(ol.label LIKE \'%\" . $value . \"%\' OR \n                    ol.note LIKE \'\" . $value . \" %\'  OR \n                    ol.note LIKE \'% \" . $value . \" %\'  OR \n                    ol.note LIKE \'% \" . $value . \"\' OR\n                    ol.note LIKE \'%>\" . $value . \" %\' OR\n                    ol.note LIKE \'% \" . $value . \"<%\' OR\n                    s.nom LIKE \'%\" . $value . \"%\')\";\n\n        // Define the order of results based on matching criteria\n        // Level 1: Full match in the label\n        $order .= \"WHEN ol.label LIKE \'\" . $value . \" %\' THEN 1 \";\n        $order .= \"WHEN ol.label LIKE \'% \" . $value . \" %\' THEN 1 \";\n        $order .= \"WHEN ol.label LIKE \'% \" . $value . \"\' THEN 1 \";\n\n        // Level 2: Partial match in the label or vendor name\n        $order .= \"WHEN ol.label LIKE \'%\" . $value . \"%\' THEN 2 \";\n        $order .= \"WHEN s.nom LIKE \'%\" . $value . \"%\' THEN 2 \";\n\n        // Level 3: Full Match in the notes(Long description) field\n        $order .= \"WHEN ol.note LIKE \'\" . $value . \" %\' THEN 3 \";\n        $order .= \"WHEN ol.note LIKE \'% \" . $value . \" %\' THEN 3 \";\n        $order .= \"WHEN ol.note LIKE \'% \" . $value . \"\' THEN 3 \";\n        $order .= \"WHEN ol.note LIKE \'%>\" . $value . \" %\' THEN 3 \";\n        $order .= \"WHEN ol.note LIKE \'% \" . $value . \"<%\' THEN 3 \";\n\n        //$order .= \"WHEN ol.description LIKE \'%\" . $value . \"%\' THEN 4 \";\n    }\n    \n    // Finalize filter and order\n    $filter = \"($request) AND (o.tosell = 1) \";\n    $order .= \" END, o.datec DESC\";  // Complete the order clause\n} else {\n    $filter = \'o.tosell = 1\';\n}\n\n$page_no = GETPOST(\'p\', \'alpha\');\nif(empty($page_no)) {\n	$page_no = 1;\n}\n\n$limit = GETPOST(\'n\', \'alpha\');\nif(empty($limit)) {\n	$limit = 11;\n}else{\n	$limit = $limit -1;\n}\n\n$orderby = GETPOST(\'orderby\', \'alpha\');\nswitch ($orderby) {\n	case \'price\':\n		$sortfield = \'price_ttc\';\n		break;\n	case \'name\':\n		$sortfield = \'label\';\n		break;\n	case \'reference\':\n		$sortfield = \'ref\';\n		break;\n	default:\n		$sortfield = \'datec\';\n		break;\n}\n\n$orderway = GETPOST(\'orderway\', \'alpha\');\nswitch ($orderway) {\n	case \'asc\':\n		$sortorder = \"ASC\";\n		break;\n	case \'desc\':\n		$sortorder = \"DESC\";\n		break;\n	default:\n		$sortorder = \"DESC\";\n		break;\n}\n\nif ($page_no == 1) {\n	$offset = 0;\n}else{\n	$offset = ( $limit * ($page_no-1) )+($page_no - 1);\n}\n\n$id = null;\n$type  = Categorie::TYPE_PRODUCT;\n$is_for_sell = 1;\n\nif (empty($tag)) {\n	if (isset($root_category_id) || isset($root_category_extid)) {\n	    if (isset($root_category_id)) {\n	        $result = $root_cat_object->fetch($root_category_id,\"\");\n	    } else {\n	        $result = $root_cat_object->fetch(\'\', \'\', Categorie::TYPE_PRODUCT, $root_category_extid);\n	    }\n		\n		if ($result <= 0) {\n			redirectToContainer(\'404\');\n		}\n		$root_category_id = $root_cat_object->id;\n		$root_category_label = $root_cat_object->label;\n	} else {\n	    if ($isHomePage && getDolGlobalInt(\'MARKETPLACE_ROOT_CATEGORY_ID_BIS\')) {\n    	    // To force ID of category for v20 products only on Home page\n    		$result = $root_cat_object->fetch(getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID_BIS\"));\n	    } else {\n    		$result = $root_cat_object->fetch(getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\"));\n	    }\n		if ($result <= 0) {\n			redirectToContainer(\'404\');\n		}\n		$root_category_label = $root_cat_object->label;\n		$root_category_id = $root_cat_object->id;\n	}\n} else {\n    if ($tag == \"Specials\") {\n        $result = $root_cat_object->fetch(getDolGlobalInt(\"MARKETPLACE_SPECIAL_CATEGORY_ID\"));\n    } else {\n        $result = $root_cat_object->fetch(\"\", $tag);\n    }\n	\n	if ($result <= 0) {\n		dol_print_error($db, $root_cat_object->error); exit;\n	}\n	$root_category_label = $root_cat_object->label;\n	$root_category_id = $root_cat_object->id;\n}\n$root_category_type = $root_cat_object->type;\n\n// If Goodies category, redirect to specific page\nif ($root_category_label == \'Goodies\') {\n    redirectToContainer(\'goodies\');\n}\n\n\nif($root_category_id == getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\") && empty($tag) && empty($search_words) && $list == \"new\") {\n    $delay_for_new = (int) getDolGlobalInt(\'MARKETPLACE_DELAY_FOR_NEW\', 30);\n    $dateTime = new \\DateTime();\n    $interval = new \\DateInterval(\'P\'.$delay_for_new.\'D\');\n    $dateTime->sub($interval);\n    $request = \"o.datec > \'\" . $dateTime->format(\'Y-m-d H:i:s\') . \"\'\";\n    $filter = \"(\".$request . \") AND (o.tosell=1)\";\n}\n\n// END PHP ?>\n\n<?php\n// Count SQL\n/*$countSql = \"SELECT c.fk_product \";\n$countSql .= \"FROM llx_categorie_product as c, \";\n$countSql .= \"llx_product as o, \";\n$countSql .= \"llx_product_lang as ol \";\n$countSql .= \"WHERE o.entity IN (1) AND c.fk_categorie = \".$root_category_id.\" AND c.fk_product = o.rowid AND ol.fk_product = o.rowid \";\n$countSql .= \"AND ol.lang = \'\".$db->escape($current_lang).\"\' AND \";\n$countSql .= $filter;\n\n$resql = $db->query($countSql);\n$count_prods = $resql->num_rows;\n\n// PRODUCT SQL\n$sql = \"SELECT c.fk_product as id, o.ref, o.ref_ext, ol.label, ol.description, o.datec, o.price_ttc \";\n$sql .= \"FROM llx_categorie_product as c, \";\n$sql .= \"llx_product as o, \";\n$sql .= \"llx_product_lang as ol \";\n$sql .= \"WHERE o.entity IN (1) AND c.fk_categorie = \".$root_category_id.\" AND c.fk_product = o.rowid AND ol.fk_product = o.rowid \";\n$sql .= \"AND ol.lang = \'\".$db->escape($current_lang).\"\' AND \";\n$sql .= $filter;*/\n\n// Count SQL\n$countSql = \"SELECT c.fk_product \";\n$countSql .= \"FROM llx_categorie_product as c \";\n$countSql .= \"INNER JOIN llx_product as o ON c.fk_product = o.rowid \";\n$countSql .= \"INNER JOIN llx_product_lang as ol ON ol.fk_product = o.rowid \";\n$countSql .= \"LEFT JOIN llx_product_fournisseur_price as pfp ON pfp.fk_product = o.rowid \";\n$countSql .= \"LEFT JOIN llx_societe as s ON pfp.fk_soc = s.rowid \";\n$countSql .= \"WHERE o.entity IN (1) AND c.fk_categorie = \" . ((int) $root_category_id) . \" AND \";\n$countSql .= \"ol.lang = \'\" . $db->escape($current_lang) . \"\' AND \";\n$countSql .= $filter;\n$sql .= \" GROUP BY c.fk_product \"; // Added GROUP BY clause to handle multiple supplier prices\n\n$resql = $db->query($countSql);\n$count_prods = $resql->num_rows;\n\n// PRODUCT SQL\n$sql = \"SELECT c.fk_product as id, o.ref, o.ref_ext, ol.label, ol.description, o.datec, o.price_ttc \";\n$sql .= \"FROM llx_categorie_product as c \";\n$sql .= \"INNER JOIN llx_product as o ON c.fk_product = o.rowid \";\n$sql .= \"INNER JOIN llx_product_lang as ol ON ol.fk_product = o.rowid \";\n$sql .= \"LEFT JOIN llx_product_fournisseur_price as pfp ON pfp.fk_product = o.rowid \";\n$sql .= \"LEFT JOIN llx_societe as s ON pfp.fk_soc = s.rowid \";\n$sql .= \"WHERE o.entity IN (1) AND c.fk_categorie = \" . ((int) $root_category_id) . \" AND \";\n$sql .= \"ol.lang = \'\" . $db->escape($current_lang) . \"\' AND \";\n$sql .= $filter;\n$sql .= \" GROUP BY c.fk_product, o.ref, o.ref_ext, ol.label, ol.description, o.datec, o.price_ttc, s.nom\"; // Added GROUP BY clause to handle multiple supplier prices\n\nif ($sortfield == \'datec\' && $sortorder == \'DESC\' && !empty($search_words)) {\n    $sql .= \" \" . $order;\n} else {\n    // Home page: random order\n    if ($isHomePage) {\n        $sql .= \" ORDER BY RAND() \";\n    } else {\n        $sql .= $db->order($sortfield, $sortorder);\n    }\n}\n\nif ($limit > 0 || $offset > 0) {\n	$sql .= $db->plimit($limit + 1, $offset);\n}\n\n$total_no_of_pages = ceil($count_prods / ($limit + 1));\n$second_last = $total_no_of_pages - 1; // total pages minus 1\n$previous_page = $page_no - 1;\n$next_page = $page_no + 1;\n$test = \"\";\n?>\n<?php if ($count_prods > 0 && (strlen($search_words) == 0 || strlen($search_words) > 1)): ?>\n	<?php if (GETPOST(\'cat\', \'alpha\') != \'\' || GETPOST(\'extcat\', \'alpha\') != \'\'): ?>\n	    <section id=\"category_info_section\" contenteditable=\"true\">\n    		<div class=\"content_scene_cat\">\n    		    <?php\n        		    $__PAGE__TITLE__ = dol_string_nohtmltag($root_cat_object->label);\n                    $__PAGE__DESC__ = dol_string_nohtmltag($root_cat_object->description);\n    		    ?>\n    			<!-- Category image -->\n    			\n    			<div class=\"content_scene_cat_bg\">\n    				<div class=\"cat_desc\">\n    					<?php\n    					    if ($root_cat_object->id == getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\")) {\n                                print \'<span class=\"category-name\">\' . dol_string_nohtmltag($weblangs->trans(\"newProducts\")) . \'</span>\';\n                            } else {\n                                print \'<span class=\"category-name\">\' . dol_string_nohtmltag($root_cat_object->label) . \'</span>\';\n                            }\n                        ?>\n    					<div class=\"rte\">\n    						<p>\n    						<?php \n    						    if ($root_cat_object->id != getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\")) {\n    						        print dol_string_nohtmltag($root_cat_object->description);\n    						    }\n    						?>\n						    </p>\n    					</div>\n    				</div>\n    			</div>\n    			\n    		</div>\n		</section>\n	<?php endif ?>\n\n	<?php if (GETPOST(\'tag\', \'alpha\') != \"\" || GETPOST(\'cat\', \'alpha\') != \"\" || GETPOST(\'search_query\', \'alpha\') != \"\" || GETPOST(\'extcat\', \'alpha\') != \'\'): ?>\n	<section id=\"search_info_section\" contenteditable=\"true\">\n		<h1 class=\"page-heading product-listing\">\n			<?php if (GETPOST(\'cat\', \'alpha\') != \'\' || GETPOST(\'extcat\', \'alpha\') != \'\'): ?>\n				<span class=\"cat-name\"><?php if ($root_cat_object->id != getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\")) {print $root_cat_object->label;} ?></span>\n			<?php else: ?>\n				<span class=\"cat-name\"><?php print $weblangs->trans(\"Search\"); ?>\n				<?php if (!empty($tag)): ?>\n					\"<?php print $tag; ?>\"</span>\n				<?php endif ?>\n				<?php if (!empty($keywords)): ?>\n					<?php foreach ($keywords as $key => $value): ?>\n						\"<?php print $value; ?>\"</span>\n					<?php endforeach ?>\n				<?php endif ?>\n			<?php endif ?>\n			<span class=\"heading-counter\"><?php print $weblangs->trans(\"nbrOfProducts\", $count_prods); ?></span>\n			\n		</h1>\n	</section>\n	<?php endif ?>\n\n	<?php if (GETPOST(\'tag\', \'alpha\') != \"\" || GETPOST(\'cat\', \'alpha\') != \"\" || GETPOST(\'search_query\', \'alpha\') != \"\" || GETPOST(\'extcat\', \'alpha\') != \'\'): ?>\n		<div class=\"content_sortPagiBar clearfix\">\n		<div class=\"sortPagiBar clearfix\">\n		    \n			<ul class=\"display hidden-xs\">\n    			<li id=\"grid\" class=\"selected\">\n    				<a rel=\"nofollow\" href=\"#\" title=\"Grid\">\n    				<i class=\"icon-th-large\"></i><?php print $weblangs->trans(\"grid\"); ?> </a>\n    			</li>\n    			<li id=\"list\">\n    				<a rel=\"nofollow\" href=\"#\" title=\"List\">\n    				<i class=\"icon-th-list\"></i><?php print $weblangs->trans(\"list\"); ?> </a>\n    			</li>\n			</ul>\n			<form id=\"productsSortForm\" action=\"\" class=\"productsSortForm\">\n			<div class=\"select selector1\">\n				<div class=\"\" id=\"uniform-selectProductSort\">\n				<!--<span style=\"width: 180.4px; user-select: none;\">Price: Lowest first</span>-->\n				<select id=\"selectProductSort\" class=\"selectProductSort form-control\" style=\"width: 220px;\">\n					<!--<option value=\"\">--</option>-->\n					<option value=\"date:desc\" <?php (($orderway == \"desc\" && $orderby == \"date\") || empty($orderway)) ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"dateNewestFirst\"); ?></option>\n					<option value=\"price:asc\" <?php ($orderway == \"asc\" && $orderby == \"price\") ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"priceLowestFirst\"); ?></option>\n					<option value=\"price:desc\" <?php ($orderway == \"desc\" && $orderby == \"price\") ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"priceHighestFirst\"); ?></option>\n					<option value=\"name:asc\" <?php ($orderway == \"asc\" && $orderby == \"name\") ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"productNameAToZ\"); ?></option>\n					<option value=\"name:desc\" <?php ($orderway == \"desc\" && $orderby == \"name\") ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"productNameZToA\"); ?></option>\n					<option value=\"reference:asc\" <?php ($orderway == \"asc\" && $orderby == \"reference\") ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"referenceLowestFirst\"); ?></option>\n					<option value=\"reference:desc\" <?php ($orderway == \"desc\" && $orderby == \"reference\") ? print \'selected=\"selected\"\' : \'\' ; ?>><?php print $weblangs->trans(\"referenceHighestFirst\"); ?></option>\n				</select>\n				</div>\n			</div>\n			</form>\n			<!-- /Sort products -->\n			<!-- nbr product/page -->\n			<form action=\"\" method=\"get\" class=\"nbrItemPage\">\n			<div class=\"clearfix selector1\">\n				&nbsp; \n				<div class=\"\" id=\"uniform-nb_item\" style=\"width: 57.4px;\">\n				<!--<span style=\"width: 47.4px; user-select: none;\">12</span>-->\n				<select name=\"n\" id=\"nb_item\" class=\"form-control\">\n					<option value=\"12\" <?php (($limit + 1) == 12) ? print \'selected=\"selected\"\' : \'\' ; ?>>12</option>\n					<option value=\"24\" <?php (($limit + 1) == 24) ? print \'selected=\"selected\"\' : \'\' ; ?>>24</option>\n					<option value=\"60\" <?php (($limit + 1) == 60) ? print \'selected=\"selected\"\' : \'\' ; ?>>60</option>\n				</select>\n				</div>\n				<span class=\"opacitymedium\"><?php print $weblangs->trans(\"productPerPage\"); ?></span>\n			</div>\n			</form>\n			<!-- /nbr product/page -->\n		</div>\n		\n\n		<div class=\"top-pagination-content clearfix\">\n            <?php if ($total_no_of_pages > 1): ?>\n                <!-- show all -->\n                <div id=\"pagination\" class=\"pagination clearfix\">\n                    <form class=\"showall\" action=\"\" method=\"get\">\n                        <div>\n                            <button type=\"submit\" class=\"btn btn-default button exclusive-medium\">\n                                <span><?php print $weblangs->trans(\"showAll\"); ?></span>\n                            </button>\n                            <input name=\"n\" id=\"nb_item\" class=\"hidden\" value=\"<?php print $count_prods; ?>\">\n                        </div>\n                    </form>\n        \n                    <!-- show all -->\n                    <ul class=\"pagination\">\n                        <li id=\"pagination_previous\" class=\"pagination_previous\" <?php if($page_no <= 1){ echo \"disabled\"; } ?>>\n                            <a <?php if($page_no > 1){ echo \"href=\'?p=$previous_page\'\"; } ?>>\n                                <i class=\"icon-chevron-left\"></i>\n                                <b><?php print $weblangs->trans(\"previous\"); ?></b>\n                            </a>\n                        </li>\n        \n                        <?php\n                        $start_page = max(1, $page_no - 2);\n                        $end_page = min($total_no_of_pages, $page_no + 2);\n        \n                        if ($total_no_of_pages <= 10) {\n                            // Affiche toutes les pages si <= 10\n                            for ($counter = 1; $counter <= $total_no_of_pages; $counter++) {\n                                if ($counter == $page_no) {\n                                    echo \"<li class=\'active current\'><span><span>$counter</span></span></li>\";  \n                                } else {\n                                    echo \"<li><a href=\'?p=$counter\'><span>$counter</span></a></li>\";\n                                }\n                            }\n                        } else {\n                            if ($start_page > 1) {\n                                echo \"<li><a href=\'?p=1\'><span>1</span></a></li>\";\n                                if ($start_page > 2) {\n                                    echo \"<li><span><span><a>...</a></span></span></li>\";\n                                }\n                            }\n                            for ($counter = $start_page; $counter <= $end_page; $counter++) {\n                                if ($counter == $page_no) {\n                                    echo \"<li class=\'active\'><span><span>$counter</span></span></li>\";\n                                } else {\n                                    echo \"<li><a href=\'?p=$counter\'><span>$counter</span></a></li>\";\n                                }\n                            }\n                            if ($end_page < $total_no_of_pages) {\n                                if ($end_page < $total_no_of_pages - 1) {\n                                    echo \"<li><span><span><a>...</a></span></span></li>\";\n                                }\n                                echo \"<li><a href=\'?p=$total_no_of_pages\'><span>$total_no_of_pages</span></a></li>\";\n                            }\n                        }\n                        ?>\n        \n                        <li class=\"pagination_next <?php if($page_no >= $total_no_of_pages){ echo \'disabled\'; } ?>\">\n                            <a <?php if($page_no < $total_no_of_pages) { echo \"href=\'?p=$next_page\'\"; } ?>>\n                                <b><?php print $weblangs->trans(\"next\"); ?></b>\n                                <i class=\"icon-chevron-right\"></i>\n                            </a>\n                        </li>\n                    </ul>\n                </div>\n            <?php endif ?>\n        \n            <div class=\"product-count\">\n                <?php print $weblangs->trans(\"showing\"); ?> \n                <?php print $offset + 1; ?> - \n                <?php if(($offset + $limit +1) > $count_prods) { print $count_prods; } else { print $offset + $limit +1; } ?> \n                <?php print $weblangs->trans(\"of\"); ?> \n                <?php print $count_prods; ?> \n                <?php print $weblangs->trans(\"items\"); ?>\n            </div>\n        </div>\n\n		\n		</div>\n	<?php endif ?>\n\n	<ul id=\"homefeatured\" class=\"product_list grid row homefeatured tab-pane\">\n		<?php\n\n		//$prods = $root_cat_object->getObjectsInCateg(Categorie::TYPE_PRODUCT, 0,$limit, $offset,$sortfield,$sortorder,$filter,\'\',$current_lang);\n		//foreach ($prods as $key => $product){\n		\n		if ($resql = $db->query($sql)) {\n		    $key = 0;\n			while ($product = $resql->fetch_object()) {\n			    $product->element = \"product\";\n    		    // check discount and calculate discounted price\n    		    $discount = marketplace_check_discount($product->id);\n    		    $discounted_price = marketplace_calculate_discounted_price($product->price_ttc, $discount);\n    		    //$discount = function_exists(\'marketplace_check_discount\') ? marketplace_check_discount($product->id) : 0;\n    		    //$discounted_price = function_exists(\'marketplace_calculate_discounted_price\') ? marketplace_calculate_discounted_price($product->price_ttc, $discount) : $product->price_ttc;\n    \n    			$thumb = getImagePublicURLOfObject($product, 1, \'_small\');\n    			// Add some css class for each position\n    			switch ($key) {\n        			case \'0\':\n        				$position_class = \"first-in-line first-item-of-tablet-line first-item-of-mobile-line\";\n        				break;\n        			case \'1\':\n        				$position_class = \"last-item-of-mobile-line\";\n        				break;\n        			case \'2\':\n        				$position_class = \"last-item-of-tablet-line first-item-of-mobile-line\";\n        				break;\n        			case \'3\':\n        				$position_class = \"last-in-line first-item-of-tablet-line last-item-of-mobile-line\";\n        				break;\n        			case \'4\':\n        				$position_class = \"first-in-line first-item-of-mobile-line\";\n        				break;\n        			case \'5\':\n        				$position_class = \"last-item-of-tablet-line last-item-of-mobile-line\";\n        				break;\n        			case \'6\':\n        				$position_class = \"first-item-of-tablet-line first-item-of-mobile-line\";\n        				break;\n        			case \'7\':\n        				$position_class = \"last-in-line last-item-of-mobile-line\";\n        				break;\n        			case \'8\':\n        				$position_class = \"first-in-line last-item-of-tablet-line first-item-of-mobile-line\";\n        				break;\n        			case \'9\':\n        				$position_class = \"first-item-of-tablet-line last-item-of-mobile-line\";\n        				break;\n        			case \'10\':\n        				$position_class = \"first-item-of-mobile-line\";\n        				break;\n        			case \'11\':\n        				$position_class = \"last-in-line last-item-of-tablet-line last-item-of-mobile-line\";\n        				break;\n        			case \'12\':\n        				$position_class = \"first-in-line last-line first-item-of-tablet-line first-item-of-mobile-line\";\n        				break;\n        			case \'13\':\n        				$position_class = \"last-line last-item-of-mobile-line\";\n        				break;\n        			case \'14\':\n        				$position_class = \"last-line last-item-of-tablet-line first-item-of-mobile-line last-mobile-line\";\n        				break;\n        			case \'15\':\n        				$position_class = \"last-in-line last-line first-item-of-tablet-line last-item-of-mobile-line last-mobile-line\";\n        				break;\n    			}\n        		?>\n        		<li class=\"ajax_block_product col-xs-12 col-sm-4 col-md-3 <?php print $position_class; ?>\">\n        		<div class=\"product-container\">\n        		    \n        			<div class=\"left-block\">\n        			<div class=\"product-image-container\">\n            		    <?php\n            		    $date_creation = $db->jdate($product->datec);\n            		    if ($date_creation >= strtotime(\'-\'.getDolGlobalString(\'MARKETPLACE_DELAY_FOR_NEW\', 30).\' days\')) { ?>\n            		    <!-- for ban New -->\n            		    <a class=\"new-box\" href=\"/\">\n    								<span class=\"new-label\"><?php print $langs->trans(\"New\"); ?></span>\n    					</a>\n            		    <?php } ?>\n\n        			    \n        				<a class=\"product_img_link\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\" title=\"<?php print $product->label; ?>\">\n        					<img class=\"replace-2x img-responsive\" src=\"<?php print $thumb; ?>\" alt=\"\" title=\"<?php print $product->label; ?>\" width=\"250\" height=\"250\" />\n        				</a>\n        				<div class=\"content_price\">\n            				<?php if ($product->price_ttc > 0): ?>\n            				    <?php if ($discounted_price != $product->price_ttc): ?>\n                                	<span class=\"price product-price original-price\"> <?php print price($product->price_ttc); ?> € </span>\n                                	<span class=\"price product-price\"> <?php print price($discounted_price); ?> € </span>\n                                <?php else: ?>\n            					    <span class=\"price product-price\"> <?php print price($product->price_ttc); ?> € </span>\n            					<?php endif ?>\n            				<?php else: ?>\n                			    <span class=\"price product-price\"> FREE </span>\n                			<?php endif ?>\n        				</div>\n        			</div>\n        			</div>\n        			<div class=\"right-block\">\n        			<h5 class=\"list-grid-product-title\">\n        				<a class=\"product-name truncate2\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\" title=\"<?php print $product->label; ?>\"> <?php print $product->label; ?> </a>\n        			</h5>\n        			<p class=\"product-desc truncate2\"> \n        				<?php \n        				if (!empty($product->description)){\n        					print dol_string_nohtmltag($product->description); \n        				}\n        				?> \n        			</p>\n        			<div class=\"content_price\">\n        			    <?php if ($product->price_ttc > 0): ?>\n            			    <?php if ($discounted_price != $product->price_ttc): ?>\n                            	<span class=\"price product-price original-price\"> <?php print price($product->price_ttc); ?> € </span>\n                            	<span class=\"price product-price\"> <?php print price($discounted_price); ?> € </span>\n                            <?php else: ?>\n            				    <span class=\"price product-price\"> <?php print price($product->price_ttc); ?> € </span>\n            				<?php endif ?>\n            			<?php else: ?>\n            			    <span class=\"price product-price\"> FREE </span>\n            			<?php endif ?>\n        			</div>\n        			<div class=\"button-container\">\n        			    <form class=\"addtocart\" method=\"post\">\n        			        <input type=\"hidden\" name=\"product_id\" value=\"<?php print $product->id; ?>\">\n        			        <input type=\"hidden\" name=\"product_thumb\" value=\"<?php print getImagePublicURLOfObject($product,1); ?>\">\n        			        <input type=\"hidden\" name=\"product_quantity\" value=\"1\">\n        			        <?php if ($product->price_ttc > 0): ?>\n        			            <button type=\"submit\" class=\"button ajax_add_to_cart_button\"><span><?php print $weblangs->trans(\"addToCart\"); ?></span></button>\n        			        <?php endif ?>\n            				<a class=\"button lnk_view btn btn-default\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\" title=\"View\">\n            				    <span><?php print $weblangs->trans(\"More\"); ?></span>\n            				</a>\n        				</form>\n        			</div>\n        			<div class=\"product-flags\"></div>\n        			<div class=\"functional-buttons clearfix\"></div>\n        			</div>\n        		</div>\n        		<!-- .product-container> -->\n        		</li>\n		<?php \n			    $key++;\n			} \n		}\n		?>\n	</ul>\n\n\n	<?php if (GETPOST(\'tag\', \'alpha\') != \"\" || GETPOST(\'cat\', \'alpha\') != \"\" || GETPOST(\'search_query\', \'alpha\') != \"\" || GETPOST(\'extcat\', \'alpha\') != \'\'): ?>\n		<div class=\"content_sortPagiBar\">\n		    <div class=\"bottom-pagination-content clearfix\">\n                <?php if ($total_no_of_pages > 1): ?>\n                    <!-- show all -->\n                    <div id=\"pagination\" class=\"pagination clearfix\">\n                        <form class=\"showall\" action=\"\" method=\"get\">\n                            <div>\n                                <button type=\"submit\" class=\"btn btn-default button exclusive-medium\">\n                                    <span><?php print $weblangs->trans(\"showAll\"); ?></span>\n                                </button>\n                                <input name=\"n\" id=\"nb_item\" class=\"hidden\" value=\"<?php print $count_prods; ?>\">\n                            </div>\n                        </form>\n            \n                        <!-- show all -->\n                        <ul class=\"pagination\">\n                            <li id=\"pagination_previous\" class=\"pagination_previous\" <?php if($page_no <= 1){ echo \"disabled\"; } ?>>\n                                <a <?php if($page_no > 1){ echo \"href=\'?p=$previous_page\'\"; } ?>>\n                                    <i class=\"icon-chevron-left\"></i>\n                                    <b><?php print $weblangs->trans(\"previous\"); ?></b>\n                                </a>\n                            </li>\n            \n                            <?php\n                            $start_page = max(1, $page_no - 2);  // Deux pages avant la page actuelle\n                            $end_page = min($total_no_of_pages, $page_no + 2);  // Deux pages après la page actuelle\n            \n                            if ($total_no_of_pages <= 10) {\n                                // Affiche toutes les pages si <= 10\n                                for ($counter = 1; $counter <= $total_no_of_pages; $counter++) {\n                                    if ($counter == $page_no) {\n                                        echo \"<li class=\'active current\'><span><span>$counter</span></span></li>\";  \n                                    } else {\n                                        echo \"<li><a href=\'?p=$counter\'><span>$counter</span></a></li>\";\n                                    }\n                                }\n                            } else {\n                                // Affiche deux pages avant et après la page actuelle\n                                if ($start_page > 1) {\n                                    echo \"<li><a href=\'?p=1\'><span>1</span></a></li>\";\n                                    if ($start_page > 2) {\n                                        echo \"<li><span><span><a>...</a></span></span></li>\";\n                                    }\n                                }\n                                for ($counter = $start_page; $counter <= $end_page; $counter++) {\n                                    if ($counter == $page_no) {\n                                        echo \"<li class=\'active\'><span><span>$counter</span></span></li>\";\n                                    } else {\n                                        echo \"<li><a href=\'?p=$counter\'><span>$counter</span></a></li>\";\n                                    }\n                                }\n                                if ($end_page < $total_no_of_pages) {\n                                    if ($end_page < $total_no_of_pages - 1) {\n                                        echo \"<li><span><span><a>...</a></span></span></li>\";\n                                    }\n                                    echo \"<li><a href=\'?p=$total_no_of_pages\'><span>$total_no_of_pages</span></a></li>\";\n                                }\n                            }\n                            ?>\n            \n                            <li class=\"pagination_next <?php if($page_no >= $total_no_of_pages){ echo \'disabled\'; } ?>\">\n                                <a <?php if($page_no < $total_no_of_pages) { echo \"href=\'?p=$next_page\'\"; } ?>>\n                                    <b><?php print $weblangs->trans(\"next\"); ?></b>\n                                    <i class=\"icon-chevron-right\"></i>\n                                </a>\n                            </li>\n                        </ul>\n                    </div>\n                <?php endif ?>\n            \n                <div class=\"product-count\">\n                    <?php print $weblangs->trans(\"showing\"); ?> \n                    <?php print $offset + 1; ?> - \n                    <?php if(($offset + $limit +1) > $count_prods) { print $count_prods; } else { print $offset + $limit +1; } ?> \n                    <?php print $weblangs->trans(\"of\"); ?> \n                    <?php print $count_prods; ?> \n                    <?php print $weblangs->trans(\"items\"); ?>\n                </div>\n            </div>\n        \n		</div>\n	<?php endif ?>\n<?php endif ?>\n\n<?php if ($count_prods == 0 || strlen($search_words) == 1): ?>\n		<h1 class=\"page-heading  product-listing\">\n			<?php print $weblangs->trans(\"search\"); ?> <span class=\"heading-counter\"><?php print $weblangs->trans(\"noResultsHaveBeenFound\"); ?></span>\n		</h1>\n		<p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noResultsWereFound\"); ?> </p>\n<?php endif ?>',1,'2024-02-02 16:48:47',NULL,'2025-01-23 23:49:45',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(195,38,'rechtlicher-hinweise-ber-uns','','Rechtlicher Hinweise - Über uns','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n                    \n                    \n<div class=\"rte\">\n		<h3>Präsentation</h3>\n<p>Der Verein Dolibarr bietet die Plattform DoliStore.com an, um Verkäufer und Käufer zusammenzubringen. Nur der Sichtbarkeitsdienst für die verkauften Produkte wird von der Stiftung angeboten. Die Stiftung garantiert nichts bezüglich der Qualität der vom Kunden gekauften Produkte.</p>\n<p>Der Verein Dolibarr sammelt über den DoliStore im Namen der Autoren/Herausgeber Zahlungen für verkaufte Waren und verwaltet die Weiterleitung der ihnen zustehenden Gelder. In dieser Eigenschaft handelt der Verein unter der Befreiung von der Genehmigung als Zahlungsinstitut gemäß Artikel L521-3 I 2° des Währungs- und Finanzkodex.</p>\n<p>Der Verein Dolibarr ist ein französischer Verein (Gesetz 1901), der zur Förderung und Entwicklung der Open Source ERP- und CRM-Software Dolibarr gegründet wurde.</p>\n<p><strong>Rechtliche Informationen über die Stiftung:</strong></p>\n<ul>\n<li>WALDEC: W452006878</li>\n<li>SIRÈNE: 52033993800018</li>\n<li>NAF: 9499Z</li>\n</ul>\n<p>Weitere Informationen auf der Seite <a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\">https://asso.dolibarr.org/index.php/Dolibarr_foundation</a>.</p>\n<h3>Datenschutzgrundsätze</h3>\n<p>Durch die Nutzung der Website DoliStore.com stimmen Sie der Verarbeitung Ihrer persönlichen Daten zu, wie in dieser Datenschutzerklärung beschrieben.</p>\n<p><strong>Unsere Verpflichtungen zu den Datenschutzgrundsätzen sind wie folgt:</strong></p>\n<ul>\n<li><strong>Legale, faire und transparente Verarbeitung:</strong> Unsere Datenverarbeitungsaktivitäten haben legitime Gründe. Wir berücksichtigen immer Ihre Rechte, bevor wir persönliche Daten verarbeiten.</li>\n<li><strong>Zweckbindung:</strong> Die Datenverarbeitung ist auf den Zweck beschränkt, für den die persönlichen Daten erhoben wurden.</li>\n<li><strong>Datenminimierung:</strong> Wir erheben und verarbeiten nur die minimal erforderliche Menge an persönlichen Daten für jeden Zweck.</li>\n<li><strong>Speicherdauer:</strong> Die Verarbeitung ist auf einen bestimmten Zeitraum beschränkt. Wir werden Ihre persönlichen Daten nicht länger aufbewahren, als es nötig ist.</li>\n<li><strong>Integrität:</strong> Wir tun unser Bestes, um die Genauigkeit, Integrität und Vertraulichkeit der Daten zu gewährleisten.</li>\n</ul>\n<h3>Definition der Rechte an persönlichen Daten</h3>\n<ul>\n<li><strong>Recht auf Information:</strong> Sie müssen wissen, ob Ihre persönlichen Daten verarbeitet werden; welche Daten erhoben werden, woher sie stammen und warum und von wem sie verarbeitet werden.</li>\n<li><strong>Zugriffsrecht:</strong> Sie haben das Recht, auf die über Sie erhobenen Daten zuzugreifen. Dies schließt das Recht ein, eine Kopie Ihrer gesammelten persönlichen Daten anzufordern und zu erhalten.</li>\n<li><strong>Recht auf Berichtigung:</strong> Sie haben das Recht, die Berichtigung oder Löschung Ihrer ungenauen oder unvollständigen persönlichen Daten zu verlangen.</li>\n<li><strong>Recht auf Löschung:</strong> Unter bestimmten Umständen können Sie verlangen, dass Ihre persönlichen Daten aus unseren Aufzeichnungen gelöscht werden.</li>\n<li><strong>Recht auf Einschränkung oder Widerspruch gegen die Verarbeitung:</strong> Unter bestimmten Bedingungen haben Sie das Recht, die Verarbeitung Ihrer persönlichen Daten einzuschränken oder zu widersprechen.</li>\n<li><strong>Recht auf Datenübertragbarkeit:</strong> Sie haben das Recht, Ihre persönlichen Daten in einem maschinenlesbaren Format zu erhalten.</li>\n<li><strong>Recht auf Widerruf der Einwilligung:</strong> Sie haben das Recht, jede gegebene Einwilligung zur Verarbeitung Ihrer persönlichen Daten zu widerrufen.</li>\n</ul>\n<h3>Die von uns gesammelten Daten</h3>\n<p><strong>Von Verkäufern bereitgestellte Informationen:</strong></p>\n<ul>\n<li>E-Mail-Adresse, Vorname, Nachname, Firmenname, Unternehmens- oder Steueridentifikationsnummer (Umsatzsteuer-Identifikationsnummer), Rechnungsinformationen.</li>\n</ul>\n<p><strong>Von Käufern bereitgestellte Informationen:</strong></p>\n<ul>\n<li>E-Mail-Adresse, Vorname, Nachname, Firmenname, Unternehmens- oder Steueridentifikationsnummer (Umsatzsteuer-Identifikationsnummer), Rechnungsinformationen, Mitgliedsstatus im Verein.</li>\n</ul>\n<p><strong>Hinweis:</strong> Zahlungsinformationen (Kreditkarte oder Partner-Zahlungs-ID) werden nicht von DoliStore gesammelt oder gespeichert, sondern direkt an den Zahlungsanbieter übermittelt.</p>\n<p><strong>Automatisch gesammelte Informationen:</strong></p>\n<ul>\n<li>Dazu gehören Informationen, die automatisch durch Sitzungs-Cookies oder statistische Analysecookies (basierend auf Google und Matomo) gespeichert werden.</li>\n<li>Dazu gehört auch die Kaufhistorie.</li>\n</ul>\n<p><strong>Informationen von Partnern:</strong></p>\n<ul>\n<li>Wir sammeln keine Informationen von Partnern.</li>\n</ul>\n<p><strong>Links zu anderen Websites:</strong></p>\n<ul>\n<li>Die Seiten der Website können eingebettete Inhalte (z.B. Videos, Bilder, Artikel, Links) enthalten. Eingebettete Inhalte von anderen Websites verhalten sich genauso, als ob der Besucher die andere Website besucht hätte. Diese Websites können Daten über Sie sammeln (IP-Adresse, Verwendung von Cookies, Einbettung von Drittanbieter-Tracking-Tools) oder Ihre Interaktionen mit diesen eingebetteten Inhalten verfolgen, wenn Sie ein Konto auf deren Website haben und eingeloggt sind.</li>\n</ul>\n<h3>Verwendung Ihrer persönlichen Daten</h3>\n<p>Wir verwenden Ihre persönlichen Daten für die folgenden Zwecke:</p>\n<ul>\n<li>Um Sie zu identifizieren (Login-E-Mail und gehashte Passwort)</li>\n<li>Um mit Ihnen bezüglich verkaufter Produkte für Verkäufer oder gekaufter Produkte für Käufer zu kommunizieren (E-Mail)</li>\n<li>Um Ihre Verkäufer- oder Kundenerfahrung zu verbessern und Ihre Fragen zu beantworten (Kauf- oder Verkaufshistorie)</li>\n<li>Zur Erfüllung einer gesetzlichen oder vertraglichen Verpflichtung (Rechnungsdaten)</li>\n<li>Zur Durchführung von Analysen und Recherchen, um unsere Dienste zu verbessern (anonymisierte Statistikdaten über die Nutzung und Navigation der Website).</li>\n</ul>\n<p>Wir verarbeiten Ihre persönlichen Daten, um die sich aus dem Gesetz ergebenden Verpflichtungen zu erfüllen und/oder um Ihre persönlichen Daten für die gesetzlich vorgesehenen Optionen zu verwenden. Wir behalten uns das Recht vor, die gesammelten persönlichen Daten zu anonymisieren und diese anonymisierten Daten langfristig zu verwenden. Wir verwenden Daten außerhalb des Anwendungsbereichs dieser Richtlinie nur, wenn sie anonymisiert sind.</p>\n<p>Wir können Ihre persönlichen Daten für andere Zwecke verarbeiten, die hier nicht erwähnt sind. In diesem Fall wird dieses Dokument aktualisiert.</p>\n<h3>Speicherdauer Ihrer Daten</h3>\n<p>Für Benutzer, die sich auf unserer Website registrieren, speichern wir die persönlichen Daten, die in ihrem Profil angegeben sind. Alle Benutzer können ihre persönlichen Informationen jederzeit einsehen, ändern oder löschen.</p>\n<p>Wir speichern auch die Rechnungsinformationen so lange wie nötig aus buchhalterischen Gründen oder anderen gesetzlichen Verpflichtungen, bis zu Ihrer Aufforderung zur Löschung Ihrer persönlichen Daten oder für die gesetzliche Aufbewahrungsdauer der Rechnungsdaten.</p>\n<h3>Mit wem Ihre persönlichen Daten geteilt werden</h3>\n<p><strong>Verkäufer:</strong> Die folgenden persönlichen Daten der Käufer werden den Verkäufern zur Verfügung gestellt, um den Service bereitzustellen oder die Kundenerfahrung zu verbessern: E-Mail, Vorname und Nachname, Name des gekauften Moduls, Preis und Kaufdatum.</p>\n<p><strong>Käufer:</strong> Die folgenden persönlichen Daten der Verkäufer werden den Käufern zur Verfügung gestellt, um den Service bereitzustellen oder die Kundenerfahrung zu verbessern: E-Mail oder Kontakt-URL des Modulsupports (wenn der Verkäufer Support anbietet).</p>\n<p><strong>Zahlungsanbieter:</strong> Um die Rolle des Drittzahlungsdienstes zu gewährleisten, verwenden wir die Dienste von Stripe und Paypal. Wir übermitteln ihnen die E-Mail-Adresse und die Adresse des Käufers. Zahlungsinformationen werden nicht von DoliStore gespeichert, sondern direkt von Stripe oder Paypal gesammelt und gespeichert, die uns über den Erfolg oder Misserfolg der Zahlungen informieren.</p>\n<p><strong>Dritte und gesetzliche Stellen:</strong> Wir geben Ihre persönlichen Daten an Dritte oder an Beamte weiter, wenn wir gesetzlich dazu verpflichtet sind.</p>\n<p><strong>Andere Dritte außerhalb des Europäischen Wirtschaftsraums:</strong> Wir übermitteln keine Daten an andere Dritte als die oben genannten. Wenn wir persönliche Informationen an Länder außerhalb des Europäischen Wirtschaftsraums übertragen (für die oben genannten Fälle für Verkäufer außerhalb Europas oder für Zahlungsanbieter), stellen wir sicher, dass diese Informationen in Übereinstimmung mit dieser Datenschutzerklärung und den geltenden Datenschutzgesetzen übertragen werden. Wir verlassen uns auf Angemessenheitsentscheidungen der Europäischen Kommission oder verwenden Verträge mit Standardgarantien, die von der Europäischen Kommission veröffentlicht wurden.</p>\n<p><strong>Administratoren und Moderatoren:</strong> Die Plattform DoliStore wird von den Mitgliedern des Verwaltungsrats des Vereins Dolibarr verwaltet und moderiert. Jedes Vorstandsmitglied hat Zugriffs- und Änderungsrechte auf die Informationen im Profil der Verkäufer, Käufer und auf die Verkaufs-/Kauflisten.</p>\n<p></p>\n<p>Die Dolibarr Association kann nicht für die Nutzung dieser Daten durch Verkäufer oder andere Dritte mit autorisiertem Zugriff verantwortlich gemacht werden.</p>\n<p></p>\n<h3>Wie wir Ihre Daten sichern</h3>\n<p>Wir tun unser Bestes, um Ihre persönlichen Daten zu schützen.</p>\n<p><strong>Verschlüsselung der Kommunikation:</strong> Wir verwenden sichere Protokolle für die Kommunikation und den Datentransfer (wie HTTPS). Wir verwenden Anonymisierung und Pseudonymisierung, wenn dies angemessen ist.</p>\n<p><strong>Überwachung:</strong> Wir überwachen unsere Systeme, um mögliche Schwachstellen und Angriffe zu erkennen.</p>\n<p><strong>Backups:</strong> Regelmäßige Backups sind automatisiert.</p>\n<p>Obwohl wir unser Bestes tun, können wir die vollständige Sicherheit der Informationen nicht garantieren. Wir verpflichten uns jedoch, die zuständigen Behörden über Datenschutzverletzungen zu informieren. Wir werden Sie auch benachrichtigen, wenn eine Bedrohung für Ihre Rechte oder Interessen besteht. Wir werden alles in unserer Macht Stehende tun, um Sicherheitsverletzungen zu verhindern und den Behörden im Falle einer Verletzung zu helfen.</p>\n<p><strong>Passwort:</strong> Ihr Passwort wird in verschlüsselter Form durch irreversible Verschlüsselung (Hash) gespeichert. Wenn Sie ein Konto bei uns haben, müssen Sie Ihren Benutzernamen und Ihr Passwort geheim halten.</p>\n<h3>Cookies und andere Technologien, die wir verwenden</h3>\n<p>Wir verwenden Cookies und/oder ähnliche Technologien, um die Benutzer-Sitzungsfunktionalität zu ermöglichen und anonyme Navigationsstatistiken auf der Website zu erhalten.</p>\n<p>Ein Cookie ist eine kleine Textdatei, die auf Ihrem Computer (im Speicher oder auf der Festplatte) gespeichert wird. Cookies speichern Informationen, die zur Unterstützung der Funktion von Websites verwendet werden. Wir können nur auf die Cookies zugreifen, die von unserer Website erstellt wurden. Sie können Ihre Cookies auf Browserebene steuern. Das Deaktivieren von Cookies kann die Nutzung einiger Funktionen verhindern.</p>\n<p><strong>Wir verwenden Cookies für folgende Zwecke:</strong></p>\n<ul>\n<li><strong>Notwendige Cookies:</strong> Diese Cookies sind erforderlich, um wichtige Funktionen auf unserer Website zu nutzen, wie das Einloggen und die Persistenz der Sitzung. Diese Cookies sammeln keine persönlichen Informationen.</li>\n<li><strong>Funktions-Cookies:</strong> Diese Cookies bieten Funktionen, die die Nutzung unseres Dienstes bequemer machen und personalisierte Funktionen ermöglichen. Beispielsweise können sie sich Ihren Namen und Ihre E-Mail-Adresse in Kommentarformularen merken, sodass Sie diese Informationen nicht erneut eingeben müssen.</li>\n<li><strong>Analytische Cookies:</strong> Diese Cookies werden verwendet, um die Nutzung und Leistung unserer Website und Dienste anonym zu verfolgen.</li>\n</ul>\n<p>Sie können die auf Ihrem Computer gespeicherten Cookies über die Einstellungen Ihres Browsers löschen. Sie können auch einige Cookies von Drittanbietern über eine Datenschutzverbesserungsplattform wie optout.aboutads.info oder youronlinechoices.com kontrollieren. Weitere Informationen zu Cookies finden Sie auf allaboutcookies.org.</p>\n<h3>Kontaktinformationen - DPO</h3>\n<p>Der Datenschutzbeauftragte (DPO) ist der Präsident des Vereins Dolibarr. Sein Name ist auf dieser Seite angegeben: <a href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>.</p>\n<p>Anfragen bezüglich Ihrer persönlichen Daten können per E-Mail an <a>dolistore@dolibarr.org</a> gestellt werden.</p>\n<h3>Änderungen dieser Datenschutzerklärung</h3>\n<p>Wir behalten uns das Recht vor, Änderungen an dieser Datenschutzerklärung vorzunehmen. Letzte Änderung am 14.05.2024.</p>\n	</div>                    \n\n\n\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 19:20:58',NULL,'2025-01-14 00:05:41',NULL,NULL,'page','de',154,'','',NULL,'','',0,NULL,NULL),
(196,38,'register','','register','','','<?php\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\nrequire_once DOL_DOCUMENT_ROOT.\'/core/class/html.formcompany.class.php\';\n$form = new Form($db);\n$weblangs->loadLangs(array(\"main\", \"companies\"));\n?>\n<?php\n    if(!empty(GETPOST(\'action\')) && GETPOST(\'action\') == \"register\") {\n        include_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\n        include_once DOL_DOCUMENT_ROOT.\'/core/lib/admin.lib.php\';\n        include_once DOL_DOCUMENT_ROOT.\'/core/modules/security/generate/modGeneratePassStandard.class.php\';\n        $id_website = $website->id;\n        $marketplace_third_parties_category = getDolGlobalInt(\"MARKETPLACE_PROSPECTCUSTOMER_ID\");\n        \n\n        $customer_firstname = GETPOST(\'firstname\');\n        $customer_lastname = GETPOST(\'lastname\');\n        $customer_email = GETPOST(\'email\');\n        $customer_passwd = GETPOST(\'passwd\');\n        $customer_address = GETPOST(\'address\');\n        $customer_city = GETPOST(\'city\');\n        $customer_postalcode = GETPOST(\'postalcode\');\n        $customer_country = GETPOSTINT(\'country_id\');\n        $customer_company = GETPOST(\'company\');\n        $customer_siret = GETPOST(\'siret\');\n        $customer_tin = GETPOST(\'tin\');\n        $back = GETPOST(\'back\');\n        \n        $error = 0;\n        $error_messages = array();\n        \n        // Check Captcha return if captcha is activated\n        if (!empty(getDolGlobalInt(\"MARKETPLACE_GOOGLE_RECAPTCHA_REGISTER_FORM\"))) {\n            include_once DOL_DOCUMENT_ROOT.\'/core/lib/geturl.lib.php\';\n            \n            $recaptchaSecretKey = getDolGlobalString(\"MARKETPLACE_GOOGLE_RECAPTCHA_SECRET_KEY\");\n            $recaptchaResponse = GETPOST(\'g-recaptcha-response\');\n        \n            $responseDataRecaptcha = getURLContent(\"https://www.google.com/recaptcha/api/siteverify?secret=$recaptchaSecretKey&response=$recaptchaResponse\");\n            $responseDataRecaptcha = json_decode($responseDataRecaptcha[\'content\']);\n            \n            if (!$responseDataRecaptcha->success || $responseDataRecaptcha->score < 0.5) {\n                $error++;\n                $error_messages[] = $weblangs->trans(\"captchaFail\", ($responseDataRecaptcha->score ?? \'N/A\'));\n            }\n        }\n        \n        if (!isValidEmail($customer_email)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"emailInvalid\");\n    	}\n    	\n    	\n    	$sql  = \"select lsa.rowid \";\n        $sql .= \"from \".MAIN_DB_PREFIX.\"societe_account lsa \";\n        $sql .= \"where lsa.login = \'\". $db->escape($customer_email) .\"\' \";\n        $sql .= \"and lsa.fk_website = \". ((int) $id_website) . \" \";\n        $sql .= \"limit 1\";\n        \n        $result = $db->query($sql);\n		$objsql = $db->fetch_object($result);\n		\n		if (!empty($objsql)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"emailAlreadyRegistered\");\n        }\n    	\n    	if (empty($customer_firstname)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->transnoentitiesnoconv(\"Firstname\"));\n    	}\n    	\n    	//if (ctype_alpha(str_replace(array(\"\\n\", \"\\t\", \' \'), \'\', $customer_firstname)) === false) {\n    	if (!preg_match(\'/^[a-zA-ZÀ-ÖØ-öø-ÿ\\- ]+$/u\', $customer_firstname)) {\n    	    $error++;\n            $error_messages[] = $weblangs->trans(\"firstnameContainsLettersOnly\");\n        }\n    	\n    	if (empty($customer_lastname)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->transnoentitiesnoconv(\"Lastname\"));\n    	}\n    	\n    	//if (ctype_alpha(str_replace(array(\"\\n\", \"\\t\", \' \'), \'\', $customer_lastname)) === false) {\n    	if (!preg_match(\'/^[a-zA-ZÀ-ÖØ-öø-ÿ\\- ]+$/u\', $customer_lastname)) {\n    	    $error++;\n            $error_messages[] = $weblangs->trans(\"lastnameContainsLettersOnly\");\n        }\n    	\n    	$check_pass = new modGeneratePassStandard($db, $conf, $langs, $user);\n    	$is_valid = $check_pass->validatePassword($customer_passwd);\n    	if(!$is_valid){\n    	    $error++;\n    	    $weblangs->load(\"other\");\n    		$error_messages[] = $weblangs->trans(\"YourPasswordMustHaveAtLeastXChars\", (string) $check_pass->length2);\n    	}\n    	\n    	if (empty($customer_address)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->transnoentitiesnoconv(\"Address\"));\n    	}\n    	\n    	if (empty($customer_city)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->transnoentitiesnoconv(\"Town\"));\n        } elseif (!preg_match(\'/^[a-zA-ZÀ-ÖØ-öø-ÿ\\- ]+$/u\', $customer_city)) {\n            $error++;\n            $error_messages[] = $weblangs->trans(\"cityContainsLettersOnly\");\n        }\n        \n        if (empty($customer_postalcode)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->transnoentitiesnoconv(\"Zip\"));\n        } elseif (!preg_match(\'/^[a-z0-9\\.\\- ]+$/i\', $customer_postalcode)) {\n            $error++;\n            $error_messages[] = $weblangs->trans(\"postalCodeContainsDigitsOnly\");\n        }\n    	\n    	if (empty($customer_country)) {\n    		$error++;\n    		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->transnoentitiesnoconv(\"Country\"));\n    	}\n        \n        if($error == 0){\n            // Start of transaction\n            $db->begin();\n            \n            $customer = new Societe($db);\n        \n        	if (!empty($customer_company)) {\n        		$customer->name = $customer_company;\n        	} else {\n        		$customer->name = dolGetFirstLastname($customer_firstname, $customer_lastname);\n        	}\n        	$customer->name_alias = \'\';\n\n        	$customer->address = $customer_address;\n        	$customer->town = $customer_city;\n        	$customer->zip = $customer_postalcode;\n        	$customer->country_id = $customer_country;\n        \n        	$customer->idprof2 = $customer_siret;\n        	$customer->tva_intra = $customer_tin;\n\n        	$customer->client = \'2\';    // Set as prospect by default.\n        	$customer->code_client = \'auto\';\n\n        	$customer->fournisseur = \'0\';\n        	$customer->code_fournisseur = \'auto\';\n        \n        	//$customer->default_lang = $obj->dol_lang_code;\n        	\n        	$customer->ip = getUserRemoteIP();\n        	\n        	$result = $customer->create($user);\n        	if ($result < 0) {\n    			$error++;\n    			$error_messages[] = $weblangs->trans(\"errorOccurred\");\n    		}\n        	$rowid_soc = $result;\n        \n            if ($error == 0) {\n    			// Add  groups\n    			$ret_cat = $customer->setCategories($marketplace_third_parties_category, \'customer\');\n    			if ($ret_cat < 0) {\n    				$error++;\n    				$error_messages[] = $weblangs->trans(\"errorOccurred\");\n    			}\n    \n    \n    			// Add default contact\n    			$customer->name_bis = $customer_lastname;\n    			$customer->email = $customer_email;\n    			$customer->firstname = $customer_firstname;\n    			$customer->address = $customer_address;\n    			$customer->town = $customer_city;\n        	    $customer->zip = $customer_postalcode;\n    			$customer->country_id = $customer_country;\n    \n            	$customer->ip = getUserRemoteIP();\n\n    			$ret_contact = $customer->create_individual($user);\n    			if ($ret_contact < 0) {\n    				$error++;\n    				$error_messages[] = $weblangs->trans(\"errorOccurred\");\n    			} else {\n    			    $currentContactId = $ret_contact;\n    			}\n    \n    \n    			// Add connection credentials for a specific website	\n    			if(!empty($id_website)) {\n    				$societeaccount = new SocieteAccount($db);\n    				$societeaccount->login = $customer_email;\n    				$societeaccount->pass_encoding = \"dolibarr\";\n    				$societeaccount->pass = $customer_passwd;\n    				$societeaccount->fk_soc = $rowid_soc;\n    				$societeaccount->fk_website = $id_website;\n    				$societeaccount->site = \"dolibarr_website\";\n    				$societeaccount->status = \"1\";\n		        	$societeaccount->ip = getUserRemoteIP();\n\n    				$ret_account = $societeaccount->create($user);\n    				if ($ret_account < 0) {\n    					$error++;\n    					$error_messages[] = $weblangs->trans(\"errorOccurred\");\n    				} else {\n    					$id_user = $ret_account;\n    					\n    					// Link contact to account\n						$sql = \'UPDATE \' . MAIN_DB_PREFIX . \"socpeople  SET ref_ext = \'\" . $db->escape($id_user) . \"\', note_private = \'Marketplace contact for website account ID : \" . $id_user . \"\' WHERE rowid = \" . ((int) $currentContactId);\n						$db->query($sql);\n    				}\n    			}\n    		}\n    		\n    		if ($error == 0) {\n    		    $db->commit();\n            	\n            	// Send welcome email\n    		    $substitutionarray = array(\n		            \'__USER_NAME__\' => $customer->name\n		        );\n            	marketplace_send_email(getDolGlobalInt(\"MARKETPLACE_WELCOME_EMAIL_TEMPLATE\"), \'thirdparty\', $societeaccount, $societeaccount->login, $substitutionarray);\n            	\n\n                // Set session after having created the thirdparty            	\n            	if(isset($_SESSION[\'user\'])){  //if session var already exist\n                    unset($_SESSION[\'user\']);\n                }\n\n                $_SESSION[\'user\'][\'id_user\'] = $id_user;\n                $_SESSION[\'user\'][\'socid\'] = $rowid_soc;\n                $_SESSION[\'user\'][\'email\'] = $customer_email;\n                $_SESSION[\'user\'][\'pseudo\'] = $customer->name;\n                \n                if ($back == \'payement\') {\n                    redirectToContainer(\'payment\');\n                }\n                redirectToContainer(\'myaccount\');\n            } else {\n            	$db->rollback();\n            }\n        }\n    		\n    }\n?>\n\n<?php\n    $back = GETPOST(\'back\');\n?>\n<div class=\"col-xs-12 col-sm-7\">\n    <?php if (!empty(getDolGlobalInt(\"MARKETPLACE_GOOGLE_RECAPTCHA_REGISTER_FORM\"))): ?>\n        <script src=\"https://www.google.com/recaptcha/api.js?render=<?php print getDolGlobalString(\"MARKETPLACE_GOOGLE_RECAPTCHA_SITE_KEY\"); ?>\"></script>\n    <?php endif ?>\n	<form action=\"login-register.php\" method=\"post\" id=\"account-creation_form\" class=\"std box\">\n		<div class=\"account_creation\">\n			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"accountCreation\"); ?></h3>\n			\n			<?php if (isset($error) && $error != 0): ?>\n        		<div class=\'alert alert-danger\'>\n            		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n            		<p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n            		<ol>\n            		    <?php foreach ($error_messages as $key => $value): ?>\n                    		<li><?php print $value; ?></li>\n                    	<?php endforeach ?>\n            		</ol>\n            	</div>\n        	<?php endif ?>\n        	\n			<div class=\"required form-group\">\n				<label for=\"customer_firstname\"><?php print $weblangs->trans(\"Firstname\"); ?> <sup>*</sup></label>\n				<input type=\"text\" class=\"is_required validate form-control\"id=\"firstname\" name=\"firstname\" value=\"<?php if (isset($customer_firstname)){print $customer_firstname;} ?>\">\n			</div>\n			<div class=\"required form-group\">\n				<label for=\"customer_lastname\"><?php print $weblangs->trans(\"Lastname\"); ?> <sup>*</sup></label>\n				<input type=\"text\" class=\"is_required validate form-control\" id=\"lastname\" name=\"lastname\" value=\"<?php if (isset($customer_lastname)){print $customer_lastname;} ?>\">\n			</div>\n			<div class=\"required form-group\">\n				<label for=\"email\"><?php print $weblangs->trans(\"Email\"); ?> <sup>*</sup></label>\n				<input type=\"text\" class=\"is_required validate form-control\" id=\"email\" name=\"email\" value=\"<?php if (isset($customer_email)){print $customer_email;} ?>\">\n			</div>\n			<div class=\"required password form-group\">\n				<label for=\"passwd\"><?php print $weblangs->trans(\"Password\"); ?> <sup>*</sup></label>\n				<input type=\"password\" class=\"is_required validate form-control\" name=\"passwd\" id=\"passwd\" autocomplete=\"new-password\" value=\"<?php if (isset($customer_passwd)){print $customer_passwd;} ?>\">\n			</div>\n		</div>\n		<div class=\"account_creation\">\n			<h3 class=\"page-subheading page-subheading-login\"><?php print $weblangs->trans(\"yourBillingInformation\"); ?></h3>\n			\n			<div class=\"required form-group\">\n				<label for=\"customer_lastname\"><?php print $weblangs->trans(\"Address\"); ?> <sup>*</sup></label>\n				<input type=\"text\" class=\"is_required validate form-control\" id=\"Address\" name=\"address\" value=\"<?php if (isset($customer_address)){print $customer_address;} ?>\">\n			</div>\n			<div class=\"required form-group\">\n				<label for=\"customer_lastname\"><?php print $weblangs->trans(\"Town\"); ?> <sup>*</sup></label>\n				<input type=\"text\" class=\"validate form-control\" id=\"City\" name=\"city\" value=\"<?php if (isset($customer_city)){print $customer_city;} ?>\">\n			</div>\n			<div class=\"required form-group\">\n				<label for=\"customer_lastname\"><?php print $weblangs->trans(\"Zip\"); ?> <sup>*</sup></label>\n				<input type=\"text\" class=\"validate form-control\" id=\"Postalcode\" name=\"postalcode\" value=\"<?php if (isset($customer_postalcode)){print $customer_postalcode;} ?>\">\n			</div>\n			<div class=\"required form-group\">\n    			<label for=\"email\"><?php print $weblangs->trans(\"Country\"); ?> <sup>*</sup></label>\n			    <?php print $form->select_country(GETPOSTISSET(\'country_id\') ? GETPOST(\'country_id\') : \'\', \'country_id\', \'\', 0, \'form-control\'); ?>\n			</div>\n			\n			<p class=\"form-group\">\n				<label for=\"\"><?php print $weblangs->trans(\"Company\"); ?></label>\n				<input type=\"text\" class=\"form-control\" id=\"company\" name=\"company\" value=\"<?php if (isset($customer_company)){print $customer_company;} ?>\">\n			</p>\n			<p class=\"form-group\">\n				<label for=\"siret\"><?php print $weblangs->trans(\"MarketPlaceBusinessNumber\"); ?></label>\n				<input type=\"text\" class=\"form-control\" id=\"siret\" name=\"siret\" value=\"<?php if (isset($customer_siret)){print $customer_siret;} ?>\">\n			</p>\n			<p class=\"form-group\">\n				<label for=\"tin\"><?php print $weblangs->trans(\"MarketPlaceTIN\"); ?></label>\n				<input type=\"text\" class=\"form-control\" id=\"tin\" name=\"tin\" value=\"<?php if (isset($customer_tin)){print $customer_tin;} ?>\">\n			</p>\n			\n		</div>\n		<input type=\"hidden\" name=\"action\" value=\"register\">\n		<input type=\"hidden\" name=\"back\" value=\"<?php print $back; ?>\">\n		\n		<?php if (!empty(getDolGlobalInt(\"MARKETPLACE_GOOGLE_RECAPTCHA_REGISTER_FORM\"))): ?>\n            <input type=\"hidden\" name=\"g-recaptcha-response\" id=\"g-recaptcha-response\">\n        <?php endif ?>\n        \n		<div class=\"submit clearfix\">\n			<hr>\n			<button type=\"submit\" name=\"submitAccount\" id=\"submitAccount\" class=\"btn btn-default button button-medium\">\n				<span><?php print $weblangs->trans(\"register\"); ?> <i class=\"icon-chevron-right right\"></i></span>\n			</button>\n			<p class=\"pull-right\"><span><sup>*</sup> <?php print $weblangs->trans(\"requiredField\"); ?></span></p>\n		</div>\n	</form>\n	\n	<?php if (!empty(getDolGlobalInt(\"MARKETPLACE_GOOGLE_RECAPTCHA_REGISTER_FORM\"))): ?>\n        <script>\n            grecaptcha.ready(function () {\n                grecaptcha.execute(\'<?php print getDolGlobalString(\"MARKETPLACE_GOOGLE_RECAPTCHA_SITE_KEY\"); ?>\', { action: \'submit\' }).then(function (token) {\n                    document.getElementById(\'g-recaptcha-response\').value = token;\n                });\n            });\n        </script>\n    <?php endif ?>\n</div>',1,'2024-03-14 13:51:50',NULL,'2025-01-19 18:13:36',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(197,38,'sicheres-bezahlen','','Sicheres Bezahlen','Sicheres Bezahlen','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n            \n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"about_payement_section\" contenteditable=\"true\">\n				<div class=\"rte\">\n                  <h2>Sicherheit beim Bezahlen</h2>\n                  <p>Wann und weshalb eine Zahlung, wenn die Software eine OpenSource Lizenz (GPL, ...) ist?</p>\n                  <p>Die meisten Produkte auf dem Markt sind kostenlos und können direkt aus ihrem Profil heruntergeladen werden. Deshalb ist in diesen Fällen keine Zahlung erforderlich.</p>\n                  <p>Einige Autoren beschließen jedoch, etwas zu berechnen, für ihre Arbeit. Es gibt kein Problem, die beiden Ansätze bei freier Software widersprechen sich nicht (Preis für die Autoren für den Quellcode einer OpenSource Lizenz):</p>\n                  <p>Der Begriff \"freie Software\" kann sich laut&nbsp;Definition entweder auf die Freiheit oder auf den Preis beziehen. Auf der&nbsp;folgenden Seite der&nbsp;Free Software&nbsp;Foundation können Sie dies gerne nachlesen: <br>\n                    <a href=\"http://www.gnu.org/philosophy/selling.de.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.de.html</a>\n                    <br>\n                    <br>\n                  </p>\n                  <h3>Unsere Angebote für Ihre sichere Zahlung</h3>\n                  <p>\n                    <span lang=\"de\" xml:lang=\"de\">Die Zahlungsdaten werden&nbsp;mit SSL verschlüsselt gesichert <br>\n                    </span>\n                  </p>\n                  <h3>Verwendung von Visa/Mastercard/Paypal</h3>\n                  <p>Die Kreditkartenzahlungen werden von unserer Stripe garantiert.</p>\n                  <p>Die Zahlung durch elektronische Geldbörse sind über den Online-Zahlungsservice Paypal versichert.</p>\n                </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:14:26',NULL,'2025-01-14 01:27:27',NULL,NULL,'page','de',153,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(198,38,'sidebar','','sidebar','sidebar','','<?php // BEGIN PHP\n\nincludeContainer(\"_library_page_lib.php\", 1);\n\n$current_lang = $_SESSION[\'lang\'][\'code\'];\n$current_lang_short_code = $_SESSION[\'lang\'][\'shortcode\'];\n\n$mcid = getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\");\nif (empty($mcid)) {\n  print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_ROOT_CATEGORY_ID\');\n  exit;\n}\n$root_cat_object = new Categorie($db);\n$result = $root_cat_object->fetch($mcid);\n$root_category_id = $root_cat_object->id;\n$root_category_type = $root_cat_object->type;\n\n$current_category_id = GETPOST(\'cat\', \'alpha\');\n// END PHP \n?>\n<!-- BEGIN LEFT SIDEBAR -->\n<div id=\"left_column\" class=\"column col-xs-12 col-sm-3\">\n  <section id=\"left_column_1\">\n    <div id=\"categories_block_left\" class=\"block\">\n      <h2 class=\"title_block\"> <?php print $weblangs->trans(\"sidebarCategories\"); ?> </h2>\n      <div class=\"block_content\">\n        <?php\n        $organized_tree = getOrganizedTree($mcid);\n        if (count($organized_tree) < 1) {\n            print \'<tr class=\"oddeven nobottom\">\';\n            print \'<td colspan=\"3\"><span class=\"opacitymedium\">\' . $weblangs->trans(\"NoSubCat\") . \'</span></td>\';\n            print \'</tr>\';\n        }\n        ?>\n        <ul class=\"tree dhtml\">\n          <?php foreach ($organized_tree as $key => $value) : ?>\n            <?php if ($value[\'label\'] != \"Versions\" && $value[\'label\'] != \"Specials\") : ?>\n              <li>\n                <a href=\"index.php?cat=<?php print $value[\'rowid\']; ?>&title=<?php print dolSlugify($value[\'label\']); ?>&l=<?php print $current_lang_short_code; ?>\" <?php ($current_category_id == $value[\'rowid\']) ? print \'class=\"selected\"\' : \'\'; ?> title=\"\"> <?php print $value[\'label\']; ?> </a>\n                <?php if (isset($value[\'children\'])) : ?>\n                  <ul>\n                    <?php usort($value[\'children\'], build_sorter(\'position\')); ?>\n                    <?php foreach ($value[\'children\'] as $key_children => $value_children) : ?>\n                      <li>\n                        <a href=\"index.php?cat=<?php print $value_children[\'rowid\']; ?>&title=<?php print dolSlugify($value_children[\'label\']); ?>&l=<?php print $current_lang_short_code; ?>\" <?php ($current_category_id == $value_children[\'rowid\']) ? print \'class=\"selected\"\' : \'\'; ?> title=\"<?php print dol_escape_htmltag(strip_tags($value_children[\'description\'])); ?>\"> <?php print $value_children[\'label\']; ?> </a>\n                      </li>\n                    <?php endforeach ?>\n                  </ul>\n                <?php endif ?>\n              </li>\n            <?php endif ?>\n          <?php endforeach ?>\n        </ul>\n      </div>\n    </div>\n  </section>\n          \n  <div id=\"tags_block_left\" class=\"block tags_block\">\n    <p class=\"title_block\"> <?php print $weblangs->trans(\"versions\"); ?> </p>\n    <div class=\"block_content\">\n      <?php\n        $mvcid = getDolGlobalInt(\"MARKETPLACE_VERSIONS_CATEGORY_ID\");\n        if (empty($mvcid)) {\n            print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_VERSIONS_CATEGORY_ID\');\n        } else {\n            $full_version_tree = getOrganizedTree($mvcid, \'label\');\n            if (count($full_version_tree) < 1) {\n                print \'<tr class=\"oddeven nobottom\">\';\n                print \'<td colspan=\"3\"><span class=\"opacitymedium\">\' . $langs->trans(\"NoSubCat\") . \'</span></td>\';\n                print \'</tr>\';\n            }\n        }\n      ?>\n\n      <?php foreach (array_reverse($full_version_tree) as $key => $value) : ?>\n        <?php if ($value[\'rowid\'] != $mvcid) : ?>\n          <a class=\"tag_version\" href=\"index.php?tag=<?php print $value[\'label\']; ?>\" title=\"<?php print $value[\'description\']; ?>\"> <?php print $value[\'label\']; ?> </a>\n        <?php endif ?>\n      <?php endforeach ?>\n    </div>\n  </div>\n\n\n  <div id=\"special_block_right\" class=\"block hideonsmartphone\">\n    <p class=\"title_block\">\n      <a href=\"#\" title=\"Specials\"> <?php print $weblangs->trans(\"specialPromo\"); ?> </a>\n    </p>\n    <div class=\"block_content products-block\">\n      <ul>\n        <?php\n        $mcsid = getDolGlobalInt(\"MARKETPLACE_SPECIAL_CATEGORY_ID\");\n        if (empty($mcsid)) {\n          print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_SPECIAL_CATEGORY_ID\');\n          exit;\n        }\n        $root_cat_object = new Categorie($db);\n        $result = $root_cat_object->fetch($mcsid);\n        $limit = 2;\n        \n        $sql = \"SELECT c.fk_product as id, o.ref, o.ref_ext, ol.label, ol.description, o.datec, o.price_ttc \";\n        $sql .= \"FROM llx_categorie_product as c, \";\n        $sql .= \"llx_product as o, \";\n        $sql .= \"llx_product_lang as ol \";\n        $sql .= \"WHERE o.entity IN (1) AND c.fk_categorie = \".$root_cat_object->id.\" AND c.fk_product = o.rowid AND ol.fk_product = o.rowid \";\n        $sql .= \"AND ol.lang = \'\".$db->escape($current_lang).\"\' AND o.tosell = 1 \";\n        $sql .= \" ORDER BY RAND() \";\n        //$sql .= $db->order(\'datec\', \'DESC\');\n        $sql .= $db->plimit($limit);\n\n        if ($resql = $db->query($sql)) {\n		    $key = 0;\n			while ($product = $resql->fetch_object()) {\n			    $product->element = \"product\";\n			    \n			    $discount = marketplace_check_discount($product->id);\n		        $discounted_price = marketplace_calculate_discounted_price($product->price_ttc, $discount);\n\n                $thumb = getImagePublicURLOfObject($product, 1, \'_small\');\n                ?>\n                <li class=\"clearfix\">\n                    <a class=\"products-block-image\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\">\n                      <img class=\"replace-2x img-responsive width98\" src=\"<?php print $thumb; ?>\" alt=\"\" title=\"<?php print $product->label; ?>\" />\n                    </a>\n                    <div class=\"product-content\">\n                      <h5>\n                        <a class=\"product-name truncate2\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\" title=\"<?php print $product->label; ?>\"> <?php print $product->label; ?> </a>\n                      </h5>\n                      <p class=\"product-description truncate2\">\n                        <?php\n                        if (isset($product->description)) {\n                          print dolPrintHTML(dol_string_nohtmltag($product->description));\n                        }\n                        ?>\n                      </p>\n                      <div class=\"price-box\">\n                            <?php if ($discounted_price != $product->price_ttc): ?>\n                            	<span class=\"price special-price\"> <?php print price($discounted_price); ?> € </span>\n                                <span class=\"old-price\"> <?php print price($product->price_ttc); ?> € </span>\n                            <?php else: ?>\n                                <span class=\"price\"> <?php print price($product->price_ttc); ?> € </span>\n                            <?php endif ?>\n                        <!--<span class=\"price-percent-reduction\">-50%</span>\n        				<span class=\"old-price\"> 300,00 € </span>-->\n                      </div>\n                    </div>\n                </li>\n        <?php \n			}\n		}\n        ?>\n      </ul>\n      <div>\n        <a class=\"btn btn-default button button-small\" href=\"index.php?tag=Specials\" title=\"<?php print $weblangs->trans(\"allSpecials\"); ?>\">\n          <span><?php print $weblangs->trans(\"allSpecials\"); ?> <i class=\"icon-chevron-right right\"></i>\n          </span>\n        </a>\n      </div>\n    </div>\n  </div>\n\n  <div id=\"new-products_block_right\" class=\"block products_block hideonsmartphone\" contenteditable=\"true\">\n    <h4 class=\"title_block\">\n      <a href=\"#\" title=\"New products\"><?php print $weblangs->trans(\"newProducts\"); ?></a>\n    </h4>\n    <div class=\"block_content products-block\">\n      <ul class=\"products\">\n        <?php\n        $result = $root_cat_object->fetch($root_category_id, \"\");\n        if ($result <= 0) {\n          dol_print_error($db, $root_cat_object->error);\n          exit;\n        }\n        $limit = 2;\n        \n        $sql = \"SELECT c.fk_product as id, o.ref, o.ref_ext, ol.label, ol.description, o.datec, o.price_ttc \";\n        $sql .= \"FROM llx_categorie_product as c, \";\n        $sql .= \"llx_product as o, \";\n        $sql .= \"llx_product_lang as ol \";\n        $sql .= \"WHERE o.entity IN (1) AND c.fk_categorie = \".$root_cat_object->id.\" AND c.fk_product = o.rowid AND ol.fk_product = o.rowid \";\n        $sql .= \"AND ol.lang = \'\".$db->escape($current_lang).\"\' AND o.tosell = 1\";\n\n        $delay_for_new = (int) getDolGlobalInt(\'MARKETPLACE_DELAY_FOR_NEW\', 30);\n        $dateTime = new \\DateTime();\n        $interval = new \\DateInterval(\'P\'.$delay_for_new.\'D\');\n        $dateTime->sub($interval);\n        $sql .= \" AND o.datec > \'\" . $dateTime->format(\'Y-m-d H:i:s\') . \"\'\";\n\n        //$sql .= $db->order(\'datec\', \'DESC\');\n        $sql .= \" ORDER BY RAND() \";\n        $sql .= $db->plimit($limit);\n\n        if ($resql = $db->query($sql)) {\n		    $key = 0;\n			while ($product = $resql->fetch_object()) {\n			    $product->element = \"product\";\n			    \n			    $discount = marketplace_check_discount($product->id);\n		        $discounted_price = marketplace_calculate_discounted_price($product->price_ttc, $discount);\n\n                $thumb = getImagePublicURLOfObject($product, 1, \'_small\');\n                ?>\n                <li class=\"clearfix\">\n\n                    <a class=\"products-block-image\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\" title=\"<?php print $product->label; ?>\">\n                      <img class=\"replace-2x img-responsive width98\" src=\"<?php print $thumb; ?>\" alt=\"\" title=\"<?php print $product->label; ?>\" />\n                    </a>\n                    <div class=\"product-content\">\n                      <h5>\n                        <a class=\"product-name truncate2\" href=\"product.php?id=<?php print $product->id; ?>&title=<?php print dolSlugify($product->label); ?>&l=<?php print $current_lang_short_code; ?>\" title=\"<?php print $product->label; ?>\"> <?php print $product->label; ?> </a>\n                      </h5>\n                      <p class=\"product-description truncate2\">\n                        <?php\n                        if (isset($product->description)) {\n                          print dolPrintHTML(dol_string_nohtmltag($product->description));\n                        }\n                        ?>\n                      </p>\n                      <div class=\"price-box\">\n        				<?php if ($discounted_price != $product->price_ttc): ?>\n                        	<span class=\"price special-price\"> <?php print price($discounted_price); ?> € </span>\n                            <span class=\"old-price\"> <?php print price($product->price_ttc); ?> € </span>\n                        <?php else: ?>\n                            <span class=\"price\"> <?php print price($product->price_ttc); ?> € </span>\n                        <?php endif ?>\n                      </div>\n                    </div>\n                </li>\n        <?php \n			} \n        }\n        ?>\n      </ul>\n      <div>\n        <a href=\"index.php?cat=<?php print $root_category_id; ?>&list=new\" title=\"<?php print $weblangs->trans(\"allNewProducts\"); ?>\" class=\"btn btn-default button button-small\">\n          <span><?php print $weblangs->trans(\"allNewProducts\"); ?> <i class=\"icon-chevron-right right\"></i>\n          </span>\n        </a>\n      </div>\n    </div>\n  </div>\n</div>\n<!-- END LEFT SIDEBAR -->',1,'2024-02-02 16:48:47',NULL,'2025-01-24 14:14:36',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(199,38,'terminos-y-condiciones-de-uso_vendedores-de-modulos','','Términos y condiciones de uso - Vendedores de módulos','Términos y condiciones de uso - Vendedores de módulos','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Términos y condiciones de uso para&nbsp;vendedores de módulos</h2>\n                    	<p>&nbsp;</p>\n                    	<h3>Artículo S1</h3>\n                    	<p>Los productos y módulos proporcionados en DoliStore son enviados por cualquier proveedor con una cuenta en la\n                    		plataforma, sin ningún vínculo con la asociación Dolibarr.</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">Sólo pueden\n                    		ser publicados los módulos/extensiones liberados bajo una&nbsp;<a\n                    			style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"\n                    			href=\"https://opensource.org/licenses/alphabetical\" target=\"_blank\">approved OSI licence</a>, y compatible\n                    		con la licencia GPL v3+ Dolibarr si el módulo es una obra derivada (por el uso de componentes o API) de\n                    		Dolibarr.</p>\n                    	<h3></h3>\n                    	<h3>Artículo&nbsp;S2</h3>\n                    	<p>El vendedor, previa presentación de una factura a la asociación Dolibarr, podrá recibir los pagos de las compras.\n                    		Recibirá el 80% de las ganancias obtenidas por la asociación. No se pueden reclamar pagos de las compras antes\n                    		de 1 mes de la misma, y si el total a recibir de todas las ventas no supera los 50 euros.</p>\n                    	<p>El pago se puede realizar :</p>\n                    	<p>- O por transferencia SEPA a una cuenta bancaria en EURO.</p>\n                    	<p>- Ya sea mediante pago con tarjeta (el vendedor debe proporcionar la interfaz para permitir el pago)</p>\n                    	<p>- Ya sea mediante pago a través de Paypal (el vendedor debe proporcionar su cuenta de paypal).</p>\n                    	<p></p>\n                    	<h3>Artículo S3</h3>\n                    	<p>El vendedor debe informar en la descripción del producto toda la información requerida, a saber:<br><br>* Una\n                    		descripción breve y significativa sobre el aporte del módulo.<br>* La versión del módulo<br>* El nombre del\n                    		autor, la licencia.<br>* Si se ofrece soporte y si es así, por qué canal. S<span\n                    			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">i no se\n                    			ofrece soporte, debe indicarse.</span><br>* Versión de Dolibarr con la que es compatible (versión mínima y\n                    		máxima).<br><br>Se puden añadir enlaces para información complementaria, pero sólo en el campo descripción\n                    		larga.<br><br>Si uno de estos puntos no se cumple, o si la versión de Dolibarr es demasiado antigua, la\n                    		asociación se reserva el derecho de eliminar el producto, sin ningún tipo de justificación.</p>\n                    	<p><br> Si el módulo es de pago, el vendedor está obligado a indicar la información de contacto para soporte vía un\n                    		canal válido (e-mail activo, página de soporte en la web del vendedor, etc) así como una descripción en los\n                    		idiomas disponibles (aunque sea un copiar-pegar de la descripción inglesa para los idiomas no soportados). Es\n                    		posible indicar que el soporte solo se ofrece en un solo idioma. No es obligatorio un enlace hacia una demo del\n                    		módulo, aunque es muy recomendable</p>\n                    	<h3 style=\"font-size:12px;font-style:normal;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"></h3>\n                    	<h3 style=\"font-size:12px;font-style:normal;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">Artículo S4\n                    	</h3>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">Cuando varios\n                    		módulos sean muy similares y compatibles con la misma versión de Dolibarr, la asociación se reserva el derecho\n                    		de no validar los módulos presentados después del primero, con el fin de evitar el pegado y copiado del módulo\n                    		(posible gracias a la licencia GPL). Si un módulo no se actualiza en el plazo de cuatro meses desde el\n                    		lanzamiento de una nueva versión de Dolibarr, la asociación aceptará que el módulo sea publicado por otro\n                    		vendedor (no siendo el autor original) que lo haya actualizado para poder ser usado en la última versión de\n                    		Dolibarr, a fin de evitar que algunos módulos se encuentren abandonados. Además, la asociación puede desactivar\n                    		sin previo aviso módulos que solo funcionen en versiones antiguas de Dolibarr.</p>\n                    	<p>&nbsp;</p>\n                    	<h3>¿Por qué un pago si el software tiene una licencia de código abierto (GPL, ...)?</h3>\n                    	<p>La mayoría de los productos disponibles en esta tienda son gratuitos y se pueden descargar directamente. Sin\n                    		necesidad de pagar.</p>\n                    	<p>Sin embargo, algunos autores deciden cobrar algo para distribuir sus trabajos. No hay ningún problema para\n                    		conciliar los dos enfoques (Precio por distribuir el código versus licencia Open Source): La Free Software\n                    		Foundation, que ha creado la licencia GNU GPL, una de las licencias más utilizadas para el software de código\n                    		abierto, permite y fomenta esto. Ofrece algunas explicaciones en esta página:<a\n                    			href=\"http://www.gnu.org/philosophy/selling.html\" target=\"_blank\">\n                    			http://www.gnu.org/philosophy/selling.html</a></p>\n                    	<p>&nbsp;</p>\n                    </div>\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 21:55:38',NULL,'2024-05-06 21:56:23',NULL,NULL,'page','es',202,'','',NULL,'','',0,NULL,NULL),
(200,38,'terminos-y-condicones-de-uso','','Términos y condicones de uso','Términos y condicones de uso','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Términos y condiciones de uso</h2>\n                    	<p>&nbsp;</p>\n                    	<h3>Artículo 1</h3>\n                    	<p>Los productos y módulos proporcionados en DoliStore son enviados por cualquier proveedor con una cuenta en la\n                    		plataforma, sin ningún vínculo con la asociación Dolibarr.</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">Sólo pueden\n                    		ser publicados los módulos/extensiones liberados bajo una&nbsp;<a\n                    			style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"\n                    			href=\"https://opensource.org/licenses/alphabetical\" target=\"_blank\">approved OSI licence</a>, y compatible\n                    		con la licencia GPL v3+ Dolibarr si el módulo es una obra derivada (por el uso de componentes o API) de\n                    		Dolibarr.</p>\n                    	<h3>Artículo 2</h3>\n                    	<p>El precio de venta e impuestos son fijados por el vendedor. La venta (y su comisión), sin embargo, será validada\n                    		después de un período de un mes después de la compra (con el fin de permitir al comprador interactuar con el\n                    		editor del módulo en caso de problemas). Durante este tiempo, la asociación podrá cancelar cualquier venta por\n                    		cualquier razón y sin necesidad de prevenir al vendedor (si ese fuera el caso, aparecería en las estadísticas de\n                    		la cónsola de administración del vendedor). La asociación Dolibarr se queda con el 20% de la venta para\n                    		garantizar los gastos de gestión, gastos de cancelación, o transferencia bancaria. Las cantidades sobrantes se\n                    		utilizarán para financiar el desarrollo de Dolibarr ERP/CRM.</p>\n                    	<h3>Artículo 3</h3>\n                    	<p>El comprador no puede reclamar nada a la asociación Dolibarr, incluso si el producto adquirido no funciona\n                    		correctamente. La asociación Dolibarr no realiza pruebas de calidad de los productos disponibles en la tienda.\n                    		Toda ayuda debe ser solicitada por el comprador a través del canal de ayuda indicada en la descripción del\n                    		producto, si el proveedor la ofrece (información obligatoria en la descripción del producto). La Asociación se\n                    		reserva el derecho de inhabilitar un módulo si causa demasiadas quejas.</p>\n                    	<h3>Artículo 4</h3>\n                    	<p>Una vez se reciba el pago, el comprador puede descargar los archivos de los módulos/productos pedidos desde su\n                    		cuenta, a través de \"Mis pedidos\" o desde un enlace disponible en el correo electrónico recibido por el\n                    		comprador una vez que su pago sea validado.<br><br> El producto puede ser descargado desde el sitio web\n                    		DoliStore durante una duración de 1 año.</p>\n                    	<h3>¿Por qué un pago si el software tiene una licencia de código abierto (GPL, ...)?</h3>\n                    	<p>La mayoría de los productos disponibles en esta tienda son gratuitos y se pueden descargar directamente. Sin\n                    		necesidad de pagar.</p>\n                    	<p>Sin embargo, algunos autores deciden cobrar algo para distribuir sus trabajos. No hay ningún problema para\n                    		conciliar los dos enfoques (Precio por distribuir el código versus licencia Open Source): La Free Software\n                    		Foundation, que ha creado la licencia GNU GPL, una de las licencias más utilizadas para el software de código\n                    		abierto, permite y fomenta esto. Ofrece algunas explicaciones en esta página:<a\n                    			href=\"http://www.gnu.org/philosophy/selling.html\" target=\"_blank\">\n                    			http://www.gnu.org/philosophy/selling.html</a></p>\n                    	<p>&nbsp;</p>\n                    </div>\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 21:46:00',NULL,'2024-05-06 21:46:49',NULL,NULL,'page','es',201,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(201,38,'terms-and-conditions','','Terms and conditions of use','Terms and conditions','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                	<h2>Terms and conditions of use</h2>\n                	<p></p>\n                	<p>&nbsp;</p>\n                	<h3>Rule 1</h3>\n                	<p>Products and modules provided on DoliStore are submitted by any supplier with an account on platform, with no\n                		need to be affiliated to the Dolibarr foundation (this may change in future).</p>\n                	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Only\n                			modules published under an&nbsp;</span><a\n                			style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"\n                			href=\"https://opensource.org/licenses/alphabetical\" target=\"_blank\">approved OSI licence</a>&nbsp;can be\n                		published. Also if your module is a derivative work of Dolibarr&nbsp;(use Dolibarr components, files or API,\n                		this is the case for 99% of modules)&nbsp;your licence must be c<span\n                			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\"><span\n                				style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">ompatible\n                				with the GPL v3+ license of Dolibarr</span>. If license is not provided, you accept to have your module\n                			being distributed under the GPL v3+ licence.</span></p>\n                	<p></p>\n                	<h3>Rule 2</h3>\n                	<p><span>The reference selling price is set by the seller.</span>&nbsp; Any sell is however completely validated\n                		only after a delay of 1 month, after the buying date. During this delay, the foundation can cancel transaction\n                		for any reason and without notifying the seller (if this occurs, seller will see it into its statistics panel\n                		into its seller dashboard area).&nbsp;</p>\n                	<p>The selling price is a reference price without VAT and not the final sale price. At this price, a VAT is added\n                		(that the Dolibarr foundation pays to government). In addition, when selling on DoliStore, vendors agree that\n                		sales made to members of the Dolibarr foundation are done through a reduction defined by the foundation (20%).\n                		The real final purchase price of each sale, appears, excluding VAT, in the detailed sales statistics.</p>\n                	<p>The foundation keep 20% of amount to pay bank charges, resiliation cost and management fees. Remain money will be\n                		used to help the promotion of Dolibarr ERP &amp; CRM.</p>\n                	<p>&nbsp;</p>\n                	<h3>Rule 3</h3>\n                	<p>Once payment is received, the buyer can download ordered modules/products files, from its account are \"My\n                		orders\", or from a link available in email received by buyer once its payment is validated.</p>\n                	<p>The product can be downloaded from DoliStore web site during a duration of 1 year after payment.</p>\n                	<p>&nbsp;</p>\n                	<h3>Rule 4</h3>\n                	<p>The buyer cannot in any case hold responsible the association Dolibarr as for the good functioning or not of the\n                		acquired product, the quality of the documentation which accompanies it or not, nor with the requirement of the\n                		prerequisites necessary to use the product . The association does not ensure quality control of the modules\n                		(except on the form of the package). The association reserves the right to de-validate a module if it causes too\n                		many complaints.</p>\n                	<p>In the event of a problem installing or using the module purchased, any assistance must be sought by the buyer\n                		from the module editor directly, via the support channel described in the product description, if the supplier\n                		provides, information mandatory in the product description (if this information is not available, please alert\n                		the association).</p>\n                	<p>The buyer may possibly obtain a refund under the following conditions:</p>\n                	<p>- The buyer must appear within 1 month after the date of purchase</p>\n                	<p>- The buyer must have first tried to resolve the problem via discussions with the module editor. The emails\n                		exchanged with this money can be sent to the association for proof (to dolistore@dolibarr.org). A period\n                		necessary to allow these exchanges between the buyer and the publisher will be required by the association in\n                		order to maximize the chances of amicable resolutions before the initiation of the cancellation of the sale and\n                		the refund.</p>\n                	<p>&nbsp;&nbsp;</p>\n                	<h3>When and why a payment if software has an Open-Source Licence (GPL, ...) ?</h3>\n                	<p>Most products available on this market place are free of charge and can be downloaded directly from this market\n                		place. No payment is required in this case.</p>\n                	<p>However, some authors decide to charge something to distribute their works. There is no problem to conciliate\n                		both approaches (Price to distribute code versus OpenSource licence): The<strong> Free Software\n                			Foundation</strong>, that has created the GNU GPL Licence, one of the most used licence for OpenSource\n                		software, allows and encourages this, and provides some explanations on this page :<br><a\n                			href=\"http://www.gnu.org/philosophy/selling.html\"\n                			target=\"_blank\">http://www.gnu.org/philosophy/selling.html</a></p>\n                </div>\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-02-02 16:48:47',NULL,'2024-05-06 21:14:02',NULL,NULL,'page','en',NULL,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(202,38,'terms-and-conditions-of-use-module-providers','','Terms and conditions of use - Module providers','','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                	<h2>Terms and conditions of use for module&nbsp;providers</h2>\n                	<p></p>\n                	<p>&nbsp;</p>\n                	<h3>Rule S1</h3>\n                	<p>Products and modules provided on DoliStore are submitted by any supplier with an account on platform, with no\n                		need to be affiliated to the Dolibarr foundation (this may change in future).</p>\n                	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Only\n                			modules published under an&nbsp;</span><a\n                			style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"\n                			href=\"https://opensource.org/licenses/alphabetical\" target=\"_blank\">approved OSI licence</a>&nbsp;can be\n                		published. Also if your module is a derivative work of Dolibarr&nbsp;(use Dolibarr components, files or API,\n                		this is the case for 99% of modules)&nbsp;your licence must be c<span\n                			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\"><span\n                				style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">ompatible\n                				with the GPL v3+ license of Dolibarr</span>. If license is not provided, you accept to have your module\n                			being distributed under the GPL v3+ licence.</span></p>\n                	<p></p>\n                	<h3>Rule S2</h3>\n                	<p>The seller can send an invoice to the Dolibarr foundation, to received payments of its purchased module/products,\n                		1 month after the purchase (this laps of time is used to cancel the payment at the buyer request). The seller\n                		will receive 80% of gains made by the foundation.</p>\n                	<p>A seller can claim money only if total amount is more or equals to 50 euros (for Europe), or 100 euros (for non\n                		euro countries). Requests are limited to 1 per month maximum.</p>\n                	<p>Payment can be made:</p>\n                	<p>- by SEPA transfer to a bank account in EURO.</p>\n                	<p>- Either via card payment (the seller must then provide the interface to allow payment)</p>\n                	<p>- Either by payment via Paypal (the seller must then provide his Paypal account).</p>\n                	<p>&nbsp;</p>\n                	<h3>Rule S3</h3>\n                	<p>A) The seller must provide into product description, all mandatory information, this means at least:</p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">* a short\n                		description.</p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">* module\n                		version</p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"><span\n                			style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">* name of\n                			author and licence.</span></p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"><span\n                			style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">* one\n                			photo (one required, but several recommended)</span></p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">* if help\n                		support is available or not, if yes, how. I<span\n                			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">f no\n                			support is provided, this must appears.</span></p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"></p>\n                	<p>If the module is not free, a valid support link is mandatory. A description of the module is required for all\n                		langues available even if it\'s a copy past of English description for all languages. In the support message, the\n                		seller can say that the support language is only English for exemple. A link to a demo version is not mandatory\n                		but fairly welcome.</p>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"></p>\n                	<p>* the Dolibarr version the module is compatible with (both minimum and maximum version must be provided. Must be\n                		values with format x.y.z, \"dev\" is not allowed as a value since it is not a version and * is allowed only for\n                		third part of version, like x.y.*).</p>\n                	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">B) Rules\n                			on links or mention of other web sites</span></p>\n                	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Additional\n                			information links can be included, but only in the long description field. The number of external links is\n                			limited to 10. Links can refer to an external web site that provide one of the following service\n                			(and&nbsp;exclusively services into this list):<strong> demo, documentation, contact, forums, issue tracker,\n                				code sources or social networks</strong> (so links to another downloadable file or to another market\n                			place is not allowed for example. A link to a not found or 404 error page are also not allowed). </span></p>\n                	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">In\n                			addition, these links must not point to a url or an url leading after redirection to a site whose domain\n                			name does not respect the rules for using the name \"Dolibarr\" or \"Dolistore\" defined&nbsp;<a\n                				href=\"https://wiki.dolibarr.org/index.php/Rules_to_use_the_brand_name_%22Dolibarr%22\">on this\n                				page</a>.&nbsp;If the site or page to which the link points has sub-sections where the same module is\n                			also for sale, the price must not be lower then the one on Dolistore.</span></p>\n                	<p>You can sell your module from any other platform at any price, but it is not allowed to put<strong> on the\n                			dolistore product descriptions or notes</strong>, some links or mentions to other \"selling\" platforms where\n                		your product can also be available. If such links are found somewhere in module\'s description card, the\n                		foundation can remove it from description or completely disable the module or the seller account.</p>\n                	<p>C) Rules on packaging</p>\n                	<p>All module that do not respect conditions explain here : <a\n                			href=\"http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Rules\">https://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Rules</a>\n                		will not be validated and remove from DoliStore</p>\n                	<p>D) Disabling modules</p>\n                	<p>If something is wrong, or if Dolibarr compatible version is too old, the Dolibarr foundation can&nbsp;suspend the\n                		entry without any other reason.&nbsp;If the same module is found to be deactivated 3 times following a violation\n                		of the previous rules, the module will either be permanently deactivated, or kept but the price will be forced\n                		to zero (in accordance with the right to distribute the module for free, attributed by its GPL\n                		license).&nbsp;Likewise if the author of a module does not respect the rules of use of the Dolibarr or DoliStore\n                		brand (See <a\n                			href=\"Likewise%20if%20the%20author%20of%20a%20module%20does%20not%20respect%20the%20rules%20of%20use%20of%20the%20Dolibarr%20or%20DoliStore%20brand%20(See%20https%3A//wiki.dolibarr.org/index.php?title=R%C3%A8gles_d%27utilisation_du_nom_ou_de_la_marque_%25%2022Dolibarr%22_(ou_%22DoliStore%22),%20its%20modules%20may%20also%20be%20withdrawn%20from%20sale%20or%20kept%20but%20with%20a%20price%20forced%20to%20zero%20(in%20accordance%20with%20the%20right%20to%20distribute%20the%20module%20for%20free,%20granted%20by%20its%20GPL%20license).\">here</a>),\n                		its modules may also be withdrawn from sale or kept but with a price forced to zero (in accordance with the\n                		right to distribute the module for free, granted by its GPL license).&nbsp;</p>\n                	<p></p>\n                	<h3>Rule S4</h3>\n                	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">When several\n                		modules, compatible with same version of Dolibarr, are too similar, the foundation reserves the right not to\n                		validate the modules submitted after the first, in order to avoid copying and pasting module (possible by the\n                		GPL). If a module is not updated within 4 months after the release of a new version of Dolibarr, the foundation\n                		will accept the module is published by another vendor (than o<span\n                			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">riginal\n                			author) that had ported the module in the recent version of Dolibarr, in order to avoid that some modules\n                			are abandoned. Furthermore, the association may, without warning, disable modules on too old version of\n                			Dolibarr.</span></p>\n                	<p></p>\n                	\n                	<!--\n                	<h3>Rule S5 - How to appear on home page</h3>\n                	<p>There is some conditions to appear on home page. Modules must match all this rules:</p>\n                	<p>- with a link to documentation</p>\n                	<p>- editor of module must be a Dolibarr Preferred Partner</p>\n                	<p>- maximum 10 modules by partner</p>\n                	<p>- only the one compatible with last stable Dolibarr version</p>\n                	<p>- only one version per module (the first one that has suggested the first module)</p>\n                	<p>- an exception can be done for free modules that are really interesting</p>\n                	<p>Note: rules will be modified to be more strict in the future, to reduce the number of modules on the home page.\n                	</p>\n                	<p>If your modules match all this conditions, you can send a list of your module name/id to dolistore@dolibarr.org\n                		to ask to be on home page.</p>\n                	<p></p>\n                	-->\n                	\n                	\n                	<h3>When and why a payment if software has an Open-Source Licence (GPL, ...) ?</h3>\n                	<p>A lot of products available on this market place are free of charge and can be downloaded directly from this market\n                		place. No payment is required in this case.</p>\n                	<p>However, some authors decide to charge something to distribute their works. There is no problem to conciliate\n                		both approaches (Price to distribute code versus OpenSource licence): The<strong> Free Software\n                			Foundation</strong>, that has created the GNU GPL Licence, one of the most used licence for OpenSource\n                		software, allows and encourages this, and provides some explanations on this page :<br><a\n                			href=\"http://www.gnu.org/philosophy/selling.html\"\n                			target=\"_blank\">http://www.gnu.org/philosophy/selling.html</a></p>\n                </div>\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-04-19 10:28:36',NULL,'2025-01-23 17:10:57',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(203,38,'unser-kontakt','','Unser Kontakt','Unser Kontakt','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n            \n            <section id=\"contact_us_section\" contenteditable=\"true\">\n			<div class=\"rte\">\n              <h2>Kontaktiere uns</h2>\n              <p>Die Dolibarr Foundation bietet diese DoliStore Plattform an, um Anbietern und Anwendern zu helfen, Module oder Erweiterungen für die <a href=\"https://www.dolibarr.de\" target=\"_blank\">Dolibarr ERP/CRM</a>&nbsp;Softwarelösung zu finden. Es wird nur dieser Service angeboten, für die gekauften Produkte wird keine Garantie von der Foundation zur Verfügung gestellt. Die ordnungsgemäße Funktionalität der Produkte gewährleistet der \"jeweilige Softwareentwickler\" (#1). </p>\n              <p></p>\n              <p>Falls Probleme mit einem der Module auftreten sollten, gehen Sie bitte auf die Modulseite und kontaktieren Sie den Autoren wie in der Modulbeschreibung vorgesehen. <br>Es können nur die Autoren des Moduls helfen. Sie sollten immer wenn Sie Fragen oder Probleme haben, diese zuerst kontaktieren. </p>\n              <p>Wenn nach dem Kontakt mit dem Autoren Ihr Problem noch nicht gelöst wurde, bitten wir Sie die Dolibarr Foundation mit den folgenden Informationen (E-Mail: dolistore@dolibarr.org) zu informieren:</p>\n              <p>- die Art des Problems (Modulnamen, Modul-Version, Ihre Version von Dolibarr und eine Beschreibung des Problems)</p>\n              <p>- Eine Zusammenfassung des Austauschs den&nbsp;Sie mit dem Autor hatten (Kopie der gesendeten/empfangen E-Mails)</p>\n              <p>- wenn keine Antwort, das Datum Ihrer&nbsp;letzten Anfrage ( <span class=\"short_text\" id=\"result_box\" lang=\"de\" xml:lang=\"de\">\n                  <span>muss&nbsp;länger als </span>\n                  <span>7 Tage her sein</span>\n                </span>\n                <span class=\"trans-verified-button goog-toolbar-button\" id=\"t-served-community-button\">\n                  <span class=\"jfk-button-img\"></span>\n                </span>)\n              </p>\n              <p>\n                <span lang=\"de\" xml:lang=\"de\">\n                  <span>So</span>\n                  <span>werden wir</span>\n                  <span>die Schritte wie in den&nbsp; <a href=\"/de/content/3-nutzungs_bedingungen_dolistore\">Nutzungsbedingungen</a> beschrieben&nbsp; </span>\n                  <span>durchführen: Modul Deaktivierung, Rückabwicklung ...</span>\n                </span>\n              </p>\n              <p>\n                <span lang=\"de\" xml:lang=\"de\">\n                  <span>\n                    <span>Bedeutet ein Dritter, der Erweiterungen für Benutzer entwickelt</span>\n                  </span>\n                </span>\n              </p>\n              <p>\n                <span lang=\"de\" xml:lang=\"de\">\n                  <span>\n                    <span></span>\n                  </span>\n                </span>\n              </p>\n              <p>\n                <span lang=\"de\" xml:lang=\"de\">\n                  <span>\n                    <span>#1 <strong>\"jeweilige Softwareentwickler\"</strong> bedeutet eine Drittanbieter der&nbsp;für Benutzer Erweiterungen entwickelt </span>\n                  </span>\n                </span>\n              </p>\n            </div>\n			</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:08:30',NULL,'2024-05-06 22:09:15',NULL,NULL,'page','de',164,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
