Geotex

Member
  • Content count

    15
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Geotex

  • Birthday 07/21/1943

Contact Methods

  • Website URL
    http://www.ameriwebs.net

Profile Information

  • Gender
    Male
  • Location
    The Woodlands, TX USA
  1. Customize fields on order

    The error here is in the interpretation of the logic. All countries that have "state" have the states listed and tied to their country code in table CubeCart_geo_zones. If the country does not have states, there is no listing. The current coding will provide a drop down if states exist, no drop down if states do not. exist. The issue comes with Submit, as the field states is required, and the ajax validation script does not recognize that the state is no longer required. The excellent patch you provided Muscator works and can be applied to table CubeCart_addressbook. That should clear Muscator's problem, and I am sure he can find the lines. I would suggest the issue is best resolved by also having "required" removed from the state input when the country code is not present in CubeCart_geo_zones. Currently, the only change is to not create the drop down state option, it does not remove the "required" statement that causes the error in skins/[your template]/js/vendor/jquery.validate.min.js. I have not had time to fully investigate, but that the only logical place to properly correct the issue is at the form level, and each form that requires a state/county input needs to be dealt with. This is a bug that, if not submitted already, should be as it is an extremely aggravating issue in the many, many countries that do not have states or similar regional districts and is a wide-reaching problem covering both registered and non-registered purchasers, as well as all addresses in the CubeCart_addressbook table and possibly a few others.
  2. Customize fields on order

    It appears that this fix is only for this specific situation. Should a customer wish to ship to someone outside of this cart location, or Muscator decide to sell to someone located in a country that does have states or provinces, he will find that this fix will not allow that customer to properly fill out the forms.
  3. Changing What is Printed On Orders

    Some experimentation clearly shows your issue, and suggests a solution I have found, but not sure where to place it. When choosing a country that does not have state/counties, the section drop-down disappears, but the required option does not. This requires an if call that basically says that if the CountryCode in CubeCart table geo_country is not listed in CubeCart table geo_zone then skip state/country field, or mark "required=false" The issue is not how to construct the if .. elseif but what file to add it to. Any ideas here from others reading this posting would be appreciated.
  4. Changing What is Printed On Orders

    It was a thought, since you did not enumerate what "other files" were tinkered with. Perhaps the correct method was to comment out or remove the word "required" from the state field? There are also several lines in skins/[your_template]/js/3.cubecart.validate.js you may want to review again, changing some lines like 'billing[state]': { required: true to 'billing[state]': { required: false
  5. Changing What is Printed On Orders

    Accept appologies for jumping in on this conversation, but many functions, especially form functions, are controlled by individual templates. I wonder, have you looked at skins/[your active template]/templates/content.adressbook.php? Lines 103 through 113 deal with country and state. <div class="row"> <div class="small-12 large-8 columns"> <label for="country-list">{$LANG.address.country}</label><select name="country" id="country-list"> {foreach from=$COUNTRIES item=country} <option value="{$country.numcode}" {$country.selected}>{$country.name}</option> {/foreach}</select> </div></div><div class="row"> <div class="small-12 large-8 columns"><label for="state-list">{$LANG.address.state}</label><input type="text" name="state" id="state-list" required value="{$DATA.state}" placeholder="{$LANG.address.state} {$LANG.form.required}"></div></div> Although I have not played with this as all the carts I manage do need both state and country, you might look at the following: There is a "required" on State. Both items could possibly be removed by careful placement of <!-- and -->
  6. Thank you for all the assistance and input, When I did the upgrade through cPanel, some php options were missed. By fully rebuilding Apache and PHP with Mbstring,, php.ini was cleaned up and now only references currently installed modules. This cleared up the issues, and CubeCart is functioning fully as expected.
  7. Hi The recompile on the versions is underway. The server tech people are doing that, so maybe some resolve there. I just did a fresh install on a site, still won't run the front end. Admin on all the carts runs fine. It appears that tech has done some updates, as now down to one error, unfortunately fatal: [22-May-2016 06:15:08 Europe/London] PHP Fatal error: Call to undefined function mb_strtolower() in /home/peggypp/public_html/classes/seo.class.php on line 979
  8. one cart only shows error [22-May-2016 03:36:20 UTC] PHP Fatal error: Call to undefined function mb_strtolower() in /home/defender/public_html/cart/classes/seo.class.php on line 979 and my primary test cart [22-May-2016 04:23:21 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so: undefined symbol: zval_property_ctor in Unknown on line 0 [22-May-2016 04:23:21 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0 [22-May-2016 04:23:21 UTC] PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20121212 These options need to match in Unknown on line 0 [21-May-2016 23:23:21 America/Chicago] PHP Notice: `trusted` is not allowed as a key in 'CubeCart_ccss_ip_addresses' table! in /home/dogcarts/public_html/classes/db/database.class.php on line 858 [21-May-2016 23:23:21 America/Chicago] PHP Fatal error: Call to undefined function mb_strtolower() in /home/dogcarts/public_html/classes/seo.class.php on line 979 Although the errors vary, there seems to be only 1 fatal error. The other notices are warnings and probably would not break the front end. These three carts all have the same fatal error: PHP Fatal error: Call to undefined function mb_strtolower() in /home/dogcarts/public_html/classes/seo.class.php on line 979 this error is associated with the CubeCart Security Suite plugin, as it disappears when that plugin is deactivated. [21-May-2016 23:23:21 America/Chicago] PHP Notice: `trusted` is not allowed as a key in 'CubeCart_ccss_ip_addresses' table! in /home/dogcarts/public_html/classes/db/database.class.php on line 858
  9. I just did a long-overdue (cpanel) upgrade tonight from php 5.3 to php 5.5. Crashed the frontend on several carts. here is the log from one, checking others for similar or additional errors. [22-May-2016 02:51:15 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: undefined symbol: zval_property_ctor in Unknown on line 0 [22-May-2016 02:51:15 UTC] PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20121212 These options need to match in Unknown on line 0 [22-May-2016 02:51:15 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so: undefined symbol: zval_property_ctor in Unknown on line 0 [22-May-2016 02:51:15 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0 [22-May-2016 02:51:15 UTC] PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20121212 These options need to match in Unknown on line 0 [22-May-2016 02:51:15 UTC] PHP Fatal error: Call to undefined function mb_strtolower() in /home/elsab/public_html/classes/seo.class.php on line 979 step one was to do a force reinstall of the latest version of CubeCart (6.0.11). Also checked for /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so, it is present. George
  10. Changing What is Printed On Orders

    Thanks for the really quick update. I got as far as admin/sources/orders.index.inc.php, near line 524, but had not looked at the Customer receipt functions yet. Thanks for pointing me in that direction! As to the data stored in the database, the proper defining of the city ({$CONFIG.store_town}) and phone ({$CONFIG.store_phone}) in admin/skins/[default]/templates/settings.index.php entered the data into the database without error, then defining in admin/sources/orders.index.inc.php as: 'town' => $GLOBALS['config']->get('config', 'store_town'),allowed them to be properly called in admin/skins/[default]/templates/orders.print.php once I see how to do a plugin with hooks and test it, I will pursue putting up a plugin for the changes since at least one of the altered files can be changed to a default during a version update.
  11. Changing What is Printed On Orders

    I have functional invoice and packing lists almost ready to publish. Although there are work arounds, I would like to have the store city and store phone numbers entered into the database. Fields for town/city and phone number were not defined in the Store Settings/General tab. I have set up the fields, can enter, store and retrieve the correct info in the General Tab, but need to know which file(s) is called to insert into and retrieve from the data base, so I can have the keys properly assigned to the $STORE array called and referenced in admin/skins/default/templates/orders.print.php. Thanks for any input on this... Never mind, found it. thanks for looking
  12. Changing What is Printed On Orders

    HI I read that link, and probably am a little confused as to what that user was trying to accomplish. Perhaps he was billing open account, and did not have an invoicing program? I did some tests just to see what I remembered correctly from the basic set up on my test store and stores for 2 now live shops. What I (and at least one customer gets) is a copy of the INVOICE sent to the customer when they pay for their order. It shows billing and shipping addresses, all order details, minus the method of payment. It gives the link to check details in the admin panel which, if removed from this document could be used to mail or send an invoice with the shipment. Since this is a copy of the invoice the customer received, we should be able to recreate the invoice in the customer and/or orders section if needed, allowing generation of both an invoice and the current (not well-defined) packing list. I am pursuing that option now as this is especially needed if we change an order amount or quantities from the admin panel. It would also be useful as users coming from another ecommerce system are expecting this feature.
  13. Changing What is Printed On Orders

    The packing list you can print does not have billing info included in the data passed to it. You would have to make a call to another function, or change the called function, to add billing info then place it in the header area of admin/skins/default/order.print php so that it can be passed to the smarty template system to create the page. But, as noted above, it is not a simple operation and appears to be currently left to the authors to fix/change/update the core funtionality I guess a quick and dirty fix would be to include your email address on a cc or bcc to the email that sends the invoice to the customer.
  14. Changing What is Printed On Orders

    You shed some light where I had not looked. I have been working with another open source cart for 12 years, only starting a few months ago moving to CubeCart. They did not use Smarty, and I never really did more than play with it a little. There is no text, other than html tags, on this page that is not processed through Smarty. It appears perhaps I did not watch brackets closely enough. A quick test on what you said, IE: about line 36, if I do <div id="storeLabel"> <img src="{$STORE_LOGO}" alt=""> hello text </div> That prints okay. I am going to work a little with understanding how to send what I need to smarty. Also sending you the PM you asked for.
  15. Changing What is Printed On Orders

    On this same topic, how can one change, move boxes, or edit /admin/skins/default/templates/orders.print.php? Every time I try to change anything on this template, all I get is a blank page. I looked through admin/sources/orders.index.inc.php, and see the notes as to what is done with the page when generated, but see nothing there that would keep an altered templates/orders.print.php from printing. Any suggestions on altering this template and having it print? Thanks....