Cillian O'Ruanaidh
23c9410a25
Replace darker-background angular directive
2025-09-05 09:38:20 +01:00
David Cook
5a1190cdda
Remove superfluous %div from haml elements with class
...
Div is the default element in HAML, so we don't need to specify it. https://haml.info/docs/yardoc/file.REFERENCE.html#implicit-div-elements
2025-03-03 14:46:24 +01:00
Gaetan Craig-Riou
67f037280a
Add comment in shop view file
...
It wasn't possible to directly reuse the shopfront views because they
are still using angular.
2024-09-11 14:50:37 +10:00
wandji20
2d24593403
Update product variant unit display name, price, and total price widths on different screen sizes [OFN-6567]
2024-08-02 13:03:42 +01:00
Gaetan Craig-Riou
9632f42a40
Fix producer property filtering
2024-07-03 11:21:28 +10:00
Maikel Linke
ba51641271
Symbolise hash keys in HAML files
...
This was done by the haml-up script.
2024-02-22 15:01:14 +11:00
Maikel Linke
c097f2b622
Upgrade HAML syntax with script
2024-02-22 15:01:13 +11:00
Dusan Orlovic
120e299653
Use activate instead of changeActivePanel/ChangeActiveTab
...
Remove shop-tabs controllers since we can listen on `"data-action":
"orderCycleSelected@window->tabs-and-panels#activateDefaultPanel"`
Test for cases:
* activate by clicking on tab
* activateDefaultPanel on orderCycleSelected event
* activateFromWindowLocationOrDefaultPanelTarget to activate tab based
on achor in URL
2023-12-16 10:00:17 +01:00
Dusan Orlovic
ba7ffc25fe
Add data-action=tabs-and-panels
2023-12-15 23:00:13 +01:00
binarygit
208cad959a
Open external link in product description inside new page
2023-11-21 13:33:48 +05:45
Neal Chambers
b1e40ed605
Fix Rails/HelperInstanceVariable
2023-09-06 22:36:46 +09:00
Matt-Yorkley
1c277e5547
Cache some html fragments
2023-05-08 14:07:50 +01:00
binarygit
c5779eff81
Do not open modal for producer's who are 'hidden'
2023-04-11 14:27:57 +02:00
Jean-Baptiste Bellet
4dfc56954c
Force .product-description to be one line
...
and make it as a `div`
2023-03-31 10:41:27 +02:00
Jean-Baptiste Bellet
79320331c0
As we trust description_html (previously sanitized), direct use HTML
...
via the AngularsJS `bind-html` attribute.
This will display formatting and images.
2023-01-26 17:44:51 +01:00
jibees
ef31e1d063
Revert "Load product images in the shop lazily to improve performance"
2022-11-29 09:55:39 +01:00
Maikel Linke
762beb7c1c
Load product images in the shop lazily
...
The browser decides when to load the image, usually when it's close to
the viewport.
2022-11-03 14:02:01 +11:00
Jean-Baptiste Bellet
1c68293cac
Display remaining stock for variant in the shopfront
...
Display only if all conditions are met:
- Variant is not a bulk buy
- Shop preference is true for `preferred_product_stock_display`
- Only 3 (or less) items are remaining in stock
- No item for this variant is already to cart
2022-04-15 10:53:28 +10:00
filipefurtad0
cefd5db6eb
Renames require_login_3_html key
2022-02-18 11:07:37 +00:00
filipefurtad0
27bc5805ae
Removes signup string from private shop login screen
2022-02-17 13:19:31 +00:00
Jean-Baptiste Bellet
92cd918e5a
Add LoginModal as controller + connect action to open login modal
2022-02-10 09:52:13 +01:00
Matt-Yorkley
f06ec94b30
Render shop_variant partial normally and remove shop_variant directive
2022-01-16 10:46:26 +00:00
Matt-Yorkley
e5009432c3
Render regular partials
2022-01-16 10:45:26 +00:00
Matt-Yorkley
3afd6c273a
Move shop_variant templates to views
2022-01-16 10:41:55 +00:00
Matt-Yorkley
2888d75cd3
Replace #image_tag helper calls with #image_pack_tag
2021-12-27 17:45:06 +00:00
Sebastian Castro
e20a8122b1
Make the shop filter section always visible when scrolling
2021-12-10 20:53:47 +01:00
Jean-Baptiste Bellet
0faab42c2a
Fix Ruby 2.7 warning"Using the last argument as keyword parameters is deprecated;"
...
https://bloggie.io/@kinopyo/how-to-fix-ruby-2-7-warning-using-the-last-argument-as-keyword-parameters-is-deprecated
2021-10-11 14:56:11 +02:00
Jean-Baptiste Bellet
e3f56556cf
Remove feature toggle around unit_price and enable it
2021-06-07 20:53:45 +02:00
Jean-Baptiste Bellet
07881ede2d
Do not trigger loadMore method immediatly
...
- This avoid to request unwanted resources, ie. the next 10 products of a shop
2021-04-27 11:24:48 +02:00
Jean-Baptiste Bellet
71466e643f
Instanciate only one ProductsCtrl
...
- instead of 2: therefore, for each shop display, we only request products one time instead of two times.
2021-04-27 11:24:48 +02:00
Jean-Baptiste Bellet
e0987c52ed
Add unit price information into the bulk buy modal
...
- Pass a parameter to scope: showunitprice and display unit price information if it's true
2021-04-16 11:09:05 +02:00
Jean-Baptiste Bellet
7442d06bed
add new template to manage variant
...
- The aim of this template is to display unit price
- Duplicate the angular directive
- Add a question mark icon and its own file
- Add some needed colors in the branding file
2021-02-16 15:26:21 +01:00
Jean-Baptiste Bellet
8399b82bfd
rename component to spinner
...
A name for a "thing" rather a state
2021-01-11 16:49:56 +01:00
Jean-Baptiste Bellet
b02b36b8e8
replace code by reusable component
2021-01-11 11:18:34 +01:00
Matt-Yorkley
01adf459b1
Replace top padding on product list
2020-10-22 09:59:16 +01:00
Maikel Linke
2887751098
Move translation to its own section
2020-10-22 15:46:49 +11:00
Maikel Linke
e37fedc435
Add bulk ribbon to bulk products
2020-10-22 15:46:49 +11:00
Maikel Linke
b57c912aa0
Add space between products and filters
2020-10-22 15:46:48 +11:00
Maikel Linke
66d5f8d5c1
Align first product flush to the search bar
2020-10-22 15:46:47 +11:00
Matt-Yorkley
b79d9bd75b
Fix screen-width bug for desktop down
...
The width of these elements was ~105% of total screen width, adding horizontal scrollbars and whitespace on the left hand side
2020-10-22 15:46:47 +11:00
Matt-Yorkley
6bcf11e308
Adjust layout of variant rows for better use of vertical space
2020-10-22 15:46:47 +11:00
Matt-Yorkley
98e581c059
Remove pad-top class from products from to match alignment with filter sidebar
2020-10-22 15:46:46 +11:00
Matt-Yorkley
a89c81a033
Hide description paragraph if product has no description
...
Improves the appearance of the layout when no description is present
2020-10-22 15:46:46 +11:00
Maikel Linke
4ab2375832
Reduce margin on the right of product listing
2020-10-22 15:46:45 +11:00
Maikel Linke
1fb544b803
Remove margin of product listing on mobile and tablet
2020-10-22 15:46:45 +11:00
Maikel Linke
526d4f53ad
Remove red overlay and icon on product image hover
2020-10-22 15:46:45 +11:00
Maikel Linke
fe1618cada
Add description to product listing
...
It's truncated to one line and a click reveals the modal.
2020-10-22 15:46:45 +11:00
Maikel Linke
9f5cec6d08
Remove tractor in front of producer name
2020-10-22 15:46:44 +11:00
Maikel Linke
03d8ccfe2e
Remove modal open indicator
2020-10-22 15:46:44 +11:00
Maikel Linke
f05563b30f
Removal of category icon
2020-10-22 15:46:44 +11:00