@@ -38,55 +38,55 @@ |
||
38 | 38 | $basket = \Aimeos\Controller\Frontend::create( $context, 'basket' )->get(); |
39 | 39 | |
40 | 40 | /** client/html/basket/related/bought/limit |
41 | - * Number of items in the list of bought together products |
|
42 | - * |
|
43 | - * This option limits the number of suggested products in the |
|
44 | - * list of bought together products. The suggested items are |
|
45 | - * calculated using the products that are in the current basket |
|
46 | - * of the customer. |
|
47 | - * |
|
48 | - * Note: You need to start the job controller for calculating |
|
49 | - * the bought together products regularly to get up to date |
|
50 | - * product suggestions. |
|
51 | - * |
|
52 | - * @param integer Number of products |
|
53 | - * @since 2014.09 |
|
54 | - */ |
|
41 | + * Number of items in the list of bought together products |
|
42 | + * |
|
43 | + * This option limits the number of suggested products in the |
|
44 | + * list of bought together products. The suggested items are |
|
45 | + * calculated using the products that are in the current basket |
|
46 | + * of the customer. |
|
47 | + * |
|
48 | + * Note: You need to start the job controller for calculating |
|
49 | + * the bought together products regularly to get up to date |
|
50 | + * product suggestions. |
|
51 | + * |
|
52 | + * @param integer Number of products |
|
53 | + * @since 2014.09 |
|
54 | + */ |
|
55 | 55 | $size = $config->get( 'client/html/basket/related/bought/limit', 6 ); |
56 | 56 | |
57 | 57 | /** client/html/basket/related/bought/domains |
58 | - * The list of domain names whose items should be available in the template for the products |
|
59 | - * |
|
60 | - * The templates rendering product details usually add the images, |
|
61 | - * prices and texts, etc. associated to the product |
|
62 | - * item. If you want to display additional or less content, you can |
|
63 | - * configure your own list of domains (attribute, media, price, product, |
|
64 | - * text, etc. are domains) whose items are fetched from the storage. |
|
65 | - * Please keep in mind that the more domains you add to the configuration, |
|
66 | - * the more time is required for fetching the content! |
|
67 | - * |
|
68 | - * @param array List of domain names |
|
69 | - * @since 2014.09 |
|
70 | - * @category Developer |
|
71 | - */ |
|
58 | + * The list of domain names whose items should be available in the template for the products |
|
59 | + * |
|
60 | + * The templates rendering product details usually add the images, |
|
61 | + * prices and texts, etc. associated to the product |
|
62 | + * item. If you want to display additional or less content, you can |
|
63 | + * configure your own list of domains (attribute, media, price, product, |
|
64 | + * text, etc. are domains) whose items are fetched from the storage. |
|
65 | + * Please keep in mind that the more domains you add to the configuration, |
|
66 | + * the more time is required for fetching the content! |
|
67 | + * |
|
68 | + * @param array List of domain names |
|
69 | + * @since 2014.09 |
|
70 | + * @category Developer |
|
71 | + */ |
|
72 | 72 | $domains = $config->get( 'client/html/basket/related/bought/domains', ['text', 'price', 'media'] ); |
73 | 73 | $domains['product'] = ['bought-together']; |
74 | 74 | |
75 | 75 | /** client/html/basket/related/basket-add |
76 | - * Display the "add to basket" button for each product item |
|
77 | - * |
|
78 | - * Enables the button for adding products to the basket for the related products |
|
79 | - * in the basket. This works for all type of products, even for selection products |
|
80 | - * with product variants and product bundles. By default, also optional attributes |
|
81 | - * are displayed if they have been associated to a product. |
|
82 | - * |
|
83 | - * @param boolean True to display the button, false to hide it |
|
84 | - * @since 2020.10 |
|
85 | - * @see client/html/catalog/home/basket-add |
|
86 | - * @see client/html/catalog/lists/basket-add |
|
87 | - * @see client/html/catalog/detail/basket-add |
|
88 | - * @see client/html/catalog/product/basket-add |
|
89 | - */ |
|
76 | + * Display the "add to basket" button for each product item |
|
77 | + * |
|
78 | + * Enables the button for adding products to the basket for the related products |
|
79 | + * in the basket. This works for all type of products, even for selection products |
|
80 | + * with product variants and product bundles. By default, also optional attributes |
|
81 | + * are displayed if they have been associated to a product. |
|
82 | + * |
|
83 | + * @param boolean True to display the button, false to hide it |
|
84 | + * @since 2020.10 |
|
85 | + * @see client/html/catalog/home/basket-add |
|
86 | + * @see client/html/catalog/lists/basket-add |
|
87 | + * @see client/html/catalog/detail/basket-add |
|
88 | + * @see client/html/catalog/product/basket-add |
|
89 | + */ |
|
90 | 90 | if( $view->config( 'client/html/basket/related/basket-add', false ) ) { |
91 | 91 | $domains = array_merge_recursive( $domains, ['product' => ['default'], 'attribute' => ['variant', 'custom', 'config']] ); |
92 | 92 | } |