Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

altoid

♥Ambassador
  • Content count

    1,571
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by altoid


  1. 1 hour ago, Jack_mcs said:

    You should replace the files in the googlesitemap directory and also run the database install script. Use the delete option when it runs and then check the settings in admin to make sure they are as you want. See the update doc for this file for more specific instructions.

    Thanks for the info...I had this working up to today, but not I get this error

    This page isn’t working

    www.mysite.com is currently unable to handle this request.

    HTTP ERROR 500
     
    Switched to alternate sitemap file...same error
     
    enabled diagnostics and upon doing so, when running I just get the same error as above.
     
    On my cPanel, looking under meters and the errors generated by the server, I do not see any error related to this.
     
    I did install today's ultimate seo urls and that is working fine.
     
    Thanks
     
     

  2. 2 hours ago, Jack_mcs said:

    A new version has been uploaded with these changes:

    • Made changes to fix mistakes in the database file thanks to member wHiTeHaT.
    • Replaced the database file with a php install script to make the DB changes easier.
    • Removed the option for the mobile addon and partially removed the code for it. That means this and future versions will no longer work with mobile addon.

     

    I have the previous version installed on a CE shop.

    To upgrade, is it simply to replace the files in catalog or...?

    Thank you


  3. 40 minutes ago, raiwa said:

    @altoid,

    I just checked again, the given code is correct. You may have missed something when you copied or pasted.

    Found something interesting going on during the c/p process.  Using winmerge and checking the files I observed many strange characters in what I copied and pasted.

    They were not visible in Notepad+. Only in Winmerge.

    I shut down and restarted Notepad+, tried again and this time those characters were not there.

    Never saw anything like that before.  Anyway, uploaded.tested and ...error message resolved now👍


  4. 5 hours ago, raiwa said:

    @altoid, thanks for the report.

    Please modify in cm_sc_product_listing_qtpro.php:

    find line 62:

    
    	  			while (list($option, $value) = each($products[$i]['attributes'])) {

    replace by:

    
    	  		  foreach($products[$i]['attributes'] as $option => $value) {

    find line 108-109:

    
            	reset($products[$i]['attributes']);
            	while (list($option, $value) = each($products[$i]['attributes'])) {

    replace by:

    
              foreach($products[$i]['attributes'] as $option => $value) {

    Please confirm. I'll do some more checks and upload then the new version with the fixes.

    Meanwhile I found the reason for the duplicated entries in the single drop down: I had the option images support added, but no images uploaded, the duplicated entries were the alt text for the images. I modified the code so image calls are only included if images exist to avoid this error. It will also be included in the next update.

    After making the change for line 62 I get this error:

    Parse error: syntax error, unexpected '$products_name' (T_VARIABLE) in /home/Username/public_html/includes/modules/content/shopping_cart/cm_sc_product_listing_qtpro.php on line 63

     

     


  5. With error reporting set to all I see this error

    Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/barkav5/public_html/includes/modules/content/shopping_cart/cm_sc_product_listing_qtpro.php on line 62

    Running php 7.2.7

     


  6. Another....running php 7.2.7

    With error reporting set to development level "all" I got this error message:

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; usps has a deprecated constructor in /home/barkav5/public_html/includes/modules/shipping/usps.php on line 18

    Changing line 25 from 

        function usps() {

    to

        function __construct() {

    seems to have dealt with that issue.  Error message is gone.

     

     


  7. 49 minutes ago, BrockleyJohn said:
    
               for ($i=0, is_array($quotes['methods']) && $n=sizeof($quotes['methods']) >= 0; $i<$n; $i++) {

    test it's an array before sizing it

    On your new error I guess you're getting an error response that's not handled properly. Try changing line 424 to

    
    } elseif (is_array($response_array['Package'])) {

     

    That looks like it worked..error reporting set to all..the error message is not there.

    Thanks for the input


  8. 17 hours ago, kymation said:

    I have it working on a site running CE, but it's still on PHP5.6. It also has the Compatibility addon installed, so I don't know if you will run into issues with the defines.

    Regards

    Jim

    @kymation

    Other than the errors I just posted I had to change

          $this->icon = DIR_WS_ICONS . 'shipping_usps.gif'; 

    to

          $this->icon = '/images/icons/shipping_usps.gif';

    And upload the icon as it isn't in the CE package.

    Also, I have

    1st-Class Parcel
    and 
    1st-Class Package Service
    checked but they do not show up as options.
    Priority mail does show up

    EDIT EDIT EDIT...

    On a second test purchase...and just enabling 1st class package service...it now shows.  Hmmm. 

    That's it for now.

    Thx..SK


  9. 15 hours ago, Smoky Barnable said:

    On my test server running php 7.2 I ran into this warning:

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\xxx\includes\classes\shipping.php on line 95

    I changed:

    
    for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) {

    to

    
    for ($i=0, $n=sizeof($quotes['methods']) <= 0 && is_array($quotes['methods']); $i<$n; $i++) {

    Seems to work fine.

    Confirmed on that error.

    With error reporting on I see:

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/barkav5/public_html/includes/modules/shipping/usps.php on line 426

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/barkav5/public_html/includes/classes/shipping.php on line 95

    For /includes/modules/shipping/usps.php on line 426
    The line shows:

            $count_services = count( $response_array['Package'] );

    Not sure what to do about that.

     

    Then in classes/shipping.php...changing this:

                for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) {

    to this:

                for ($i=0, $n=sizeof($quotes['methods']) <= 0 && is_array($quotes['methods']); $i<$n; $i++) {

    However the errors persist.  Any ideas?

     


  10. 2 hours ago, raiwa said:

    Hello Steve @altoid,

    Yes this error has been already introduced in version 5.4.

    Please find in includes/classes/pad_base.php line 406-408:

    
                $newprice = ((int)$price - (int)$attrib['data-price']);
              } else {
                $newprice = ((int)$price + (int)$attrib['data-price']);

    and change to:

    
                $newprice = ((int)$price - (int)$attrib['price']);
              } else {
                $newprice = ((int)$price + (int)$attrib['price']);

    Please confirm and I'll upload a new version with all fixes

    This fix worked.

    I'm using PP express and with a couple test sessions all seems good with QTPro.

      Thanks much.  

    Steve K

     


  11. Might have found another issue.

    In modules>content>QTPro Options

    With this setting:

    Use Actual Price Pull Downs
    True

    The drop down is not adding the increased cost of an attribute, but rather all attributes are showing the same base price.

    For example if small size is $10 and medium is supposed to be $12 and large $14, they all show 10

    If I set the above to false, the attributes indicate correctly what the additional cost is for attributes.

    I am using the single drop down 

    Product Info Attribute Display Plugin
    single_dropdown

     


  12. 2 hours ago, raiwa said:

    @altoid, where is this module from, it is not part of the modular shopping cart add-on..

    Looking closer, it's actually a core module.

    Content>product_info

    After the QT pro install, I had two product and attribute drop downs showing. So I figured out I need to disable the core one.

    Sorry that was off, but it probably should be mentioned in the instructions to disable the core module as it's not needed with QT pro.

    Does that make sense?

     


  13. Suggestion...in the instructions:

    2.7a. shopping_cart.php

    NOTE: If you are using modular shopping cart, just uninstall the original "cm_sc_product_listing.php" module and install "cm_sc_product_listing_qtpro.php" module instead. In that case you do not need to apply the following modifications

    I suggest adding something like

    If have enabled the modular shopping cart "options and attribute" module, you should uninstall that after adding QT Pro.

     


  14. 26 minutes ago, altoid said:

    Hello,  I'm using modular shopping cart.

    Do we need a language file for

    includes/modules/content/shopping_cart/cm_sc_product_listing_qtpro.php

    Thx...Steve K

    Meaning in the instructions area.

     


  15. 6 hours ago, raiwa said:

    I believe it's the same reason Jack posted above, the "tep_values_name" function is duplicated. please apply the fix I posted in the above message to the table module: includes/modules/content/product_info/cm_pi_qtpro_table.php

    Thanks for the report, I'll fix it also in the next update.

    Also noticed in the instructions for CE Frozen:

    admin/includes/qtprodoctor.php

    admin/includes/stats_low_stock_attrib.php

    admin/includes/stock.php

    However in the new files provided they are located in admin/

    And in instructions:

    includes/hooks/shop/qtpro/qtpro_hooks.php

    However in the new files provided the path is

    catalog\includes\hooks\shop\checkout_process

    Thx...Steve K


  16. Hello,

    After adding new files...I was getting this error on the admin side.

    This page isn’t working

    www.mysite.com is currently unable to handle this request.

    HTTP ERROR 500

    by removing

    includes/modules/content/product_info/cm_pi_qtpro_table.php

    I am again able to access the admin side.

    Also, instructions show

    includes/languages/english/modules/content/product_info_options/

    The provided new files are in: 

    includes\languages\english\modules\content\product_info

    This is for the CE version.

    Thank you

     


  17. On 2/2/2018 at 11:08 PM, kymation said:

    The new version is in the update queue. If it is not available in a day or so and you need it, PM me and I'll send you a copy.

    This change will only be of interest to those who charge Online shipping rates. You will need to uninstall and reinstall the module for these changes to take effect, so keep note of your settings before you uninstall. You will have a new choice for "First-ClassTM Package Service" that you will have to select to get First Class Parcel rates. The old "First-Class Package Service - Retail" setting can be on or off as it will not return Commercial/Online rates.

    Regards

    Jim

     

    Installed and working.  Thx for the update.


  18. Hello, thanks for that info. Got it now.

    With that so updated, the values are showing in product_info neatly now. 

    As you add them in the ajax portion, they will show in order of how you add them it appears.  That's a plus.

    Also, I find by making and copying a template, when applying that template to a new product, the values show well as well.

    If a shop owner really needs to change the order, it is possible to do that manually withing the products_attributes table.

    Suggestion on instructions for AM...

    consider removing:

    1) If you haven't installed the attribute sort order contrib then you should install that one first: http://addons.oscommerce.com/info/1822 

    Maybe some explanation of what I observed above would help a new user.

    Also, in the code to be replaced for this purpose I see 

    $HTTP_GET_VARS

    I believe that has been modified when going to edge.

    Thanks

     


  19. @raiwa, I installed QTPro in a test shop using edge and php 7+ that I already had ajax attribute manager installed.

    The Ajax attribute manager folder in the QTPro package looks like the files may need updated for edge and php 7.  I ran into some errors initially but doing some updates as best as I could seemed to take care of those.

×