Jump to content

Gyakutsuki

♥Ambassador
  • Content count

    727
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Gyakutsuki

  1. Gyakutsuki

    Google Tag Manager

    Do you have the link for this recommandation
  2. Gyakutsuki

    Google Tag Manager

    There the module make vey quickly (on the fly) :) I let you to update your module. class ht_google_tag_manager { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function ht_google_tag_manager() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_FOOTER_GOOGLE_TAG_MANAGER_TITLE; $this->description = MODULE_FOOTER_GOOGLE_TAG_MANAGER_DESCRIPTION; if ( defined('MODULE_FOOTER_GOOGLE_TAG_MANAGER_STATUS') ) { $this->sort_order = MODULE_FOOTER_GOOGLE_TAG_MANAGER_SORT_ORDER; $this->enabled = (MODULE_FOOTER_GOOGLE_TAG_MANAGER_STATUS == 'True'); } } function execute() { global $oscTemplate; if (!empty(MODULE_FOOTER_GOOGLE_TAG_MANAGER_NUMBER)) { $footer_tag = '<!-- google tag manager start -->'."\n"; $footer_tag .= '<noscript>'; $footer_tag .= '<iframe src="//www.googletagmanager.com/ns.html?id=' . MODULE_FOOTER_GOOGLE_TAG_MANAGER_NUMBER . '" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>'; $footer_tag .= '<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); })(window,document,\'script\',\'dataLayer\',\'' . MODULE_FOOTER_GOOGLE_TAG_MANAGER_NUMBER . '\');'; $footer_tag .= '</script>'."\n"; $footer_tag .= '<!-- google tag manager end -->'."\n"; $oscTemplate->addBlock($footer_tag, 'footer_scripts'); } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_FOOTER_GOOGLE_TAG_MANAGER_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Category Title Module', 'MODULE_FOOTER_GOOGLE_TAG_MANAGER_STATUS', 'True', 'Do you want enable this module ?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insert he google tag number', 'MODULE_FOOTER_GOOGLE_TAG_MANAGER_NUMBER', '', Googletag number', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_FOOTER_GOOGLE_TAG_MANAGER_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_FOOTER_GOOGLE_TAG_MANAGER_STATUS', 'MODULE_FOOTER_GOOGLE_TAG_MANAGER_NUMBER', 'MODULE_FOOTER_GOOGLE_TAG_MANAGER_SORT_ORDER'); } }
  3. Gyakutsuki

    Google Tag Manager

    Why do not propose a module in header tag ?
  4. I am not sure but for the currently version to 2.3.9, I don't think. The code in 2.4 is very different and all TABLE_ of FILENAME_ has been removed for example. The best is to look the 2.4
  5. I don't know if it's the good topic, but the script has a problem for example in the home page. if you have news products and specials products on the same page. The equal heighs x2 the heighs. And if I insert another like favorites products (equal heighs) the heighs is x3 products news (with equal heighs) become (x2) a b c a e c specials (equal heighs) become (x2) a b c a e c Original (x1) a b c a e c
  6. Nice contribution: Suggestion, include too products the modal become big, a possibilities to delete the product will be welcome.
  7. Some add-on has only HTTP, it could be a problem if the site is in SSL insert this function in general.php and change HTTP_SERVER in the files by tep_type_url_domain() /** * Function to select HTTP or HTTPS * public function * @[member='Return'] $domain, type of HTTP of domain */ function tep_type_url_domain() { global $request_type; $domain = substr((($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER), 0); return $domain; }
  8. 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.
  9. Gyakutsuki

    Europe Confidentialities Cookie Law

    just change osc_cfg_select_option by tep_cfg_select_option in the module
  10. It could be intetresting to suggest also diffrents products around the amount to help the customer to have the free shipping ? or help the customer via advanced_search to select price close the amount of free shipping (difference)
  11. Gyakutsuki

    Sage Pay V3 Protocol

    Hi, look Odoo for that and the add on.
  12. for more information : https://www.gov.uk/vat-on-digital-services-in-the-eu http://www.forbes.com/sites/janetnovack/2014/05/15/european-vat-10-things-online-sellers-need-to-know-about-taxes-on-digital-goods-and-services/ https://ec.europa.eu/digital-agenda/en/pillar-i-digital-single-market/action-106-vat-reform-align-tax-rates-digital-content-and-similar About that, they had been a discussion on the forum concerning the pb about that. Osc do the job with a good configuration.
  13. In reality at Quebec, we have 2 taxes, one to apply on the product, one to apply on shipping for example, but the rates is the same. Also the rates can change if you send in other states (Ontario) like in Europe for the Numeric services. ex if the products have not taxes but when you apply the shipping, you must apply the rates !! That's the regulation, but also you can do apply the taxe on the invoice product price + shipping = total + taxes. ex product tax1 tax 2 shipping tax 1 tax2 or product shipping tax 1 tax 2 or product shipping tax total detail tax 1 and tax 2 You can also apply the sum of the taxe but on the invoice, the taxes must appear (details). In France all the product have one taxe, . If you sell outside of France, there are no taxes but you must apply the taxe of another country if you sell numeric services (new europe law since /01/2015))
  14. Hi Brockley, In Canada, the taxe is not simple, but you have a tax on the goods and you have a tax on the shipping. There is one year ago, the tax has simplified in one taxe for numerous states or 2 taxes others states (like Quebec). Depends what you sell, the final price can be with tax or not, there is lot of exceptions. In Quebec, for example, the tax on the the foods are very weird.
  15. Ok I understand better what do you mean.
  16. I am not agree with that customers_street_address customers_suburb customers_city customers_postcode customers_state because If we delete that, the address become dynamic or if a customer change this address, it change all the invoice if I understand your solution.
  17. For me before to continue to implement / chage some function, it is important to modernize the code. The old 2.4 has introduce this aspect Change categorie class : back port ms3 in admin Change language_id by $_SESSION['language_id'] and others New class customer introduce in 2.4 New class Date backport ms3 New PDO system introduce in 2.4 For administration new catgories / product systemhas now some limitation can backport ms3 I think new products attributes backport MS3
  18. Gyakutsuki

    Newsletters & Subscribers OSC 2.3

    You can use the mailchimp contribution, It can be better in this case ?
  19. To delete all ambiguities, I think the postion of HPDL must be done. It can clarify all the comments because on official oscommerce branch there is nothing since the oscommerce bootstrap has began. If I remember of HPDL sentence, the OSC BS is not official and the official OSC will based on the work inside OSC BS. If I follow the HPDL, the official OSC must be little different than OSC BS. The war is no good, the work inside OSC BS is great, just now HPDL must clarify the position. It can push the OSC BS than new official OSC or can modify some thing for a the release OSC with the community work.
  20. Mailchimp newsletter everywhere http://addons.oscommerce.com/info/9289 Allow to send all emails for a newsletter subscription in mailchimp
  21. 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() {
  22. 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
  23. 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
×