Jump to content
thirty bees forum
  • 0

Can't add new attributes


Question

Posted

Can't add new attribute

These options were available for the default theme before I deleted all sample data using thirty bees catalog cleaner

0_1502044104470_Screen Shot 2017-08-06 at 2.25.00 PM.png

9 answers to this question

Recommended Posts

  • 0
Posted

How can I tell? Downloaded from TB last week.

Any one specific file to download and replace?

I also switched over to Panda, can't recall if default did the same. Would that matter? I know the options were there upon installation before I deleted sample store.

  • 0
Posted

Looks like a regression in 1.0.2, classes/AttributeGroup.php function getHigherPosition() was bugged by:

commit bc9637ba9092ad0ba3a4d5c3744a068e025e58b8 Author: Michael Dekker git@michaeldekker.nl Date: Thu Jun 22 02:42:04 2017 +0200 Cleanup AttributeGroup

To fix it, just replace: ->select('MAX(position') With: ->select('MAX(position)')

  • 0
Posted

Crap, looks like the forum software ate some of the special characters in my post.

Just check the similar function at the end of classes/Attribute.php, that one does it correctly.

  • 0
Posted

My eyes are eating the rest of them :) Didn't work.

Is this the latest copy? https://github.com/thirtybees/thirtybees/blob/1.0.x/classes/AttributeGroup.php

Replaced mine with the above and getting the same error.

  • 0
Posted

To fix it, just replace: ->select(‘MAX(position’) With: ->select(‘MAX(position)’)

Well, forum tries to "enhance" single quotes. Inside a code block it doesn't:

php ->select('MAX(`position`)')

  • 0
Posted

Don't know how you all do it! Looks like my cat walked on the keyboard to me, but code block did it! :) Thanks!

0_1502110932564_Screen Shot 2017-08-07 at 9.01.40 AM.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...