You could also consider shortening the window of what is considered "new".
https://docs.zen-cart.com/user/admin/what_is_new/
Type: Posts; User: DrByte
You could also consider shortening the window of what is considered "new".
https://docs.zen-cart.com/user/admin/what_is_new/
Blank pages are always a result of server errors. The errors are not shown on-screen for security reasons so hackers can't get information with which to compromise your site. This means you need to...
https://docs.zen-cart.com/user/running/login_as_customer/
Zen Cart v1.5.4 was released in December 2014, and is officially no longer supported.
The best fix is to upgrade to a newer version that contains fixes for the issues you mention.
That snippet itself is harmless, might even be important according to your hosting company.
As swguy says, check with your hosting company to see why they're doing that.
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...
And remember, the order class takes care of all this internally :)
Yup. @mc12345678 is right.
I'm having trouble visualizing what actually "is" happening. Care to enlighten?
foreach ($order->products as $product) {
// Option: $product['attributes']['option']
// Option Value: $product['attributes']['value']
// Option ID: $product['attributes']['option_id']...
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...
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...
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...
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...
Simple: use the order class.
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...
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....
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...
Looks like it probably does.
But you might also want to look at the dbio plugin as well.
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...
Yes, here: https://github.com/zencart/zencart/pull/2856/files
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...
"United Kingdom".
https://p176.p0.n0.cdn.getcloudapp.com/items/kpuNGXKq/a3f359be-3bf1-4a2e-8b57-653838f00224.jpg?v=060b6fd0022cdfb49e5e36048ae02548
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...
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...
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...
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...
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...
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...
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.
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
*...
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...
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...
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
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...
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...
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?
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.
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:...
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...
Ya, that's because I didn't follow my gut and go check the actual order class code:...
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...
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...
I guess you could change both of these:
$this->processProducts($order->products);
to
$this->processProducts($order);
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.
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...
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,...
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...
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...
Interesting.
I've never used that mod. Good to know it has "issues".