Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

milerwan

Members
  • Posts

    363
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by milerwan

  1. On 4/2/2021 at 6:28 PM, Hotclutch said:

    Does V4 use Bootstrap for the responsive grid ? I could not determine from the sites I have seen.

    It seems not...
    This may complicate the task for the integration of routines commonly used by Bootstrap if it is missing. 😓

  2. OK I understood my concern...
    Need to check the "Root" radio button and put number to add "page_description" and/or "page_keywords" (or "page_title").

    Finally it works well. Sorry for the inconvenience.

    NB: In includes/functions/header_tags, into the "function tep_header_tag_page($file)", I have quoted this script below because, when no "page_description" or no "page_keywords" registered, the page displays the "pathinfo($_SERVER['SCRIPT_FILENAME'])" with default keywords even if the "default_keywords" radio button is not checked.
    But maybe it is the purpose of this script... ^^
     

      //if nothing else is set, force the page name and default settings, if present   
      $path_parts = pathinfo($_SERVER['SCRIPT_FILENAME']);
      $pageName = substr($path_parts['basename'], 0, strpos($path_parts['basename'], '.')) . ' ';
      $pageName = ucwords(preg_replace("/[^A-Za-z0-9]/", " ", $pageName));
    
      if (! tep_not_null($header_tags_array['title'])) $header_tags_array['title'] = $pageName . (tep_not_null($tmpTags['def_title']) ? HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $tmpTags['def_title'] : '');
      //if (! tep_not_null($header_tags_array['title_alt'])) $header_tags_array['title_alt'] = (tep_not_null($tmpTags['prod_title_alt']) ? HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $tmpTags['def_title'] : '');
      if (! tep_not_null($header_tags_array['description'])) $header_tags_array['description'] = $pageName . (tep_not_null($tmpTags['def_desc']) ? HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $tmpTags['def_desc'] : '');
      if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : '');
      if (! tep_not_null($header_tags_array['logo']))  $header_tags_array['logo'] = $pageName . (tep_not_null($tmpTags['def_logo_text']) ? HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $tmpTags['def_logo_text'] : '');

     

  3. I have clearing cache of URL rewriting but nothing changes.
    Version of oscommerce is 2.3.4BS and I'm using Ultimate SEO V 2.2d.

    My base version is 3.3.4 and I have changed files to update to 3.3.5.
    Maybe I have forgotten to changes some files during the process ?

  4. Hi Jack,

    Today I noticed that from admin page control, I had entered the keywords assigned to the "product_info.php" pages but these do not appear when I edit the products web page (same issue for the title and description too).

    On the other hand, no problem for other generic pages of type "index.php", "shipping.php", etc.

    Do you know where the problem is coming from?
    Could this be because I am using rewritable URLs?

    And if so, how to get around this problem?

    Cordially.

    admin_page_control.jpg

    xml_product_page_render.jpg

  5. On 8/11/2020 at 9:31 AM, 14steve14 said:

    @milerwan Is there any plans to update this addon to work on the very latest Phoenix 1.0.7.6.  I installed it on that version and had many errors showing mainly related to TABLE_CONFIGURATION. I changed all instances of that to 'configuration' but then there are lots of other warning which I have no idea on.

    What are the others warnings you get ?
    I have tried on Phoenix v1.0.5 (with fixing the constants like you) and there is no way to make it works because of BS4.

    I'm not able to fix it with BS4 despite reading articles that explain to use a new version of the typeadead file and add a few lines of CSS...

    Besides, is there a typeahead module that works under Frozen or Phoenix in BS4 currently?

  6. Thank you @Jack_mcs

    Another (maybe) issue I found today is the update javascript function in "admin/header_tags_seo_social.php" that doesn't update the field content and so don't save the data.
    In "Header Tags SEO Social Media"  page, I was not able to update the social URL fields...
    I can delete them (delete content and save) but when I try to add content (url) impossible to registred them (!?!).

    Could you try from your side, please ?

    NB: I have updated with these files from v3.3.7 but same issue as before:
    admin/header_tags_seo_social.php
    - admin/includes/functions/header_tags.php
    - admin/includes/functions/header_tags_general.php

    Is there any changes in a TABLE or in another files that could explain this issue ?

  7. @Jack_mcs

    hi Jack,

    In the Header Tags SEO V 3.3.6 module, from "includes/modules/header_tags_opengraph.php" you use this script to get the price info :
     

                    /**** Get the price ****/
                    if (($new_price = tep_get_products_special_price($og['products_id']))) {
                    } else {
                        $new_price = $og['products_price'];
                    }  
                    $og_price = $currencies->display_price($new_price, tep_get_tax_rate($og['products_tax_class_id']));
                    $og_price = substr($og_price, 1);

    this trick could work for price with US currency (eg. $39.90), but if, like me, you have price in EUR display like this "39.90 €", the result will be from header :

    <meta name="twitter:data1" content="9.90&nbsp;€">
    
    <meta property="product:price:amount" content="9.90&nbsp;€" />

    instead of :

    <meta name="twitter:data1" content="39.90">
    
    <meta property="product:price:amount" content="39.90" />

    See you.

     

  8. Ok I see, list of compatibility browsers is listed by Google :
    - For computer (Windows, Linux, Mac): Chrome, Firefox, Safari, Internet Explorer, Edge
    - For mobile: Chrome, Safari, Android (native browser)

    So all is clear now. ^^
    sorry for inconvenience.

  9. @ruben

    I have installed the module last saturday but a customer tells me that it was unable to create an account sunday...
    and today he sent me a message to tell me that it was impossible for him to create the account from Modzilla browser and only IE works for him.

    I have tested with Chrome and Opera and it was impossible to me to create an account to (when press the continue button, return to index).

    Do you have tested this module with many browsers to be sure it works with them ?
     

    Same question to @ecartz and @tony34567 .

    Thank you for feedbacks.

  10. It's ok, the issue is due to the call of the "application_top" file in the top of "content_search.php" file :

      //get rid of the individual calls for files and replace it with the only one we need, application_top.php
      //from here all other files necessary are also included.
      chdir('../../../../../');
    
      require('includes/application_top.php');
    
      include(DIR_WS_LANGUAGES . $language . '/modules/content/header/cm_header_logo_store_search_catmenu_xs.php');

     

    So I have created an "alternative application_top" file located in the same directory without the "Hook system" call (at the end of file) :

      //get rid of the individual calls for files and replace it with the only one we need, application_top.php
      //from here all other files necessary are also included.
      chdir('../../../../../');
    
    /// Hook system fix BOF
    //  require('includes/application_top.php');
      require('ext/modules/content/header/store_search/application_top_search.php');
    /// Hook system fix EOF
    
      include(DIR_WS_LANGUAGES . $language . '/modules/content/header/cm_header_logo_store_search_catmenu_xs.php');

    Now all works well. ^^

    Thank you for this easy module @ruben

  11. @ruden

    I have got this type of error through Chrome Dev Tools :

    Warning: require(//home/xxx/www/ext/modules/content/header/store_search/includes/classes/hooks.php): failed to open stream: Aucun fichier ou dossier de ce type in /home/xxx/www/includes/application_top.php on line 670

     

  12. @ruden

    I tried your contribution on a 2.3.4 BS and it works well but i'm bothered because the shop system hook prevents another contribution from working on my secured working website (the localhost version works !?! )...
    This is this one : Store Search with Image (BS) v1.6

    It's a shame it looks like an .js script block cause of hook...

    Have you got live website where you can test this contribution to let me know if you have issue too during real time search ?

    Thank you for help.
     

  13. Store Search with Image (BS) v1.6


    Some notable improvements :

    • PHP 7.x compatibility ("class cm_header_store_search" and "class ht_search_result_highlight" with function __construct() fix).
    • "Category name" search field setting : Allow you to keep Basic "categories_name" field (for search and display results) or use Alternative Title search instead (Standard "categories_seo_title" or "categories_htc_title_tag_alt" from Header Tags SEO v3.x addon).
    • New additional/optional search fields in admin : "product model", "product gtin", "product manufacturer name" (to match, if necessary, with "advanced_search_result.php" number of results).
    • Additional/optional search field Keywords amended to match with standard 2.3.4 BS "products_seo_keywords" field into search frame.
    • Adjustable number of result entries for "category", "products" and "pages" search.
    • Display number of results for "categories", "products" and "pages" searches into dropdown.
    • Add "p.products_status = 1" condition into product sql query to avoid "disabled" products displaying (\ext\modules\content\header\store_search\content_searches.php).
    • Optimized script for "image or icon for products" (\ext\modules\content\header\store_search\content_searches.php)

    Full package.

  14. On 11/25/2019 at 6:14 PM, ArtcoInc said:

    I don't know what to say. It all depends on the server and the browser. Sometime it works, and sometime it doesn't.

    M

    When I use the addon with localhost (WAMP server) I have the same issue that yours... but from my live shop no matter.

  15. On 12/18/2019 at 12:14 PM, hungryfrank said:

    edit_orders.phpedit_orders.php.      edit_orders_ajax.php.   

    I made some changes to make it work with points and reward contribution, and it dose not use the custom_ot

    but for coupons it is a bit more complicated  

    I have to bring in the verification process into it.

    I have to rewrite the functions to work in the admin side.

     

    What is the name of the coupons module you use ?

  16. 2 hours ago, gummipingvin said:

    Have you tested API versions with this module? I use an older version where I have this setting:

            // init app with app id and secret
            $fb = new Facebook\Facebook([
              'app_id' => 'XXXXXXXXXXXX',
              'app_secret' => 'XXXXXXXXXXXX',
              'default_graph_version' => 'v2.12',
            ]);

     

    But when I change default_graph_version to anything higher than 2.12 (3.XX) then it doesnt work - just says unknown opengraph error 

    I have tested with Facebook and Google and it works.
    Maybe you need to update your account from Facebook's developers website https://developers.facebook.com/

  17. 6 hours ago, SCH_001 said:

    @milerwan Using your PayPal fee module if I commented out line 84
              $order->info['total'] += $paypal_fee;

    Will this still show the PayPal fee but not add it to the total?
    I am hoping I can set the sort order high enough that it will appear under the Total.
    and then changing the language file to something like Non Refundable PayPal Fee

    If line 84 is the incorrect line to comment out / change can you please point me in the right direction

    You can't partially refund an order in case of return of product(s) or entire cancellation by the customer unless it is a non-recoverable product/service listed on the invoice.
    Hence the interest to include additional costs that are added to the total to be deducted from the rest if necessary.

    Do not be afraid to charge a processing fee, customers are aware that PayPal is not only a payment solution but an associated service that gives them advantages!

    If customers are not willing to pay fees to use PayPal then they are free to choose another payment method... :sleep:

  18. 1 hour ago, Philo2005 said:

    @milerwan

    Hi milerwan

    1. Having Problems installing your PayPal fee v2 with OSCOM CE Phoenix v1.0.2.5 and PHP Version 7.1.1 and mysqlnd 5.0.12
    SQL Syntax Error on Insert (last line) about your comment in the SQL statement, did change it to the following:
    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)
    values ('Ordre de tri', 'MODULE_ORDER_TOTAL_PAYPAL_SORT_ORDER', '4', 'Ordre de tri', '6', '5', now())");

    --> removed ( ) from comments !!!

    2. This module works fine now with "PayPal Payments Standard" on my installation (Maybe you should mention this in your installation guide)
        but it did not work with "PayPal Express Checkout" before.

        For this I had to find "PDT Identity Token" on Swiss PayPal side after 2 Hours Research, i dont know anymore, where it was

    Thanks for writing it! 
    I am going to charge the custumer in future if he pays with PayPal . In Switzerland this is allowed!

    Thank you for feedback !

    1. You can get update v2.0.1 that solves PHP 7.x issue and installation issue too (my fault) https://apps.oscommerce.com/6aWHK&paypal-fee-v2

    * Update V2.0.1
    - PHP 7.x compatibility fixed (includes > modules > order_total > ot_paypal_fee.php, line 42) :
     "function ot_paypal_fee()" replace by "function __construct()"
    - Fix installation error due to backslash missing (includes > modules > order_total > ot_paypal_fee.php, line 150) :

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Ordre de tri', 'MODULE_ORDER_TOTAL_PAYPAL_SORT_ORDER', '4', 'Ordre de tri pour l\'affichage (Le plus petit nombre est montré en premier).', '6', '5', now())");

     

    2. Yes, this module only supports PayPal Standard solution... Your comment has been added to the apps :

    IMPORTANT: Works only with PayPal Standard solution.

     

    Sincerely

×
×
  • Create New...