|
From: <os...@us...> - 2014-08-21 12:30:46
|
Revision: 5215
http://sourceforge.net/p/oscss/svn/5215
Author: oscim
Date: 2014-08-21 12:30:37 +0000 (Thu, 21 Aug 2014)
Log Message:
-----------
[FO] Fix bug in propagation, customers_id in checkout_process
[BO] Fix bug filter in listing page
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/ModTreePage.php
trunk/catalog/admin/includes/modules/pages/orders.php
trunk/catalog/checkout.php
Modified: trunk/catalog/admin/includes/classes/ModTreePage.php
===================================================================
--- trunk/catalog/admin/includes/classes/ModTreePage.php 2014-08-21 08:03:56 UTC (rev 5214)
+++ trunk/catalog/admin/includes/classes/ModTreePage.php 2014-08-21 12:30:37 UTC (rev 5215)
@@ -529,7 +529,9 @@
*/
public static function actionFilter(){
+ $tmp = $_SESSION['filters'][self::$code];
$_SESSION['filters'] =array();
+ $_SESSION['filters'][self::$code] = $tmp;
foreach($_POST['filters']['listfield'] as $key=>$row){
if( $row =='on' )
Modified: trunk/catalog/admin/includes/modules/pages/orders.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/orders.php 2014-08-21 08:03:56 UTC (rev 5214)
+++ trunk/catalog/admin/includes/modules/pages/orders.php 2014-08-21 12:30:37 UTC (rev 5215)
@@ -23,15 +23,6 @@
class orders
extends ModTreePage /// new abstract class for nextgen module
implements
-// InterfaceModule
-// , ExtModConfig
-// , InterfacedTJsonS
-// , InterfacedInnerHtml
-//
-// // Events Interface for display and exec all notification
-// , EventMessInterface
-// , EventNotificationInterface
-
InterfaceModule
// base module config structure
@@ -315,32 +306,7 @@
$mutli=array();
$mutli[] = '<span class="fleft">'.__('action multiple') . ' ' . tep_draw_pull_down_menu('status_multi', array_merge(array(array('id' => '', 'text' => __('text action multiple orders'))), orders::$orders_statuses) ) . __('export: ') . tep_draw_pull_down_menu('modeexport', orders::$export->mode ).'</span> <span class="fleft" style="margin-left:50px;"> '. tep_image_submit('button_confirm.gif', IMAGE_CONFIRM, '' ).'</span>' ;
- /**
- @remarks Active forms filter
- @note
- array[
- // For normalised filter define on method ConvertInitVar
- generic =>
- array (
- 'string'
- // , ....
- );
- mod =>
- array(
- 'title'=>__('@products filter tab manufacturer'),
- 'content'=>tep_get_include_contents('manufacturers/filter.manufacturer'),
- )
- ]
- */
- $tab = array();
- $tab['mod'][]=array(
- 'title'=>__('orders filter tab clause'),
- 'content'=>tep_get_include_contents(__CLASS__.'/filter.clause'),
- );
- $tab['mod'][]=array(
- 'title'=>__('orders filter products tab clause'),
- 'content'=>tep_get_include_contents(__CLASS__.'/filter.products'),
- );
+
/**
@remarks this define menu master module in page
@note use $boutons[action][] = array(params)
@@ -355,15 +321,13 @@
*/
$boutons = array();
-
-
/**
@remarks filter based on status orders
*/
$allclosed = array(DEFAULT_ORDERS_STATUS_COMPLETED =>'on' , DEFAULT_ORDERS_STATUS_ANNULATE =>'on');
if(self::$view =='allclosed'){
- $_SESSION['filters'][__CLASS__]['viewstatus'] = $allclosed;
+ $_SESSION['filters'][self::$code]['viewstatus'] = $allclosed;
}
if(self::$view =='allnoclosed'){
$arr = array();
@@ -373,11 +337,11 @@
if( !in_array( $row['id'] , $rev ) )
$arr[$row['id']] = 'on' ;
- $_SESSION['filters'][__CLASS__]['viewstatus'] = $arr;
+ $_SESSION['filters'][self::$code]['viewstatus'] = $arr;
}
- if(isset($_SESSION['filters'][__CLASS__]['viewstatus']))
- $_SESSION['filters']['viewstatus'] = $_SESSION['filters'] [__CLASS__]['viewstatus'];
+ if(isset($_SESSION['filters'][self::$code]['viewstatus']))
+ $_SESSION['filters']['viewstatus'] = $_SESSION['filters'] [self::$code]['viewstatus'];
else
$_SESSION['filters']['viewstatus'] =array();
@@ -395,22 +359,24 @@
/**
@remarks filter based on date_purchased orders
*/
+
+
if(self::$view =='thisday'){
- $_SESSION['filters'][__CLASS__]['dates']['start'] = date('Y-m-d');
- $_SESSION['filters'][__CLASS__]['dates']['end'] = date('Y-m-d');
+ $_SESSION['filters'][self::$code]['dates']['start'] = date('Y-m-d');
+ $_SESSION['filters'][self::$code]['dates']['end'] = date('Y-m-d');
}
elseif(self::$view =='thisweek'){
- $_SESSION['filters'][__CLASS__]['dates']['start'] = date('Y-m-d', time() - (7 * 24 * 3600));
- $_SESSION['filters'][__CLASS__]['dates']['end'] = date('Y-m-d');
+ $_SESSION['filters'][self::$code]['dates']['start'] = date('Y-m-d', time() - (7 * 24 * 3600));
+ $_SESSION['filters'][self::$code]['dates']['end'] = date('Y-m-d');
}
else {
- if(isset($_SESSION['filters'][__CLASS__]['dates']['start']))
- $_SESSION['filters']['dates']['start'] = $_SESSION['filters'][__CLASS__]['dates']['start'].' 00:00:00';
+ if(isset($_SESSION['filters'][self::$code]['dates']['start']))
+ $_SESSION['filters']['dates']['start'] = $_SESSION['filters'][self::$code]['dates']['start'].' 00:00:00';
else
$_SESSION['filters']['dates']['start'] = date('Y-m-d', strtotime('-60 days') ) .' 00:00:00';
- if(isset($_SESSION['filters'][__CLASS__]['dates']['end']))
- $_SESSION['filters']['dates']['end'] = $_SESSION['filters'][__CLASS__]['dates']['end'].' 23:59:59';
+ if(isset($_SESSION['filters'][self::$code]['dates']['end']))
+ $_SESSION['filters']['dates']['end'] = $_SESSION['filters'][self::$code]['dates']['end'].' 23:59:59';
else
$_SESSION['filters']['dates']['end'] = date('Y-m-d').' 23:59:59';
}
@@ -426,11 +392,36 @@
- if(isset($_SESSION['filters'][__CLASS__]['products']))
- self::$InitInfo['adjust']['sWhere'] .=" AND op.products_id= '".tep_db_input($_SESSION['filters'][__CLASS__]['products'])."'";
+ if(isset($_SESSION['filters'][self::$code]['products']))
+ self::$InitInfo['adjust']['sWhere'] .=" AND op.products_id= '".tep_db_input($_SESSION['filters'][self::$code]['products'])."'";
+ /**
+ @remarks Active forms filter
+ @note
+ array[
+ // For normalised filter define on method ConvertInitVar
+ generic =>
+ array (
+ 'string'
+ // , ....
+ );
+ mod =>
+ array(
+ 'title'=>__('@products filter tab manufacturer'),
+ 'content'=>tep_get_include_contents('manufacturers/filter.manufacturer'),
+ )
+ ]
+ */
+ $tab = array();
+ $tab['mod'][]=array(
+ 'title'=>__('orders filter tab clause'),
+ 'content'=>tep_get_include_contents(__CLASS__.'/filter.clause'),
+ );
+ $tab['mod'][]=array(
+ 'title'=>__('orders filter products tab clause'),
+ 'content'=>tep_get_include_contents(__CLASS__.'/filter.products'),
+ );
-
/**
Call Base Init and construct $InitInfo for process Filter
$listfield string list row in db
@@ -476,27 +467,27 @@
case 'filters':
+
// status orders restric list
+ $_SESSION['filters'][self::$code]['viewstatus'] = array();
foreach($_POST['filters']['viewstatus'] as $key=>$row){
if( $row =='on' )
- $_SESSION['filters'][__CLASS__]['viewstatus'][$key] = 'on';
- else
- unset($_SESSION['filters'][__CLASS__]['viewstatus'][$key]);
+ $_SESSION['filters'][self::$code]['viewstatus'][$key] = 'on';
}
// date order
if(isset($_POST['filters']['dates']) ){
if( tep_not_null($_POST['filters']['dates']['start']))
- $_SESSION['filters'][__CLASS__]['dates']['start'] = tep_date_raw(tep_db_prepare_input($_POST['filters']['dates']['start']));
+ $_SESSION['filters'][self::$code]['dates']['start'] = tep_date_raw(tep_db_prepare_input($_POST['filters']['dates']['start']));
if(tep_not_null($_POST['filters']['dates']['end']))
- $_SESSION['filters'][__CLASS__]['dates']['end'] = tep_date_raw(tep_db_prepare_input($_POST['filters']['dates']['end']));
+ $_SESSION['filters'][self::$code]['dates']['end'] = tep_date_raw(tep_db_prepare_input($_POST['filters']['dates']['end']));
}
if(isset($_POST['filters']['products']) && $_POST['filters']['products'] > 0)
- $_SESSION['filters'][__CLASS__]['products'] = tep_db_prepare_input($_POST['filters']['products']);
+ $_SESSION['filters'][self::$code]['products'] = tep_db_prepare_input($_POST['filters']['products']);
else
- unset($_SESSION['filters'][__CLASS__]['products']);
+ unset($_SESSION['filters'][self::$code]['products']);
$actions = self::GenericAction();
Modified: trunk/catalog/checkout.php
===================================================================
--- trunk/catalog/checkout.php 2014-08-21 08:03:56 UTC (rev 5214)
+++ trunk/catalog/checkout.php 2014-08-21 12:30:37 UTC (rev 5215)
@@ -1,61 +1,110 @@
<?php
/**
- @licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 20/11/11, 22:47
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
+ *\licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ *\portion code Copyright (c) 2002 osCommerce
+ *\package osCSS-2 <www http://www.oscss.org>
+ *\version 2.2.2
+ *\date 31/10/10, 22:59
+ *\author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ *\encode UTF-8
*\file
- *\brief page pre-process order
+ *\brief process checkout , no display ,
+ * this file have not file child i dir content
*/
- require('includes/application_top.php');
+ include('includes/application_top.php');
+ $page->init(basename(__FILE__),$language);
- //! chargement order
- $order = new order;
- $page->add_object('order',$order);
+ if(($path_lg=$page->fix_file(DIR_WS_INCLUDES .'languages/'. $language . '/product.txt',true)) !=false)
+ $page->pile_file_lang($path_lg);
+ if(($path_lg=$page->fix_file(DIR_WS_INCLUDES .'languages/'. $language . '/checkout.txt',true)) !=false)
+ $page->pile_file_lang($path_lg);
- $ACA =$page->new_class('checkout', @$_GET['step']);
+ $aca_modules = new checkout_process();
- $Etape=$ACA->GetCurrentEtape();
- $filepath = 'checkout_'.strtolower(substr($Etape, 2)).'.php';
+ //! ne prend les redirection liée au elements que si session not null ou post et get null block
+ if (count($_SESSION)==0 || ( count($_POST)==0 && count($_GET)==0 ) ){
+ $page->is_registered();
- $page->init($filepath,$language);
+ if (!tep_session_is_registered('sendto')) tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
- if(($path_lg=$page->fix_file(DIR_WS_INCLUDES .'languages/'. $language . '/product.txt',true)) !=false)
- $page->pile_file_lang($path_lg);
- if(($path_lg=$page->fix_file(DIR_WS_INCLUDES .'languages/'. $language . '/checkout.txt',true)) !=false)
- $page->pile_file_lang($path_lg);
+ if (tep_not_null(MODULE_PAYMENT_INSTALLED) && (!tep_session_is_registered('payment')) ) tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
+ }
- $page->force_content($filepath);
+ //! avoid hack attempts during the checkout procedure by checking the internal cartID
+ if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
+ if ($cart->cartID != $cartID) {
+ tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
+ }
+ }
- $page->is_registered();
+// load selected payment module
+ $payment_modules = payment::getInstance($payment);
+
+ $order = new order;
+
+// load the selected shipping module
+ $shipping_modules = shipping::getInstance();
- if(isset($ACA->modules[$Etape])) {
- $BeforeProcess=$ACA->modules[$Etape]->BeforeProcess();
+ /**
+ Before process module ACA
+ */
+ $aca_modules->before_process();
+ /**
+ load the before_process function from the payment modules
+ Execution ligne suivante si before_process !=false
+ */
+ if ( ($pay_mod = $payment_modules->before_process()) == false ){
+
+ // Search or load order total modules
+ if( ($order_total_modules=$page->return_object('order_total')) ==false){
+ $order_total_modules = new order_total;
+ $page->add_object('order_total_modules',$order_total_modules);
+ }
+ /**
+ Si la methode contient une redirection, le reste de de process n'est pas executés
+ */
+ $order_totals = $order_total_modules->process( $order , $price);
+
+ $res=$aca_modules->preventDuplicate( array('order_totals'=>$order_totals,'order'=>$order,'customer_id'=>$customer_id) );
+
+ $insert_id=$res['the_order_id'];
}
+ else {
+ /**
+ Execution apres le before du module
+ et traitement des vars
+ */
+ if (isset($pay_mod) && is_array($pay_mod) ){
+ $insert_id = $pay_mod['insert_id'];
+ if(isset($pay_mod['order_totals'])) $order_totals= @$pay_mod['order_totals'];
+ }
+ }
-// $page->breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(constant('FILENAME_CHECKOUT_'.strtoupper(substr($Etape, 2))), '', 'SSL'));
- $page->post_init(false);
+// load the after_process function from the payment modules
+ $payment_modules->after_process();
+ /**
+ Before process module ACA
+ */
+ $aca_modules->after_process();
- $page->javascript->add_framework("ext/jquery/jquery.min.js");
- $page->javascript->add_script("ext/jquery/jquery.validate.min.js", array('sort'=>30));
+ $ACA =$page->new_class('checkout', '');
+ $ACA->after_process();
- include($page->path_gabarit());
+
+ $cart->reset(true);
+ tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));
require(DIR_WS_INCLUDES . 'application_bottom.php');
-
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2014-08-21 12:59:07
|
Revision: 5218
http://sourceforge.net/p/oscss/svn/5218
Author: oscim
Date: 2014-08-21 12:58:59 +0000 (Thu, 21 Aug 2014)
Log Message:
-----------
[BO] Fix bug in listing and view page tags for php page file
Modified Paths:
--------------
trunk/catalog/admin/includes/gabarit/header_tags.form.gab
trunk/catalog/admin/includes/gabarit/header_tags.listing.gab
trunk/catalog/common/classes/AbstractHeader_tags.php
Modified: trunk/catalog/admin/includes/gabarit/header_tags.form.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/header_tags.form.gab 2014-08-21 12:51:29 UTC (rev 5217)
+++ trunk/catalog/admin/includes/gabarit/header_tags.form.gab 2014-08-21 12:58:59 UTC (rev 5218)
@@ -1,9 +1,9 @@
<?php
/**
- @licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
+ @version 2.2.0
@date 09/01/12, 19:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
Modified: trunk/catalog/admin/includes/gabarit/header_tags.listing.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/header_tags.listing.gab 2014-08-21 12:51:29 UTC (rev 5217)
+++ trunk/catalog/admin/includes/gabarit/header_tags.listing.gab 2014-08-21 12:58:59 UTC (rev 5218)
@@ -1,9 +1,9 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
+ @version 2.2.0
@date 20/10/11, 21:53
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@@ -34,8 +34,11 @@
<td><?php echo $ele['name']; ?></td>
<td class="row_action">
<span class="view fils">
+ <?php printf( CsrtAction::getLink('button_action' , IMAGE_ICON_INFO, 'edit'), '', tep_href_link(FILENAME_FULL_TAG, 'action=edit&name=' . $ele['key'], 'NONSSL'),'' ) ?>
+
<?php if (header_tags::$nameID == $ele['key']) { echo tep_image(DIR_WS_ICONS . 'icon_arrow_right.gif', ''); }
- else { echo '<a href="' . tep_href_link(FILENAME_FULL_TAG, tep_get_all_get_params(array('name','action')) . 'name=' . $ele['key']) . '&action=edit">' . tep_image(DIR_WS_ICONS . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
+ else { echo '<a href="' . tep_href_link(FILENAME_FULL_TAG, tep_get_all_get_params(array('name','action')) . 'name=' . $ele['key']) . '&action=edit">' .
+ tep_image(DIR_WS_ICONS . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
</span>
</td>
</tr>
Modified: trunk/catalog/common/classes/AbstractHeader_tags.php
===================================================================
--- trunk/catalog/common/classes/AbstractHeader_tags.php 2014-08-21 12:51:29 UTC (rev 5217)
+++ trunk/catalog/common/classes/AbstractHeader_tags.php 2014-08-21 12:58:59 UTC (rev 5218)
@@ -1,9 +1,9 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.2
+ @version 2.2.0
@date 30/09/2013, 14:33
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@@ -24,13 +24,14 @@
*/
-abstract class AbstractHeader_tags {
+class AbstractHeader_tags {
+
public static $test_cache = array();
/** Force Extending class to define this method */
- abstract protected function display_edit(&$contents, $id);
- abstract protected function after_update($id);
- abstract protected function after_update_lang($language_id,$id);
+ function display_edit(&$contents, $id){}
+ function after_update($id){}
+ function after_update_lang($language_id,$id){}
/**
constrcuteur
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <hom...@us...> - 2014-09-06 17:59:14
|
Revision: 5227
http://sourceforge.net/p/oscss/svn/5227
Author: homer8173
Date: 2014-09-06 17:59:09 +0000 (Sat, 06 Sep 2014)
Log Message:
-----------
New template Modern Responsive Web Design based on bootstrap
+
New logo and favicon
Modified Paths:
--------------
trunk/catalog/admin/includes/template/oscss/img/1/oscss.png
trunk/catalog/favicon.ico
Added Paths:
-----------
trunk/catalog/install/data/templates/Modern_RWD/
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/boxe.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/content.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/footer.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/header.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/module.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/module.slideshow.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/sidebar.php
trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/ssheader.php
trunk/catalog/install/data/templates/Modern_RWD/cfg/
trunk/catalog/install/data/templates/Modern_RWD/cfg/configuration.php
trunk/catalog/install/data/templates/Modern_RWD/cfg/init.php
trunk/catalog/install/data/templates/Modern_RWD/css/
trunk/catalog/install/data/templates/Modern_RWD/css/bootstrap.css
trunk/catalog/install/data/templates/Modern_RWD/css/images/
trunk/catalog/install/data/templates/Modern_RWD/css/images/footer.jpg
trunk/catalog/install/data/templates/Modern_RWD/css/images/gradient-white.png
trunk/catalog/install/data/templates/Modern_RWD/css/images/logo.png
trunk/catalog/install/data/templates/Modern_RWD/css/images/slider.jpg
trunk/catalog/install/data/templates/Modern_RWD/css/images/sprites.png
trunk/catalog/install/data/templates/Modern_RWD/desc.xml
trunk/catalog/install/data/templates/Modern_RWD/favicon.png
trunk/catalog/install/data/templates/Modern_RWD/fonts/
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular.eot
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular.svg
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular.ttf
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular.woff
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular_1.eot
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular_1.svg
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular_1.ttf
trunk/catalog/install/data/templates/Modern_RWD/fonts/glyphicons-halflings-regular_1.woff
trunk/catalog/install/data/templates/Modern_RWD/includes/
trunk/catalog/install/data/templates/Modern_RWD/includes/boxes/
trunk/catalog/install/data/templates/Modern_RWD/includes/boxes/view_min_cart.php
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/box.categories.gab
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/box.currencies.gab
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/box.generic.gab
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/box.languages.gab
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/pages/
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/pages/listing.gab
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/product/
trunk/catalog/install/data/templates/Modern_RWD/includes/gabarit/product/view.gab
trunk/catalog/install/data/templates/Modern_RWD/includes/languages/
trunk/catalog/install/data/templates/Modern_RWD/includes/languages/fr_FR.txt
trunk/catalog/install/data/templates/Modern_RWD/js/
trunk/catalog/install/data/templates/Modern_RWD/js/bootstrap.min.js
trunk/catalog/install/data/templates/Modern_RWD/js/holder.js
trunk/catalog/install/data/templates/Modern_RWD/js/jquery.1.10.2.min.js
trunk/catalog/install/data/templates/Modern_RWD/js/jquery.validate.1.7.min.js
trunk/catalog/install/data/templates/Modern_RWD/js/less-1.7.3.min.js
trunk/catalog/install/data/templates/Modern_RWD/less/
trunk/catalog/install/data/templates/Modern_RWD/less/_custom.less
trunk/catalog/install/data/templates/Modern_RWD/less/_sprites.less
trunk/catalog/install/data/templates/Modern_RWD/less/alerts.less
trunk/catalog/install/data/templates/Modern_RWD/less/badges.less
trunk/catalog/install/data/templates/Modern_RWD/less/bootstrap.less
trunk/catalog/install/data/templates/Modern_RWD/less/breadcrumbs.less
trunk/catalog/install/data/templates/Modern_RWD/less/button-groups.less
trunk/catalog/install/data/templates/Modern_RWD/less/buttons.less
trunk/catalog/install/data/templates/Modern_RWD/less/carousel.less
trunk/catalog/install/data/templates/Modern_RWD/less/close.less
trunk/catalog/install/data/templates/Modern_RWD/less/code.less
trunk/catalog/install/data/templates/Modern_RWD/less/component-animations.less
trunk/catalog/install/data/templates/Modern_RWD/less/dropdowns.less
trunk/catalog/install/data/templates/Modern_RWD/less/forms.less
trunk/catalog/install/data/templates/Modern_RWD/less/glyphicons.less
trunk/catalog/install/data/templates/Modern_RWD/less/grid.less
trunk/catalog/install/data/templates/Modern_RWD/less/input-groups.less
trunk/catalog/install/data/templates/Modern_RWD/less/jumbotron.less
trunk/catalog/install/data/templates/Modern_RWD/less/labels.less
trunk/catalog/install/data/templates/Modern_RWD/less/list-group.less
trunk/catalog/install/data/templates/Modern_RWD/less/media.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/alerts.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/background-variant.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/border-radius.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/buttons.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/center-block.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/clearfix.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/forms.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/gradients.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/grid-framework.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/grid.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/hide-text.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/image.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/labels.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/list-group.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/nav-divider.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/nav-vertical-align.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/opacity.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/pagination.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/panels.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/progress-bar.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/reset-filter.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/resize.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/responsive-visibility.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/size.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/tab-focus.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/table-row.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/text-emphasis.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/text-overflow.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins/vendor-prefixes.less
trunk/catalog/install/data/templates/Modern_RWD/less/mixins.less
trunk/catalog/install/data/templates/Modern_RWD/less/modals.less
trunk/catalog/install/data/templates/Modern_RWD/less/navbar.less
trunk/catalog/install/data/templates/Modern_RWD/less/navs.less
trunk/catalog/install/data/templates/Modern_RWD/less/normalize.less
trunk/catalog/install/data/templates/Modern_RWD/less/pager.less
trunk/catalog/install/data/templates/Modern_RWD/less/pagination.less
trunk/catalog/install/data/templates/Modern_RWD/less/panels.less
trunk/catalog/install/data/templates/Modern_RWD/less/popovers.less
trunk/catalog/install/data/templates/Modern_RWD/less/print.less
trunk/catalog/install/data/templates/Modern_RWD/less/progress-bars.less
trunk/catalog/install/data/templates/Modern_RWD/less/responsive-embed.less
trunk/catalog/install/data/templates/Modern_RWD/less/responsive-utilities.less
trunk/catalog/install/data/templates/Modern_RWD/less/scaffolding.less
trunk/catalog/install/data/templates/Modern_RWD/less/tables.less
trunk/catalog/install/data/templates/Modern_RWD/less/theme.less
trunk/catalog/install/data/templates/Modern_RWD/less/thumbnails.less
trunk/catalog/install/data/templates/Modern_RWD/less/tooltip.less
trunk/catalog/install/data/templates/Modern_RWD/less/type.less
trunk/catalog/install/data/templates/Modern_RWD/less/utilities.less
trunk/catalog/install/data/templates/Modern_RWD/less/variables.less
trunk/catalog/install/data/templates/Modern_RWD/less/wells.less
trunk/catalog/install/data/templates/Modern_RWD/product.template.php
trunk/catalog/install/data/templates/Modern_RWD/sample.css
trunk/catalog/install/data/templates/Modern_RWD/template.php
trunk/catalog/install/data/templates/Modern_RWD/thumb.jpg
Modified: trunk/catalog/admin/includes/template/oscss/img/1/oscss.png
===================================================================
(Binary files differ)
Modified: trunk/catalog/favicon.ico
===================================================================
(Binary files differ)
Added: trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/boxe.php
===================================================================
--- trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/boxe.php (rev 0)
+++ trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/boxe.php 2014-09-06 17:59:09 UTC (rev 5227)
@@ -0,0 +1,16 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @subpackage Template Modern Responsive web design
+ @package osCSS-2 <www http://www.oscss.org>
+ @author NP <mail n....@op...> <www http://www.oscss.biz>
+ @encode UTF-8
+*/
+?>
+<section id="Box-<?php echo $boxe->name_clean; ?>" class="boxe">
+ <header>
+ <h3 class="boxe title"><?php echo unhtmlentities($boxe->title) ;?></h3>
+ </header>
+
+ <?php echo unhtmlentities($boxe->content) ?>
+</section>
\ No newline at end of file
Added: trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/content.php
===================================================================
--- trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/content.php (rev 0)
+++ trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/content.php 2014-09-06 17:59:09 UTC (rev 5227)
@@ -0,0 +1,38 @@
+<?php
+/**
+ @licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @version 2.2.0
+ @encode UTF-8
+ @file content.php
+ @dir templates/defaut/Childs_tpl/
+*/
+global $page;
+
+require_once($page->oscss_content());
+
+if(!isset($SectionTplPC) || !is_object($SectionTplPC)){
+ $SectionTplPC = new SectionTpl(
+ tep_output_string_protected(tep_get_include_contents('pages/'.substr($page->oscss_body_id(),5 )),false,true) ,
+ __('heading title '.str_replace('_', ' ',substr($page->oscss_body_id(),5 ) ) )
+ );
+}
+
+?>
+
+
+<?php if( $SectionTplPC->GetContinue() ): ?>
+
+<header>
+ <h1 class="main-content title <?php echo $language ;?>"><?php echo unhtmlentities( $SectionTplPC->GetTitle() ); ?></h1>
+</header>
+
+
+<section id="Master<?php $page->the_type() ?>" class="<?php $page->the_type() ?>" >
+
+ <?php echo unhtmlentities( $SectionTplPC->GetContent() ) ?>
+
+</section>
+
+<?php endif; ?>
\ No newline at end of file
Added: trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/footer.php
===================================================================
--- trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/footer.php (rev 0)
+++ trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/footer.php 2014-09-06 17:59:09 UTC (rev 5227)
@@ -0,0 +1,124 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @subpackage Template Modern Responsive web design
+ @package osCSS-2 <www http://www.oscss.org>
+ @author NP <mail n....@op...> <www http://www.oscss.biz>
+ @encode UTF-8
+
+ @note La Licence OpenSource d'osCSS, vous impose de conserver le liens vers le site de la communauté. C'est la seul contrepartie imposé part l'utilisation de cette solution , qui est diffusé gratuitement, dans le cadre de ca licence.
+ Si vous supprimer la référence à osCSS, la commuanté se reserve le droit de faire valoir ces droits aupres des organisme dedié à la protection de cette licence.
+
+ CE template est livré gratuitement pour donner un aperçu des disponibilités du moteur de templates.
+ Veuillez respecter les termes et conditions générales d'utilisation.
+ Vous pouvez employer nos templates sous n'importe quel site Web publiquement accessible selon les termes et conditions générales du contrat Creative Commons
+*/
+global $template;
+?>
+</main>
+
+<div id="push"></div>
+<footer class="footer_white">
+ <div><i class="sprite-row"></i></div>
+ <div class="container haut">
+ <div class="row">
+ <div class="col-sm-3">
+ <h3><span class="sprite-negoce rotator"></span><?= __('negociant en prix footer') ?></h3>
+ <p class="text-muted justified"><?= __('negociant en prix details footer') ?></p>
+ </div>
+ <div class="col-sm-3">
+ <h3><span class="sprite-about rotator"></span><?= __('a propos footer') ?></h3>
+ <p class="text-muted justified"><?= __('a propos details footer') ?></p>
+
+ </div>
+ <div class="col-sm-3">
+ <h3><span class="sprite-contact rotator"></span><?= __('Nous contacter footer') ?></h3>
+ <address class="vcard">
+ <h4 class="name">Open Commerce</h4>
+ <div>
+ <i class="sprite-address"></i>
+ <a class="adr" target="_blank" href="https://www.google.fr/maps/place/34+avenue+de+l%27Europe,+38100+Grenoble">
+ <span class="street-address">34 avenue de l'europe</span>
+ <span class="postal-code">38100</span><br />
+ <span class="locality">Grenoble</span>,
+ <span class="country-name">France</span>
+ </a>
+ </div>
+ <div class="tel"><i class="sprite-tel"></i><a href="tel:+33633323234">+33 (0)6 33 32 32 34</a></div>
+ <div class="email"><i class="sprite-email"></i><a href="mailto:co...@op...">co...@op...</a></div>
+ </address>
+ </div>
+ <div class="col-sm-3">
+ <h3><span class="sprite-follow rotator"></span><?= __('Nous suivre footer') ?></h3>
+ <i class="sprite-facebook rotator"></i><a target="_blank" href="https://www.facebook.com/oscss.org">Facebook</a><br />
+ <i class="sprite-tweeter rotator"></i><a target="_blank" href="https://twitter.com/osCSS">Tweeter</a><br />
+ <i class="sprite-pinterest rotator"></i><a target="_blank" href="http://forums.oscss.org/forum.html"><?= __('Forum footer') ?></a><br />
+ <i class="sprite-googlep rotator"></i><a target="_blank" href="https://plus.google.com/107698144587463763937/posts">Google +</a><br />
+ </div>
+ </div>
+ </div>
+ </footer>
+ <footer class="footer_blue">
+ <div class="container milieu">
+ <div class="row">
+ <div class="col-sm-3">
+ <h3><span class="sprite-info rotator"></span>Informations</h3>
+ <div class="footer_box">
+ <p><a href="<?php echo tep_href_link(FILENAME_TEMPLATE) ?>"><?php echo __('about') ?></a></p>
+ <p><a href="/">Informations de livraison</a></p>
+ <p><a href="/">Vie privée</a></p>
+ <p><a href="/">Conditions générales</a></p>
+ </div>
+ </div>
+ <div class="col-sm-3">
+ <h3><span class="sprite-client rotator"></span>Service client</h3>
+ <div class="footer_box">
+ <p><a href="<?php echo tep_href_link(FILENAME_CONTACT_US) ?>"><?php echo __('contact us') ?></a></p>
+ <p><a href="/">Retours</a></p>
+ <p><a href="/">Livreurs</a></p>
+ <p><a href="<?php echo tep_href_link(FILENAME_SITEMAP) ?>"><?php echo __('sitemap') ?></a></p>
+ </div>
+ </div>
+ <div class="col-sm-3">
+ <h3><span class="sprite-extra rotator"></span>Bonus</h3>
+ <div class="footer_box">
+ <p><a href="/">Nos marques</a></p>
+ <p><a href="/">Bon cadeaux</a></p>
+ <p><a href="/">Offres du moment</a></p>
+ <p><a href="<?php echo tep_href_link('rss.php') ?>"><?php echo __('rss') ?></a></p>
+ </div>
+ </div>
+ <div class="col-sm-3">
+ <h3><span class="sprite-account rotator"></span>Mon compte</h3>
+ <div class="footer_box">
+ <p><a href="/">Espace utilisateur</a></p>
+ <p><a href="/">Historique des commandes</a></p>
+ <p><a href="/">Liste de voeux</a></p>
+ <p><a href="/">Newsletter</a></p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div><i class="sprite-row"></i></div>
+ <div class="container bas">
+ <p class="text-center"><i class="sprite-cb"></i></p>
+ <p class="text-muted text-center">~ Design <a target="_blank" href="http://www.oscss.biz"><b>OpenCommerce</b></a> - ©<?php echo date('Y') ?>
+ ~ Based on <a target="_blank" href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true"><b>@twbootstrap</b></a>
+ ~ Propulsé par <a target="_blank" href="http://www.oscss.org/" title=" osCSS "><b>osCSS-2</b></a> ~</p>
+ </div>
+ </footer>
+ <!-- Placed at the end of the document so the pages load faster -->
+ <script src="<?php echo 'templates/'.$template.'/js/'; ?>bootstrap.min.js"></script>
+
+ <script>
+ $('#nav').affix({ // used to make a magic menu
+ offset: {
+ top: $('header').height()-80
+ }
+ });
+
+ $(".alert").alert()
+ </script>
+
+ <div id="hover_zone"></div>
+ <?php /** Fichier appel bottom page */ $this->draw_file_footer(); ?>
\ No newline at end of file
Added: trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/header.php
===================================================================
--- trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/header.php (rev 0)
+++ trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/header.php 2014-09-06 17:59:09 UTC (rev 5227)
@@ -0,0 +1,93 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @subpackage Template Modern Responsive web design
+ @package osCSS-2 <www http://www.oscss.org>
+ @author NP <mail n....@op...> <www http://www.oscss.biz>
+ @encode UTF-8
+
+
+ Dans Ce fichier, les element du constructeur sont accessible directement, via la variable this.
+ Chaque sous object est nommé comme la variable habituelle
+ ex: $breadcrumb == $this->breadcrumb
+
+ Les variable local, de la page application top par exemple, eux ne le sont pas. Tout les appel ici, doit utiliser l'object constructeur
+
+ La configuration du theme: editer le fichier /cfg/init.php
+
+
+ @note
+ Ce fichier assure le chargement de l'entete de page, et des element qu'il doit contenir (css , javascript, meta, title) de maniere dynamqiue.
+ En générale, il n'est pas necessaire de modifié celui ci .
+
+ Les variable accessible au sein de ce fichier pour traité les parametre sont:
+ - $page : object contrusteur
+ - $load : configuration fournis en arguement de l'appel de ce fichier
+
+
+ C'est le fichier de template Master, qui est chargée de l'appel de ce fichier.
+ Pour intégrer celui ci dans u fichier master il est necessaire d'utiliser cette forme
+
+ echo $page->tep_get_header('file='.$page->the_var('PathChildGab').'header') ;
+
+ L'arguement est optionnel, il permet le cas echeants de transmettre un chemin autre que le chemin par default
+ Sans arguement la function cherche a charger un fichier header.php palcé à la racine du theme
+*/
+
+?>
+<!DOCTYPE html>
+<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
+<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
+<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
+<html>
+<head>
+ <meta charset="<?php echo CHARSET; ?>">
+ <title><?php echo $page->GetHtmlMeta(); ?></title>
+ <meta name="description" content="<?php echo $page->GetHtmlMeta('description'); ?>" />
+ <meta name="keywords" content="<?php echo $page->GetHtmlMeta('keywords'); ?>" />
+ <meta http-equiv="content-type" content="text/html; charset=<?php echo CHARSET; ?>" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="author" content="oscim"/>
+ <meta name="reply-to" content="<?php echo HEAD_REPLY_TAG_ALL ?>" />
+ <meta name="robots" content="all" />
+ <meta name="generator" content="osCSS-2" />
+
+ <base href="<?php echo tep_get_httpdir() ; ?>" />
+ <!--[if lte IE 8]>
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+
+ <script type="text/javascript" src="<?php echo 'templates/'.$template.'/js/'; ?>jquery.1.10.2.min.js"></script>
+ <script type="text/javascript" src="<?php echo 'templates/'.$template.'/js/'; ?>jquery.validate.1.7.min.js"></script>
+ <script type="text/javascript" src="<?php echo 'templates/'.$template.'/js/'; ?>less-1.7.3.min.js" ></script>
+ <script type="text/javascript" src="includes/general.js" ></script>
+ <?php /**
+ @remarks Cette fonction doit necessairement être chargée lors de l'appel du gabarit,
+ sans quoi l'initialisation du template n'et pas achevé
+ */
+ $this->draw_file_header(); ?>
+
+ <link href='http://fonts.googleapis.com/css?family=Raleway:300,400,600,700' rel='stylesheet' type='text/css' />
+ <link href='http://fonts.googleapis.com/css?family=Oswald:700,400' rel='stylesheet' type='text/css'>
+ <link href='<?php echo 'templates/'.$template.'/css/'; ?>bootstrap.css' rel='stylesheet' type='text/css' media="screen" />
+ <link rel="shortcut icon" type="images/x-icon" href="favicon.ico" />
+ <link rel="alternate" type="application/rss+xml" title="global" href="<?php echo tep_get_httpdir().'rss.php' ?>" />
+ <link rel="canonical" href="<?php echo $page->GetHtmlMeta('canonical'); ?>" />
+ <script>
+
+ $( document ).ready(function() {
+ // page home and others
+ $( ".miniature" ).mousemove(function( event ) {
+ source=$(this).attr("src");
+ if(source!=undefined){
+ $("#hover_zone").html("<img src='"+source+"' />");
+ $("#hover_zone").css({ left: (event.pageX+15)+"px",top: (event.pageY-20)+"px"});
+ $("#hover_zone").show();
+ }
+ }).mouseleave(function(){$("#hover_zone").hide();});
+ });
+ </script>
+</head>
+ <body id="<?php echo page::oscss_body_id() ; ?>" class="<?php echo 'Type_'.$page->the_type(); ?> <?php echo 'Class_'.$page->the_typeClass('class'); ?>">
+
Added: trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/module.php
===================================================================
--- trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/module.php (rev 0)
+++ trunk/catalog/install/data/templates/Modern_RWD/Childs_tpl/module.php 2014-09-06 17:59:09 UTC (rev 5227)
@@ -0,0 +1,161 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.2.0
+ @date 12/11/2011, 19:30
+ @author NP <mail n....@op...> <www http://www.oscss.biz>
+ @encode UTF-8
+*/
+global $load;
+
+?>
+
+<hr class="sprite-row">
+ <section class="module panel panel-default">
+ <?php if($load->module =='child' && tep_not_null($themodule->module_db->title) ) : ?>
+ <header>
+ <h4 class="main title"><?php echo unhtmlentities($themodule->module_db->title) ;?></h4>
+ </header>
+ <?php endif; ?>
+
+ <?php if(isset($themodule->module_db->text)): ?>
+ <p><?php echo unhtmlentities($themodule->module_db->text) ;?></p>
+ <?php endif; ?>
+
+
+ <?php if ( isset($themodule->module_db->split) && ($themodule->module_db->split->number_of_rows > 0) && (in_array(PREV_NEXT_BAR_LOCATION ,array('1','3') )) ) { ?>
+ <div class="panel-heading" role="toolbar">
+ <div class="row">
+ <div class="col-xs-3 vcenter"><?php echo TEXT_RESULT_PAGE ?></div>
+ <div class="col-xs-3 vcenter">
+ <?php echo $themodule->module_db->split->display_count(TEXT_DISPLAY_NUMBER_OF); ?>
+ </div>
+ <div class="col-xs-3 vcenter">
+ <?= $themodule->module_db->split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?>
+ </div>
+ <div class="col-xs-3 form-group form-group-sm">
+ <div class="input-group">
+ <div class="input-group-addon">Trier par </div>
+ <select class="form-control input-sm">
+ <option value="best-seller">Meilleures ventes</option>
+ <option value="new">Nouveauté</option>
+ <option value="price-up">Prix croissant</option>
+ <option value="price-down">Prix décroissant</option>
+ <option value="alpha-up">Ordre alphabétique</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ </div>
+ <?php } ?>
+
+
+ <?php /**
+ * Loop Data
+ */
+ $i = 0; foreach($themodule->module_db->content as $ele): ?>
+
+ <?php if( $i%3 ==0 ) : ?>
+ <?php if( $i>0 ) : ?>
+ </div>
+ <?php endif; ?>
+ <div class="row">
+ <?php endif; ?>
+
+
+ <div class=" one <?php echo $ele->data ?>">
+
+
+
+ <?php if($ele->data =='product'): /** PRODUCTS */ ?>
+
+ <article class="produit col-sm-4">
+ <div class="innerblock">
+ <p>
+ <span class="information label label-danger">New</span>
+ <a class="text-center main-link" href="<?= $ele->GetHref() ?>" title="$ele->GetTitle()">
+ <?= tep_image(DIR_WS_IMAGES . $ele->GetImage(), $ele->GetTitle(), $page->_conf_value('SMALL_IMAGE_WIDTH'), $page->_conf_value('SMALL_IMAGE_HEIGHT')) ?>
+ <span class="center-block"><strong><?= $ele->GetName() ?></strong></span>
+ <?php if (tep_not_null( $ele->GetPrice() ) && $page->_draw_in_page('PRODUCT_LIST_PRICE')) { ?>
+ <span class="center-block"><?= print_products_price_rv($ele) ?></span>
+ <?php } ?>
+ <span class="follow-me"><strong><?= __('Voir ce produit') ?></strong></span>
+ </a>
+ </p>
+ <div class="images-extra">
+ <ul class="list-group">
+ <li class="list-group-item">
+ <a class="text-center" href="<?= $ele->GetHref() ?>" title="$ele->GetTitle()">
+ <?= tep_image(DIR_WS_IMAGES . $ele->GetImage(), $ele->GetTitle(), $page->_conf_value('SMALL_IMAGE_WID...
[truncated message content] |
|
From: <hom...@us...> - 2014-09-15 23:05:42
|
Revision: 5233
http://sourceforge.net/p/oscss/svn/5233
Author: homer8173
Date: 2014-09-15 23:05:34 +0000 (Mon, 15 Sep 2014)
Log Message:
-----------
New themplate :
login modifications + language files fix
Modified Paths:
--------------
trunk/catalog/common/classes/formUtility.php
trunk/catalog/includes/languages/fr_FR/account.txt
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/css/bootstrap.css
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/less/_custom.less
Added Paths:
-----------
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/account/
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/account/create.gab
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/account/createfull.gab
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/account/createsuccess.gab
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/account/login.gab
Modified: trunk/catalog/common/classes/formUtility.php
===================================================================
--- trunk/catalog/common/classes/formUtility.php 2014-09-15 08:04:08 UTC (rev 5232)
+++ trunk/catalog/common/classes/formUtility.php 2014-09-15 23:05:34 UTC (rev 5233)
@@ -14,7 +14,7 @@
/**
@var string for create html display required input
*/
- protected static $required = '<span class="required"> * </span>';
+ protected static $required = '<span class="input-group-addon required"><i class="fa fa-asterisk text-danger"></i></span>';
/**
*/
Modified: trunk/catalog/includes/languages/fr_FR/account.txt
===================================================================
--- trunk/catalog/includes/languages/fr_FR/account.txt 2014-09-15 08:04:08 UTC (rev 5232)
+++ trunk/catalog/includes/languages/fr_FR/account.txt 2014-09-15 23:05:34 UTC (rev 5233)
@@ -178,14 +178,14 @@
$lang['@login password forgotten %s'] = "Si vous avez oublié votre mot de passe; %s ";
$lang['@login password forgotten text'] = "Cliquez ici.";
- $lang['image button login'] = "Continuer";
+ $lang['image button login'] = "S'authentifier";
$lang['image button create'] = "Créer un compte";
/* create */
$lang['@login heading new customer'] = "Créer un compte";
$lang['@login text new customer introduction'] = "En créant votre compte sur " . STORE_NAME . " vous pourrez faire vos achats plus rapidement, garder votre panier d'une visite à l'autre et suivre vos commandes.";
- $lang['@login text new customer'] = "Nouveau client";
- $lang['@login LegendCreatAccount'] = "S'enregister";
+ $lang['@login text new customer'] = "Accéder à mon compte";
+ $lang['@login LegendCreatAccount'] = "S'enregistrer";
$lang['@login heading title new customers'] = "Créer un compte";
$lang['@login text visitors cart'] = "";// "<strong class=\"errorText\">REMARQUE :</strong> Le contenu de votre "panier visiteurs" sera ajouté à celui de votre "panier membres" dès que vous aurez ouvert une session. <a href=\"javascript:session_win();\">[Plus d'info]</a>";
Modified: trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/css/bootstrap.css
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/css/bootstrap.css 2014-09-15 08:04:08 UTC (rev 5232)
+++ trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/css/bootstrap.css 2014-09-15 23:05:34 UTC (rev 5233)
@@ -1,4 +1,4 @@
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2014-11-30 11:06:29
|
Revision: 5241
http://sourceforge.net/p/oscss/svn/5241
Author: oscim
Date: 2014-11-30 11:06:20 +0000 (Sun, 30 Nov 2014)
Log Message:
-----------
Fix process cart
Add method in checkout_process for manipulate type of orders
Fix history for restrict type listen in history public page
Modified Paths:
--------------
trunk/catalog/common/classes/cart/CartStockageCustomer.class.php
trunk/catalog/common/classes/shoppingCart.php
trunk/catalog/includes/classes/checkout_process.php
trunk/catalog/includes/modules/account/history.php
Modified: trunk/catalog/common/classes/cart/CartStockageCustomer.class.php
===================================================================
--- trunk/catalog/common/classes/cart/CartStockageCustomer.class.php 2014-11-29 07:30:07 UTC (rev 5240)
+++ trunk/catalog/common/classes/cart/CartStockageCustomer.class.php 2014-11-30 11:06:20 UTC (rev 5241)
@@ -177,8 +177,7 @@
$DB = Database::getInstance();
$products_query = $DB->query($sql);
-
-
+
$list = array();
foreach($products_query->fetchAllAssoc() as $products) {
@@ -186,6 +185,11 @@
'qty'=> $products['customers_basket_quantity'],
);
+ if(!$products_id_string) {
+ $products_id_string = tep_get_prid($products['products_id']);
+ $option = ( count(tep_get_prid_array($products['products_id']))>0 ? 1 : 0 );
+ }
+
// attributes
if( $products_id_string && $option > 0) {
$sql="select cba.products_options_id as options_id, cba.products_options_value_id as value_id, cba.products_options_value_text, po.products_options_type as type from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " cba LEFT JOIN ".TABLE_PRODUCTS_OPTIONS." po ON(cba.products_options_id = po.products_options_id ) where cba.customers_id = '" . (int)$_SESSION['customer_id'] . "' and cba.products_id = '" . tep_db_input($products['products_id']) . "' ";
Modified: trunk/catalog/common/classes/shoppingCart.php
===================================================================
--- trunk/catalog/common/classes/shoppingCart.php 2014-11-29 07:30:07 UTC (rev 5240)
+++ trunk/catalog/common/classes/shoppingCart.php 2014-11-30 11:06:20 UTC (rev 5241)
@@ -264,39 +264,39 @@
if ($this->in_cart($products_id_string)==true)
$Prefix = 'Update';
- if (is_array($attributes)) {
- reset($attributes);
- while (list($option, $value) = each($attributes)) {
- $attr_value = NULL;
- $blank_value = FALSE;
- if (strstr($option, TEXT_PREFIX)) {
- if (trim($value) == NULL) {
- $blank_value = TRUE;
- } else {
- $option = substr($option, strlen(TEXT_PREFIX));
- $attr_value = htmlspecialchars(stripslashes($value), ENT_QUOTES);
-
- if($Prefix =='Set')
- $value = (isset($_POST['Valueid'][$option])? $_POST['Valueid'][$option]: $option);
- else
- $value = (isset($_POST['Valueid'][$products_id_string][$option])? $_POST['Valueid'][$products_id_string][$option]: $option);
- }
- }
- // adjust for multi value for one option
- elseif (is_array($value)) {
- foreach($value as $k=>$v)
- $tmp_value[$k] = htmlspecialchars(stripslashes($v), ENT_QUOTES);
+ if (is_array($attributes)) {
+ reset($attributes);
+ while (list($option, $value) = each($attributes)) {
+ $attr_value = NULL;
+ $blank_value = FALSE;
+ if (strstr($option, TEXT_PREFIX)) {
+ if (trim($value) == NULL) {
+ $blank_value = TRUE;
+ } else {
+ $option = substr($option, strlen(TEXT_PREFIX));
+ $attr_value = htmlspecialchars(stripslashes($value), ENT_QUOTES);
+
+ if($Prefix =='Set')
+ $value = (isset($_POST['Valueid'][$option])? $_POST['Valueid'][$option]: $option);
+ else
+ $value = (isset($_POST['Valueid'][$products_id_string][$option])? $_POST['Valueid'][$products_id_string][$option]: $option);
+ }
+ }
+ // adjust for multi value for one option
+ elseif (is_array($value)) {
+ foreach($value as $k=>$v)
+ $tmp_value[$k] = htmlspecialchars(stripslashes($v), ENT_QUOTES);
- $attr_value = implode(',',$tmp_value);
- }
+ $attr_value = implode(',',$tmp_value);
+ }
- if (!$blank_value)
- $this->CallerStockage($Prefix.'Attribute',$products_id_string, $option, $value, $attr_value);
+ if (!$blank_value)
+ $this->CallerStockage($Prefix.'Attribute',$products_id_string, $option, $value, $attr_value);
- }
- }
+ }
+ }
- $this->CallerStockage($Prefix,$products_id_string, $qty, @$special_class);
+ $this->CallerStockage($Prefix,$products_id_string, $qty, @$special_class);
// }
// assign a temporary unique ID to the order contents to prevent hack attempts during the checkout procedure
@@ -420,18 +420,18 @@
'price' => (($special)? $res_price['sprice_ht'] :$res_price['price_ht']),
'quantity' => $product['qty'],
- 'weight' => $objectProduct->GetWeight() +( isset($content[$products_id]['attributes']) ?(float)product::get_attributes_weight($products_id, $content[$products_id]['attributes']) : 0) ,
+ 'weight' => $objectProduct->GetWeight() +( isset($product['attributes']) ?(float)product::get_attributes_weight($products_id, $product['attributes']) : 0) ,
'final_price' => (($special)? $res_price['sprice_ht'] :$res_price['price_ht']),
'final_price_ttc' => (($special)? $res_price['sprice_ttc'] :$res_price['price_ttc']),
'total_line' => $res_price['total_line'],
'total_line_ttc' => $res_price['total_line_ttc'],
'tax_class_id' => $objectProduct->GetTaxClassId(),
- 'attributes' => (isset($content[$products_id]['attributes']) ? $content[$products_id]['attributes'] : ''),
- 'attributes_values' => (isset($content[$products_id]['attributes_values']) ? $content[$products_id]['attributes_values'] : ''),
+ 'attributes' => (isset($product['attributes']) ? $product['attributes'] : ''),
+ 'attributes_values' => (isset($product['attributes_values']) ? $product['attributes_values'] : ''),
- 'special_class'=> (isset($content[$products_id]['special_class'])? $content[$products_id]['special_class'] : ''),
+ 'special_class'=> (isset($product['special_class'])? $product['special_class'] : ''),
-// 'group' => (isset($content[$products_id]['group'])? (array)$content[$products_id]['group'] : false),
+// 'group' => (isset($product['group'])? (array)$product['group'] : false),
);
// if(isset($tmp['group']['id']))
Modified: trunk/catalog/includes/classes/checkout_process.php
===================================================================
--- trunk/catalog/includes/classes/checkout_process.php 2014-11-29 07:30:07 UTC (rev 5240)
+++ trunk/catalog/includes/classes/checkout_process.php 2014-11-30 11:06:20 UTC (rev 5241)
@@ -51,10 +51,13 @@
@var array tableau de table
*/
private static $tables;
+ /**
+ @var array tableau de table
+ */
+ private static $type = 0;
-
/**
@fn __construct($order_id='',$table='')
@brief Charge les module aca specifique au porduits
@@ -103,6 +106,13 @@
/*if(tep_not_null($order_id))*/ self::$Id=$this->the_order_id=(int)$order_id;
}
+
+ /**
+ @brief Fix current type of order
+ */
+ public static function SetTypeOrder( $type ){
+ self::$type = $type;
+ }
/**
@fn GetMode()
@@ -527,7 +537,7 @@
$sql_data_array = array(
'holding_origin_id'=>(int)$pre_order_id,
- 'orders_type' => 0,
+ 'orders_type' => self::$type ,
'orders_ref' => tep_db_input( $ref ),
'orders_prefix' => tep_db_input($order['orders_prefix']), // obsolete
'currency' => tep_db_input($order['currency']),
Modified: trunk/catalog/includes/modules/account/history.php
===================================================================
--- trunk/catalog/includes/modules/account/history.php 2014-11-29 07:30:07 UTC (rev 5240)
+++ trunk/catalog/includes/modules/account/history.php 2014-11-30 11:06:20 UTC (rev 5241)
@@ -53,7 +53,7 @@
*/
function __construct(){
$this->code =__CLASS__;
- @$this->type = self::$type;
+ $this->type = self::$type;
$this->title = __('module history text title');
$this->description = __('module history text description') ;
$this->sort_order = (defined('MODULE_ACA_HISTORY_SORT_ORDER')) ? MODULE_ACA_HISTORY_SORT_ORDER : 0;
@@ -160,7 +160,7 @@
switch(self::$action){
case 'display_view':
- $sql="SELECT o.orders_id,o.orders_ref, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s WHERE o.customers_id = '" . (int)$cID . "' AND o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' ORDER BY orders_id DESC";
+ $sql="SELECT o.orders_id,o.orders_ref, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s WHERE o.customers_id = '" . (int)$cID . "' AND orders_type = 0 AND o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' ORDER BY orders_id DESC";
self::$history_split = new splitPageResults($sql, MAX_DISPLAY_ORDER_HISTORY);
$_query = $DB->query(self::$history_split->sql_query);
@@ -206,7 +206,7 @@
default:
- $orders_query = tep_db_query("select o.orders_id,o.orders_ref, o.date_purchased, o.delivery_name, o.delivery_country, o.billing_name, o.billing_country, ot.text as order_total, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s where o.customers_id = '" . (int)$cID . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id and s.language_id = '" . (int)$languages_id . "' AND status_type='orders' ORDER BY orders_id desc limit 1");
+ $orders_query = tep_db_query("select o.orders_id,o.orders_ref, o.date_purchased, o.delivery_name, o.delivery_country, o.billing_name, o.billing_country, ot.text as order_total, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s where o.customers_id = '" . (int)$cID . "' AND orders_type = 0 and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id and s.language_id = '" . (int)$languages_id . "' AND status_type='orders' ORDER BY orders_id desc limit 1");
$result = $orders_query->fetchAssoc();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2014-12-17 10:26:40
|
Revision: 5242
http://sourceforge.net/p/oscss/svn/5242
Author: oscim
Date: 2014-12-17 10:26:38 +0000 (Wed, 17 Dec 2014)
Log Message:
-----------
change id in install
adjust config and file fr
Modified Paths:
--------------
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql
Added Paths:
-----------
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_55.txt
Removed Paths:
-------------
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt
Deleted: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt 2014-11-30 11:06:20 UTC (rev 5241)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt 2014-12-17 10:26:38 UTC (rev 5242)
@@ -1,37 +0,0 @@
-<?php
-/**
- @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.2.0
- @date 24/01/2014, 11:18
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
- @dir admin/includes/languages/fr_FR/modules/configuration/
-*/
-$lang['modconfig heading title 128']="Environement" ;
-
-$lang['USE_LOCAL_GENERAT_PDF_S']="Generation des pdf(commande/BL..)" ;
-$lang['USE_LOCAL_GENERAT_PDF_L']="Utiliser un outils externe pour la generation des document pdf, disponible coté public et privé" ;
-
-$lang['USE_MODELE_PDF_S']="Choix du modele de gabarit a utiliser" ;
-$lang['USE_MODELE_PDF_L']="Vous Pouver ajouter et modifier les modeles dans Documents" ;
-
-
-$lang['DATATYPES_S']="La liste des datatypes actif" ;
-$lang['DATATYPES_L']="L'ordre de la liste à son importance, surtout dans le cas de datatype utilisant les mêmes params GET pour être detecté; Respecter les recommendations suivante:<br />
-- la liste doit commencer par 'error' qui arrete les tests et ou contrôle est prend en charge les erreur d'url de page ou d'id, <br />
-- ce terminer par 'home', qui est defini par le fait qu'aucun autre module ne prend la main avanat lui <br />
-- les datatype 'Rootlisting' qui sont des datatype transversaux, doivent ce situer apres les datatypes qui sont leur enfants (product avant categorie ou manufacturer)<br />
-<br />
-note: Les datatypes actif, doivent avoir l'ensemble de leur ficheir présent pur fonctioner. Si le fichier principal du datatype, n'est pas présent, coté public il sera désactiver, mais pas coté admin. " ;
-
-$lang['DATATYPES_DEFAULT_NOSELECTED_S']="le datatype par defaut" ;
-$lang['DATATYPES_DEFAULT_NOSELECTED_L']="definit le datatype qui sera affiché par defaut" ;
-
-$lang['DATATYPES_ROOTLISTING_MANUFACTURER_S']="les datatypes pris en charge par le datatype manufacturer" ;
-$lang['DATATYPES_ROOTLISTING_MANUFACTURER_L']="la liste des datatypes couplé aux les fabricants" ;
-
-$lang['DATATYPES_ROOTLISTING_FEATURED_S']="les datatypes pris en charge par le datatype featured" ;
-$lang['DATATYPES_ROOTLISTING_FEATURED_L']="la liste des datatypes couplé aux les featured" ;
-
-?>
\ No newline at end of file
Copied: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_55.txt (from rev 5238, trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt)
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_55.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_55.txt 2014-12-17 10:26:38 UTC (rev 5242)
@@ -0,0 +1,37 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.2.0
+ @date 24/01/2014, 11:18
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @dir admin/includes/languages/fr_FR/modules/configuration/
+*/
+$lang['modconfig heading title 55']="Environement" ;
+
+$lang['USE_LOCAL_GENERAT_PDF_S']="Generation des pdf(commande/BL..)" ;
+$lang['USE_LOCAL_GENERAT_PDF_L']="Utiliser un outils externe pour la generation des document pdf, disponible coté public et privé" ;
+
+$lang['USE_MODELE_PDF_S']="Choix du modele de gabarit a utiliser" ;
+$lang['USE_MODELE_PDF_L']="Vous Pouver ajouter et modifier les modeles dans Documents" ;
+
+
+$lang['DATATYPES_S']="La liste des datatypes actif" ;
+$lang['DATATYPES_L']="L'ordre de la liste à son importance, surtout dans le cas de datatype utilisant les mêmes params GET pour être detecté; Respecter les recommendations suivante:<br />
+- la liste doit commencer par 'error' qui arrete les tests et ou contrôle est prend en charge les erreur d'url de page ou d'id, <br />
+- ce terminer par 'home', qui est defini par le fait qu'aucun autre module ne prend la main avanat lui <br />
+- les datatype 'Rootlisting' qui sont des datatype transversaux, doivent ce situer apres les datatypes qui sont leur enfants (product avant categorie ou manufacturer)<br />
+<br />
+note: Les datatypes actif, doivent avoir l'ensemble de leur ficheir présent pur fonctioner. Si le fichier principal du datatype, n'est pas présent, coté public il sera désactiver, mais pas coté admin. " ;
+
+$lang['DATATYPES_DEFAULT_NOSELECTED_S']="le datatype par defaut" ;
+$lang['DATATYPES_DEFAULT_NOSELECTED_L']="definit le datatype qui sera affiché par defaut" ;
+
+$lang['DATATYPES_ROOTLISTING_MANUFACTURER_S']="les datatypes pris en charge par le datatype manufacturer" ;
+$lang['DATATYPES_ROOTLISTING_MANUFACTURER_L']="la liste des datatypes couplé aux les fabricants" ;
+
+$lang['DATATYPES_ROOTLISTING_FEATURED_S']="les datatypes pris en charge par le datatype featured" ;
+$lang['DATATYPES_ROOTLISTING_FEATURED_L']="la liste des datatypes couplé aux les featured" ;
+
+?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2014-11-30 11:06:20 UTC (rev 5241)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2014-12-17 10:26:38 UTC (rev 5242)
@@ -342,32 +342,32 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('SHOW_COUNTS_S', 'SHOW_COUNTS', 'false', 'SHOW_COUNTS_L', '46', '0', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),', '3');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified,date_added, use_function, set_function) values ('NOT_RECUP_CASSE_IN_TXT_CATEGORIES_S', 'NOT_RECUP_CASSE_IN_TXT_CATEGORIES', 'false', 'NOT_RECUP_CASSE_IN_TXT_CATEGORIES_L', '46', '1', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),');
--- 128 General environement
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_PDF_S', 'USE_LOCAL_GENERAT_PDF', 'false', 'USE_LOCAL_GENERAT_PDF_L', '128', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_MODELE_PDF_S', 'USE_MODELE_PDF', 'harry', 'USE_MODELE_PDF_L', '128', '5', NULL, NOW(), NULL, '','2');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_DRIVERS_PAGE_S', 'PUBLIC_DRIVERS_PAGE', 'GabaritTemplate', 'PUBLIC_DRIVERS_PAGE_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('NO_DISPLAY_SYMBOL_TAXE_S', 'NO_DISPLAY_SYMBOL_TAXE', 'GabaritTemplate', 'NO_DISPLAY_SYMBOL_TAXE_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function ,set_function,configuration_type) values ('DATATYPES_DEFAULT_NOSELECTED_S', 'DATATYPES_DEFAULT_NOSELECTED', 'product', 'DATATYPES_DEFAULT_NOSELECTED_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_PAGE_TYPE_S', 'PUBLIC_PAGE_TYPE', 'listing,product,account,home,content', 'PUBLIC_PAGE_TYPE_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('DATATYPES_S', 'DATATYPES', 'error,product,content,diver,featured,categorie,home,', 'DATATYPES_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
-insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('DATATYPES_ROOTLISTING_FEATURED_S', 'DATATYPES_ROOTLISTING_FEATURED', 'product', 'DATATYPES_ROOTLISTING_FEATURED_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
+-- 55 General environement
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_PDF_S', 'USE_LOCAL_GENERAT_PDF', 'false', 'USE_LOCAL_GENERAT_PDF_L', '55', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_MODELE_PDF_S', 'USE_MODELE_PDF', 'harry', 'USE_MODELE_PDF_L', '55', '5', NULL, NOW(), NULL, '','2');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_DRIVERS_PAGE_S', 'PUBLIC_DRIVERS_PAGE', 'GabaritTemplate', 'PUBLIC_DRIVERS_PAGE_L', '55', '0', NOW(), NOW(),NULL, NULL, 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('NO_DISPLAY_SYMBOL_TAXE_S', 'NO_DISPLAY_SYMBOL_TAXE', 'GabaritTemplate', 'NO_DISPLAY_SYMBOL_TAXE_L', '55', '0', NOW(), NOW(),NULL, NULL, 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function ,set_function,configuration_type) values ('DATATYPES_DEFAULT_NOSELECTED_S', 'DATATYPES_DEFAULT_NOSELECTED', 'product', 'DATATYPES_DEFAULT_NOSELECTED_L', '55', '0', NOW(), NOW(),NULL, NULL, 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_PAGE_TYPE_S', 'PUBLIC_PAGE_TYPE', 'listing,product,account,home,content', 'PUBLIC_PAGE_TYPE_L', '55', '0', NOW(), NOW(),NULL, NULL, 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('DATATYPES_S', 'DATATYPES', 'error,product,content,diver,featured,categorie,home,', 'DATATYPES_L', '55', '0', NOW(), NOW(),NULL, NULL, 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('DATATYPES_ROOTLISTING_FEATURED_S', 'DATATYPES_ROOTLISTING_FEATURED', 'product', 'DATATYPES_ROOTLISTING_FEATURED_L', '55', '0', NOW(), NOW(),NULL, NULL, 2);
--- 129 option orders
+-- 49 option orders
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_COMPLETED_S', 'DEFAULT_ORDERS_STATUS_COMPLETED', '6', 'DEFAULT_ORDERS_STATUS_COMPLETED_L', '129', '0', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ANNULATE', '-1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '0', NULL, NOW(),'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_PAYED_S', 'DEFAULT_ORDERS_STATUS_PAYED', '2', 'DEFAULT_ORDERS_STATUS_PAYED_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_SHIPPING_S', 'DEFAULT_ORDERS_STATUS_SHIPPING', '4', 'DEFAULT_ORDERS_STATUS_SHIPPING_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_DELIVERY_S', 'DEFAULT_ORDERS_STATUS_DELIVERY', '5', 'DEFAULT_ORDERS_STATUS_DELIVERY_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_ORDER_REF_S', 'USE_LOCAL_GENERAT_ORDER_REF', 'true', 'USE_LOCAL_GENERAT_ORDER_REF_L', '129', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','2');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '49', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_COMPLETED_S', 'DEFAULT_ORDERS_STATUS_COMPLETED', '6', 'DEFAULT_ORDERS_STATUS_COMPLETED_L', '49', '0', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ANNULATE', '-1', 'DEFAULT_ORDERS_STATUS_ID_L', '49', '0', NULL, NOW(),'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_PAYED_S', 'DEFAULT_ORDERS_STATUS_PAYED', '2', 'DEFAULT_ORDERS_STATUS_PAYED_L', '49', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_SHIPPING_S', 'DEFAULT_ORDERS_STATUS_SHIPPING', '4', 'DEFAULT_ORDERS_STATUS_SHIPPING_L', '49', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_DELIVERY_S', 'DEFAULT_ORDERS_STATUS_DELIVERY', '5', 'DEFAULT_ORDERS_STATUS_DELIVERY_L', '49', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_ORDER_REF_S', 'USE_LOCAL_GENERAT_ORDER_REF', 'true', 'USE_LOCAL_GENERAT_ORDER_REF_L', '49', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','2');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_ORDERS_S', 'USE_MODELE_NUMREF_ORDERS', 'poisson', 'USE_MODELE_NUMREF_ORDERS_L', '129', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'orders\',');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_BILLS_S', 'USE_MODELE_NUMREF_BILLS', 'sakura', 'USE_MODELE_NUMREF_BILLS_L', '129', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'bills\',');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_SHIPPING_S', 'USE_MODELE_NUMREF_SHIPPING', 'shikamaru', 'USE_MODELE_NUMREF_SHIPPING_L', '129', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'shipping\',');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_SERVICE_S', 'USE_MODELE_NUMREF_SERVICE', '', 'USE_MODELE_NUMREF_SERVICE_L', '129', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'services\',');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_ORDERS_S', 'USE_MODELE_NUMREF_ORDERS', 'poisson', 'USE_MODELE_NUMREF_ORDERS_L', '49', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'orders\',');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_BILLS_S', 'USE_MODELE_NUMREF_BILLS', 'sakura', 'USE_MODELE_NUMREF_BILLS_L', '49', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'bills\',');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_SHIPPING_S', 'USE_MODELE_NUMREF_SHIPPING', 'shikamaru', 'USE_MODELE_NUMREF_SHIPPING_L', '49', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'shipping\',');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type, set_function) values ('USE_MODELE_NUMREF_SERVICE_S', 'USE_MODELE_NUMREF_SERVICE', '', 'USE_MODELE_NUMREF_SERVICE_L', '49', '0', NULL, NOW(), '2', 'tep_cfg_pull_down_numref_mod(\'services\',');
COMMIT;
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql 2014-11-30 11:06:20 UTC (rev 5241)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql 2014-12-17 10:26:38 UTC (rev 5242)
@@ -14,76 +14,77 @@
-- Preserver les ID
-insert into osc_configuration_group values (100,'APPARENCE', NULL, 2, 1, 0, '1', 'CG_APPARENCE');
- insert into osc_configuration_group values (19, 'PAGE_PRODUCT_DETAIL', NULL, 0, 1, 100, '0', 'CG_PAGE_PRODUCT_DETAIL');
- insert into osc_configuration_group values (4, 'IMAGES', NULL, 0, 1, 100, '0', 'MODIMAGES');
- insert into osc_configuration_group values (8, 'LIST_PRODUTCS', NULL, 0, 1, 100, '0', 'CG_LIST_PRODUTCS');
- insert into osc_configuration_group values (21, 'OPEN_BOX', NULL, 0, 1, 100, '0', 'CG_OPEN_BOX');
- insert into osc_configuration_group values (27 , 'APPARENCE_GENERAL', NULL, 0 , 1, 100, '0', 'CG_APPARENCE_GENERAL');
- insert into osc_configuration_group values (29 , 'BOX_CONFIGURATION_TEMPLATE', NULL, 0 , 1, 100, '0', 'MODTEMPLATE');
+insert into osc_configuration_group values (51,'APPARENCE', NULL, 2, 1, 0, '1', 'CG_APPARENCE');
+ insert into osc_configuration_group values (19, 'PAGE_PRODUCT_DETAIL', NULL, 0, 1, 51, '0', 'CG_PAGE_PRODUCT_DETAIL');
+ insert into osc_configuration_group values (4, 'IMAGES', NULL, 0, 1, 51, '0', 'MODIMAGES');
+ insert into osc_configuration_group values (8, 'LIST_PRODUTCS', NULL, 0, 1, 51, '0', 'CG_LIST_PRODUTCS');
+ insert into osc_configuration_group values (21, 'OPEN_BOX', NULL, 0, 1, 51, '0', 'CG_OPEN_BOX');
+ insert into osc_configuration_group values (27 , 'APPARENCE_GENERAL', NULL, 0 , 1, 51, '0', 'CG_APPARENCE_GENERAL');
+ insert into osc_configuration_group values (29 , 'BOX_CONFIGURATION_TEMPLATE', NULL, 0 , 1, 51, '0', 'MODTEMPLATE');
-insert into osc_configuration_group values (110,'CONFIGURATION', NULL, 1, 1, 0, '1', 'CG_CONFIGURATION');
--- insert into osc_configuration_group values (3, 'VALUE_MAXI', NULL, 0, 1, 110, '0', 'CG_VALUE_MAXI');
- insert into osc_configuration_group values (2, 'VALUE_MINI', NULL, 0, 1, 110, '0', 'CG_VALUE_MINI');
- insert into osc_configuration_group values (1, 'MY_BOUTIQUE', NULL, 0, 1, 110, '0', 'CG_MY_BOUTIQUE');
+insert into osc_configuration_group values (52,'CONFIGURATION', NULL, 1, 1, 0, '1', 'CG_CONFIGURATION');
+-- insert into osc_configuration_group values (3, 'VALUE_MAXI', NULL, 0, 1, 52, '0', 'CG_VALUE_MAXI');
+ insert into osc_configuration_group values (2, 'VALUE_MINI', NULL, 0, 1, 52, '0', 'CG_VALUE_MINI');
+ insert into osc_configuration_group values (1, 'MY_BOUTIQUE', NULL, 0, 1, 52, '0', 'CG_MY_BOUTIQUE');
- insert into osc_configuration_group values (30 , 'BOX_LOCALIZATION_ORDERS_STATUS', NULL, 0 , 1, 110, '0', 'MODSTATUS');
+ insert into osc_configuration_group values (30 , 'BOX_LOCALIZATION_ORDERS_STATUS', NULL, 0 , 1, 52, '0', 'MODSTATUS');
-insert into osc_configuration_group values (120,'CONFIG_AVANCE', NULL, 4, 1, 0, '1', 'CG_CONFIG_AVANCE');
- insert into osc_configuration_group values (24 , 'CG_CIP_MANAGER', NULL, 0 , 1, 120, '0', 'CG_CIP_MANAGER');
+insert into osc_configuration_group values (53,'CONFIG_AVANCE', NULL, 4, 1, 0, '1', 'CG_CONFIG_AVANCE');
+ insert into osc_configuration_group values (24 , 'CG_CIP_MANAGER', NULL, 0 , 1, 53, '0', 'CG_CIP_MANAGER');
- insert into osc_configuration_group values (10, 'LOGGING', NULL, 0, 1, 120, '0', 'CG_LOGGING');
- insert into osc_configuration_group values (12, 'OPTION_MAIL', NULL, 0, 1, 120, '0', 'MODMAIL');
- insert into osc_configuration_group values (14, 'COMPRESSION', NULL, 0, 1, 120, '0', 'CG_COMPRESSION');
- insert into osc_configuration_group values (15, 'SESSION', NULL, 0, 1, 120, '0', 'CG_SESSION');
- insert into osc_configuration_group values (16, 'SEO_URL', NULL, 0, 1, 120, '0', 'MODSEOURL');
- insert into osc_configuration_group values (31 , 'BOX_LOCALIZATION_LANGUAGES', NULL, 0 , 1, 120, '0', 'MODLANGUE');
+ insert into osc_configuration_group values (10, 'LOGGING', NULL, 0, 1, 53, '0', 'CG_LOGGING');
+ insert into osc_configuration_group values (12, 'OPTION_MAIL', NULL, 0, 1, 53, '0', 'MODMAIL');
+ insert into osc_configuration_group values (14, 'COMPRESSION', NULL, 0, 1, 53, '0', 'CG_COMPRESSION');
+ insert into osc_configuration_group values (15, 'SESSION', NULL, 0, 1, 53, '0', 'CG_SESSION');
+ insert into osc_configuration_group values (16, 'SEO_URL', NULL, 0, 1, 53, '0', 'MODSEOURL');
+ insert into osc_configuration_group values (31 , 'BOX_LOCALIZATION_LANGUAGES', NULL, 0 , 1, 53, '0', 'MODLANGUE');
--- insert into osc_configuration_group values (26, 'ATTRIBUTE_PRODUCT', NULL,0 , 1, 120, '0', 'CG_ATTRIBUTE_PRODUCT');
- insert into osc_configuration_group values (128,'BOX_CONFIGURATION_ENVIRONEMENT', NULL, 0, 1, 120, '0', 'CFG_ENVIRONEMENT');
+-- insert into osc_configuration_group values (26, 'ATTRIBUTE_PRODUCT', NULL,0 , 1, 53, '0', 'CG_ATTRIBUTE_PRODUCT');
+ insert into osc_configuration_group values (55,'BOX_CONFIGURATION_ENVIRONEMENT', NULL, 0, 1, 53, '0', 'CFG_ENVIRONEMENT');
-insert into osc_configuration_group values (126,'ESPACE_ADMIN', NULL, 5, 1, 0, '1', 'CG_ESPACE_ADMIN');
- insert into osc_configuration_group values (17, 'QUICK_UPDATE', NULL, 0, 1, 126, '0', 'MODADMINCONFIG');
- insert into osc_configuration_group values (20, 'PRODUCT_ATTENTE', NULL, 0, 1, 126, '0', 'CG_PRODUCT_ATTENTE');
- insert into osc_configuration_group values (22, 'RECOVER_CART_SALES', NULL, 0, 1, 126, '0', 'CG_RECOVER_CART_SALES');
+insert into osc_configuration_group values (56,'ESPACE_ADMIN', NULL, 5, 1, 0, '1', 'CG_ESPACE_ADMIN');
+ insert into osc_configuration_group values (17, 'QUICK_UPDATE', NULL, 0, 1, 56, '0', 'MODADMINCONFIG');
+ insert into osc_configuration_group values (20, 'PRODUCT_ATTENTE', NULL, 0, 1, 56, '0', 'CG_PRODUCT_ATTENTE');
+ insert into osc_configuration_group values (22, 'RECOVER_CART_SALES', NULL, 0, 1, 56, '0', 'CG_RECOVER_CART_SALES');
-insert into osc_configuration_group values (127,'CONFIG_COMM', NULL, 3, 1, 0, '1', 'CG_CONFIG_COMM');
+insert into osc_configuration_group values (57,'CONFIG_COMM', NULL, 3, 1, 0, '1', 'CG_CONFIG_COMM');
- insert into osc_configuration_group values (9, 'STOCK', NULL, 0, 1, 127, '0', 'MODSTOCK');
- insert into osc_configuration_group values (11, 'OPTION_CATALOG', NULL, 0, 1, 127, '0', 'CG_OPTION_CATALOG');
+ insert into osc_configuration_group values (9, 'STOCK', NULL, 0, 1, 57, '0', 'MODSTOCK');
+ insert into osc_configuration_group values (11, 'OPTION_CATALOG', NULL, 0, 1, 57, '0', 'CG_OPTION_CATALOG');
--- insert into osc_configuration_group values (6, 'OPTION_MODULES', NULL, 0, 1, 120, '0', 'CG_OPTION_MODULES');
+-- insert into osc_configuration_group values (6, 'OPTION_MODULES', NULL, 0, 1, 53, '0', 'CG_OPTION_MODULES');
--- insert into osc_configuration_group values (130,'CONFIGURATION_DATATYPES', NULL, 0, 1, 127, '0', 'MODDATATYPE');
+-- insert into osc_configuration_group values (130,'CONFIGURATION_DATATYPES', NULL, 0, 1, 57, '0', 'MODDATATYPE');
- insert into osc_configuration_group values (35 , 'OPTION_PRODUCTS', NULL, 0 , 1, 127, '1', 'OPTION_PRODUCTS');
+ insert into osc_configuration_group values (35 , 'OPTION_P...
[truncated message content] |
|
From: <os...@us...> - 2014-12-29 10:17:03
|
Revision: 5243
http://sourceforge.net/p/oscss/svn/5243
Author: oscim
Date: 2014-12-29 10:17:01 +0000 (Mon, 29 Dec 2014)
Log Message:
-----------
Fix bug in page for manage classes and taxes in BO
Fix Format in address
Modified Paths:
--------------
trunk/catalog/admin/includes/languages/fr_FR/modules/pages/tax_classes.txt
trunk/catalog/admin/includes/modules/pages/tax_classes.php
trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/pages/tax_classes.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/pages/tax_classes.txt 2014-12-17 10:26:38 UTC (rev 5242)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/pages/tax_classes.txt 2014-12-29 10:17:01 UTC (rev 5243)
@@ -3,12 +3,12 @@
@licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 18/09/10, 19:19
+ @version 2.2.0
+ @date 28/12/2014, 10:30
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
-$lang['heading title tax_classes']="Manager des plugins de template" ;
+$lang['heading title tax_classes']="Gestion des Taxes et des classes de taxes" ;
/* listing */
$lang['tax_classes table heading id']="Id" ;
Modified: trunk/catalog/admin/includes/modules/pages/tax_classes.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/tax_classes.php 2014-12-17 10:26:38 UTC (rev 5242)
+++ trunk/catalog/admin/includes/modules/pages/tax_classes.php 2014-12-29 10:17:01 UTC (rev 5243)
@@ -3,23 +3,30 @@
@licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
@package osCSS-2 <www http://www.oscss.org>
@version 2.2.0
- @date 10/10/2013, 10:30
+ @date 28/12/2014, 10:30
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@file tax_classes.php
@dir admin/includes/modules/pages/
*/
-require_once(DIR_FS_ADMIN . DIR_WS_CLASSES .'ModTwo.php');
+require_once(DIR_FS_ADMIN . DIR_WS_CLASSES .'ModTreePage.php');
+
/**
@class tax_classes
*/
class tax_classes
- extends ModTwo /// new abstract class for nextgen module
+ extends ModTreePage
implements
- InterfaceModule,
- /*IntModTwo, */ /// new interface module for nextgen module
- ExtModConfig {
+ InterfaceModule
+
+ // base module config structure
+ , ExtModConfig
+ // global GetConf methode
+ ,IntModTree
+ // datatable and editable by ajax
+ ,InterfacedTJsonS
+ {
const FILENAME = FILENAME_TAX_CLASSES;
@@ -31,10 +38,6 @@
@var int current rates
*/
public static $sId;
- /**
- @var bool $dir_ok
- */
- public static $dir_ok;
/**
@@ -76,7 +79,7 @@
MGabCont::SetCurrentName(__CLASS__);
-
+
/**
@remarks define var execution sql in GetDBValue()
*/
@@ -558,31 +561,6 @@
- public static function tep_get_list($page=1,$rowbyp=10,$sOrder='',$sWhere='',$options=''){
- global $query_numrows;
-
- /// @remarks force load conf
- self::GetConf();
-
- $res=array();
-
- /**
- @remarks adjust param for sql requete
- */
- self::$InitInfo['adjust']['page']=$page;
- self::$InitInfo['adjust']['rowbyp']=$rowbyp;
- self::$InitInfo['adjust']['sOrder'].=$sOrder;
- self::$InitInfo['adjust']['sWhere'].=$sWhere;
- self::$InitInfo['adjust']['options']=$options;
-
- $res = self::GetDBValue();
-
- self::$list= $query_numrows ;
-
- return $res;
- }
-
-
/** public static InterfacedTJsonS */
/**
@@ -590,7 +568,7 @@
@param $_query ressource db sql
@return array
*/
- private static function FormatDBValue($_query){
+ protected static function FormatDBValue($_query){
$DB=Database::getInstance();
$res=array();
@@ -602,81 +580,22 @@
while ($item = $_query->fetchAssoc()) {
foreach(self::$InitInfo['modele']['listing'] as $k=>$row)
- if($k == 'action') $ord[$k]=self::ButtonRowsActions($item);
- elseif($k == 'visible') $ord[$k]=self::RowStatus($item);
+ if( ($value = self::FormatDBValueRow($k, $item)) && $value !=false )
+ $ord[$k]= $value;
else $ord[$k]=$item[$k];
$res[]=$ord;
}
break;
- default:
- global $languages_id;
-
- $ord =array();
-
- if(is_object($_query)){
- $res = new stdClass;
- foreach($_query as $key=>$row) {
- switch($key){
- default:
-
- if( ($new_r = self::GetEditFieldsDefine($key) ) && $new_r !=false ){
- $new_r['input_value'] = $row;
- $edit = 'edit_'.$key;
- $res->$edit = new objectInfo($new_r);
- }
-
- $res->$key = $row;
- }
- }
- }
-
+ default:
+ $res = parent::FormatDBValueDefault($_query);
}
return $res;
}
- /**
- @fn ButtonRowsActions($item)
- @return string html
- */
- public static function ButtonRowsActions($item){
- return sprintf(
- CsrtAction::getFormat('row_action'),
-// sprintf(CsrtAction::getLink('row_action_right', ICON_FILE_DOWNLOAD, 'plus'), '', tep_href_link(self::FILENAME, 'cID=' . $item['tax_class_id'] . '&action=download') ,'' )
-''
- ,
- sprintf(CsrtAction::getLink('row_action_right', IMAGE_DELETE, 'edit'), '', tep_href_link(self::FILENAME, 'cID=' . $item['id'] . '&action=edit') ,'' ).
- sprintf(CsrtAction::getLink('row_action_right', IMAGE_DELETE, 'delete'), 'fancy', tep_href_link(self::FILENAME, 'cID=' . $item['id'] . '&action=delete') ,'' )
- );
- }
- /**
- @brief return format html for row status
- @param $product array restuts row product
- @return string html
- */
- private static function RowStatus($item){
- $exclude=array('action','pID','forceajax','type','class','function','funct', 'mod');
- $query_s='action=setflag&cID=' . $item['id'].'&flag=';
- return '<a class="ajaxinline" href="' . tep_href_link(self::FILENAME, tep_get_all_get_params($exclude).$query_s.(($item['visible'] == '1')? '0' : '1') ) . '">'.
- sprintf(
- CsrtAction::getFormat('row_flag'),
- (int)$item['visible'],
- ( ($item['visible'] == '1')? IMAGE_ICON_STATUS_GREEN : IMAGE_ICON_STATUS_RED)
- ).
- '</a>';
- }
-
-
- /**
- @brief return Filename
- */
- public static function GetFILENAME(){
- return self::FILENAME;
- }
-
}
?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql 2014-12-17 10:26:38 UTC (rev 5242)
+++ trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql 2014-12-29 10:17:01 UTC (rev 5243)
@@ -12,8 +12,8 @@
--+######################################################################--+
-INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country', 'Jean-Claude Duce \\n Rue des Bronzés \\n Paris, 75000 FR, \\n France');
-INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country', 'Jean-Claude Duce Rue des Bronzés Paris, FR 75000 France');
-INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country', 'Jean-Claude Duce Rue des Bronzés Paris 75000 - FR, France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(1, '$company$personnal$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country', 'Jean-Claude Duce \\n Rue des Bronzés \\n Paris, 75000 FR, \\n France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(2, '$company$personnal$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country', 'Jean-Claude Duce Rue des Bronzés Paris, FR 75000 France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(3, '$company$personnal$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country', 'Jean-Claude Duce Rue des Bronzés Paris 75000 - FR, France');
INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country', 'Jean-Claude Duce Rue des Bronzés Paris (75000) France');
INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country', 'Jean-Claude Duce \\n Rue des Bronzés \\n 75000 Paris \\n France');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2014-12-29 14:14:37
|
Revision: 5245
http://sourceforge.net/p/oscss/svn/5245
Author: oscim
Date: 2014-12-29 14:14:00 +0000 (Mon, 29 Dec 2014)
Log Message:
-----------
Fix bug call old function in orders.php
Fix bug in shoping cart page in ajax adjust qty
Modified Paths:
--------------
trunk/catalog/admin/includes/modules/pages/orders.php
trunk/catalog/common/classes/osCSS_pdf.php
trunk/catalog/templates/defaut/includes/gabarit/pages/shopping_cart.gab
trunk/catalog/templates/defaut/includes/triggers/cart_line.inc
Modified: trunk/catalog/admin/includes/modules/pages/orders.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/orders.php 2014-12-29 10:21:49 UTC (rev 5244)
+++ trunk/catalog/admin/includes/modules/pages/orders.php 2014-12-29 14:14:00 UTC (rev 5245)
@@ -3,7 +3,7 @@
@licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
@package osCSS-2 <www http://www.oscss.org>
@version 2.2.0
- @date 04/07/2013, 10:36
+ @date 28/12/2014, 10:36
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@file orders.php
@@ -15,7 +15,7 @@
require_once(DIR_FS_ADMIN . DIR_WS_CLASSES .'listeners/EventMessListener.php');
require_once(DIR_FS_ADMIN . DIR_WS_CLASSES .'listeners/EventNotificationListener.php');
-
+// error_reporting(E_ALL);
/**
@class orders
@brief manage orders, listing and edit status
@@ -34,6 +34,7 @@
,InterfacedTJsonS
// detail row in chidls
,InterfacedInnerHtml
+
// use filter put in RootListing link
// , RightToFilter
@@ -100,8 +101,6 @@
public function __construct() {
self::Clean();
self::GetConf();
-
-
}
/**
@@ -512,7 +511,6 @@
/// force encode for fdpf is in iso8859
header("Content-Type: text/html; charset=utf-8");
self::$orders_statuses = array_merge(tep_get_status_array('orders'),array(array('id'=>'','text'=>TEXT_NONE)));
- self::$file_type_array= osCSS_pdf::get_module();
$pdf=osCSS_pdf::OutputInit($type);
$DF = new DatasFiles;
@@ -542,8 +540,6 @@
$pdf=osCSS_pdf::SaveEnd($file);
- /// @remarks draw and exit;
- // $pdf=osCSS_pdf::OutputEnd();
}
if(!isset($_GET['forceajax']))
tep_redirect(tep_href_link(self::FILENAME, 'cID='.$cID.'&action=edit'));
@@ -1116,7 +1112,7 @@
" LEFT JOIN " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id AND ot.class = 'ot_total' ) ".
" LEFT JOIN " . TABLE_ORDERS_PRODUCTS . " op on (op.orders_id = o.orders_id) ".
" LEFT JOIN " . TABLE_STATUS . " s ON(o.orders_status = s.status_id and s.status_type='orders' and s.language_id = '" . (int)$adjust->languages_id . "') ".
- " WHERE o.orders_type >= 0 ".$adjust->sWhere.
+ " WHERE o.orders_type = 0 ".$adjust->sWhere.
// " GROUP BY o.orders_id ".
" ORDER BY ".((!empty($adjust->sOrder)) ? $adjust->sOrder : 'o.orders_id DESC');
Modified: trunk/catalog/common/classes/osCSS_pdf.php
===================================================================
--- trunk/catalog/common/classes/osCSS_pdf.php 2014-12-29 10:21:49 UTC (rev 5244)
+++ trunk/catalog/common/classes/osCSS_pdf.php 2014-12-29 14:14:00 UTC (rev 5245)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 03/03/2012, 20:11
+ @version 2.2.0
+ @date 28/12/2014, 20:11
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class osCSS_pdf
@@ -47,11 +47,12 @@
define('LOGO_SHOP_FOR_PRINT',DIR_FS_ROOT_DOCS. str_replace('//','/',STORE_LOGO_PRINT) );
}
-
+ /**
+ @brief public constructor
+ */
public static function getInstance() {
- if(self::$_instance == null) {
- self::$_instance = new self();
- }
+ if(self::$_instance == null)
+ self::$_instance = new self();
return self::$_instance;
}
@@ -127,25 +128,5 @@
return DIR_FS_ROOT_DOCS . 'modeles/pdf/'. USE_MODELE_PDF.'/publicCustomers/'. self::$type.'.php';
}
-
- /**
- @brief call module present for pdf
- @param $pull_down boolean , format for pull down menu, or just array
- */
-// public static function get_module($pull_down=true){
-// global $messageStack;
-// if (!is_dir(BATCH_PRINT_INC))
-// $messageStack->add_session(sprintf(__("error problem opening directory %s "),BATCH_PRINT_INC), 'error');
-//
-// $file_type_array = array();
-// foreach(scan(BATCH_PRINT_INC) as $file) {
-// $ext = strrchr($file, ".");
-// if ($ext == ".php")
-// if($pull_down) $file_type_array[] = array('id' => substr($file,0,-4),'text' => __('BP template '.str_replace(array('-'),array("_"),substr($file,0,-4))));
-// else $file_type_array[] = substr($file,0,-4);
-// }
-// return $file_type_array;
-// }
-
}
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/gabarit/pages/shopping_cart.gab
===================================================================
--- trunk/catalog/templates/defaut/includes/gabarit/pages/shopping_cart.gab 2014-12-29 10:21:49 UTC (rev 5244)
+++ trunk/catalog/templates/defaut/includes/gabarit/pages/shopping_cart.gab 2014-12-29 14:14:00 UTC (rev 5245)
@@ -3,7 +3,7 @@
@licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
@package osCSS-2 <www http://www.oscss.org>
@version 2.2.0
- @date 18/12/2013, 08:18
+ @date 28/12/2014, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@file shopping_cart.gab
@@ -48,9 +48,9 @@
<?php echo $currencies->format($product['price']) ;?>
</td>
<td class="cart-line qty tcenter" >
+ <input class="Bt button cart-line" type="button" value="-" >
+ <?php echo tep_draw_input_field('cart_quantity[]','cartQty_'.$i, $product['quantity'], 'class="CartQty" ');?>
<input class="Bt button cart-line" type="button" value="+" >
- <?php echo tep_draw_input_field('cart_quantity[]','cartQty_'.$i, $product['quantity'], 'class="CartQty" ');?>
- <input class="Bt button cart-line" type="button" value="-" >
<?php echo tep_draw_hidden_field('products_id[]', $product['id']) ; ?>
</td>
<td class="cart-line taxe tcenter" rowspan="<?php echo ($product['group']['count']); ?>">
Modified: trunk/catalog/templates/defaut/includes/triggers/cart_line.inc
===================================================================
--- trunk/catalog/templates/defaut/includes/triggers/cart_line.inc 2014-12-29 10:21:49 UTC (rev 5244)
+++ trunk/catalog/templates/defaut/includes/triggers/cart_line.inc 2014-12-29 14:14:00 UTC (rev 5245)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 20/10/11, 11:13
+ @version 2.2.0
+ @date 28/12/2014, 11:13
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@brief code is part of execution shopping cart by ajax control
@@ -36,21 +36,18 @@
- $back = $current['quantity'];
+ $back = (int)$current['quantity'];
$current['quantity'] = $product_qty_get;
-
/**
@remarks check stock and prepare alert message
*/
if( ! Stock::check_inline($current) ){
-
- $cart->remove($current['id']);
-
+
+
/// add in cart session
- $cart->add_cart($current['id'], $product_qty_get, $attributes, false);
+ $cart->add_cart($current['id'], ($product_qty_get - $back) , $attributes, false);
-
/**
@remarks Stock is ok, continue
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2015-01-19 16:33:28
|
Revision: 5249
http://sourceforge.net/p/oscss/svn/5249
Author: oscim
Date: 2015-01-19 16:33:17 +0000 (Mon, 19 Jan 2015)
Log Message:
-----------
Fix
FX#1137
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/ModTreePage.php
trunk/catalog/admin/includes/classes/SqlFilesDataDriverClass.php
trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php
trunk/catalog/admin/includes/classes/drivers/sqlproduct.php
trunk/catalog/admin/includes/modules/pages/categories.php
trunk/catalog/admin/includes/modules/products/desc_base.php
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Modified: trunk/catalog/admin/includes/classes/ModTreePage.php
===================================================================
--- trunk/catalog/admin/includes/classes/ModTreePage.php 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/admin/includes/classes/ModTreePage.php 2015-01-19 16:33:17 UTC (rev 5249)
@@ -218,7 +218,7 @@
$params['language_id']= $languages_id;
$params['sqlarray'] = $sqlclass::ExtractForm($_POST);
-
+
$class::$Id=$sqlclass::create($params);
if( !is_int($class::$Id) || $class::$Id <=0)
@@ -331,7 +331,6 @@
if($res ===false || count($res)<=1)
tep_redirect(tep_href_link($class::FILENAME, 'action=insert'));
-
// load data if not loaded
if(!is_object($class::$Info))
@@ -716,20 +715,22 @@
$DB=Database::getInstance();
$class=self::GetClassName();
$modules=$class::$modules;
-
+// if(!is_string($key))
+// return false;
+
switch ($class::$action) {
case 'listing':
// button action
- if($key == 'action')
+ if($key === 'action')
return $class::ButtonRowsActions($data);
// flag status
- elseif($key == 'status')
+ elseif($key === 'status')
return $class::RowStatus($data);
// flag hidden
- elseif($key == 'hidden')
+ elseif($key === 'hidden')
return $class::RowHidden($data);
// view ref image
- elseif($key == 'image')
+ elseif($key === 'image')
return (!empty($data['image']) ? tep_info_image($data['image'], $data['name'], TEMP_BO_SMALL_IMAGE_WIDTH, TEMP_BO_SMALL_IMAGE_HEIGHT) : ' N/A');
// Format Date
elseif( preg_match('#last_logon#i', $key) )
Modified: trunk/catalog/admin/includes/classes/SqlFilesDataDriverClass.php
===================================================================
--- trunk/catalog/admin/includes/classes/SqlFilesDataDriverClass.php 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/admin/includes/classes/SqlFilesDataDriverClass.php 2015-01-19 16:33:17 UTC (rev 5249)
@@ -129,8 +129,10 @@
if(!is_array($specimen) && !is_object($specimen) )
return $sqlarray;
+// print_r(self::$modules);
+// print_r($data);
+// print_r($specimen); $sql_data_array_lg
-
foreach($specimen as $key=>$item){
if(!in_array($key ,array( self::$DataDriverType.'_id', 'id') ) )
@@ -174,15 +176,17 @@
$sqlarray[$key] = tep_db_prepare_input((string)$data[$key]);
}
elseif(is_array($item)){
-
- if( $key == 'lg' )
+ if( $key == 'lg' /*|| in_array($key, array_keys(self::$modules))*/ ){
foreach($item as $language_id=>$arraylg)
foreach($arraylg as $subkey=>$value){
- if( isset($specimen[$key][$language_id][$subkey] ) && isset($data[$key][$subkey][$language_id]) )
- $sqlarray[$key][$subkey][$language_id] = (!empty($data[$key][$subkey][$language_id]) ? tep_db_prepare_input((string)$data[$key][$subkey][$language_id]) : $specimen[$key][1][$subkey] );
- elseif(isset($data[$key][$subkey][$language_id]))
- $sqlarray[$key][$subkey][$language_id] = $specimen[$key][$language_id][$subkey];
+ if( isset($specimen['lg'][$language_id][$subkey] ) && isset($data[$key][$subkey][$language_id]) )
+ $sqlarray['lg'][$subkey][$language_id] = (!empty($data[$key][$subkey][$language_id]) ? tep_db_prepare_input((string)$data[$key][$subkey][$language_id]) : $specimen[$key][1][$subkey] );
+ elseif(isset($data[$subkey][$language_id]))
+ $sqlarray['lg'][$subkey][$language_id] = $data[$subkey][$language_id];
+ elseif(isset($data[$key][$subkey][$language_id]))
+ $sqlarray['lg'][$subkey][$language_id] = $specimen[$key][$language_id][$subkey];
}
+ }
elseif($key == 'images'){
$tmpkey = self::$DataDriverType.'_image';
$img = array();
@@ -222,7 +226,8 @@
}
}
-
+// print_r($sqlarray);
+// exit;
return $sqlarray;
}
Modified: trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php 2015-01-19 16:33:17 UTC (rev 5249)
@@ -202,6 +202,7 @@
$DB->beginTransaction();
+
if(count($sql_data_array) > 0 || count($sql_data_array_lg) > 0){
if(isset($sql_data_array['categories_datatype']) && $sql_data_array['categories_datatype'] =='-1')
@@ -229,6 +230,8 @@
unset($sql_data_array['language_id']);
$res=tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array, 'update', "categories_id = '" . (int)$id . "' and language_id = '" . (int)$key . "'");
+
+ var_dump($res);
if(!$res)
$error++;
}
@@ -238,7 +241,8 @@
// if(in_array(false, $res) )
// $error++;
-
+ print_r($error);
+ exit;
if( $error > 0){
$DB->rollbackTransaction();
return false;
Modified: trunk/catalog/admin/includes/classes/drivers/sqlproduct.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlproduct.php 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/admin/includes/classes/drivers/sqlproduct.php 2015-01-19 16:33:17 UTC (rev 5249)
@@ -174,7 +174,7 @@
// language table
- if( $error <= 0)
+ if( $error <= 0){
if(isset($sql_data_array_lg['lg']) && count($sql_data_array_lg['lg']) > 0){
foreach($sql_data_array_lg['lg'] as $key=>$sql_data_array){
@@ -214,7 +214,7 @@
}
}
}
-
+ }
/*
Use transversal Datatype Rootlisting and update in data
Modified: trunk/catalog/admin/includes/modules/pages/categories.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/categories.php 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/admin/includes/modules/pages/categories.php 2015-01-19 16:33:17 UTC (rev 5249)
@@ -35,6 +35,8 @@
,InterfacedTJsonS
// detail row in chidls
,InterfacedInnerHtml
+ // use filter generic
+ , FilterTabsData
// use filter put in RootListing link
, RightToFilter
@@ -61,12 +63,9 @@
@var array $DiversInfo transport var
*/
public static $DiversInfo;
- /**
- @var array $actions
- */
- public static $actions;
+
public function __construct(){
self::Clean();
self::GetConf();
@@ -356,7 +355,7 @@
self::$action=$actions;
-
+
self::$modules->check_action(self::$action);
self::$DiversInfo['current_category_id']=((isset($_GET['cPath'])&& !empty($_GET['cPath'])) ? tep_db_prepare_input($_GET['cPath']) : 0);
@@ -472,7 +471,7 @@
}
- $query_raw = "SELECT DISTINCT ".$adjust->listfields." ".
+ $query_raw = "SELECT DISTINCT ".$adjust->listfields." , cat.categories_id as id ".
" FROM " . TABLE_CATEGORIES . " cat ".
" JOIN " . TABLE_CATEGORIES_DESCRIPTION . " catd ON (catd.categories_id = cat.categories_id AND catd.language_id = '" . (int)$adjust->languages_id . "') ";
@@ -509,7 +508,7 @@
$_query = $DB->query($query_raw);
$res=self::FormatDBValue($_query);
-
+
return $res;
}
@@ -583,19 +582,20 @@
$DB=Database::getInstance();
$res=array();
- /* DEB Sub module add col */
- self::GetExternalFieldsForFormat( self::$allfieldsexternal );
-
+
switch (self::$action) {
case 'listing':
global $languages_id;
-
+
+ /* DEB Sub module add col */
+ self::GetExternalFieldsForFormat( self::$allfieldsexternal );
+
+
while ($item = $_query->fetchAssoc()) {
$ord =array();
-
+
$item[0]=$item['id'];
$item[1]=tep_draw_checkbox_field('action_multi['.$item['id'].']','action_mutli_'.$item['id'],$item['id']);
-
foreach(self::$InitInfo['modele']['listing'] as $k=>$row){
if( ($value = self::FormatDBValueRow($k, $item)) && $value !=false )
$ord[$k]= $value;
Modified: trunk/catalog/admin/includes/modules/products/desc_base.php
===================================================================
--- trunk/catalog/admin/includes/modules/products/desc_base.php 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/admin/includes/modules/products/desc_base.php 2015-01-19 16:33:17 UTC (rev 5249)
@@ -80,7 +80,6 @@
public function GetConf($opt){
$array = array();
-
$conf = Config::getInstance();
$attach_tab = ( ($conf->GetConf( 'MODULE_ACAPRO_DESC_BASE_ATTACH_FIELDS_TABS' ) ===false) ? __CLASS__ : $conf->GetConf( 'MODULE_ACAPRO_DESC_BASE_ATTACH_FIELDS_TABS') ) ;
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2015-01-19 07:41:45 UTC (rev 5248)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2015-01-19 16:33:17 UTC (rev 5249)
@@ -105,8 +105,9 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('Ordre de tri sous-total', 'MODULE_ORDER_TOTAL_SUBTOTAL_SORT_ORDER', '0', 'Ordre de tri pour l\'affichage', '6', '11', NULL, NOW(), '2');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('Ordre de tri taxes', 'MODULE_ORDER_TOTAL_TAX_SORT_ORDER', '8', 'Ordre de tri pour l\'affichage', '6', '12', NULL, NOW(), '2');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('Ordre de description', 'MODULE_ACAPRO_DESC_BASE_SORT_ORDER', '1', 'Ordre de tri pour l\'affichage', '6', '13', NULL, NOW(), '2');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('Ordre de tri taxes', 'MODULE_ORDER_TOTAL_TAX_SORT_ORDER', '8', 'Ordre de tri pour l\'affichage', '6', '12', NULL, NOW(), '2');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('MODULE_ACAPRO_DESC_BASE_ATTACH_FIELDS_TABS_S', 'MODULE_ACAPRO_DESC_BASE_ATTACH_FIELDS_TABS', 'desc_base', 'MODULE_ACAPRO_DESC_BASE_ATTACH_FIELDS_TABS_L', '6', '13', NULL, NOW(), '1');
-
-- 7 shipping
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SHIPPING_ORIGIN_COUNTRY_S', 'SHIPPING_ORIGIN_COUNTRY', '73', 'SHIPPING_ORIGIN_COUNTRY_L', '7', '1', NULL, NOW(), 'tep_get_country_name', 'tep_cfg_pull_down_country_list(');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SHIPPING_ORIGIN_ZIP_S', 'SHIPPING_ORIGIN_ZIP', '75000', 'SHIPPING_ORIGIN_ZIP_L', '7', '2', NULL, NOW(), NULL, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2015-01-19 17:19:51
|
Revision: 5251
http://sourceforge.net/p/oscss/svn/5251
Author: oscim
Date: 2015-01-19 17:19:43 +0000 (Mon, 19 Jan 2015)
Log Message:
-----------
Fix devise add
Add in install other devise
Modified Paths:
--------------
trunk/catalog/admin/includes/modules/pages/currencies.php
trunk/catalog/install/includes/sql/mysql/data/20_osc_currencies.sql
Modified: trunk/catalog/admin/includes/modules/pages/currencies.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/currencies.php 2015-01-19 17:01:35 UTC (rev 5250)
+++ trunk/catalog/admin/includes/modules/pages/currencies.php 2015-01-19 17:19:43 UTC (rev 5251)
@@ -33,7 +33,7 @@
/**
@var string file
*/
- public static $Id;
+// public static $Id;
/**
@var array list code action module
*/
Modified: trunk/catalog/install/includes/sql/mysql/data/20_osc_currencies.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/20_osc_currencies.sql 2015-01-19 17:01:35 UTC (rev 5250)
+++ trunk/catalog/install/includes/sql/mysql/data/20_osc_currencies.sql 2015-01-19 17:19:43 UTC (rev 5251)
@@ -12,6 +12,8 @@
--+######################################################################--+
-insert into osc_currencies (currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value, last_updated) values ('1', 'Euro', 'EUR', '', '€', '.', ',', '2', '1.00000000', '2005-03-13 17:51:14');
-insert into osc_currencies (currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value, last_updated) values ('2', 'US Dollar', 'USD', '$', '', '.', ',', '2', '1.07819998', '2005-03-13 17:51:14');
+insert into osc_currencies (currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value, last_updated) values ('1', 'Euro', 'EUR', '', '€', '.', ',', '2', '1.00000000', '2015-01-19 17:15:02');
+insert into osc_currencies (currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value, last_updated) values (2, 'US Dollar', 'USD', '$', '', '.', ',', '2', 1.15750003, '2015-01-19 17:15:02');
+insert into osc_currencies (currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value, last_updated) values (3, 'Franc suisse', 'CHF', '', 'Fr', '3', '.', '3', 0.99589998, '2015-01-19 17:15:18');
+insert into osc_currencies (currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value, last_updated) values (4, 'Livre sterling', 'GBP', '£', '', '3', ',', '.', 0.76359999, '2015-01-19 17:15:19');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2015-04-08 07:52:01
|
Revision: 5268
http://sourceforge.net/p/oscss/svn/5268
Author: oscim
Date: 2015-04-08 07:51:59 +0000 (Wed, 08 Apr 2015)
Log Message:
-----------
Fix
Modified Paths:
--------------
trunk/catalog/admin/includes/gabarit/products/stock.listing.gab
trunk/catalog/common/classes/cart/CartStockageCustomer.class.php
Modified: trunk/catalog/admin/includes/gabarit/products/stock.listing.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/products/stock.listing.gab 2015-04-07 09:14:52 UTC (rev 5267)
+++ trunk/catalog/admin/includes/gabarit/products/stock.listing.gab 2015-04-08 07:51:59 UTC (rev 5268)
@@ -53,7 +53,7 @@
? sprintf(CsrtAction::getLink('row_action_right', __('txt stock') , 'stock'), 'fancyView', tep_href_link(FILENAME_STOCK, 'product_id=' . $row['products_id'].'&origin='.FILENAME_STOCK) ,'' )
: ''
).
- sprintf(CsrtAction::getLink('row_action_right', IMAGE_EDIT, 'edit'), '', tep_href_link(FILENAME_PRODUCTS, 'pID=' . $row['products_id'] . '&action=edit') ,'' )
+ sprintf(CsrtAction::getLink('row_action_right', IMAGE_EDIT, 'edit'), '', tep_href_link(FILENAME_PRODUCTS, 'cID=' . $row['products_id'] . '&action=edit') ,'' )
);
?></td>
@@ -71,12 +71,12 @@
printf(
CsrtAction::getFormat('row_action'),
'' ,
- sprintf(CsrtAction::getLink('row_action_right', __('image view public') , 'publiclink'), '', tep_catalog_href_link('index.php', 'id=' . $row['products_id'],'SSL', true, 'forceview') ,' target="blank" ' ).
+ sprintf(CsrtAction::getLink('row_action_right', __('image view public') , 'publiclink'), '', tep_catalog_href_link('index.php', 'products_id=' . $row['products_id'],'SSL', true, 'forceview') ,' target="blank" ' ).
((_cst_bool('STOCK_CHECK'))
? sprintf(CsrtAction::getLink('row_action_right', __('txt stock') , 'stock'), 'fancyView', tep_href_link(FILENAME_STOCK, 'product_id=' . $row['products_id'].'&origin='.FILENAME_STOCK) ,'' )
: ''
).
- sprintf(CsrtAction::getLink('row_action_right', IMAGE_EDIT, 'edit'), '', tep_href_link(FILENAME_PRODUCTS, 'pID=' . $row['products_id'] . '&action=edit'.'&origin='.FILENAME_STOCK) ,'' )
+ sprintf(CsrtAction::getLink('row_action_right', IMAGE_EDIT, 'edit'), '', tep_href_link(FILENAME_PRODUCTS, 'cID=' . $row['products_id'] . '&action=edit'.'&origin='.FILENAME_STOCK) ,'' )
);
?></td>
Modified: trunk/catalog/common/classes/cart/CartStockageCustomer.class.php
===================================================================
--- trunk/catalog/common/classes/cart/CartStockageCustomer.class.php 2015-04-07 09:14:52 UTC (rev 5267)
+++ trunk/catalog/common/classes/cart/CartStockageCustomer.class.php 2015-04-08 07:51:59 UTC (rev 5268)
@@ -54,8 +54,7 @@
$special_class = $list[2];
$parent_id = $list[3];
$grp_line = $list[4];
-// print_r($list);
-// exit;
+
$DB = Database::getInstance();
if($this->Isloggued()) {
$res = $DB->query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, parent_id, customers_basket_quantity, customers_basket_date_added, grp_line) values ('" . (int)$_SESSION['customer_id'] . "', '" . tep_db_input($products_id_string) . "', '" . tep_db_input($parent_id) . "', '" . $qty . "', '" . date('Ymd') . "', '".$grp_line."')");
@@ -198,12 +197,7 @@
if(isset($list[0]) && !empty($list[0])){
$products_id_string = @$list[0];
-// preg_match('#(.*)____#i', $products_id_string, $match);
- // print_r($match); exit;
- // $option = @$list[1];
- // $value = @$list[2];
-
if($products_id_string ) {
$sql .= " AND products_id = '".$products_id_string."' ";
}
@@ -216,12 +210,13 @@
}
$sql .= " ORDER BY grp_line ASC, parent_id ASC ";
-// echo $sql;
+
$DB = Database::getInstance();
$products_query = $DB->query($sql);
-// print_r($products_query->fetchAllAssoc());
-// exit;
+
$list = array();
+
+ if($products_query!=false && $products_query->__get('numRows'))
foreach($products_query->fetchAllAssoc() as $products) {
if( tep_get_prid($products['products_id']) == $products['products_id'] )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2015-04-07 08:13:21
|
Revision: 5259
http://sourceforge.net/p/oscss/svn/5259
Author: oscim
Date: 2015-04-07 08:13:07 +0000 (Tue, 07 Apr 2015)
Log Message:
-----------
Fix
Add support composed product in cart
Modified Paths:
--------------
trunk/catalog/common/classes/FieldsDisplay.php
trunk/catalog/common/classes/addressUtility.php
trunk/catalog/common/classes/cart/CartListener.class.php
trunk/catalog/common/classes/cart/CartStockage.class.php
trunk/catalog/common/classes/cart/CartStockageCustomer.class.php
trunk/catalog/common/classes/datatype_drivers/Data_categorie.php
trunk/catalog/common/classes/datatype_drivers/Data_product.php
trunk/catalog/common/classes/formUtility.php
trunk/catalog/common/classes/order.php
trunk/catalog/common/classes/price.php
trunk/catalog/common/classes/shoppingCart.php
trunk/catalog/includes/application_top.php
trunk/catalog/includes/classes/ModPublicOneShipping.php
trunk/catalog/includes/classes/checkout_process.php
trunk/catalog/includes/classes/core_page/customer.php
trunk/catalog/includes/classes/core_page/listing.php
trunk/catalog/includes/classes/drivers/data/categorie.php
trunk/catalog/includes/classes/drivers/data/product.php
trunk/catalog/includes/classes/pad_base.php
trunk/catalog/includes/classes/shopping_cart_action.php
trunk/catalog/includes/functions/general.php
trunk/catalog/includes/languages/fr_FR/modules/shipping/mzmt.txt
trunk/catalog/includes/modules/account/history.php
trunk/catalog/includes/modules/listing_cat.php
trunk/catalog/includes/modules/listing_catchild_and_product.php
trunk/catalog/includes/modules/new_products.php
trunk/catalog/includes/modules/shipping/free.php
trunk/catalog/includes/modules/shipping/mzmt.php
trunk/catalog/templates/defaut/includes/boxes/whats_new.php
trunk/catalog/templates/defaut/includes/content/index_listing.php
trunk/catalog/templates/defaut/includes/content/product_info.php
trunk/catalog/templates/defaut/includes/gabarit/checkout/confirmation.gab
trunk/catalog/templates/defaut/includes/gabarit/checkout/shipping.method.gab
trunk/catalog/templates/defaut/includes/gabarit/pages/shopping_cart.gab
trunk/catalog/templates/defaut/includes/triggers/cart_line.inc
trunk/catalog/templates/defaut/includes/triggers/cart_line_delete.inc
Added Paths:
-----------
trunk/catalog/admin/includes/gabarit/categories/categories_extra/display_edit.edit.gab
trunk/catalog/admin/includes/languages/fr_FR/modules/categories/categories_extra.txt
trunk/catalog/admin/includes/languages/fr_FR/modules/shipping/mzmt.txt
trunk/catalog/templates/defaut/css/images/
trunk/catalog/templates/defaut/includes/gabarit/account/history_quotation/
Added: trunk/catalog/admin/includes/gabarit/categories/categories_extra/display_edit.edit.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/categories/categories_extra/display_edit.edit.gab (rev 0)
+++ trunk/catalog/admin/includes/gabarit/categories/categories_extra/display_edit.edit.gab 2015-04-07 08:13:07 UTC (rev 5259)
@@ -0,0 +1,21 @@
+<?php
+/**
+ @licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 28/02/2012, 18:12
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+global $languages_id;
+
+// var_dump(categories::$Id,$languages_id);
+?>
+
+<div class="block_input">
+ <fieldset class="block_field">
+<!-- <legend><?php //echo __('@products_extra category extra fields') ?></legend> -->
+ <?php echo categories_extra::get_extra_fields(categories::$Id,$languages_id) ?>
+ </fieldset>
+</div>
Added: trunk/catalog/admin/includes/languages/fr_FR/modules/categories/categories_extra.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/categories/categories_extra.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/categories/categories_extra.txt 2015-04-07 08:13:07 UTC (rev 5259)
@@ -0,0 +1,13 @@
+<?php
+/**
+ @licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 21/06/2012, 23:13
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @sub-package desc_base
+*/
+$lang['@categories_extra edit tab']="Champs suppl" ;
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/languages/fr_FR/modules/shipping/mzmt.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/shipping/mzmt.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/shipping/mzmt.txt 2015-04-07 08:13:07 UTC (rev 5259)
@@ -0,0 +1,90 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.2.0
+ @date 23/07/2010, 15:22
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @file geozone.txt
+ @dir /includes/languages/fr_FR/shipping/
+*/
+
+
+$lang['module shipping text mzmt title']="MultiGeoZone MultiTable" ;
+$lang['module shipping mzmt text description']="Multiple geo zone shipping with multiple tables to each geo zone." ;
+
+/**
+ Ajouter autant d'entree que de zone et de table
+*/
+// titre transporteur zone 1
+$lang['module shipping mzmt geozone 1 text title']="MZMT zone 1 " ;
+ // detail table price
+ $lang['module shipping mzmt geozone 1 table 1 text way']="MZMT geozone 1 table 1 " ;
+ $lang['module shipping mzmt geozone 1 table 2 text way']="MZMT geozone 1 table 2 " ;
+ $lang['module shipping mzmt geozone 1 table 3 text way']="MZMT geozone 1 table 3" ;
+
+// titre transporteur zone 2
+$lang['module shipping mzmt geozone 2 text title']="MZMT zone 2 " ;
+ // detail table price
+ $lang['module shipping mzmt geozone 2 table 1 text way']="MZMT geozone 2 table 1 " ;
+ $lang['module shipping mzmt geozone 2 table 2 text way']="MZMT geozone 2 table 2 " ;
+ $lang['module shipping mzmt geozone 2 table 3 text way']="MZMT geozone 2 table 3" ;
+
+// titre transporteur zone 2
+$lang['module shipping mzmt geozone 3 text title']="MZMT zone 3 " ;
+ // detail table price
+ $lang['module shipping mzmt geozone 2 table 1 text way']="MZMT geozone 2 table 1 " ;
+ $lang['module shipping mzmt geozone 2 table 2 text way']="MZMT geozone 2 table 2 " ;
+ $lang['module shipping mzmt geozone 2 table 3 text way']="MZMT geozone 2 table 3" ;
+
+
+
+
+/** Specifique BO */
+$lang['tax class']="Appliquer une taxe" ;
+$lang['use the following tax class on the shipping fee.']="Appliquer une taxe lors de l'uitilisation de ce module" ;
+
+$lang['sort order']="Ordre de tri" ;
+$lang['sort order of display.']="Ordre de tri, si plusieur module" ;
+$lang['number geozones']="Nombre de zone de livraison" ;
+$lang['use the following tax class on the shipping fee.']="Nombre de zone de livraison à mettre en place, attention cette action reinitialise le module" ;
+
+
+
+
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_ID_S'] = "Zone (1) - Appliquer une taxe";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_ID_L'] = "Appliquer une taxe lors de l'uitilisation de ce module.";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_MODE_S'] = "Zone (1) - Mode de calcul";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_MODE_L'] = "";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_HANDLING_S'] = "Zone (1) - Frais Fixe";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_HANDLING_L'] = "";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_ICON_S'] = "Zone (1) - Icone";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_ICON_L'] = "";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_1_S'] = "Zone (1) - Table de tarif (1)";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_1_L'] = "";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_2_S'] = "Zone (1) - Table de tarif (2)";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_2_L'] = "";
+
+
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_2_ID_S'] = "Zone (2) - Appliquer une taxe";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_2_ID_L'] = "Appliquer une taxe lors de l'uitilisation de ce module.";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_2_MODE_S'] = "Zone (2) - Mode de calcul";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_2_MODE_L'] = "";
+
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_3_ID_S'] = "Zone (3) - Appliquer une taxe";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_3_ID_L'] = "Appliquer une taxe lors de l'uitilisation de ce module.";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_3_MODE_S'] = "Zone (3) - Mode de calcul";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_3_MODE_L'] = "";
+
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_4_ID_S'] = "Zone (4) - Appliquer une taxe";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_4_ID_L'] = "Appliquer une taxe lors de l'uitilisation de ce module.";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_4_MODE_S'] = "Zone (4) - Mode de calcul";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_4_MODE_L'] = "";
+
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_5_ID_S'] = "Zone (5) - Appliquer une taxe";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_5_ID_L'] = "Appliquer une taxe lors de l'uitilisation de ce module.";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_5_MODE_S'] = "Zone (5) - Mode de calcul";
+$lang['MODULE_SHIPPING_MZMT_GEOZONE_5_MODE_L'] = "";
+?>
\ No newline at end of file
Modified: trunk/catalog/common/classes/FieldsDisplay.php
===================================================================
--- trunk/catalog/common/classes/FieldsDisplay.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/FieldsDisplay.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -57,6 +57,8 @@
6 => 'select_multi',
7 => 'checkbox_multi',
// 8 => 'textarea_advanced',
+ 9 => 'local_file',
+ 10 => 'remote_file'
);
/**
@var label format
Modified: trunk/catalog/common/classes/addressUtility.php
===================================================================
--- trunk/catalog/common/classes/addressUtility.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/addressUtility.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -78,7 +78,7 @@
@param $boln
@param $eoln
*/
- function FormatAddress($address_format_id, $address, $html, $boln, $eoln) {
+ public static function FormatAddress($address_format_id, $address, $html, $boln, $eoln) {
if(!is_array($address) && !is_object($address) )
@@ -94,6 +94,9 @@
elseif(is_object($address))
$obj = $address;
+
+ $company = '';
+ $personnal ='';
if ($html) {
// HTML Mode
@@ -117,7 +120,7 @@
// print_r($obj);
if ( _cst_bool('ACCOUNT_COMPANY')){
$company = tep_output_string_protected($obj->company);
- if(isset($obj->extra ) ){
+ if(isset($obj->extra ) && is_array($obj->extra) ){
foreach($obj->extra as $row)
if($row->epf_class =='company')
$company .= $cr.tep_output_string_protected($row->value) ;
@@ -132,7 +135,7 @@
$personnal .= ( (isset($obj->firstname) && tep_not_null($obj->firstname) && isset($obj->lastname) && tep_not_null($obj->lastname)) ? ' ' : '' );
$personnal .= ( (isset($obj->lastname) && tep_not_null($obj->lastname)) ? tep_output_string_protected($obj->lastname) : '' );
}
- if(isset($obj->extra ) ){
+ if(isset($obj->extra ) && is_array($obj->extra) ){
foreach($obj->extra as $row)
if($row->epf_class =='personnal')
$personnal .= $cr.tep_output_string_protected($row->value) ;
@@ -142,7 +145,7 @@
$streets = tep_output_string_protected($obj->street_address);
$streets .=( (isset($obj->suburb) && tep_not_null($obj->suburb)) ? $cr.tep_output_string_protected($obj->suburb) : '' );
- if(isset($obj->extra ) ){
+ if(isset($obj->extra ) && is_array($obj->extra) ){
foreach($obj->extra as $row)
if($row->epf_class =='address')
$streets .= $cr.tep_output_string_protected($row->value) ;
@@ -170,11 +173,10 @@
if ($state != '') $statecomma = $state . ', ';
+
$fmt = $address_format['format'];
eval("\$string = \"$fmt\";");
-
-
return $string;
}
Modified: trunk/catalog/common/classes/cart/CartListener.class.php
===================================================================
--- trunk/catalog/common/classes/cart/CartListener.class.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/cart/CartListener.class.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -13,7 +13,7 @@
/**
@interface CartSession
- @brief structure for class stoackage session value cart
+ @brief structure for class stockage session value cart
*/
Class CartListener{
/**
Modified: trunk/catalog/common/classes/cart/CartStockage.class.php
===================================================================
--- trunk/catalog/common/classes/cart/CartStockage.class.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/cart/CartStockage.class.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -36,7 +36,9 @@
if (!isset($_SESSION[$this->_namespace])) {
$_SESSION[$this->_namespace] = array();
}
- $this->content = &$_SESSION[$this->_namespace];
+ $this->content = $_SESSION[$this->_namespace];
+
+// print_r($this->content); exit;
}
/**
@@ -45,6 +47,7 @@
@return no return
*/
private function FixSession(){
+
$_SESSION[$this->_namespace] = $this->content;
}
@@ -60,20 +63,66 @@
$args = func_get_args();
$list = $args[0];
+// $return = array();
+// print_r($list);
if( count($list) > 0 ) {
- $products_id_string = @$list[0];
- $option = @$list[1];
+ $_id_string = @$list[0];
+ $row_id = @$list[1];
$value = @$list[2];
- if($products_id_string && isset($this->content[$products_id_string])) {
- if( $option !=null ){
- if( isset($this->content[$products_id_string]['attributes'][$option]) )
- return $this->content[$products_id_string];
- else
+ if($_id_string){
+
+// $objPidFormat = new CartPidFormat();
+// $objPidFormat->SetIdString($_id_string);
+//
+// $pid = $objPidFormat->GetId();
+
+ preg_match('#^(.*)____#i', $_id_string, $match);
+
+ if(isset($match[1]))
+ $products_id_string = substr($_id_string, strlen($match[1]) + 4 );
+
+ if( isset($this->content[$_id_string]) ) {
+
+ if(isset($match[1]) && $this->content[$_id_string]['parent_id'] != isset($match[1]) )
return false;
+ elseif( !isset($match[1]) && $this->content[$_id_string]['parent_id'] > 0 )
+ return false;
+
+
+ if( $option !=null ){
+ if( isset($this->content[$_id_string]['attributes'][$option]) )
+ return array( $_id_string =>$this->content[$_id_string]);
+ else
+ return false;
+ }
+
+ return array( $_id_string =>$this->content[$_id_string]);
}
+ else
+ return false;
+ }
+ elseif($row_id){
+
+ if( isset($this->content[$row_id]) ) {
- return $this->content[$products_id_string];
+ if(isset($match[1]) && $this->content[$row_id]['parent_id'] != isset($match[1]) )
+ return false;
+ elseif( !isset($match[1]) && $this->content[$row_id]['parent_id'] > 0 )
+ return false;
+
+
+ if( $option !=null ){
+ if( isset($this->content[$row_id]['attributes'][$option]) )
+ return array( $row_id =>$this->content[$row_id]);
+ else
+ return false;
+ }
+
+ return array( $row_id =>$this->content[$row_id]);
+ }
+ else
+ return false;
}
else
return false;
@@ -87,6 +136,7 @@
@param $products_id_string int
@param $qty int
@param $special_class string
+ @param parent_id rowid of parent
*/
public function Set(/*$products_id_string, $qty, $special_class*/){
$args = func_get_args();
@@ -95,10 +145,21 @@
$products_id_string = $list[0];
$qty = $list[1];
$special_class = $list[2];
+ $parent_id = $list[3];
+ $grp_line = $list[4];
+
- $this->content[$products_id_string] = array('qty' => $qty);
-
+// var_dump($products_id_string); exit;
+ $this->content[$products_id_string]['pid'] = substr($products_id_string, strlen($parent_id)+4 ) ;
+ $this->content[$products_id_string]['qty'] = $qty;
+ $this->content[$products_id_string]['special_class'] = $special_class;
+ $this->content[$products_id_string]['parent_id'] = $parent_id;
+ $this->content[$products_id_string]['grp_line'] = (int)$grp_line;
+ $this->content[$products_id_string]['row_id'] = $products_id_string;
+// var_dump($this->content[$products_id_string]); exit;
$this->FixSession();
+
+ return $products_id_string;
}
/**
@@ -110,7 +171,6 @@
public function SetAttribute(/*$products_id_string, $option, $value, $attr_value*/){
$args = func_get_args();
$list = $args[0];
-
$products_id_string = $list[0];
$option = $list[1];
$value = $list[2];
@@ -118,6 +178,7 @@
$this->content[$products_id_string]['attributes'][$option] = $value;
$this->content[$products_id_string]['attributes_values'][$option] = $attr_value;
+
$this->FixSession();
}
@@ -136,6 +197,8 @@
$this->content[$products_id_string]['qty'] += $qty;
$this->FixSession();
+
+ return $products_id_string;
}
/**
@@ -166,6 +229,10 @@
$products_id_string = $list[0];
+ foreach($this->content as $id=>$row)
+ if($row['parent_id'] == $products_id_string)
+ unset($this->content[$id]);
+
unset($this->content[$products_id_string]);
$this->FixSession();
@@ -175,7 +242,7 @@
*/
public function Clean(){
$this->content = array();
-
+
$this->FixSession();
}
Modified: trunk/catalog/common/classes/cart/CartStockageCustomer.class.php
===================================================================
--- trunk/catalog/common/classes/cart/CartStockageCustomer.class.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/cart/CartStockageCustomer.class.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -33,7 +33,7 @@
if (!isset($_SESSION[$this->_namespace])) {
$_SESSION[$this->_namespace] = $this->Get();
}
-
+
$this->content = $_SESSION[$this->_namespace];
}
@@ -47,12 +47,23 @@
public function Set(/* $products_id_string, $qty, $special_class */){
$args = func_get_args();
$list = $args[0];
+
+
$products_id_string = $list[0];
$qty = $list[1];
$special_class = $list[2];
+ $parent_id = $list[3];
+ $grp_line = $list[4];
+// print_r($list);
+// exit;
+ $DB = Database::getInstance();
+ if($this->Isloggued()) {
+ $res = $DB->query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, parent_id, customers_basket_quantity, customers_basket_date_added, grp_line) values ('" . (int)$_SESSION['customer_id'] . "', '" . tep_db_input($products_id_string) . "', '" . tep_db_input($parent_id) . "', '" . $qty . "', '" . date('Ymd') . "', '".$grp_line."')");
- if($this->Isloggued())
- tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, customers_basket_quantity, customers_basket_date_added) values ('" . (int)$_SESSION['customer_id'] . "', '" . tep_db_input($products_id_string) . "', '" . $qty . "', '" . date('Ymd') . "')");
+ return $res->__get('insertId');
+ }
+
+ return false;
}
/**
@@ -63,6 +74,7 @@
*/
public function SetAttribute(/*$products_id_string, $option, $value, $attr_value*/){
$args = func_get_args();
+// print_r($args);
$list = $args[0];
$products_id_string = $list[0];
$option = $list[1];
@@ -70,7 +82,7 @@
$attr_value = $list[3];
if($this->Isloggued())
- tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " (customers_id, products_id, products_options_id, products_options_value_id,products_options_value_text) values ('" . (int)$_SESSION['customer_id'] . "', '" . tep_db_input($products_id_string) . "', '" . (int)$option . "', '" . (is_array($value)? 0 : $value) . "', '" . tep_db_input($attr_value) . "')");
+ tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " (customers_id, products_id, products_options_id, products_options_value_id,products_options_value_text) values ('" . (int)$_SESSION['customer_id'] . "', '" . tep_db_input($products_id_string) . "', '" . (int)$option . "', '" . (is_array($value)? implode(',',$value) : $value) . "', '" . tep_db_input($attr_value) . "')");
}
/**
@@ -85,6 +97,8 @@
if($this->Isloggued())
tep_db_query($sql="update " . TABLE_CUSTOMERS_BASKET . " set customers_basket_quantity = (customers_basket_quantity + '" . $qty . "' ) where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($products_id_string) . "'");
+
+ return $products_id_string;
}
/**
@@ -110,14 +124,30 @@
@param $products_id_string int
*/
public function Delete(/*$products_id_string*/){
+ $DB = Database::getInstance();
+
$args = func_get_args();
$list = $args[0];
$products_id_string = $list[0];
if($this->Isloggued()) {
- tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($products_id_string) . "'");
- tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($products_id_string) . "'");
+
+ $res = $DB->query("SELECT customers_basket_id as rowid from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($products_id_string) . "'");
+ $prod = $res->fetchAssoc();
+// print_r($prod);
+ $res = $DB->query($sql = "SELECT * from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and (parent_id = '" . $prod['rowid'] . "' OR customers_basket_id = '" . $prod['rowid'] . "')");
+ echo $sql;
+ foreach($res->fetchAllAssoc() as $row){
+ print_r($row);
+ tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($row['products_id']) . "'");
+
+ tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($row['products_id']) . "' ");
+
+ }
+ return true ;
+// tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and ( products_id = '" . tep_db_input($products_id_string) . "' OR ");
+// tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . tep_db_input($products_id_string) . "'");
}
}
@@ -161,49 +191,74 @@
$products_id_string = false;
- $sql = " SELECT products_id, customers_basket_quantity FROM " . TABLE_CUSTOMERS_BASKET . " WHERE 1 ";
+ $sql = " SELECT customers_basket_id, products_id, customers_basket_quantity, parent_id, grp_line FROM " . TABLE_CUSTOMERS_BASKET . " WHERE 1 ";
$sql .= " AND customers_id = '".(int)$_SESSION['customer_id'] ."' ";
if( count($list) > 0 ){
- $products_id_string = @$list[0];
- $option = @$list[1];
- $value = @$list[2];
-
- if($products_id_string ) {
- $sql .= " AND products_id = '".$products_id_string."' ";
+
+ if(isset($list[0]) && !empty($list[0])){
+ $products_id_string = @$list[0];
+// preg_match('#(.*)____#i', $products_id_string, $match);
+
+ // print_r($match); exit;
+ // $option = @$list[1];
+ // $value = @$list[2];
+
+ if($products_id_string ) {
+ $sql .= " AND products_id = '".$products_id_string."' ";
+ }
}
+ elseif(isset($list[1])){
+ $row_id= $list[1];
+ $sql .= " AND customers_basket_id = '".$row_id."' ";
+ }
}
+ $sql .= " ORDER BY grp_line ASC, parent_id ASC ";
+// echo $sql;
$DB = Database::getInstance();
$products_query = $DB->query($sql);
-
+// print_r($products_query->fetchAllAssoc());
+// exit;
$list = array();
foreach($products_query->fetchAllAssoc() as $products) {
+ if( tep_get_prid($products['products_id']) == $products['products_id'] )
+ $products_id_string = true;
+ else
+ $products_id_string = false;
+
$tmp = array(
'qty'=> $products['customers_basket_quantity'],
- );
-
+ 'parent_id'=> $products['parent_id'],
+ 'grp_line'=> $products['grp_line'],
+ 'row_id'=> $products['customers_basket_id'],
+ 'pid'=> $products['products_id'],
+ );
+
if(!$products_id_string) {
$products_id_string = tep_get_prid($products['products_id']);
- $option = ( count(tep_get_prid_array($products['products_id']))>0 ? 1 : 0 );
+ $option = tep_get_prid_array($products['products_id']);
}
-
+// var_dump(tep_get_prid_array($products['products_id']));
// attributes
- if( $products_id_string && $option > 0) {
- $sql="select cba.products_options_id as options_id, cba.products_options_value_id as value_id, cba.products_options_value_text, po.products_options_type as type from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " cba LEFT JOIN ".TABLE_PRODUCTS_OPTIONS." po ON(cba.products_options_id = po.products_options_id ) where cba.customers_id = '" . (int)$_SESSION['customer_id'] . "' and cba.products_id = '" . tep_db_input($products['products_id']) . "' ";
+ if( $products_id_string && count($option) > 0) {
+ /*echo*/ $sql="select cba.products_options_id as options_id, cba.products_options_value_id as value_id, cba.products_options_value_text, po.products_options_type as type from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " cba LEFT JOIN ".TABLE_PRODUCTS_OPTIONS." po ON(cba.products_options_id = po.products_options_id ) where cba.customers_id = '" . (int)$_SESSION['customer_id'] . "' and cba.products_id = '" . tep_db_input($products['products_id']) . "' ";
$attributes_query = $DB->query($sql);
while ($attributes = $attributes_query->fetchAssoc()) {
// specific mode txt type option product
- if ($attributes['type'] == 2){
+ if (in_array($attributes['type'] ,array(2,5)) ){
$tmp['attributes'][$attributes['options_id']] = $attributes['value_id'];
$tmp['attributes_values'][$attributes['options_id']] = $attributes['products_options_value_text'];
+ }
+
// specific mode multi value for one option
- }elseif( $attributes['value_id'] === 0)
+ elseif( preg_match('#([0-9]*,)#',$option[$attributes['options_id']]) /*> 1*/ )//$attributes['value_id'] === 0)
$tmp['attributes'][$attributes['options_id']] = explode(',',$attributes['products_options_value_text']);
+
// normal
else
$tmp['attributes'][$attributes['options_id']] = $attributes['value_id'];
@@ -212,7 +267,7 @@
$list[ $products['products_id'] ] =$tmp;
}
-
+
return $list;
}
}
Modified: trunk/catalog/common/classes/datatype_drivers/Data_categorie.php
===================================================================
--- trunk/catalog/common/classes/datatype_drivers/Data_categorie.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/datatype_drivers/Data_categorie.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -160,6 +160,7 @@
$this->listing_sql['leftto']['groupby'] = ", ".$this->p."2c.".substr($col, strpos($col, '.')+1 )." ";
+
return $this->listing_sql['leftto'];
}
@@ -378,6 +379,7 @@
*/
function FO_load_listing(listing $listing, DataTypesChildListing $subtype, $type){
global $current_category_id, $languages_id, $list;
+// print_r($current_category_id);
$page = page::getInstance();
$DB=Database::getInstance();
@@ -443,11 +445,12 @@
$obj->description = $categories->GetText();
$obj->href = $categories->GetHref();
+
$page->SetVar('RootListing',$obj);
$page->SetVar('current_id',$current_category_id);
$page->SetVar('current_type','categorie');
+ $page->SetVar('current_object', $categories);
-
if($category_depth == 'nested'){
if(tep_not_null($list))
@@ -464,7 +467,7 @@
// put dynamical sort for childs curent datatype for this cat
// if(isset($categories->sortchids_datatype) && tep_not_null($categories->sortchids_datatype))
// $this->listing_query_sort = $categories->sortchids_datatype;
-
+// print_r($listing);
$listing->QueryAddWhere( " AND ".$this->p."2c.categories_id = '" . (int)$categories->id . "'");
}
Modified: trunk/catalog/common/classes/datatype_drivers/Data_product.php
===================================================================
--- trunk/catalog/common/classes/datatype_drivers/Data_product.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/datatype_drivers/Data_product.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -308,7 +308,7 @@
$listing->QueryAddWhere( " AND ".$this->listing_sql['col_count']." = '".$_GET['product']."' ");
}
-
+
return true;
}
@@ -578,11 +578,13 @@
$page->force_content($page_content);
+ $page->SetVar('cPath_array', $cPath_array);
$page->SetVar('current_object', $objectProduct);
$page->SetVar('current_type',$this->DataType);
$page->SetVar('current_id',(int)$_GET['products_id']);
$page->SetVar('type_id',(int)$objectProduct->GetType());
-
+// print_r($_GET);
+// exit;
return $page_content;
break;
default:
Modified: trunk/catalog/common/classes/formUtility.php
===================================================================
--- trunk/catalog/common/classes/formUtility.php 2015-04-07 08:08:55 UTC (rev 5258)
+++ trunk/catalog/common/classes/formUtility.php 2015-04-07 08:13:07 UTC (rev 5259)
@@ -226,7 +226,7 @@
if (!tep_not_null($id)) $id=tep_output_string($name);
if (empty($default) && isset($GLOBALS...
[truncated message content] |
|
From: <os...@us...> - 2016-01-27 08:56:24
|
Revision: 5290
http://sourceforge.net/p/oscss/svn/5290
Author: oscim
Date: 2016-01-27 08:56:21 +0000 (Wed, 27 Jan 2016)
Log Message:
-----------
Add option for smtp server configuration
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/emailUtility.php
trunk/catalog/includes/functions/general.php
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Modified: trunk/catalog/admin/includes/classes/emailUtility.php
===================================================================
--- trunk/catalog/admin/includes/classes/emailUtility.php 2016-01-26 17:23:33 UTC (rev 5289)
+++ trunk/catalog/admin/includes/classes/emailUtility.php 2016-01-27 08:56:21 UTC (rev 5290)
@@ -61,13 +61,37 @@
// Instantiate a new mail object
$message = new PHPMailer();
- if (EMAIL_TRANSPORT == 'smtp'){
- $message->IsSMTP(); // telling the class to use SMTP
+ if (EMAIL_TRANSPORT == 'smtp') {
+
+ if( OSCSS_DEBUG == true)
+ $message->SMTPDebug = true;
+
+ if (tep_cst_define('SMTP_USERNAME') && tep_cst_define('SMTP_PASSWORD')) {
+ $message->SMTPAuth = true;
- if( !tep_not_null($from_email_address) ) $from_email_address = SMTP_SENDMAIL_FROM;
- if( !tep_not_null($from_email_name) ) $from_email_name = SMTP_FROMEMAIL_NAME;
- $message->Host = SMTP_MAIL_SERVER; // SMTP server
- }else{
+ $message->Username = SMTP_USERNAME;
+ $message->Password = SMTP_PASSWORD;
+
+ if (tep_cst_define('SMTP_SSL_TYPE'))
+ $message->SMTPSecure = SMTP_SSL_TYPE;
+ }
+
+ $message->IsSMTP(); // telling the class to use SMTP
+
+ if (!tep_not_null($from_email_address))
+ $from_email_address = SMTP_SENDMAIL_FROM;
+
+ if (!tep_not_null($from_email_name))
+ $from_email_name = SMTP_FROMEMAIL_NAME;
+
+ $message->Sender = SMTP_SENDMAIL_FROM;
+ $message->SMTPAuth = true;
+
+ $message->Host = SMTP_MAIL_SERVER; // SMTP server
+
+ $message->Port = SMTP_PORT_NUMBER; // SMTP server
+ }
+ else{
$message->IsSendmail();
//////(EMAIL_TRANSPORT == 'sendmail')
//////You need to implement here if you are using sendmail
Modified: trunk/catalog/includes/functions/general.php
===================================================================
--- trunk/catalog/includes/functions/general.php 2016-01-26 17:23:33 UTC (rev 5289)
+++ trunk/catalog/includes/functions/general.php 2016-01-27 08:56:21 UTC (rev 5290)
@@ -742,14 +742,37 @@
// Instantiate a new mail object
$message = new PHPMailer();
- if (EMAIL_TRANSPORT == 'smtp'){
- $message->IsSMTP(); // telling the class to use SMTP
+ if (EMAIL_TRANSPORT == 'smtp') {
+
+ if( OSCSS_DEBUG == true)
+ $message->SMTPDebug = true;
+
+ if (tep_cst_define('SMTP_USERNAME') && tep_cst_define('SMTP_PASSWORD')) {
+ $message->SMTPAuth = true;
- if( !tep_not_null($from_email_address) ) $from_email_address = SMTP_SENDMAIL_FROM;
- if( !tep_not_null($from_email_name) ) $from_email_name = SMTP_FROMEMAIL_NAME;
- // Config
- $message->Host = SMTP_MAIL_SERVER; // SMTP server
- }else{
+ $message->Username = SMTP_USERNAME;
+ $message->Password = SMTP_PASSWORD;
+
+ if (tep_cst_define('SMTP_SSL_TYPE'))
+ $message->SMTPSecure = SMTP_SSL_TYPE;
+ }
+
+ $message->IsSMTP(); // telling the class to use SMTP
+
+ if (!tep_not_null($from_email_address))
+ $from_email_address = SMTP_SENDMAIL_FROM;
+
+ if (!tep_not_null($from_email_name))
+ $from_email_name = SMTP_FROMEMAIL_NAME;
+
+ $message->Sender = SMTP_SENDMAIL_FROM;
+ $message->SMTPAuth = true;
+
+ $message->Host = SMTP_MAIL_SERVER; // SMTP server
+
+ $message->Port = SMTP_PORT_NUMBER; // SMTP server
+ }
+ else{
$message->IsSendmail();
// $mail->Sendmail ='/usr/sbin/sendmail';
//////(EMAIL_TRANSPORT == 'sendmail')
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2016-01-26 17:23:33 UTC (rev 5289)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2016-01-27 08:56:21 UTC (rev 5290)
@@ -181,6 +181,11 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('EMAIL_TRANSPORT_S', 'EMAIL_TRANSPORT', 'sendmail', 'EMAIL_TRANSPORT_L', '12', '1', NOW(), NOW(), NULL, 'tep_cfg_select_option(array(\'sendmail\', \'smtp\'),');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_MAIL_SERVER_S', 'SMTP_MAIL_SERVER', 'localhost', 'SMTP_MAIL_SERVER_L', '12', '1', NOW(), NOW(), NULL, NULL);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_PORT_NUMBER_S', 'SMTP_PORT_NUMBER', '25', 'SMTP_PORT_NUMBER_L', '12', '1', NOW(), NOW(), NULL, NULL);
+
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_USERNAME_S', 'SMTP_USERNAME', '', 'SMTP_USERNAME_L', '12', '1', NOW(), NOW(), NULL, NULL);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_PASSWORD_S', 'SMTP_PASSWORD', '25', 'SMTP_PASSWORD_L', '12', '1', NOW(), NOW(), NULL, NULL);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_SSL_TYPE_S', 'SMTP_SSL_TYPE', '25', 'SMTP_SSL_TYPE_L', '12', '1', NOW(), NOW(), NULL, 'tep_cfg_select_option(array(\'\', \'ssl\', \'tls\'),');
+
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_SENDMAIL_FROM_S', 'SMTP_SENDMAIL_FROM', 'root@localhost', 'SMTP_SENDMAIL_FROM_L', '12', '1', NOW(), NOW(), NULL, NULL);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_FROMEMAIL_NAME_S', 'SMTP_FROMEMAIL_NAME', 'Store owner name', 'SMTP_FROMEMAIL_NAME_L', '12', '1', NOW(), NOW(), NULL, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2016-03-21 13:15:11
|
Revision: 5299
http://sourceforge.net/p/oscss/svn/5299
Author: oscim
Date: 2016-03-21 13:15:09 +0000 (Mon, 21 Mar 2016)
Log Message:
-----------
Fix error in param for general lib
Fix error in template ModerRWD
Fix error in class CartPidFormat
Modified Paths:
--------------
trunk/catalog/common/classes/cart/CartPidFormat.class.php
trunk/catalog/includes/functions/general.php
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/Childs_tpl/ssheader.php
Modified: trunk/catalog/common/classes/cart/CartPidFormat.class.php
===================================================================
--- trunk/catalog/common/classes/cart/CartPidFormat.class.php 2016-03-21 10:57:29 UTC (rev 5298)
+++ trunk/catalog/common/classes/cart/CartPidFormat.class.php 2016-03-21 13:15:09 UTC (rev 5299)
@@ -37,7 +37,7 @@
*/
public function __construct(){
$args = func_get_args();
- $list = $args[0];
+ $list = @$args[0];
$this->reset();
if ( count($list) > 0 ) {
Modified: trunk/catalog/includes/functions/general.php
===================================================================
--- trunk/catalog/includes/functions/general.php 2016-03-21 10:57:29 UTC (rev 5298)
+++ trunk/catalog/includes/functions/general.php 2016-03-21 13:15:09 UTC (rev 5299)
@@ -3,7 +3,7 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
+ @version 2.2.0
@date 14/09/11, 20:33
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@@ -457,7 +457,7 @@
/**
@brief Return a product ID with attributes
*/
-function tep_get_uprid($prid, $params, $parent=0) {
+function tep_get_uprid($prid, $params, $parent_id=0) {
$objPidFormat = new CartPidFormat(array($prid, $params, $parent_id));
return $objPidFormat->GetIdString();
}
Modified: trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/Childs_tpl/ssheader.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/Childs_tpl/ssheader.php 2016-03-21 10:57:29 UTC (rev 5298)
+++ trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/Childs_tpl/ssheader.php 2016-03-21 13:15:09 UTC (rev 5299)
@@ -41,8 +41,8 @@
</li>
<li class="divider"></li>
<li class="dropdown">
- <?= $boxe =$page->oscss_boxes->_return('view_min_cart'); ?>
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="sprite-basket rotator"></i><?= $boxe->total ?> € <span class="badge"><?= $boxe->items ?></span><span class="caret"></span></a>
+ <?php $boxe =$page->oscss_boxes->_return('view_min_cart'); ?>
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="sprite-basket rotator"></i><?= $boxe->total ?> € <span class="badge"><?= $boxe->items ?></span><span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><?php echo unhtmlentities($boxe->content) ?></li>
@@ -76,7 +76,7 @@
<li><a href="#"><?php echo __('') ?>Blog</a></li>
</ul>
<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH, '', 'NONSSL', false), 'get', 'class="navbar-form navbar-right input-group"') ;?>
- <?php echo tep_draw_input_field('keywords','keywords','', 'class="form-control" placeholder="'.ENTRY_KEYWORDS.'"',false,"search"); ?>
+ <?php echo tep_draw_input_field('keywords','keywords','', 'class="form-control" placeholder="'.__('entry keywords').'"',false,"search"); ?>
<span class="input-group-btn">
<input type="submit" class="btn btn-default" value="<?php echo __('') ?>Go" />
</span>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2016-03-22 11:57:44
|
Revision: 5303
http://sourceforge.net/p/oscss/svn/5303
Author: oscim
Date: 2016-03-22 11:57:42 +0000 (Tue, 22 Mar 2016)
Log Message:
-----------
Fix erreur in load page featured
Fix error in save featured for create new item
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/drivers/sqlfeatured.php
trunk/catalog/admin/includes/modules/pages/featureds.php
trunk/catalog/common/classes/datatype_drivers/Data_categorie.php
trunk/catalog/common/classes/datatype_drivers/Data_featured.php
trunk/catalog/templates/defaut/includes/content/index_listing.php
Modified: trunk/catalog/admin/includes/classes/drivers/sqlfeatured.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlfeatured.php 2016-03-22 09:58:30 UTC (rev 5302)
+++ trunk/catalog/admin/includes/classes/drivers/sqlfeatured.php 2016-03-22 11:57:42 UTC (rev 5303)
@@ -74,7 +74,7 @@
// language table
if( $error <= 0){
- if(count($sql_data_array_lg['lg']) > 0)
+ if(count($sql_data_array_lg['lg']) > 0){
foreach($sql_data_array_lg['lg'] as $key=>$sql_data_array){
$sql_data_array['featured_id'] = $id;
$sql_data_array['languages_id'] = $key;
@@ -91,15 +91,15 @@
$sql_data_array = array(
'featured_title' => '',
'featured_id' => $id,
- 'language_id' => $language_id
+ 'languages_id' => $language_id
);
-
$res=tep_db_perform(TABLE_FEATURED_DESCRIPTION, $sql_data_array);
if(!$res)
$error++;
}
}
-
+ }
+
if( $error > 0){
$DB->rollbackTransaction();
return false;
@@ -220,7 +220,7 @@
$res=$DB->query($sql);
$num = $res->__get('numRows');
-
+// var_dump($num);
if($num >= 1){
$array=array();
global $languages_id;
@@ -246,9 +246,10 @@
return ((!$shortkey)? $array[0] : self::CleanKey($array[0])) ;
}
elseif($num > 1){
+ $arr= $array;
$array=array();
- foreach($array as $lg)
+ foreach($arr as $lg)
$array[]= ((!$shortkey)? $lg : self::CleanKey($lg));
return $array;
Modified: trunk/catalog/admin/includes/modules/pages/featureds.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/featureds.php 2016-03-22 09:58:30 UTC (rev 5302)
+++ trunk/catalog/admin/includes/modules/pages/featureds.php 2016-03-22 11:57:42 UTC (rev 5303)
@@ -13,7 +13,7 @@
require_once(DIR_FS_ADMIN . DIR_WS_CLASSES .'ModTreePage.php');
-
+require_once(DIR_FS_ADMIN . DIR_WS_CLASSES .'listeners/EventMessListener.php');
/**
@class featureds
*/
@@ -36,7 +36,7 @@
, RightToFilter
// Events Interface for display and exec all notification
-// , EventMessInterface
+ , EventMessInterface
// Event propagation Action
// , EventTriggersCacheInterface
@@ -115,6 +115,7 @@
'input_size'=>'64',
'required_status'=>true,
'active_value_language'=>true,
+ 'position_col'=>'left',
),
),
@@ -140,6 +141,17 @@
'width'=>'10%',
'class'=>'tcenter',
'default'=>true,
+ 'edit'=>array(
+ 'input_name'=>'status_name',
+ 'input_type'=>'radio',
+ 'required_status'=>true,
+ 'values_list'=>array(
+ array('id'=>0, 'text'=>__('@featured text status off') ),
+ array('id'=>1, 'text'=>__('@featured text status on') ),
+ ),
+ 'position_col'=>'right',
+ 'position_grp'=>5
+ ),
),
'c.featured_min' => array(
@@ -281,14 +293,20 @@
if (self::$Id > 0){
$myarray = array('id'=>self::$Id ,'sqlarray'=>array('featured_status'=>$_GET['flag'] ) );
- sqlfeatured::update($myarray);
+ $r = sqlfeatured::update($myarray);
+
+ if($r){
+ self::PutMessage(
+ new EventMessListener(__('update status', __CLASS__) , 'success')
+ );
+
+ if(!isset($_GET['forceajax']))
+ tep_redirect(tep_href_link(self::FILENAME, 'cID=' . self::$Id));
+ else
+ return true;
+ }
}
}
-
- $messageStack->add(__('@featureds update status'), 'success');
-
- if(!isset($_GET['forceajax']))
- tep_redirect(tep_href_link(self::FILENAME, 'cID=' . self::$Id));
break;
@@ -445,14 +463,16 @@
while ($item = $_query->fetchAssoc()) {
$ord = array();
- $item[0]=$item['id'];
- $item[1]=tep_draw_checkbox_field('action_multi['.$item['id'].']','action_mutli_'.$item['id'],$item['id']);
+
foreach(self::$InitInfo['modele']['listing'] as $k=>$row)
if( ($value = self::FormatDBValueRow($k, $item)) && $value !=false )
$ord[$k]= $value;
else $ord[$k]=$item[$k];
+ $ord[0]=$item['id'];
+ $ord[1]=tep_draw_checkbox_field('action_multi['.$item['id'].']','action_mutli_'.$item['id'],$item['id']);
+
$res[]=$ord;
}
break;
Modified: trunk/catalog/common/classes/datatype_drivers/Data_categorie.php
===================================================================
--- trunk/catalog/common/classes/datatype_drivers/Data_categorie.php 2016-03-22 09:58:30 UTC (rev 5302)
+++ trunk/catalog/common/classes/datatype_drivers/Data_categorie.php 2016-03-22 11:57:42 UTC (rev 5303)
@@ -467,7 +467,6 @@
// put dynamical sort for childs curent datatype for this cat
// if(isset($categories->sortchids_datatype) && tep_not_null($categories->sortchids_datatype))
// $this->listing_query_sort = $categories->sortchids_datatype;
-// print_r($listing);
$listing->QueryAddWhere( " AND ".$this->p."2c.categories_id = '" . (int)$categories->id . "'");
}
Modified: trunk/catalog/common/classes/datatype_drivers/Data_featured.php
===================================================================
--- trunk/catalog/common/classes/datatype_drivers/Data_featured.php 2016-03-22 09:58:30 UTC (rev 5302)
+++ trunk/catalog/common/classes/datatype_drivers/Data_featured.php 2016-03-22 11:57:42 UTC (rev 5303)
@@ -253,8 +253,8 @@
- $page->add_var_page('RootListing',$obj);
- $page->add_var_page('current_id',(int)$_GET['featured']);
+// $page->SetVar('RootListing',$obj);
+// $page->SetVar('current_id',(int)$_GET['featured']);
$breadcrumb=$page->return_object('breadcrumb');
@@ -274,14 +274,14 @@
$obj->href = $featured->title ;
$obj->description = false;
- $page->add_var_page('RootListing',$obj);
- $page->add_var_page('current_id',(int)$_GET['featured']);
- $page->add_var_page('current_type',(string)'featured');
+ $page->SetVar('RootListing',$obj);
+ $page->SetVar('current_id',(int)$_GET['featured']);
+ $page->SetVar('current_type',(string)'featured');
+ $page->SetVar('current_object', $featured);
-
-
$listing->QueryAddWhere( " AND ".$this->p."data.datatype_parent_id = '".$_GET['featured']."' ");
+
return true;
}
}
Modified: trunk/catalog/templates/defaut/includes/content/index_listing.php
===================================================================
--- trunk/catalog/templates/defaut/includes/content/index_listing.php 2016-03-22 09:58:30 UTC (rev 5302)
+++ trunk/catalog/templates/defaut/includes/content/index_listing.php 2016-03-22 11:57:42 UTC (rev 5303)
@@ -24,6 +24,7 @@
*/
$RootListing=$page->GetVar('RootListing');
+
/**
@remarks Pre-load module no-type
*/
@@ -38,16 +39,16 @@
The key of extra is 'listing'
value of extra is name of module in /modules/xxx.php
*/
-// $objectCatt=$page->GetVar('current_object');
+ $objectCuurent=$page->GetVar('current_object');
$gab = '';
- if(is_object($objectCatt)){
+ if(is_object($objectCuurent)){
$gab = 'listing';
// extract extra fileds 'listing' for choose specific listing module
- foreach($objectCatt->GetExtra() as $key=>$rows )
+ foreach($objectCuurent->GetExtra() as $key=>$rows )
if($rows->epf_key == 'listing')
$gab = str_replace(array(','), array(''), $rows->input_value );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2016-03-31 09:06:16
|
Revision: 5310
http://sourceforge.net/p/oscss/svn/5310
Author: oscim
Date: 2016-03-31 09:06:13 +0000 (Thu, 31 Mar 2016)
Log Message:
-----------
Fix
add sgment of gabarit for loop module
Modified Paths:
--------------
trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/product/view.gab
trunk/catalog/templates/defaut/Childs_tpl/module.php
Added Paths:
-----------
trunk/catalog/templates/defaut/includes/gabarit/module.other.gab
trunk/catalog/templates/defaut/includes/gabarit/module.product.gab
Modified: trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/product/view.gab
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/product/view.gab 2016-03-23 14:33:40 UTC (rev 5309)
+++ trunk/catalog/install/data/templates/appareil_photo/Modern_RWD/includes/gabarit/product/view.gab 2016-03-31 09:06:13 UTC (rev 5310)
@@ -90,56 +90,6 @@
</div>
<hr class="sprite-row" />
</div>
- <div class="order-area col-md-3">
- <ul class="list-group">
- <li class="list-group-item text-center">
- <?php echo print_products_price_rv($objectProduct); ?>
- </li>
- <li class="list-group-item text-center ">
- <?php if ( $objectProduct->GetTrackStock() == 3 && $objectProduct->GetQuanity() <= 0): ?>
- <!-- this product is definitive enought stock -->
- <div class="h4"><span class="label label-warning"><?php echo __('products info stock finish in limited') ?></span></div>
- <?php else: ?>
- <div class="h3"><span class="label label-success"><?php echo __('products info stock ok') ?></span></div>
- <?php endif;?>
- </li>
- <li class="list-group-item text-center ">
- <?php if ( _test_bool($objectProduct->GetAction('buy')) /*_test_bool($product_info['action']['buy'])*/): ?>
- <!-- this product is avaible for add cart -->
- <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'post', 'class="addcart"')); ?>
-
- <?php /** Aca Attribute Products */ if(isset($module['attributeManager'])) echo $module['attributeManager']->display_view_master($objectProduct->GetId());?>
-
- <?php /** Aca Attribute Products */ if(isset($module['Abonnement'])) echo $module['Abonnement']->display_view_master($objectProduct->GetId());?>
- <?php echo tep_draw_hidden_field('products_id', $objectProduct->GetId()); ?>
- <div class="input-group">
- <?php echo tep_draw_input_field('products_quantity', 'products_quantity', '1', 'size="2" placeholder="'.__('text prefix qty').'" min="1" class="form-control"', false, 'number'); ?>
- <span class="input-group-btn"><input type="submit" class="btn btn-warning" value="<?php echo __('image button in cart'); ?>"></span>
- </div>
-
- </form>
-
- <?php else: ?>
-
- <?php if ( $objectProduct->GetTrackStock() == 3 && $objectProduct->GetQuanity() <= 0): ?>
- <!-- this product is definitive enought stock -->
- <p>
- <?php echo __('products info stock finish in limited') ?>
- </p>
- <?php endif;?>
-
- <?php endif ; ?>
- </li>
- <li class="list-group-item text-center">15 jours pour changer d'avis.<br />Satisfait ou remboursé.</li>
- <li class="list-group-item text-center">Livraison offerte à partir de<br /> 89€ d'achats en Colissimo.</li>
- <li class="list-group-item text-center">Paiements sécurisés.<br />Débit à l'expédition.</li>
- <li class="list-group-item text-center">Suivi de colis pas SMS.</li>
- <li class="list-group-item text-center">
- <h4 class="text-center">Question, conseil, commande</h4>
- <p class="h3 text-center diff-font"><a href="tel:0033633323234">+336 33 32 32 34</a></p>
- </li>
- </ul>
- </div>
</div>
</article>
Modified: trunk/catalog/templates/defaut/Childs_tpl/module.php
===================================================================
--- trunk/catalog/templates/defaut/Childs_tpl/module.php 2016-03-23 14:33:40 UTC (rev 5309)
+++ trunk/catalog/templates/defaut/Childs_tpl/module.php 2016-03-31 09:06:13 UTC (rev 5310)
@@ -37,96 +37,30 @@
* Loop Data
*/
$i = 0; foreach($themodule->module_db->content as $ele): ?>
-
- <?php if( $i%4 ==0 ) : ?>
- <?php if( $i>0 ) : ?>
- </div>
- <?php endif; ?>
- <div class="row">
- <?php endif; ?>
+
-
- <div class=" one <?php echo $ele->data ?>">
+ <div class=" one <?php echo $ele->data ?>">
- <?php if($ele->data =='product'): /** PRODUCTS */ ?>
+ <?php if(tep_get_include_contents('module.'.$ele->data ) !=false): ?>
+
<section class="col-sm-3 col-xs-6 outerblock">
- <div class="innerblock">
- <?php if (tep_not_null( $ele->GetPrice() ) && $page->_draw_in_page('PRODUCT_LIST_PRICE')) { ?>
- <p class="price product">
- <?php echo print_products_price_rv($ele) ?>
- </p>
- <?php } ?>
-
- <?php if ($page->_draw_in_page('PRODUCT_LIST_NAME')) { ?>
- <p class="title product">
- <?php echo '<a href="' . $ele->GetHref() . '" title="'.$ele->GetName().'">' . $ele->GetName() . '</a>' ;?>
- </p>
- <?php } ?>
-
- <?php if ($page->_draw_in_page('PRODUCT_LIST_IMAGE')) { ?>
- <p class="img-thumbnail product">
- <?php echo '<a href="' . $ele->GetHref() . '" title="'.$ele->GetTitle().'" >' . tep_image(DIR_WS_IMAGES . $ele->GetImage(), $ele->GetTitle(), $page->_conf_value('SMALL_IMAGE_WIDTH'), $page->_conf_value('SMALL_IMAGE_HEIGHT')) . '</a>' ; ?>
- </p>
- <?php } ?>
-
-
-
- <div class="hidden-xs innerblock-more">
- <div class="btn-group" >
- <?php if ( $page->_draw_in_page('PRODUCT_LIST_BUY_NOW')) { ?>
-
- <?php /** @remarks If buy possible and attribute , force choose attribute */ ?>
-
- <?php if (_test_bool($ele->action['buy'] ) && count(product_attribut_info($ele->GetId())) != 0): ?>
-
- <a class="btn btn-default" href="<?php echo $ele->GetHref() ?>" ><?php echo __('add to cart') ?></a>
-
-
- <?php /** @remarks If buy possible and attribute */ ?>
-
- <?php elseif (_test_bool($ele->action['buy'] )) : ?>
- <?php echo tep_draw_form($themodule->id.'cart_quantity'.$ele->GetId(), tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=add_product'), 'post', ' class="addcart"'); ?>
-
- <?php echo tep_draw_hidden_field('products_id', $ele->GetId()). tep_draw_hidden_field('products_quantity', '1'); ?>
- <input type="button" class="btn btn-default" onclick="this.form.submit()" title="<?php echo __('add to cart') ?>" value="<?php echo __('add to cart') ?>"/>
-
- </form>
- <?php endif; ?>
- <?php } ?>
-
-
- <a class="btn btn-default details product" href="<?php echo $ele->GetHref() ?>" title="<?php echo __('view more') ?>"><?php echo __('view more') ?></a>
- </div>
- </div>
- </div>
+ <?php echo tep_get_include_contents('module.'.$ele->data ); ?>
</section>
-
-
-
<?php else : /** Other */ ?>
+
<section class="col-sm-3 col-xs-6 outerblock">
- <div class="innerblock">
- <p class="title <?php echo $ele->data ?>">
- <a href="<?php echo $ele->GetHref() ; ?>" ><?php echo $ele->GetTitle() ?></a>
- </p>
- <p class="img-thumbnail <?php echo $ele->data ?>">
- <?php echo '<a href="' . $ele->GetHref(). '">' . tep_image(DIR_WS_IMAGES . $ele->GetImage(), $ele->GetTitle(), $page->_conf_value('SIDEBAR_IMG_WIDTH'), $page->_conf_value('SIDEBAR_IMAGE_HEIGHT')) . '</a>' ;?>
- </p>
- <p class="preview <?php echo $ele->data ?>">
- <?php echo truncate(strip_tags(unhtmlentities( $ele->GetText() )), 100) ?>
- </p>
- </div>
+ <?php echo tep_get_include_contents('module.other'); ?>
</section>
+
<?php endif; ?>
</div>
<?php $i++; endforeach; ?>
- </div> <!--Last Div for loop and class row -->
Added: trunk/catalog/templates/defaut/includes/gabarit/module.other.gab
===================================================================
--- trunk/catalog/templates/defaut/includes/gabarit/module.other.gab (rev 0)
+++ trunk/catalog/templates/defaut/includes/gabarit/module.other.gab 2016-03-31 09:06:13 UTC (rev 5310)
@@ -0,0 +1,29 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.2.0
+ @date 05/10/2013, 14:32
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+global $page, $ele;
+
+?>
+<div class="innerblock">
+
+ <p class="title <?php echo $ele->data ?>">
+ <a href="<?php echo $ele->GetHref() ; ?>" ><?php echo $ele->GetTitle() ?></a>
+ </p>
+
+ <p class="img-thumbnail <?php echo $ele->data ?>">
+ <?php echo '<a href="' . $ele->GetHref(). '">' . tep_image(DIR_WS_IMAGES . $ele->GetImage(), $ele->GetTitle(), $page->_conf_value('SIDEBAR_IMG_WIDTH'), $page->_conf_value('SIDEBAR_IMAGE_HEIGHT')) . '</a>' ;?>
+ </p>
+
+ <p class="preview <?php echo $ele->data ?>">
+ <?php echo truncate(strip_tags(unhtmlentities( $ele->GetText() )), 100) ?>
+ </p>
+
+</div>
\ No newline at end of file
Added: trunk/catalog/templates/defaut/includes/gabarit/module.product.gab
===================================================================
--- trunk/catalog/templates/defaut/includes/gabarit/module.product.gab (rev 0)
+++ trunk/catalog/templates/defaut/includes/gabarit/module.product.gab 2016-03-31 09:06:13 UTC (rev 5310)
@@ -0,0 +1,63 @@
+<?php
+/**
+ @licence GPL 2005-2014 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.2.0
+ @date 05/10/2013, 14:32
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+global $page, $ele;
+
+?>
+ <div class="innerblock">
+ <?php if (tep_not_null( $ele->GetPrice() ) && $page->_draw_in_page('PRODUCT_LIST_PRICE')) { ?>
+ <p class="price product">
+ <?php echo print_products_price_rv($ele) ?>
+ </p>
+ <?php } ?>
+
+ <?php if ($page->_draw_in_page('PRODUCT_LIST_NAME')) { ?>
+ <p class="title product">
+ <?php echo '<a href="' . $ele->GetHref() . '" title="'.$ele->GetName().'">' . $ele->GetName() . '</a>' ;?>
+ </p>
+ <?php } ?>
+
+ <?php if ($page->_draw_in_page('PRODUCT_LIST_IMAGE')) { ?>
+ <p class="img-thumbnail product">
+ <?php echo '<a href="' . $ele->GetHref() . '" title="'.$ele->GetTitle().'" >' . tep_image(DIR_WS_IMAGES . $ele->GetImage(), $ele->GetTitle(), $page->_conf_value('SMALL_IMAGE_WIDTH'), $page->_conf_value('SMALL_IMAGE_HEIGHT')) . '</a>' ; ?>
+ </p>
+ <?php } ?>
+
+
+
+ <div class="hidden-xs innerblock-more">
+ <div class="btn-group" >
+ <?php if ( $page->_draw_in_page('PRODUCT_LIST_BUY_NOW')) { ?>
+
+ <?php /// @remarks If buy possible and attribute , force choose attribute ?>
+
+ <?php if (_test_bool($ele->action['buy'] ) && count(product_attribut_info($ele->GetId())) != 0): ?>
+
+ <a class="btn btn-default" href="<?php echo $ele->GetHref() ?>" ><?php echo __('add to cart') ?></a>
+
+
+ <?php /// @remarks If buy possible and attribute ?>
+
+ <?php elseif (_test_bool($ele->action['buy'] )) : ?>
+ <?php echo tep_draw_form($themodule->id.'cart_quantity'.$ele->GetId(), tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=add_product'), 'post', ' class="addcart"'); ?>
+
+ <?php echo tep_draw_hidden_field('products_id', $ele->GetId()). tep_draw_hidden_field('products_quantity', '1'); ?>
+ <input type="button" class="btn btn-default" onclick="this.form.submit()" title="<?php echo __('add to cart') ?>" value="<?php echo __('add to cart') ?>"/>
+
+ </form>
+ <?php endif; ?>
+ <?php } ?>
+
+
+ <a class="btn btn-default details product" href="<?php echo $ele->GetHref() ?>" title="<?php echo __('view more') ?>"><?php echo __('view more') ?></a>
+ </div>
+ </div>
+ </div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2016-04-26 12:00:44
|
Revision: 5316
http://sourceforge.net/p/oscss/svn/5316
Author: oscim
Date: 2016-04-26 12:00:41 +0000 (Tue, 26 Apr 2016)
Log Message:
-----------
Fix error in box recently viewed content
Fix link js in product module gab
Modified Paths:
--------------
trunk/catalog/install/data/templates/appareil_photo/techno/includes/gabarit/product/module.gab
trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php
Modified: trunk/catalog/install/data/templates/appareil_photo/techno/includes/gabarit/product/module.gab
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/techno/includes/gabarit/product/module.gab 2016-04-26 09:05:35 UTC (rev 5315)
+++ trunk/catalog/install/data/templates/appareil_photo/techno/includes/gabarit/product/module.gab 2016-04-26 12:00:41 UTC (rev 5316)
@@ -10,7 +10,9 @@
*/
global $page, $ele, $load, $themodule;
-
+// print_r($ele);
+// var_dump((_test_bool($ele->action['buy'] ) && count(product_attribut_info($ele->GetId())) == 0) );
+// exit;
?>
<div class="product_block equal-height_listing_block" style="min-height: 556px;">
<div class="img-thumbnail product">
@@ -24,7 +26,7 @@
<?php endif; ?>
<?php if(isset($ele->linkto['featured']) && !empty($ele->linkto['featured'][0]) ): ?>
- <div class="label featured_label en"><strong>featured</strong></div>
+ <div class="label featured_label en"><strong><?php echo __('featured')?></strong></div>
<?php endif; ?>
<!-- <div class="label top_label en"><strong>best sellers</strong></div> -->
@@ -50,21 +52,35 @@
<div><?php echo substr(strip_tags($ele->GetDescription()),0,170).'..'; ?>
</div>
</div>
- <?php if($load->module !='child' || ( $load->module =='child' && tep_not_null($themodule->module_db->title) ) ) : ?>
+ <?php if($load->module !='child' || ( $load->module =='child' && !tep_not_null($themodule->module_db->title) ) ) : ?>
<div class="table">
- <table><tbody><tr class="first">
- <td class="td_left"><?= __('model') ?>:</td>
- <td class="td_right"><?php echo $ele->GetModel(); ?></td>
- </tr><tr>
- <td class="td_left"><?= __('manufacturer') ?>:</td>
- <td class="td_right"><a href="http://www.responsive-shops.org/osc/tstore/31/index.php/brand-name-m-1">Brand Name 1</a></strong></td>
- </tr> <tr>
- <td class="td_left"><?= __('quantity') ?>:</td>
- <td class="td_right"><?php echo $ele->GetQuantity() ?></td>
- </tr><tr class="last">
- <td class="td_left"><?= __('weight') ?>:</td>
- <td class="td_right"><?php echo $ele->GetWeight() ?></td>
- </tr></tbody></table>
+ <table>
+ <tbody>
+ <tr class="first">
+ <td class="td_left"><?= __('model') ?>:</td>
+ <td class="td_right"><?php echo $ele->GetModel(); ?></td>
+ </tr>
+
+ <?php if(isset($ele->linkto['manufacturer']) && !empty($ele->linkto['manufacturer'][0]) ):
+ $ObjManufacturer = manufacturer::get_item($ele->linkto['manufacturer'][0]);
+ ?>
+ <tr>
+ <td class="td_left"><?= __('manufacturer') ?>:</td>
+ <td class="td_right"><a href="<?= $ObjManufacturer->GetHref() ?>"><?= $ObjManufacturer->GetName() ?></a></strong></td>
+ </tr>
+ <?php endif; ?>
+ <tr>
+ <td class="td_left"><?= __('quantity') ?>:</td>
+ <td class="td_right"><?php echo $ele->GetQuantity() ?></td>
+ </tr>
+ <?php if( !in_array( $ele->GetType(), explode(',',TYPE_VIRTUAL_PRODUCTS) ) ) : ?>
+ <tr class="last">
+ <td class="td_left"><?= __('weight') ?>:</td>
+ <td class="td_right"><?php echo $ele->GetWeight() ?></td>
+ </tr>
+ <?php endif; ?>
+ </tbody>
+ </table>
</div>
<?php endif; ?>
<div class="row_02">
@@ -81,20 +97,29 @@
<?php if (_test_bool($ele->action['buy'] ) && count(product_attribut_info($ele->GetId())) == 0): ?>
<?php echo tep_draw_form($themodule->id.'cart_quantity'.$ele->GetId(), tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=add_product'), 'post', ' class="addcart"'); ?>
- <?php echo tep_draw_hidden_field('products_id', $ele->GetId()). tep_draw_hidden_field('products_quantity', '1'); ?>
- <?php endif; ?>
+ <?php echo tep_draw_hidden_field('products_id', $ele->GetId()). tep_draw_hidden_field('products_quantity', '1'); ?>
<strong class="button_content button_content1">
<strong class="button bg_button button1">
- <a class="btn btn-default button1" role="button" href="<?php echo $ele->GetHref() ?>" onclick="this.form.submit()" >
+ <a class="btn btn-default button1" role="button" onclick="document.forms['<?php echo $themodule->id.'cart_quantity'.$ele->GetId() ?>'].submit(); " >
<span class="ui-button-text">
<?php echo __('add to cart') ?>
</span>
</a>
</strong>
</strong>
- <?php if (_test_bool($ele->action['buy'] ) && count(product_attribut_info($ele->GetId())) == 0): ?>
</form>
- <?php endif; ?>
+ <?php else: ?>
+ <strong class="button_content button_content1">
+ <strong class="button bg_button button1">
+ <a class="btn btn-default button1" role="button" href="<?php echo $ele->GetHref() ?>" >
+ <span class="ui-button-text">
+ <?php echo __('add to cart') ?>
+ </span>
+ </a>
+ </strong>
+ </strong>
+ <?php endif; ?>
+
<strong class="button_content button_content2">
<strong class="button bg_button button2">
Modified: trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php 2016-04-26 09:05:35 UTC (rev 5315)
+++ trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php 2016-04-26 12:00:41 UTC (rev 5316)
@@ -48,24 +48,15 @@
foreach ($rec_products as $recent) {
if (strlen($recent) >0 && $count<=$page->_conf_value('MAX_DISPLAY_RECENTLY_VIEWED') && ( !isset($_GET['content']) || (isset($_GET['content']) && (int)$_GET['content'] !=$recent)) ) {
- $count++;
+ $count++;
- $obj = content::get_item((int)$recent, true);
-
- $tmp = new stdClass;
- $tmp->type = $type;
- $tmp->name = $obj->title;
- $tmp->title = $obj->title;
- $tmp->href = $obj->href;
- $tmp->image = $obj->orginial;
- $tmp->price = false ;
-
- $list[] = $tmp;
+ $obj = content::get_item((int)$recent, true);
+ $list[] = $obj;
}
}
- if($count<=0)
- return false;
+ if($count<=0)
+ return false;
/**
@remarks Transmit var array for master construtor boxes
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <hom...@us...> - 2016-04-26 15:34:03
|
Revision: 5318
http://sourceforge.net/p/oscss/svn/5318
Author: homer8173
Date: 2016-04-26 15:34:00 +0000 (Tue, 26 Apr 2016)
Log Message:
-----------
ADD Owner details in configuration table , update and language file
Modified Paths:
--------------
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/sql/mysql/upgrade/2.1.0_2.1.1/data/91_osc_configuration.sql
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt 2016-04-26 12:36:52 UTC (rev 5317)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt 2016-04-26 15:34:00 UTC (rev 5318)
@@ -37,8 +37,22 @@
$lang['STORE_OWNER_S']="Propriétaire de la boutique" ;
$lang['STORE_OWNER_L']="Indiquer le nom du propriétaire de la boutique." ;
-$lang['STORE_OWNER_EMAIL_ADDRESS_S']="Adresse Email" ;
+$lang['STORE_OWNER_EMAIL_ADDRESS_S']="Adresse Email" ;
$lang['STORE_OWNER_EMAIL_ADDRESS_L']="L'adresse Email du gérant de la boutique." ;
+$lang['STORE_OWNER_PHONE_NUMBER_S']="Numéro de Téléphone" ;
+$lang['STORE_OWNER_PHONE_NUMBER_L']="Le numéro de téléphone communiqué au public." ;
+
+$lang['STORE_POS_ADDRESS_S']="Adresse du point de vente" ;
+$lang['STORE_POS_ADDRESS_L']="Rue, quartier, adresse où le point de vente est situé." ;
+$lang['STORE_POS_POSTCODE_S']="Code postal du point de vente" ;
+$lang['STORE_POS_POSTCODE_L']="Le code postal où le point de vente est situé." ;
+$lang['STORE_POS_CITY_S']="Ville du point de vente" ;
+$lang['STORE_POS_CITY_L']="La ville où le point de vente est situé." ;
+$lang['STORE_POS_OPENING_HOURS_S']="Horaires du point de vente" ;
+$lang['STORE_POS_OPENING_HOURS_L']="Décrivez rapidement vos horaires." ;
+$lang['STORE_POS_OPENING_HOURS_MICROFORMAT_S']="Horaires microformat" ;
+$lang['STORE_POS_OPENING_HOURS_MICROFORMAT_L']="En anglais, <a href='http://schema.org/openingHours' target='_blank'>Voir ici</a>." ;
+
$lang['EMAIL_FROM_S']="Champ 'From' d'un Email envoyé" ;
$lang['EMAIL_FROM_L']="L'adresse Email utilisée pour identifier l'expéditeur des Emails envoyés par la boutique." ;
$lang['STORE_COUNTRY_S']="Pays" ;
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2016-04-26 12:36:52 UTC (rev 5317)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2016-04-26 15:34:00 UTC (rev 5318)
@@ -30,6 +30,15 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('STORE_NAME_S', 'STORE_NAME', 'osCSS Demo Shop', 'STORE_NAME_L', '1', '1', NULL, NOW());
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('STORE_OWNER_S', 'STORE_OWNER', 'osCSS Demo Shop', 'STORE_OWNER_L', '1', '2', NULL, NOW());
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_OWNER_EMAIL_ADDRESS_S', 'STORE_OWNER_EMAIL_ADDRESS', 'root@localhost', 'STORE_OWNER_EMAIL_ADDRESS_L', '1', '3', NULL, NOW(), 2);
+
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_OWNER_PHONE_NUMBER_S', 'STORE_OWNER_PHONE_NUMBER', '+33633323234', 'STORE_OWNER_PHONE_NUMBER_L', 1, 19, NULL, NOW(), 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_ADDRESS_S', 'STORE_POS_ADDRESS', '5 impasse de la cerisaie', 'STORE_POS_ADDRESS_L', 1, 20, NULL, NOW(), 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_POSTCODE_S', 'STORE_POS_POSTCODE', '28240', 'STORE_POS_POSTCODE_L', 1, 21, NULL, NOW(), 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_CITY_S', 'STORE_POS_CITY', 'La Loupe', 'STORE_POS_CITY_L', 1, 22, NULL, NOW(), 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_OPENING_HOURS_S', 'STORE_POS_OPENING_HOURS', 'Ven-Mer 17h00 - 21h00 <small> - (fermé le jeudi)</small>', 'STORE_POS_OPENING_HOURS_L', 1, 23, NULL, NOW(), 2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_OPENING_HOURS_MICROFORMAT_S', 'STORE_POS_OPENING_HOURS_MICROFORMAT', 'Fr-We 17:00-21:00', 'STORE_POS_OPENING_HOURS_MICROFORMAT_L', 1, 24, NULL, NOW(), 2);
+
+
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('EMAIL_FROM_S', 'EMAIL_FROM', 'root@localhost', 'EMAIL_FROM_L', '1', '4', NULL, NOW(), '2');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('STORE_COUNTRY_S', 'STORE_COUNTRY', '73', 'STORE_COUNTRY_L', '1', '6', NULL, NOW(),'tep_get_country_name', 'tep_cfg_pull_down_country_list(');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('STORE_ZONE_S', 'STORE_ZONE', '256', 'STORE_ZONE_L', '1', '7', NULL, NOW(), 'tep_cfg_get_zone_name', 'tep_cfg_pull_down_zone_list(');
Modified: trunk/catalog/install/includes/sql/mysql/upgrade/2.1.0_2.1.1/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/upgrade/2.1.0_2.1.1/data/91_osc_configuration.sql 2016-04-26 12:36:52 UTC (rev 5317)
+++ trunk/catalog/install/includes/sql/mysql/upgrade/2.1.0_2.1.1/data/91_osc_configuration.sql 2016-04-26 15:34:00 UTC (rev 5318)
@@ -35,6 +35,12 @@
insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('DATATYPES_ROOTLISTING_CATEGORIE_S', 'DATATYPES_ROOTLISTING_CATEGORIE', 'product,content,nested', 'DATATYPES_ROOTLISTING_CATEGORIE_L', '128', '0', NOW(), NOW(),NULL, NULL, 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_OWNER_PHONE_NUMBER_S', 'STORE_OWNER_PHONE_NUMBER', '+33633323234', 'STORE_OWNER_PHONE_NUMBER_L', 1, 19, NULL, NOW(), 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_ADDRESS_S', 'STORE_POS_ADDRESS', '5 impasse de la cerisaie', 'STORE_POS_ADDRESS_L', 1, 20, NULL, NOW(), 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_POSTCODE_S', 'STORE_POS_POSTCODE', '28240', 'STORE_POS_POSTCODE_L', 1, 21, NULL, NOW(), 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_CITY_S', 'STORE_POS_CITY', 'La Loupe', 'STORE_POS_CITY_L', 1, 22, NULL, NOW(), 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_OPENING_HOURS_S', 'STORE_POS_OPENING_HOURS', 'Ven-Mer 17h00 - 21h00 <small> - (fermé le jeudi)</small>', 'STORE_POS_OPENING_HOURS_L', 1, 23, NULL, NOW(), 2);
+insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_POS_OPENING_HOURS_MICROFORMAT_S', 'STORE_POS_OPENING_HOURS_MICROFORMAT', 'Fr-We 17:00-21:00', 'STORE_POS_OPENING_HOURS_MICROFORMAT_L', 1, 24, NULL, NOW(), 2);
insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_MAIL_SERVER_S', 'SMTP_MAIL_SERVER', 'localhost', 'SMTP_MAIL_SERVER_L', '12', '1', NOW(), NOW(), NULL, NULL);
insert IGNORE into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('SMTP_PORT_NUMBER_S', 'SMTP_PORT_NUMBER', '25', 'SMTP_PORT_NUMBER_L', '12', '1', NOW(), NOW(), NULL, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|