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 dimensions (width, height, depth & unit) #828

Closed
briansandall opened this Issue Sep 23, 2015 · 23 comments

Comments

Projects
None yet
5 participants
@briansandall
Contributor

briansandall commented Sep 23, 2015

Please consider adding product dimensions (length, height, and width) - in addition to weight, these are often very important product characteristics, even moreso should one wish to use them while calculating shipping costs.

I have already added these for my own project, but I think many store owners may wish for the same thing so I have separated the changes into a mergable branch.

Please review the changes and comments, then let me know if you would like me to make any further changes before submitting a pull request (or not make a PR at all, if you don't want these changes or already have them planned for 6.0.9). Thanks!

@briansandall

This comment has been minimized.

Contributor

briansandall commented Oct 26, 2015

This is really nice for products with major size discrepancies between different options, especially when combined with a shipping module that accounts for that when calculating costs.

briansandall added a commit to briansandall/v6 that referenced this issue Nov 10, 2015

Dynamically update fields from issue cubecart#828 via cubecart#814
Product dimensions update dynamically as option selections are made
@briansandall

This comment has been minimized.

Contributor

briansandall commented Nov 10, 2015

Rebased the original branch on top of the latest master branch and reversioned for 6.0.9. Say the word and I'll make a PR.

Combined issue814-828 branch uses the latest version of 814 (i.e. issue814_fixed).

@briansandall

This comment has been minimized.

Contributor

briansandall commented Nov 10, 2015

Here are some screenshots of the end results:

Store settings page - select measurement unit next to weight unit:
cc_828-store

Product page - dimensions added after weight:
cc_828-product

Product options page - options may also modify product dimensions:
cc_828-options

Shopping view displays product dimensions in the Specifications tab (which is dynamically updated if using the merged issue814-828 branch):
cc_828-spec

briansandall added a commit to briansandall/v6 that referenced this issue Dec 7, 2015

Issue cubecart#828: Added product dimensions
Added length, height, width, and store settings for measurement unit

briansandall added a commit to briansandall/v6 that referenced this issue Dec 7, 2015

briansandall added a commit to briansandall/v6 that referenced this issue Dec 7, 2015

@vorien

This comment has been minimized.

vorien commented Nov 14, 2016

I'd really like to use this functionality. Is there any way to turn it into an extension?

@briansandall

This comment has been minimized.

Contributor

briansandall commented Nov 14, 2016

@vorien There are probably already extensions that add this type of functionality. Unfortunately, I do not have time to make extensions myself, and as you can see there has not been any response from the developers yet on whether the above will be integrated into CubeCart's core.

If you are familiar at all with Git, you are more than welcome to cherry pick the above commits into your own project, though they are now almost a year old and may need some updating. Good luck!

@vorien

This comment has been minimized.

vorien commented Nov 14, 2016

Thanks for the quick reply.
I'm not familiar enough with cubecart to do the conversion, but I figured I'd check. I haven't seen any extensions that implement dimensions by option, so maybe there's no demand for it.

M

@briansandall

This comment has been minimized.

Contributor

briansandall commented Nov 14, 2016

If you don't see any extensions that meet your needs and you aren't comfortable implementing the above changes yourself, you may want to consider contacting some developers and requesting a custom extension. I'd offer to do it, but I've never made a proper extension before and am in the middle of another project.

I believe SemperFi and Noodleyman both do custom work and they seem easy to contact either here or on the CubeCart forums. If you really want this functionality, they would be a good place to start.

@abrookbanks abrookbanks closed this May 4, 2017

@abrookbanks abrookbanks self-assigned this Feb 27, 2018

@abrookbanks abrookbanks added this to the 6.2.0 milestone Feb 27, 2018

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Feb 27, 2018

Opening for 6.2.

@abrookbanks abrookbanks reopened this Feb 27, 2018

abrookbanks added a commit that referenced this issue Feb 27, 2018

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Feb 27, 2018

screen shot 2018-02-27 at 15 25 33
screen shot 2018-02-27 at 15 25 25

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Feb 27, 2018

Functionality around this can be expanded on later..

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Feb 27, 2018

screen shot 2018-02-27 at 15 26 46

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Feb 27, 2018

Reopening because we need this info on product import and export.

@abrookbanks abrookbanks reopened this Feb 27, 2018

abrookbanks added a commit that referenced this issue Feb 27, 2018

abrookbanks added a commit that referenced this issue Feb 27, 2018

@abrookbanks abrookbanks closed this Mar 1, 2018

@Dirty-Butter

This comment has been minimized.

Dirty-Butter commented Mar 1, 2018

Somehow or another Length had been added to the Inventory structure in my database. It is not in use. Also, will there be a way to set either inches or centimeters as stock choice?
And this represents packaged size, right - not actual size of item? We bubble wrap most items, so volume in box is larger than actual item.

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Mar 2, 2018

Hmm.. I don't see any duplicates in the SQL.. and fields look ok.

screen shot 2018-03-02 at 09 56 58

@abrookbanks abrookbanks changed the title from Feature request: Product dimensions to Add product dimensions (weight, height, depth & unit) Mar 2, 2018

@Dirty-Butter

This comment has been minimized.

Dirty-Butter commented Mar 3, 2018

Must be something I had because I tested Daren's Dimension plugin. As long as you don't see it, np.

@abrookbanks abrookbanks changed the title from Add product dimensions (weight, height, depth & unit) to Add product dimensions (width, height, depth & unit) Mar 28, 2018

@claudia39

This comment has been minimized.

claudia39 commented Mar 28, 2018

So this isn't to be used for shipping dimensions eventually (future shipping plugin) as those dimensions would be larger than the item dimensions, plus you would also need the girth in some instances?

@abrookbanks

This comment has been minimized.

Member

abrookbanks commented Mar 28, 2018

No it's not. One step at a time..

@briansandall

This comment has been minimized.

Contributor

briansandall commented Mar 28, 2018

Girth is derived from the base dimensions, so wouldn't have its own database field.

For my own store, I simply note that these are shipping dimensions, not the actual product dimensions.

Not sure if it's a US vs UK thing, but UPS expects parameters named length, width, height (in order from largest to smallest) rather than width, height, depth.

@claudia39

This comment has been minimized.

claudia39 commented Mar 28, 2018

Yeah, I was wondering about the wording. I'm in the US. I'll just change depth to width and width to length. I have an Excel worksheet that figures the girth for me. I had already setup in my date base "item size" and just typed in the dimensions say 5-1/2W x 10-3/4L x 5H. Anyway this can show fractions instead of decimals?

@briansandall

This comment has been minimized.

Contributor

briansandall commented Mar 28, 2018

If you're interested, I wrote my own shipping module for UPS that uses the shipping dimensions for more accurate shipping rates. It expects the database columns to be named product_length, product_width, and product_height, though, so you'd have to alter the upgrade script a little or wait until I update it to use whatever is in the final CubeCart v2.0.

Displaying as a fraction instead of a decimal would probably require some hard-coded conversions... for my own store, I simply round up to the nearest inch anyway since that's what UPS will do.

@claudia39

This comment has been minimized.

claudia39 commented Mar 28, 2018

Thanks briansandall, but I use USPS mostly and I love the AOIS shipping mod. I can get by using the decimals. Thanks for all answers to my inquiries!

@Dirty-Butter

This comment has been minimized.

Dirty-Butter commented May 4, 2018

In 6.2.0 Store Settings>Stock already asks if weight should be Metric or Imperial - wouldn't it make more sense to have a setting that chooses Metric or Imperial for ALL the weight and dimension settings? Otherwise every new listing has to be chosen for inches or centimeters and all existing listings will have to have a query run I suppose to set the correct one. Some sellers will need both measuring systems for different products, but wouldn't most need just one of them or at least have a preponderance of one system?

@claudia39

This comment has been minimized.

claudia39 commented May 6, 2018

Agree Dirty-Butter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment