spree_multi_vendor 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -9
- data/app/overrides/spree/admin/shared/_main_menu.rb +1 -18
- data/app/views/spree/admin/vendors/index.html.erb +1 -1
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +1 -0
- data/config/locales/fr.yml +1 -0
- data/lib/spree_multi_vendor/configuration.rb +21 -4
- data/lib/spree_multi_vendor/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 956455a7ff13df68945b50b576880f345e2dbd4f5c4c32dc99420f0a1c5698e7
|
|
4
|
+
data.tar.gz: 8daf1f4488fad039a96e4c43a2211521d5b15297c5e628f018368d38fca70121
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b10eaa1316ee480d4b8b2e456e1648b3da2b01561effa253c65671de1963e3cb7369c1a061a4a298d443f5be4c018a7d9fff45d0a0514a2115f17f400f4fbf6
|
|
7
|
+
data.tar.gz: ad4aac2625a258d534c9fa553a8261907601443a53859ef55e4e76523c6868c59083dac7904026741dc040b3b80b1da42a6aca9e35060fe82f17579ad111f0af
|
data/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Spree Multi Vendor
|
|
2
2
|
|
|
3
|
-
This is a
|
|
3
|
+
This is a spree [multi vendor marketplace](https://getvendo.com) extension. It's a great starting point if you're building a marketplace on top of [Spree](https://spreecommerce.org). Our goal was flexibility to allow you to tweak it to your needs.
|
|
4
4
|
|
|
5
5
|
## Developed by
|
|
6
6
|
|
|
7
7
|
[](https://getvendo.com?utm_source=spree_multi_vendor_github)
|
|
8
8
|
|
|
9
|
-
> All-in-one platform for all your Marketplace
|
|
9
|
+
> All-in-one platform for all your multi-vendor Marketplace needs. [Get your free account](https://app.getvendo.com/users/new?utm_source=spree_multi_vendor_github)
|
|
10
10
|
|
|
11
11
|
## Open source vs Vendo
|
|
12
12
|
|
|
13
|
-
If you need a product that has all of the features out of the box, such us supplier onboarding, Stripe connect payment splitting and payouts, and don't require any custom development - we recommend using [Vendo](
|
|
13
|
+
If you need a product that has all of the features out of the box, such us supplier onboarding, Stripe connect payment splitting and payouts, and don't require any custom development - we recommend using [Vendo](https://app.getvendo.com/users/new?utm_source=spree_multi_vendor_github).
|
|
14
14
|
|
|
15
15
|
| feature | open source | [vendo] |
|
|
16
16
|
|---|---|---|
|
|
@@ -168,14 +168,10 @@ and may be redistributed under the terms specified in the
|
|
|
168
168
|
|
|
169
169
|
## About Vendo
|
|
170
170
|
|
|
171
|
-
<a href="https://getvendo.com?utm_source=spree_multi_vendor_github">
|
|
172
|
-
<img src="https://uploads-ssl.webflow.com/6230c485f2c32ea1b0daa438/62386b96518cdcbe111f134a_OG%20Image%20(2).png" style="max-height:400px" />
|
|
173
|
-
</a>
|
|
174
|
-
|
|
175
171
|
> [Vendo][vendo] is a great fit for marketplaces of all sizes - either with own fulfillment and multiple warehouses or in a dropshipping model. Vendo **automates everything** from **vendor onboarding**, accepting buyer **payments in over 135 currencies**, to supplier **payouts in 50 countries**.
|
|
176
172
|
|
|
177
173
|
> Vendo ensures excellent buyer experience with smooth product discovery and search, a multitude of payment methods and optimal shipping cost calculation. Vendo keeps suppliers happy with easy onboarding, automated products sync using their preferred method and easy payouts.
|
|
178
174
|
|
|
179
|
-
> [
|
|
175
|
+
> [Get your free account](https://app.getvendo.com/users/new?utm_source=spree_multi_vendor_github)
|
|
180
176
|
|
|
181
|
-
[vendo]:
|
|
177
|
+
[vendo]:https://app.getvendo.com/users/new?utm_source=spree_multi_vendor_github
|
|
@@ -3,21 +3,4 @@ Deface::Override.new(
|
|
|
3
3
|
name: 'Display configuration tab for vendors',
|
|
4
4
|
replace: 'erb[silent]:contains("current_store")',
|
|
5
5
|
text: '<% if can?(:admin, current_store) || current_spree_user&.vendors&.any? %>'
|
|
6
|
-
)
|
|
7
|
-
Deface::Override.new(
|
|
8
|
-
virtual_path: 'spree/admin/shared/_main_menu',
|
|
9
|
-
name: 'vendors_main_menu_tabs',
|
|
10
|
-
insert_bottom: 'nav',
|
|
11
|
-
text: <<-HTML
|
|
12
|
-
<% if current_spree_user.respond_to?(:has_spree_role?) && current_spree_user.has_spree_role?(:admin) %>
|
|
13
|
-
<ul class="nav nav-sidebar border-bottom">
|
|
14
|
-
<%= tab plural_resource_name(Spree::Vendor), url: admin_vendors_path, icon: 'money' %>
|
|
15
|
-
</ul>
|
|
16
|
-
<% end %>
|
|
17
|
-
<% if defined?(current_spree_vendor) && current_spree_vendor %>
|
|
18
|
-
<ul class="nav nav-sidebar border-bottom">
|
|
19
|
-
<%= tab Spree::Vendor.model_name.human, url: admin_vendor_settings_path, icon: 'money' %>
|
|
20
|
-
</ul>
|
|
21
|
-
<% end %>
|
|
22
|
-
HTML
|
|
23
|
-
)
|
|
6
|
+
)
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection } %>
|
|
34
34
|
|
|
35
35
|
<% if @vendors.any? %>
|
|
36
|
-
<table class="table sortable" data-hook="vendors_table" data-sortable-link="<%= update_positions_admin_vendors_url %>">
|
|
36
|
+
<table class="table border rounded sortable" data-hook="vendors_table" data-sortable-link="<%= update_positions_admin_vendors_url %>">
|
|
37
37
|
<thead>
|
|
38
38
|
<tr data-hook="vendors_header">
|
|
39
39
|
<th>
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/fr.yml
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
module SpreeMultiVendor
|
|
2
|
-
class Configuration
|
|
2
|
+
class Configuration
|
|
3
3
|
DEFAULT_VENDORIZED_MODELS ||= %w[product variant stock_location shipping_method].freeze
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
# https://guides.spreecommerce.org/developer/core/preferences.html
|
|
5
|
+
attr_accessor :vendorized_models
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
def initialize
|
|
8
|
+
self.vendorized_models = DEFAULT_VENDORIZED_MODELS
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def configure
|
|
12
|
+
yield(self) if block_given?
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def get(preference)
|
|
16
|
+
send(preference)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
alias [] get
|
|
20
|
+
|
|
21
|
+
def set(preference, value)
|
|
22
|
+
send("#{preference}=", value)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
alias []= set
|
|
9
26
|
end
|
|
10
27
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_multi_vendor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Spark Solutions
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spree
|
|
@@ -250,9 +250,9 @@ licenses:
|
|
|
250
250
|
- BSD-3-Clause
|
|
251
251
|
metadata:
|
|
252
252
|
bug_tracker_uri: https://github.com/spree-contrib/spree_multi_vendor/issues
|
|
253
|
-
changelog_uri: https://github.com/spree-contrib/spree_multi_vendor/releases/tag/v2.4.
|
|
253
|
+
changelog_uri: https://github.com/spree-contrib/spree_multi_vendor/releases/tag/v2.4.1
|
|
254
254
|
documentation_uri: https://guides.spreecommerce.org/
|
|
255
|
-
source_code_uri: https://github.com/spree-contrib/spree_multi_vendor/tree/v2.4.
|
|
255
|
+
source_code_uri: https://github.com/spree-contrib/spree_multi_vendor/tree/v2.4.1
|
|
256
256
|
post_install_message:
|
|
257
257
|
rdoc_options: []
|
|
258
258
|
require_paths:
|
|
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
269
269
|
version: '0'
|
|
270
270
|
requirements:
|
|
271
271
|
- none
|
|
272
|
-
rubygems_version: 3.
|
|
272
|
+
rubygems_version: 3.4.1
|
|
273
273
|
signing_key:
|
|
274
274
|
specification_version: 4
|
|
275
275
|
summary: Spree Commerce multi vendor marketplace extension
|