WebsiteBaker Support (2.8.x) > Bakery Shop

Bakery: Small Shop Module (ORIGINAL TOPIC)

<< < (111/167) > >>

Boudi:
Hi,

A client of me has several bakery shops on their website. They do a lot in clothing. They have an optionlist in which customers can choose their size. Eg: S,M,L,XL,XXL

The problem that they face is the order of these options. The order is alphabetical so you get L,M,S,XL,XXL

Can this be re-arranged to the correct option list settings?

Note: I found in this topic another issue about this, but that was about figures.

Any help would be appreciated.

Greetz,

Boudi

freeSbee:
Hi Boudi


--- Quote from: Boudi on November 03, 2009, 01:50:57 PM ---The problem that they face is the order of these options. The order is alphabetical so you get L,M,S,XL,XXL
Can this be re-arranged to the correct option list settings?

--- End quote ---

Bakery does not support ordering of option attributes by default.
But try this workarround:

NOTE:
These modifications will affect ALL Bakery option attributes, not only the ones given in the example below. All option attributes will be ordered the same as the attribute_id.


1.
First go to the mod_bakery_attributes table in your database and reorder the attribute_id field in your own way.

For example:
attribute_id        option_id         attribute_name

     6                      2                        XXL
     7                      2                        L
     8                      2                        S
     9                      2                        XL
   10                      2                        M

Change db table to, eg.:
attribute_id          option_id         attribute_name

    10                        2                          XXL
      8                        2                          L
      6                        2                          S
      9                        2                          XL
      7                        2                          M

2.
Open the files view_overview.php and view_item.php. If you need the same ordering in the backend too, open modify_item.php and modify_options.php as well. Replace the code (all in all 5 times)

--- Code: ---ORDER BY o.option_name, a.attribute_name ASC
--- End code ---

by

--- Code: ---ORDER BY a.attribute_id ASC
--- End code ---


Regards Christoph

gilly:
does Bakery have any issues with the Aggregator module?

I have a site with the following setup:

online store (aggregator page)
- specials (aggregator page)
    - product page 1 (bakery page - no products)
    - product page 2 (bakery page - no products)
- current season (aggregator page)
    - product page 3 (bakery page - has products)
    - product page 4 (bakery page - has products)

Now the aggregator on the specials page works fine - it aggregates the product page 1 and 2. But the current season page does not work properly. Looking through the html that is output, there are links for the aggregated pages, but nothing inside the a tags, so the links are invisible.

It seems as soon as you add a product to one of the bakery pages, the aggregator stops working.

Any ideas why?

youecho:
Hi!

I have another question about the item options:

For example: i create an item "x" with a quantity of 7 pieces, and select the option "size" S, M, L.
How can i select that i have for example 2 items "x" size S, 1 item "x" size M and 4 items "x" size L?
Now it only gives the total quantity of the item, but when for example size M is sold out, you can still order it..

I hope you understand the problem, and more important, perhaps can give me a solution :)
Best regards,
Frans van Gastel / youecho

freeSbee:
Hi Frans


--- Quote from: youecho on November 08, 2009, 06:38:36 PM ---For example: i create an item "x" with a quantity of 7 pieces, and select the option "size" S, M, L.
How can i select that i have for example 2 items "x" size S, 1 item "x" size M and 4 items "x" size L?
Now it only gives the total quantity of the item, but when for example size M is sold out, you can still order it..

--- End quote ---

Indeed, this is a known but still unsolved problem of Bakery.

Solving it for one option (eg. color) with 4 or 5 attributes (eg. red, blue, green...) would be easy. But what about 20 items with 2 or 3 options and 4 attributes each? Just calculate! And 20 items are not that much in a shop.

It is getting rather complicated. Therefor Bakery is still just taking account of items not regarding any options nor attributes.

Any suggestions on this subject are welcome!

Regards Christoph

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version