Search:

Type: Posts; User: DrByte

Page 1 of 10 1 2 3 4

Search: Search took 0.29 seconds.

  1. Replies
    71
    Views
    7,756

    Re: All Invoices Report [support]

    The plugin's files are/were based on v1.5.5. That is, the tpl_invoice and tpl_packing_slip files were derived from the admin/invoice and admin/packing_slip files in v155.

    The changes to those...
  2. Re: how do I require application_top.php in folder in admin with a composer package?

    And remember, the order class takes care of all this internally :)
  3. v157 Re: Adding special function when order is placed

    Yup. @mc12345678 is right.
  4. v157 Re: Adding special function when order is placed

    I'm having trouble visualizing what actually "is" happening. Care to enlighten?
  5. v157 Re: Adding special function when order is placed

    foreach ($order->products as $product) {

    // Option: $product['attributes']['option']
    // Option Value: $product['attributes']['value']
    // Option ID: $product['attributes']['option_id']...
  6. Re: how do I require application_top.php in folder in admin with a composer package?

    When customers are shopping via their browser, products get added to the cart using data submitted from product-listing page forms or buy-now-button-links, which trigger some functions in the...
  7. Re: how do I require application_top.php in folder in admin with a composer package?

    At one time Notepad++ was the best recommendation. But it's kinda dated now.

    Then Sublime-Text came along (and is still an excellent choice).

    But Microsoft has put a huge push into getting...
  8. v155 Re: Upgrade Advice v1.5.7 - Upgrade Service Wanted?

    Can you be any more vague about the problem?

    Before looking at upgrades etc, have you figured out what exactly caused the "just stopped working"?

    If you don't know the underlying reason, your...
  9. Replies
    844
    Views
    130,369

    Re: User tracking mod ZC 1.5.6

    Break with the old. Pick a ZC version for the new release to work with and abandon the old ones. Let the older releases of the plugin serve those using outdated ZC versions.
    They're soon not going...
  10. Re: how do I require application_top.php in folder in admin with a composer package?

    Simple: use the order class.
  11. Replies
    8
    Views
    781

    v155 Re: CSV Stock Update

    The code looks like it'll "work" fine. The admin page might "show" oddly given some of the changes made to v157's admin templating/menuing, but probably only minor cosmetic oddities. You could...
  12. v157 Re: Plugin gift_certificate_addon - install.Sql issues ZC 1.57b

    As explained in the docs, the Queue is for GVs ("Gift Vouchers"/Certificates that have been purchased by customers from the storefront and queued for review. Queuing is something you can turn on/off....
  13. Replies
    3
    Views
    104

    v157 Re: Define Pages in footer

    No idea why nor what you have in mind by mentioning "define pages" .... because most of those are for content that displays as blocks of info inside other pages.

    But you can build a list of links...
  14. Replies
    8
    Views
    781

    v155 Re: CSV Stock Update

    Looks like it probably does.

    But you might also want to look at the dbio plugin as well.
  15. v157 Re: Plugin gift_certificate_addon - install.Sql issues ZC 1.57b

    Out-of-the-box the gift certificate features work as described in original Zen Cart GV FAQs, and in the docs.

    You're asking about how they work and quoting core ZC gift certificate FAQ pages...
  16. Replies
    6
    Views
    86

    v157 Re: HTML Layout Issue in Responsive Classic

    Yes, here: https://github.com/zencart/zencart/pull/2856/files
  17. Replies
    5
    Views
    91

    Re: Excluding a country

    Note that in v157 it sorts by enabled status, so only shows enabled countries first, then disabled ones after that.

    Also note that it's not a good idea to add/delete countries, because internal ID...
  18. Replies
    5
    Views
    91

    Re: Excluding a country

    "United Kingdom".

    https://p176.p0.n0.cdn.getcloudapp.com/items/kpuNGXKq/a3f359be-3bf1-4a2e-8b57-653838f00224.jpg?v=060b6fd0022cdfb49e5e36048ae02548
  19. Thread: Using PhpStorm

    by DrByte
    Replies
    14
    Views
    4,104

    Re: Using PhpStorm

    As far as a settings file for code-formatting, PSR-2 (or PSR-12 is probably fine too, although a lot of ZC code doesn't use things it addresses) is about all you need for code such as the v158...
  20. Thread: Using PhpStorm

    by DrByte
    Replies
    14
    Views
    4,104

    Re: Using PhpStorm

    Unfortunately .editorconfig doesn't enforce language-specific coding standards, just small things like spacing and line-endings.

    To implement PSR-2 in PhpStorm, in your Editor->Code Style...
  21. Replies
    13
    Views
    119

    v157 Re: Full page not displaying on mobile devices

    Just to be clear, you mean that the people (developers) who spend hundreds of hours writing software that they give away for free, should also, at their own expense, buy every possible device to test...
  22. Replies
    13
    Views
    119

    v157 Re: Full page not displaying on mobile devices

    Two things:
    1. HTML errors can cause lots of unexpected results. There's one in the link to the site name in the header when viewed on mobile. See image.

    2. Most responsive templates relegate the...
  23. v157 Re: Adding special function when order is placed

    In my earlier post I updated the processProducts() function to loop through $order->products. That is an array of all the products in the current order. The comments I posted in the code in an even...
  24. Replies
    3
    Views
    79

    v156 Re: AIM debugging vs logging failures only?

    I see your point. Yes, the options for selecting are missing the Alerts Only option, but the module does support it if set ... so you could use the SQL Patch tool to run this command:


    UPDATE...
  25. v157 Re: Error log generated when adding items to cart

    Probably just a copy/paste issue when I posted it. The first line should just be "<?php" and then the "/**" on the next line. I've updated that in my post above.
  26. v157 Re: Error log generated when adding items to cart

    I'm not sure why it says that error is happening on line 117, but since you say you're using v1.5.7, you could try this variant of function_osh_update.php:

    <?php
    /**
    * functions_osh_update
    *...
  27. Replies
    3
    Views
    79

    v156 Re: AIM debugging vs logging failures only?

    If "Enable Database Storage" is true, then both successes and failures will be logged to the database. This is often enabled so audit trails exist.

    If "Debug Mode" is not set to "Off", then both...
  28. Replies
    9
    Views
    138

    v157 Re: Custom Banner Positions

    In v1.5.7, if you look at the raw HTML of the admin banner_manager page where it displays a banner-groups dropdown, you can see that its field name is banners_group.
    Then looking into the PHP for...
  29. Replies
    6
    Views
    140

    v157 Re: Now what do I do?

    If your server is indeed using MySQL 8.0.17 or newer, grab the zc_install directory from github instead, since it contains a fix for MySQL 8: Download ZIP
  30. Replies
    2,156
    Views
    424,668

    Re: MultiSite Module Support Thread

    That means $breadcrumb hasn't been initialized/created yet, which is expected because init_sessions loads at order 70 whereas breadcrumbs at 160.

    I'm not sure why line 15 of your init_sessions...
  31. Replies
    309
    Views
    26,276

    v155 Re: ZCA Bootstrap Template

    The div containing it is set to col-sm-4 which means it only shows at 33% width on devices other than smallest mobiles.

    You can read up on Bootstrap's column grid rules at...
  32. v156 Re: error generated from missing LARGE_IMAGE_WIDTH constant

    If that plugin expects that constant to be defined (and probably via an admin config switch it adds during its installation) then perhaps there's something missing from installation steps performed?
  33. v156 Re: error generated from missing LARGE_IMAGE_WIDTH constant

    I'd start with exploring: in what ways has that template's tpl_modules_main_product_image.php file been modified from the original template_default version
    ... and why.
  34. Re: Have Product description NEXT to image in responsive

    You'll probably find those multicolumn grid layout things easier to implement using the Bootstrap4 template, v3.1.0+ that's pending release soon.

    As of today the 3.0.0 release is available:...
  35. v157 Re: Adding special function when order is placed

    The way my proposed observer class instantiates its own new instance of the order class and queries the order details directly, means it is hydrating the order afresh. This lets this code also work...
  36. v157 Re: Adding special function when order is placed

    Ya, that's because I didn't follow my gut and go check the actual order class code:...
  37. Replies
    4
    Views
    107

    v157 Re: Help - site down!

    Something to consider: was the mysterious "delete" actually an accidental drag-and-drop, where you mistakenly moved it inside another folder? Just something to check, in case you now have unexpected...
  38. v157 Re: A non-numeric value encountered in shopping_cart.php

    Confirmed: the updates to includes/functions/functions_prices.php to fix this are staged in v157c, at:
    https://github.com/zencart/zencart/raw/v157/includes/functions/functions_prices.php
    which can...
  39. v157 Re: Adding special function when order is placed

    I guess you could change both of these:


    $this->processProducts($order->products);

    to


    $this->processProducts($order);
  40. v157 Re: A non-numeric value encountered in shopping_cart.php

    While that bandage will work, I'd also like to figure out where the empty string value is coming from and why, in case the fix should be made "there" instead.
  41. v157 Re: Adding special function when order is placed

    Using my code sample as a base, the $order variable built in both of those updateXYZ functions has access to all the data inside the order (comes from the order.php class).
    Inside those functions...
  42. v150 Re: Removing Country Checkout Field | US only | State Drop Down

    There are only a couple hundred countries. Clicking the green/red status icon in the Admin Countries screen instantly toggles the status, and only "enabled" countries show at the top of the list. So,...
  43. v157 Re: Invoice Payment Method V 23Dec2018, Installation issue

    Something to explore: where is that 2% coming from?
    - is it from the group-pricing settings? Change your percentages in there and check what the effect is
    - is it actually a currency-exchange...
  44. v157 Re: A non-numeric value encountered in shopping_cart.php

    I don't dispute that it may have created a log on "your" server while I was attempting to figure out what I might need to create to replicate the problem.
    My point is that by using the steps I...
  45. v157 Re: Error log generated when adding items to cart

    Interesting.

    I've never used that mod. Good to know it has "issues".
  46. v157 Re: A non-numeric value encountered in shopping_cart.php

    Again, looking for steps to recreate a product that triggers this error when adding to cart or displaying the cart.

    Latest attempt, based on Carbonless's posts:

    New product:
    -...
  47. v157 Re: Error log generated when adding items to cart

    PHP Warning: A non-numeric value encountered in /includes/classes/shopping_cart.php on line 737.

    I knew I'd seen this before.
    After digging more, I don't think the final "fix" has been decided...
  48. v157 Re: Error log generated when adding items to cart

    That seems to be something wrong in your template. There's no HREF in the html:



    <td class="productsCell"><a href=""><img src="images/buttons/magneticvehiclesigns.jpg" alt="Vehicle Magnet -...
  49. v157 Re: Error log generated when adding items to cart

    I should clarify:
    This part, the warning, is what I meant is "not urgent":

    PHP Warning: A non-numeric value encountered in /includes/classes/shopping_cart.php on line 737.
    And, I'm pretty sure...
  50. v157 Re: ZC 157b installer error - no upgrade option on MySQL 8.0.x

    Hmm, that shouldn't work.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR