Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

product combination attribute dimensions

Featured Replies

Hi. This one (https://addons.prestashop.com/en/sizes-units/24128-product-combination-attribute-dimensions.html) seems to be exactly what I need. Does anyone have experience with this module ?

  • 3 years later...
On 12/28/2018 at 2:35 AM, led24ee said:

Hi. This one (https://addons.prestashop.com/en/sizes-units/24128-product-combination-attribute-dimensions.html) seems to be exactly what I need. Does anyone have experience with this module ?

Hi there @led24ee

So I'm interested in purchasing this module and wanted to know your experience with it? 

Did you land up going with it or did you find some free alternative? 

  • Author

Hi, Theo

 

I don't have this module. So I have no experience or any info at all about this module.

  • Author

Honestly, this was for future need. Right now there isn't strong need for this. I was somehow sure that TB team can handle this. (Yes, silly me). But unfortunately they are doing some weird things, which are for people who can't use all possibilities that already exist. But about this module, maybe I need to pay for someone extra because my skills aren't so good. And this keeps me thinking about this : why I'm supporting this project at all when I need to pay extra if there is some problem.

On 7/30/2022 at 2:31 AM, led24ee said:

Honestly, this was for future need. Right now there isn't strong need for this. I was somehow sure that TB team can handle this. (Yes, silly me). But unfortunately they are doing some weird things, which are for people who can't use all possibilities that already exist. But about this module, maybe I need to pay for someone extra because my skills aren't so good. And this keeps me thinking about this : why I'm supporting this project at all when I need to pay extra if there is some problem.

Just my thoughts on this:

  1. I can see the point for this feature and it can be useful for other merchants. But it's not a feature that was asked that often in the past. In addition it's not easy to implement at all...
  2. I know not a single "new" feature, that already exists. I guess you are talking about my "Multiple Features PR". As you see in my thread: multiple persons like it a lot. I think you still haven't understood, that I am not even part of the tb team. My PR is basically a "gift" that took me probably more than hundred hours.
  3. Why you are supporting this project? Ofc that's up to you, but all guys now using TB or PS 1.6 are fucked up in a few months, if development doesn't continue. I have asked it many times: which open source ecommerce software is better? Haven't got any names. Please also check github and the recent forum posts from @datakick. This is why you support it. He works so hard to hold this project on and make it even better. From github I would say that this software is much more alive than a year ago. 🙂

Also if you need any help and it's small enough not for paid support, you can always ask here in the forums and include Datakick. 

 

Thanks to @datakick, @Smile and the supporters who have kept TB alive. There's more to be done and room for improvement ofc, but at least it's alive and active. 

Edited by Theo

  • Author

Well, as I understand Datakick is so busy that he can't done all things even if he is present in 4 person. So there isn't much hope for relative fast solutions every time.

More monetary support and more paid support work will help TB grow so we can get more devs.

Obviously there are things that TB management needs to do to bring in more users / theme devs. But that's another story. Right, Chiel? @Smile

Right now TB needs our support. Both for their sakes and ours. We like running one of the best opensource eCommerce platforms out there and want it to continue and get better, right? 

 

So I've just purchased this module
https://addons.prestashop.com/en/sizes-units/24128-product-combination-attribute-dimensions.html#specifications

 

But I'm getting the following error (Running TB 1.4 on PS 7.2):

ThirtyBeesException

Class 'Attribute' not found

in file modules/combinationdimensions/classes/AttributeDimension.php at line 85

Source file: modules/combinationdimensions/classes/AttributeDimension.php

66:
67:    /**
68:     * Get saved attributes from DB
69:     * @return array
70:     */
71:    public static function getSavedAttributes()
72:    {
73:        return Db::getInstance()->executeS('SELECT * FROM '._DB_PREFIX_.'cd_attribute_dimensions');
74:    }
75:
76:    /**
77:     * Method to modify saved attributes for helper list
78:     * @return array
79:     */
80:    public static function getListAttributes()
81:    {
82:        $attributes = AttributeDimension::getSavedAttributes();
83:
84:        foreach ($attributes as &$attribute) {
85:            $att = new Attribute($attribute['id_attribute']);
86:            $attribute['attribute_value'] = $att->name[Context::getContext()->language->id];
87:            $attribute['height'] = (float) $attribute['height'];
88:            $attribute['width'] = (float) $attribute['width'];
89:            $attribute['depth'] = (float) $attribute['depth'];
90:        }
91:
92:        return $attributes;
93:    }
94:
95:    /**

Is there something I need to change in the code here, please @datakick ?

Edited by Theo

  • Author

I'm not sure but this can be related with PHP8. When I remember correctly then in PHP8 there are some things with are in conflict with PS and TB earlier version. But since PHP8 there wasn't conflict because they was using different names for items. Now PHP8 uses one thing with the same name as it is present in PS and TB. I have no idea about PS, but in TB1.4 this problem is somehow solved. If I'm correct then this module isn't compatible with PHP8 and also it is not compatible with TB1.4. But once again, maybe I understand it all wrong.

class 'Attribute' in global namespace is reserved in php8. In order to make tb php8 ready, we had to rename the class Attribute to ProductAttribute.

There will be a mechanism that fixes (patches) third party modules automatically, but this mechanism is not yet ready for production -- still lots of bugs. 

Meanwhile, you have to patch the module code yourself. Replace every reference of Attribute with ProductAttribute.

In your case, line 85 should look like this:

$att = new ProductAttribute($attribute['id_attribute']);

Look for these syntax patterns in the module code:

new Attribute(...)
Attribute::someMethod()
Attribute::$staticProperty

 

2 hours ago, datakick said:

class 'Attribute' in global namespace is reserved in php8. In order to make tb php8 ready, we had to rename the class Attribute to ProductAttribute.

There will be a mechanism that fixes (patches) third party modules automatically, but this mechanism is not yet ready for production -- still lots of bugs. 

Meanwhile, you have to patch the module code yourself. Replace every reference of Attribute with ProductAttribute.

In your case, line 85 should look like this:

$att = new ProductAttribute($attribute['id_attribute']);

Look for these syntax patterns in the module code:

new Attribute(...)
Attribute::someMethod()
Attribute::$staticProperty

 

Awesome, thanks for the explanation and solution. I will implement accordingly. 

Bytw, I particularly like your idea of the mechanism to fix 3rd party modules automagically. But I can appreciate the complexity and hornet's nest involved in that one. 

Also just last question for now @datakickWhen I started building this site, PHP 7.2 was kinda still fine with 7.3 recommended, with the dev site running 7.2. Assuming that Panda and other third party modules will still work, which PHP version do you recommend for the live site? Should I go for 7.4?

Edited by Theo

13 hours ago, datakick said:

class 'Attribute' in global namespace is reserved in php8. In order to make tb php8 ready, we had to rename the class Attribute to ProductAttribute.

There will be a mechanism that fixes (patches) third party modules automatically, but this mechanism is not yet ready for production -- still lots of bugs. 

Meanwhile, you have to patch the module code yourself. Replace every reference of Attribute with ProductAttribute.

In your case, line 85 should look like this:

$att = new ProductAttribute($attribute['id_attribute']);

Look for these syntax patterns in the module code:

new Attribute(...)
Attribute::someMethod()
Attribute::$staticProperty

 

Working now, thank you. I appreciate it 👍

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.