Jump to content

Gyakutsuki

♥Ambassador
  • Content count

    727
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Gyakutsuki

  1. Gyakutsuki

    Google Tag Manager

    Why do not propose a module in header tag ?
  2. Nice contribution: Suggestion, include too products the modal become big, a possibilities to delete the product will be welcome.
  3. Gyakutsuki

    Europe Confidentialities Cookie Law

    I rectified some little elements : uninstall the module Update the module http://addons.oscommerce.com/info/9013 Install the module.
  4. Gyakutsuki

    Europe Confidentialities Cookie Law

    just change osc_cfg_select_option by tep_cfg_select_option in the module
  5. Gyakutsuki

    Sage Pay V3 Protocol

    Hi, look Odoo for that and the add on.
  6. Gyakutsuki

    Newsletters & Subscribers OSC 2.3

    You can use the mailchimp contribution, It can be better in this case ?
  7. Gyakutsuki

    Ultimate Seo Urls 5 Pro

    resolved ! // for language box // if ( $value['directory'] == $language ) { if ( $value['directory'] == $_SESSION['language'] ) { usu5.php public function initiate( $lng, &$languages_id, &$language, $force_language = false ) { if ( false !== $force_language ) { $this->vars['languages_id'] = $_SESSION['languages_id']; $this->vars['language'] = $_SESSION['$language']; // $this->vars['languages_id'] = $languages_id; // $this->vars['language'] = $language; if you have a problem static function with memcache (memcache.php) change in function iAdmin() { by public static function iAdmin() {
  8. Gyakutsuki

    Ultimate Seo Urls 5 Pro

    Do you have an idea to resolve this problem when multilanguage is activate When I clic on a link I have that http://mysite/store/mysitestoreindex.phpen if I change the link http://mysite/store/mysitestoreindex.phpen by that http://mysite/store/index.php/en work well. I have a problem somewhere but I don't where exactly. Thank
  9. Gyakutsuki

    Easy Upload Module

    hello, I created this contribution to help all the no programmers to install easily a new module. you can use this module for osc 2.3 but It will be very interesting for 2.4 and next. To create a module is very easily. example for ht_hreflang.php modules/header_tags/ht_hreflang.php languages/modules/header_tags/ht_hreflang.php Compress in zip and that's all. the system has a security and you can't upload a file everywhere, just in modules and languages directory if your server does'nt accept to write the files in the directory, just change the right on the directory in 777 and not on the files must be in 644. I hope the community wiil accept this contribution and propose this installation process. Tested on bootstrap gold. Comment and return are welcome to improve the development link to upload the module http://addons.oscommerce.com/info/9207
  10. Gyakutsuki

    Easy Upload Module

    If you use .phar, .xpi ... that 's the same problem ? it does'nt change with the actual process, just it's more simple. Also, lot of people download the zip and if there is a pb with a zip,allthe communauty will known quickly ? For example, with worldpressyou can download a zip since your own site, you don't know how to do the program and what it is inside ? To have a good system, a community manager must verify the every add on like prestashop do but it's not free. No is perfect. But if you have idea to do a best security, I am interesting.
  11. Gyakutsuki

    Easy Upload Module

    Tk Gergely for comments tep_CanonicalUrl () ==> include inside add on now (not tested butmust work) tep_image_button() change by tep_draw_button ==> done menu access module upload ==> done At this moment the question is who authenticate the modules for the uploader? I think the process must become a best pratice for all. That's the only way to have an homogene environment for the modules. The communication must be important like a post it to explain how to create a module. I created a new package including the comments.
  12. Gyakutsuki

    Easy Upload Module

    No other opinion ? Very easy to install for test, inside the contribution, I inserted an example to test.
  13. Gyakutsuki

    Modal Info Popup Layer for osc 2.3.4BS

    Why do you not use the banner function, do the same thing and with only one line ? tep_banner if I remember.
  14. Gyakutsuki

    I want French Language

    what is the error edit application top and insert this // Set the level of error reporting defined( 'E_DEPRECATED' ) ? error_reporting( E_ALL & ~E_NOTICE & ~E_DEPRECATED ) : error_reporting( E_ALL & ~E_NOTICE ); // error_reporting(E_ALL | E_STRICT); ini_set('display_errors', true); You must see where is the error.
  15. Gyakutsuki

    I want French Language

    you can find in add on section :http://addons.oscommerce.com/info/9159
  16. Gyakutsuki

    Dynamic Template System

    This is script pb, try this. // Alias function for module [boxes] configuration value // template system function tep_cfg_select_pages($key_value, $key = '') { $name = ((tep_not_null($key)) ? 'configuration[' . $key . '][]' : 'configuration_value'); $select_array = tep_list_catalog_files(); sort($select_array); $selected_array = explode(';', $key_value); if($key_value === 'all') { $checkall = "CHECKED"; } else { $checkall = "UNCHECKED"; } $string = '<fieldset>'; $string .= '<input type="radio" class="AllPages" name="' . $name . '" value="all" ' . $checkall . ' />' . ALL_PAGES . '<br />'; $string .= '<p><strong> ' . ONE_BY_ONE . '</strong><br />'; $string .= '<input type="checkbox" id="CheckAll" class="CheckAll" name="CheckAll" /><label id="CheckAllLabel" for="CheckAll">' . CHECK_ALL . '</label></p>'; for ($i=0, $n=sizeof($select_array); $i<$n; $i++) { $string .= ' <input type="checkbox" id="file_' . $i . '" class="ThisPage" name="' . $name . '" value="' . $select_array[$i] . ';"'; if ( isset($selected_array) ) { foreach($selected_array as $value) { if ($select_array[$i] == $value) $string .= ' CHECKED'; } } $string .= '><label class="ThisPage" for="file_' . $i . '">' . $select_array[$i] . '</label><br />'; } $string .= '</fieldset>'; $string .= "<script type=\"text/javascript\"> jQuery(document).ready(function () { $('.AllPages').click( function() { $('.ThisPage').prop('checked', false); $('.CheckAll').prop('checked', false); $('#CheckAllLabel').text('" . CHECK_ALL . "'); } ); $('.CheckAll').click( function () { $(this).parents('fieldset:eq(0)').find(':checkbox').prop('checked', this.checked); $('.AllPages').prop('checked', (!this.checked)); if (this.checked) { $('#CheckAllLabel').text('" . DESELECT_ALL . "'); } else { $('#CheckAllLabel').text('" . CHECK_ALL . "'); } } ); $('.ThisPage').click( function() { var n = $( \"input.ThisPage:checked\" ).length; if (n >0) { $('.AllPages').prop('checked', false); } else { $('.AllPages').prop('checked', true); } } ); }); </script>"; return $string; }
  17. the futur version of osc change, there repercussion some modification can affect an addon. Concerning the coupon, just little modification must be do also in checkout_confirmation.php $coupon, become $_SESSION['coupon']. But this modification can be done on the current version of osc.
  18. found solution In order.php find // discount coupons global $coupon; if( isset($_SESSION['coupon']) && tep_not_null( $coupon ) ) { $coupon = $_SESSION['coupon']; require(DIR_WS_CLASSES.'discount_coupon.php' ); $this->coupon = new discount_coupon( $coupon, $this->delivery ); $this->coupon->total_valid_products( $products ); $valid_products_count = 0; } replace by if( isset($_SESSION['coupon']) && tep_not_null($_SESSION['coupon']) ) { require(DIR_WS_CLASSES.'discount_coupon.php' ); $this->coupon = new discount_coupon( $_SESSION['coupon'], $this->delivery ); $this->coupon->total_valid_products( $products ); $valid_products_count = 0; } That's all. This solution must be apply for the futur version on osc.
  19. I continue my monologue but it can help someone if a day there is the same pb ! I found where is the pb, discount_coupon after checkout confirmation.php is not take in consideration. that's why the values is taken by order_total.php.
  20. ok, the pb is inside this order_total.php. between checkout_payment.php and checkout_confirmation.php, the process work fine with order_total.php between checkout_confirmation and checkout_processus.php (see above), the order_total.php put pb. See the result function process() { $order_total_array = array(); if (is_array($this->modules)) { var_dump($this->modules); =============> step 1 below ===> all is ok exit; foreach($this->modules as $value) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $GLOBALS[$class]->output = array(); $GLOBALS[$class]->process(); for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) { if (osc_not_null($GLOBALS[$class]->output[$i]['title']) && osc_not_null($GLOBALS[$class]->output[$i]['text'])) { $order_total_array[] = array('code' => $GLOBALS[$class]->code, 'title' => $GLOBALS[$class]->output[$i]['title'], 'text' => $GLOBALS[$class]->output[$i]['text'], 'value' => $GLOBALS[$class]->output[$i]['value'], 'sort_order' => $GLOBALS[$class]->sort_order); } } } } } var_dump($order_total_array); =============> step 2 ==> all is not ok after the loop exit; return $order_total_array; } step 1 ==> see the coupon array (size=5) 0 => string 'ot_subtotal.php' (length=15) 1 => string 'ot_discount_coupon.php' (length=22) 2 => string 'ot_shipping.php' (length=15) 3 => string 'ot_tax.php' (length=10) 4 => string 'ot_total.php' (length=12) step2: result array (size=3) 0 => array (size=5) 'code' => string 'ot_subtotal' (length=11) 'title' => string 'Sous-Total:' (length=11) 'text' => string '22.92$ CAD' (length=10) 'value' => float 22.92 'sort_order' => string '5' (length=1) 1 => array (size=5) 'code' => string 'ot_shipping' (length=11) 'title' => string 'Prix forfaitaire (Prix forfaitaire):' (length=36) 'text' => string '5.00$ CAD' (length=9) 'value' => string '5.00' (length=4) 'sort_order' => string '10' (length=2) 2 => array (size=5) 'code' => string 'ot_total' (length=8) 'title' => string 'Total:' (length=6) 'text' => string ' 27.92$ CAD ' (length=12) 'value' => float 27.92 'sort_order' => string '60' (length=2)
  21. the problem is between the 2 lines in checkout_process.php $order_total_modules = new order_total(); ===> see the coupon $order_totals = $order_total_modules->process(); ===> coupon deseapear I lost the something, why !!! researching.
  22. No the pb is not the free chipping. I change the shipping by flat and taken other. The problem is between checkout_confirmation.php and checkout_process.php and after this line in checkout_confirmation.php require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_total_modules->process(); ==> a coupon appear with a var_dump Just to find !
  23. I continue my investigation classes/order_total.php function process() { $order_total_array = array(); if (is_array($this->modules)) { foreach($this->modules as $value) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $GLOBALS[$class]->output = array(); $GLOBALS[$class]->process(); for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) { if (osc_not_null($GLOBALS[$class]->output[$i]['title']) && osc_not_null($GLOBALS[$class]->output[$i]['text'])) { $order_total_array[] = array('code' => $GLOBALS[$class]->code, 'title' => $GLOBALS[$class]->output[$i]['title'], 'text' => $GLOBALS[$class]->output[$i]['text'], 'value' => $GLOBALS[$class]->output[$i]['value'], 'sort_order' => $GLOBALS[$class]->sort_order); } } } } } var_dump($order_total_array); exit; return $order_total_array; } result array (size=4) 0 => array (size=5) 'code' => string 'ot_subtotal' (length=11) 'title' => string 'Sous-Total:' (length=11) 'text' => string '121.00$ CAD' (length=11) 'value' => float 121 'sort_order' => string '5' (length=1) 1 => array (size=5) 'code' => string 'ot_discount_coupon' (length=18) 'title' => string 'Code coupon lancement applique:' (length=31) 'text' => string '5.00$ CAD' (length=9) 'value' => string '5' (length=1) 'sort_order' => string '9' (length=1) 2 => array (size=5) 'code' => string 'ot_shipping' (length=11) 'title' => string 'Livraison gratuite (livraison offerte dés 5.):' (length=54) 'text' => string '0.00$ CAD' (length=9) 'value' => string '0.00' (length=4) 'sort_order' => string '10' (length=2) 3 => array (size=5) 'code' => string 'ot_total' (length=8) 'title' => string 'Total:' (length=6) 'text' => string ' 116.00$ CAD ' (length=13) 'value' => float 116 'sort_order' => string '60' (length=2) I have my coupon and my coupon is displayed in checkout_confirmation.php ! ==> good. now I valide my checkout_confirmation.php code in checkout_process.php require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); var_dump($order_total_modules); var_dump($order_totals); exit; Now the result object(order_total)[43] public 'modules' => array (size=5) 0 => string 'ot_subtotal.php' (length=15) 1 => string 'ot_discount_coupon.php' (length=22) 2 => string 'ot_shipping.php' (length=15) 3 => string 'ot_tax.php' (length=10) 4 => string 'ot_total.php' (length=12) array (size=3) 0 => array (size=5) 'code' => string 'ot_subtotal' (length=11) 'title' => string 'Sous-Total:' (length=11) 'text' => string '121.00$ CAD' (length=11) 'value' => float 121 'sort_order' => string '5' (length=1) 1 => array (size=5) 'code' => string 'ot_shipping' (length=11) 'title' => string 'Livraison gratuite (livraison offerte dés 5.):' (length=54) 'text' => string '0.00$ CAD' (length=9) 'value' => string '0.00' (length=4) 'sort_order' => string '10' (length=2) 2 => array (size=5) 'code' => string 'ot_total' (length=8) 'title' => string 'Total:' (length=6) 'text' => string ' 121.00$ CAD ' (length=13) 'value' => float 121 'sort_order' => string '60' (length=2) $order_total_modules ===> show the discount coupon but $order_total_modules->process() delete the discount coupon Do you havean idea because I don't see the solution. thank you
  24. Hi joli, I also try this option but it does'nt work. test class order total : show 4 method test in checkout_process : show 3 method. I try with discount by customer before subtotal and there is no problem.
×