xoops forums

Quest

Friend of XOOPS
Posted on: 2009/10/14 10:06
Quest
Quest (Show more)
Friend of XOOPS
Posts: 1034
Since: 2005/11/19
#1

Attributes in Oledrion

I am unable to get the attributes to work. They do not show up with product to check. But if I click to add to cart I get message "You did not fill out xxxxx field.

Quest

Friend of XOOPS
Posted on: 2009/10/17 11:26
Quest
Quest (Show more)
Friend of XOOPS
Posts: 1034
Since: 2005/11/19
#2

Re: Attributes in Oledrion

Bump

Burning

Theme Designer
Posted on: 2009/11/5 13:12
Burning
Burning (Show more)
Theme Designer
Posts: 1163
Since: 2006/8/22
#3

Re: Attributes in Oledrion

hi'

In changelog.txt you can read :
Quote:
For this moment, persistent card does not save products attributes


... have you checked this option in modules Preferences ?

Burning

Theme Designer
Posted on: 2009/11/10 8:37
Burning
Burning (Show more)
Theme Designer
Posts: 1163
Since: 2006/8/22
#4

Re: Attributes in Oledrion

hi'

Tested with :
• XOOPS 2.4
• Default theme
• Oledrion 2.31
• PHP 5.3.0
• No persistent cart

... it seems that attributs don't work

What I can do :
• attributs creation
• modify attributs layout (checkboxes, list, ...) displayed on product page

But :
• in all cases : no attributs is sent to caddy (it is always default value, no change even I check / select another attributs)
• with checkboxes : it is possible to uncheck all attributs, but in this case, no price is displayed on product page (even if I choose to make attributs choice required in back office)

Xoops debug mode is not very easy to read (more than 130 Errors, a lot from xoopseditors). About oledrion module, I see on every pages :

Quote:
Unknown: Assigning the return value of new by reference is deprecated in file /modules/oledrion/class/PEAR.php line 569
Unknown: Assigning the return value of new by reference is deprecated in file /modules/oledrion/class/PEAR.php line 572


And many times :
Quote:

Unknown: Function set_magic_quotes_runtime() is deprecated in file /modules/oledrion/class/lite.php line 770

(lines 770, 772, 715, 725, 772... I read it but it is about cache functions)

Any help would be very useful.
Thanks in advance


nb : sorry for massacring english like that

Burning

Theme Designer
Posted on: 2009/11/10 8:57
Burning
Burning (Show more)
Theme Designer
Posts: 1163
Since: 2006/8/22
#5

Re: Attributes in Oledrion

Me again

In oledrion_attribute_radio.html and oledrion_attribute_checkbox, there is this comment : <{* DON'T REMOVE THE class= ... *}>

<label for="<{$name}>_<{$attribute_id}>"><{$attributeTitle}><{if $attribute_mandatory}> *<{/if}></label><br /> 
    <{foreach 
item=option from=$options}>    <{* DON'T REMOVE THE class= ... *}>
        <input type='
checkbox' name='<{$name}>_<{$attribute_id}>[]' id='<{$name}>_<{$attribute_id}>[]' value='<{$option.value}>_<{$option.counter}>' <{if in_array($option.value, $defaultValue)}>checked='checked'<{/if}> class="oledrion_attribute <{if $attribute_mandatory}>required<{/if}>" /> <{$option.name}> (<{$option.priceTTCFormated}>)<{$delimiter}> 
    <{/foreach}>
</select>
<br />


ghia

Community Support Member
Posted on: 2009/11/10 10:23
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#6

Re: Attributes in Oledrion

I suppose it is a warning for people, that wants to restyle the template, that they should not touch the class parameter in order to not disturb the good functioning of Oledrion.

Burning

Theme Designer
Posted on: 2009/11/10 10:42
Burning
Burning (Show more)
Theme Designer
Posts: 1163
Since: 2006/8/22
#7

Re: Attributes in Oledrion

hi' Ghia,

Thanks for your response.

I have also tried Oledrion 2.31 with :
• XOOPS 2.3.3
• default theme
• PHP 5.2.11

... same issue : default value is sent to caddy even I select another one on product page

May be a problem with js or / and my browser

Quest

Friend of XOOPS
Posted on: 2009/11/10 12:20
Quest
Quest (Show more)
Friend of XOOPS
Posts: 1034
Since: 2005/11/19
#8

Re: Attributes in Oledrion

I don't even get the check boxes or the radio buttons. Just a default attribute on the caddy.

Quest