[TYPO3-commerce] article_select_attributes with one article
Pascal Cramer
pascal at NOSPAMroguesheep.nl
Wed Oct 22 09:50:19 CEST 2008
Hi Morton,
thanks for explaining. With a selectbox it indeed would not make as much sense
but in this shop we have set the "allArticles=1" option in order to show all
colors and an 'order now' button. In this case when a product is available in
just one color, the customer will not see this color specified with the order
button.
Not showing the color name is interface-wise perhaps also a bit confusing
because with all the other products the colors (multiple) are shown.
Perhaps the changes can be made is such way that the system will show
article/attribute even when there is only one article per product. For the
"allArticles=0" case this result in a select box with nothing to select, just
having the one attribute. Indeed a bit strange but in my opinion a
good,consistent way to communicate with the customer.
Please, feel free to contact me if you would like to discuss this further or
need some help implementing.
Regards,
Pascal
Morten Olesen wrote:
> Hi Pascal,
>
> The reason that it gets removed is that it does not make sence to have a
> select box with just one option, prehaps you should user shall/can or
> filter instead?
>
> Even so what you describe can actually create a problem even with
> intended use of the shop "articles.showWithNoStock=0" could easily(!)
> lead to a situation where only one article is shown, and then the user
> would not know what colour/size/etc they were buying..
>
> I'm currently working on rewriting the drop down coded and this
> definitely need some attention
>
> /Morten Olesen
>
> Pascal Cramer wrote:
>> Hi list and developers team,
>>
>> When there is only one article with a product, the
>> 'article_select_attributes' marker is emptied.
>>
>> The display of the select value of that product, in our case the color,
>> could be of interest to the customer when ordering an article even when
>> there is no choice in this.
>>
>> Is there a reason why the pi1 code conditions the filling of this marker?
>> (line 485: 'if($count > 1) {')
>> When I disable the condition everything seems to work fine.
>> Perhaps this condition is a candidate for TS configuration:
>> alwaysShowArticleAttributes?
>>
>> Regards,
>> Pascal
More information about the TYPO3-project-commerce
mailing list