-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add product dimension fields #6233
Conversation
Love it! Looks like Canada Post. :) |
New doc: https://docs.zen-cart.com/user/shipping/shipping_dimensions/ plus references in What's New and the Release Specific Upgrade Considerations pages. |
c79c7d8
to
73571a4
Compare
Thank you, @torvista. The first one I already had but the second one was a surprise. Will push these shortly. |
@@ -583,6 +583,10 @@ | |||
'TEXT_SALEMAKER_IMMEDIATELY' => 'Immediately', | |||
'TEXT_SALEMAKER_NEVER' => 'Never', | |||
'TEXT_SET_DEFAULT' => 'Set as default', | |||
'TEXT_SHIPPING_lbs' => '(lbs)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be UPPER case
'TEXT_SHIPPING_LBS' => '(lbs)',
etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See PR #6245
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand well, this file is overridden by other collect_info.php
in different products types folders. Shouldn't these be updated too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See PR #6245
In v2.0.0 they're consolidated into a parent directory unless you're customizing them, in which case you copy the original into that product type dir.
I guess we could add it to the built in music one.
|
I just tried to monkey patch my database using the SQL added here, but it fails because there's a MODIFY on zencart/zc_install/sql/updates/mysql_upgrade_zencart_200.sql Lines 44 to 45 in 119d28c
In fact, why does this SQL attempt to MODIFY and then ADD the same field? The MODIFY line appears redundant. Same goes for the width and height lines just below. |
If you're doing that, remove the ALTER TABLE MODIFY statements. These were put in place for people who already had these fields because of mods (like Numinix Product Fields). |
Ah, there's obviously some black magic going on in zc_install that I'm unaware of 👍 Thanks. |
Please note: FOR LIVE-STORES THAT HAVE NOT RUN ZC_INSTALL, the guidance is to not do what you're doing. That's why it says in red text in the Install SQL Patches tool: This tool should NOT be used to execute Zen Cart database-upgrade scripts: use the Zen Cart Installer as per the documentation. If you still want to do it, you have to dig in and understand the details. |
Yes, both |
Add product dimension fields. Primarily to be used by shipping modules to prepare more accurate shipping quotes.
Also addresses #6232