e-commerce,spree,marketplace , Supplier login when using spree-drop-ship

Supplier login when using spree-drop-ship


Tag: e-commerce,spree,marketplace

I'm working on a marketplace website. The idea is to allow for suppliers to login, add their products, view orders, generate reports etc.

I'm using Spree Commerce, and I see everyone suggesting to use spree-drop-ship extension to achieve all/part of above.(it's not really clear from the documentation, all the features that spree-drop-ship is supposed to add)

I've followed 'demo' instructions from https://github.com/spree-contrib/spree_drop_ship and successfully installed spree with the dropship extension, I can see 'suppliers' tab in /admin page. BUT I don't understand how the suppliers are supposed to login. They don't appear to be special user(actually I can't see in Users any supplier), and also when creating new supplier there is no way to set a password.

So my question is, how are supplier supposed to login, i.e. how they/I create supplier user and set password.

Thank you in advance, - Jack

Note: I know there is also 'marketplace' extension, which is not maintained anymore by @JDutil, but from what I understand it was solving payment issues to the dropshipper.


For this you just need to signup as normal user then from admin panel, from suppliers tab admin can assign a user as supplier. Hope it is helpful for you.


Prestashop 1.6 display custom field in Feature Add/Edit form

I am able to display my custom field in Feature Value Add/Edit form by overriding AdminFeaturesController and overriding initFormFeatureValue() function. I want to do the same for Feature Add/Edit form but cannot find function to override. I tried renderForm() function but didn't work. Which file/class/controller/function should I look into to...

FrontEnd Magento Hello World Not Working

Please help with this newbie magento tutorial, I've been struggling with this for 2 days.. Using XAMPP 1.7 and magento 1.9.1... I already create the magento directory & file structure like this: -htdocs -magento -app -code -local -Practice -Mymodule -controllers IndexController.php -etc config.xml -etc -modules Practice_Mymodule.xml And this is the...

Spreecommerce : Checkout doesn't work without product variants

If I don't have/want to setup product variants, I don't get the option to "add to card" and I can't checkout either. Am I obliged to have more than one product variants in order to proceed?...

payment module not working in magento

I have a magento store, and it's payment module is not working. I can add my shipping method, but after submitting shipping method, it won't proceed to payment mode, I have enabled cash on delivery. and I have an amazon payment extension also. When I checked in console, there shows...

Errors when trying to start a new Rails app with Spree Commerce

I am getting the following error when trying to install Spree Commerce (a clean install) into a new rails application. Could not load generator "generators/spree/install/install_generator". Error: uninitialized constant Bundler::Thor::Base. Any help would be greatly appreciated! I have already checked the resources on the SpreeCommerce Documentation, Spree's Github, and similar issues...

PHP Comparison Inversion

Following code is from an excommerce shipping module: if (!IS_ADMIN_FLAG) { global $cart; $chk_products_in_cart = 0; $chk_products_in_cart += $_SESSION['cart']->in_cart_check('products_id', '12'); $chk_products_in_cart += $_SESSION['cart']->in_cart_check('products_id', '22'); // do not show florida 18 and new york 43 $chk_delivery_zone = $order->delivery['zone_id']; $chk_states = '18, 43'; $arr1 = explode(", ", $chk_states); $arr2 = explode(", ",...

Get a list of all magento catagories and their id's on screen when I visit a php file

So I want to create a PHP file that will return a list of all product categories from magento and their id's when I visit this file. For example, when I visit mysite.com/category.php it should show me a list of all categories and their corresponding id's. I have searched stackoverflow...

Native Mobile app for presta shop [closed]

I want to develop a native android application for my PrestaShop store. I have been searching on Google for a while but all i found was third party applications that says they can create an application for mobile. The documentation doesn't provide a clear answer as well. Does prestashop provide...

Discover spree e-commerce models [closed]

I am new to ruby on rails and spree e-commerce too. what i want is to see all the models that manipulates this e-commerce framework poduct.rb, order.rb ... to understand relationships between all of them. But I did not find them

Why i can not access image while using azure blob as storage provider in virtocommerce?

I'm using azure blob as storage provider, after i save images for products, i can not see the images in front-end, the image url is correct, but it returns error: The specified resource does not exist I think this is something related to azure blob permission. Can someone help me?...

Display item list in shopping cart using PHP

With the foreach loop I'm trying to connect to my database and display in a list the products that have been added to the cart. Each product has a product ID which is correctly working and being stored in the session variable through the cart.php. I can't figure out how...

Unable to call magento admin controller

I have created a custom module that adds two menus in catalog. I have also created a controller for one of the menu , but the controller never gets called but instead is redirected to the admin dashboard page. My question is some what related to this question Magento admin...

Combining two results

I want to combine results on my postgres query, at the product properties. Currently it is giving me these results: name id value sku item_count Item # 1 3 Item IT-EM1 3 Item # 1 2 006058465456 IT-EM1 3 Item # 2 3 Item IT-EM2 1 Item # 2 2...

Google Tag Manager and dataLayer interraction

I use GoogleTagManager script and dataLayer object. I read in documentation that dataLayer object has to be filled above the GTM script. But I need to add a product detail when the user chooses the product and it happens after the GTM script is loaded. If I use dataLayer.push(chosenObject) will...

How to specify what “list” the product was added to cart from? Enhanced Ecommerce

Trying to implement Google Analytics Enhanced Ecommerce tracking for my website. How to specify what "list" the product was added to cart from? Here is the standard tracking code for adding the product to basket: // Called when a product is added to a shopping cart. function addToCart(product) { ga('ec:addProduct',...

Prestashop 1.6 Module error: Notice on line 719 in file prestashop16\tools\smarty\sysplugins\smarty_internal_templatebase.php

I'm developing a module and extended AdminFeaturesController.php to display my custom field Add/Edit Feature Value, but it is showing following error in popup: Notice on line 719 in file D:\xampp\htdocs\prestashop16\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined index: value I think it is due to I override the function initFormFeatureValue() in my...

How to remove LineItem instance from an order (Spree)

I'm working with Spree, but I'm not completely familiar with the built-in methods. I'm trying to make it so that when params[:quantity] == 0, the line_item instance gets deleted and removed from the order. I've tried calling destroy! on the instance but that hasn't worked, as well as a few...

Show validation errors in view for custom Devise login form

At the moment, I'm building a Rails platform using Spree Commerce where I need two Devise login forms. The default Devise login forms are already implemented. For the second (custom) Devise form, I created the following view: global_login.html.erb <div class="inner"> <h2 class="large-margin"> Login </h2> <%= form_for(Spree::User.new, :url => spree_login_path) do...

ElasticSearch in e-commerce: multiple categories for a product

How do you index products like that in ElasticSearch? We've separated all documents based on the attributes (colour, brand, size, whatever users input), but all of them belong to a set of categories. May be one, may be 15. [0] => Array ( [product_id] => 123456 [product_name] => Shirt 1...

Broadleaf - Extending DemoSite Admin - Add new Menu and Page

I have been looking into Broadleaf since last couple of days. I have managed to run it on local tomcat with MySql. I have extended Entity for my custom requirement following Broadleaf's documentation. Now I want to add a menu option (in left menu) in admin. I have no clue...

Change layout in Lightspeed Webstore

I've got a custom controller in my Lightspeed Webstore (an ecommerce framework built on Yii 1.1) By default column2 is always the selected layout for pages, and I'm unable to change this. Here's my example controller: <?php class ExampleController extends Controller { public $layout = "column2"; public function actionIndex() {...

How to sort products by a taxon property in Spree

The Spree (2.3.4) application I've inherited has a taxonomy named "Makers" with multiple taxons associated to it by 'taxonomy_id'. I have been tasked with sorting products by the taxon's 'name' property, something like Spree::Product.order('taxon.name DESC') I think I need to do an includes on the Products table, but I'm not...

How can I allow users to get paid directly with stripe?

I've looked at stripe connect and it forces each user to impute their Social Security number and etc. just so they accept payments for a item they want to sell. Is there a less painless method where users can sell something on my site, receive monies, and buy from other...

Override Spree Commerce's Bootstrap Variables

I'm having an issue with deploying a customized _variables.scss to my production server as a compiled asset. Everything is fine on my development environment, it's in production that my variables are being overwritten. I'm using Rails 4.2.1 with Spree 3.0 Stable branch. I have the following structure: Files created in...

Customizing spree e-commerce view

I am while customizing my spree e-commerce application. At first I added the spree_bootstrap_frontend gem and I want to customize the oredres/edit view as follow: Deface::Override.new(:virtual_path =>"spree/orders/edit", :name => "continue_shopping", :replace => "erb[loud]:contains('link_to t(:continue_shopping), products_path')", :erb => "<%= link_to t(:continue_shopping), products_path, :class => 'btn btn-primary' %>") but there's no change....

Updating fields of model using forms and views on Django 1.7

In models.py my Product model is class Product(models.Model): productName = models.CharField(max_length=20, default='1',blank=False,null=False, primary_key = True) userPhone = models.CharField(max_length=20, default='1') userid = models.ForeignKey(Account, default='1',null=True) productDesc = models.TextField(blank=False,null=False, default='1') productCategory = models.ForeignKey(Category, null=False, default='1') productPrice = models.DecimalField(default='0',blank=False,null=False, max_digits=6, decimal_places=2) picture =...

403 Error when trying to remove products from Cart

I am using a cPanel host and running PHP 5.5. Opencart version 1.5.1. When I try to remove a product from the cart I am getting a 403 forbidden error. This only seems to happen with products that have a lot of options and include text input options. I have...

Customizing the Image sizes on the home page in a Spree Application

Guys How to change the image size for a particular product on the Home page Like in default images size is small(100 x 100) I want to increase the image size but how i couldn't get it!! please Help me out guys!!!

Prestashop 1.6 product_list: get number of attached attribute combinations

I'm building my first prestashop. I have a couple of products with attribute combinations that have an impact on the price. In list views, I would like to detect if a product has more than one combination attached to it, in order to display a 'from' before the price. I...

Supplier login when using spree-drop-ship

I'm working on a marketplace website. The idea is to allow for suppliers to login, add their products, view orders, generate reports etc. I'm using Spree Commerce, and I see everyone suggesting to use spree-drop-ship extension to achieve all/part of above.(it's not really clear from the documentation, all the features...

Is it a good practise store the checkout steps fields in php $_SESSION?

I have my e-commerce site with three checkout steps, each button to continue is a POST action and redirect to the next step: if the user navigates by the checkout steps (click on the previous button for example), the form fields don´t show the data posted previously. This form fields...

how insert data directly and only into HABTM table ,

I have 1 Category table and second Features table and have association among them is HABTM in cakephp Now i don't know exactly how to insert values in categories_features table. I used HABTM before but at that time i insert values in this table when one item is created by...

Mailchimp Ecommerce360 Javascript Implementation

Wondering if anyone can provide an example of how to pass a request to the /ecomm/order-add function of the Mailchimp API using javascript. This is critical for making use of Mailchimp's Ecommerce360 tracking. Here is documentation from Mailchimps API: https://apidocs.mailchimp.com/api/2.0/ecomm/order-add.php...

How to remove OAUTH_PROVIDERS in Spree Social plugin

I've been reading through the SpreeSocial documentation here. I can't figure out how to remove providers through the config. I've tried to just pop the most recent provider off off of the list but that's not working. SpreeSocial::OAUTH_PROVIDERS.pop I managed to make the 'Sign in with LinkedIn' appear in the...

Uploading products from excel file

I was wondering what is the best way of importing products into database. Product names have unique sku's. The Excel file may contain existing sku's. One way of doing import is: Read record from excel Check sku for existence in database table if already exists, update it or if not...

Data submitted to GA account doesn't appear in there

I need to manually submit an ecommerce data to my Google Analytics Account, so I created an html file and opened in a browser: <html> <head> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','http://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-xxxxxxx-1', 'auto'); ga('send',...

Filter by category is not working in spree sunspot search

I am facing problem in spree sunspot(solr) search. Filter by price is working file but issue in filter by category. I am using rails- 4.1.6, ruby 2.2.0, spree_sunspot (1.3) spree_sunspot.rb string :category_names, :multiple => true do category = Spree::Taxon.find_by_permalink('categories') taxons.select{|t| t.ancestors.include?(category)}.collect{|t| t.self_and_ancestors.map(&:name)}.flatten - [category.name] end spree_sunspot_filters.rb filters.add do |f| f.display_name...

How to integrate ckeditor to spree admin

I am new to spree and ckeditor integration. I want to integrate ckeditor to the spree admin. I could configure ckeditor correctly with rails_admin section of my website (following the steps in https://github.com/galetahub/ckeditor), but now i want to add it to a field in the product edition page in the...

Check if Spree Cart is empty

How can I check if the Spree cart is empty, so I can change the button if it isn't? I thought there was a method line_items.count... <% unless line_items.count > 0 %> <%= link_to "<button>Empezar Pedido</button>".html_safe, "/shop" %> <% else %> <%= link_to "<button>Terminar Pedido</button>".html_safe, "/shop" %> <% end %>...

Algorithm/formula to calculate Product ranking on a ecommerce website(Based on following criteria)

I have been Working on algorithms and formulas to find out a score for the products available on my ecommerce website.Basically, I want to calculate some kind of score to rank the products when a user searches it. I'll give some background on the criteria i am planning to define...

Magento realtime data integration

this could possibly be answered somewhere allready, but unfortunately I could not find the answer that would suit me. The question is, can Magento be used only as a front end E-Commerce platform? That is read product nad customer data from external API, and also submit that data to external...

Displaying all woocommerce product liks with title in Footer for SEO - Wordpress PHP

I am wanting to display all woocommerce products with links with the woocommerce title on the links top help my SEO. I have managed to find some code below which gets the product categories but cant seem to get the code to display all products with the title on the...

Spree application and main rails application CSS loading

I have a Spree application and some pages that are not part of the spree application. My problem is that styles are shared between those pages. (they look similar, but they have their own asset locations) How do I do it so I don't have to maintain two sets of...

Should I add engine's code to the app itself if I'm going to modify it a lot (Spree, Rails)?

I'm starting a new app with Spree and I'm going to heavily modify it. It seems impractical to go to source every time I need to change something. Should I just copy paste contents of spree/front_end engine to my app or should I do: Spree::Product.class_eval do def some_method ... end...

Change Spree commerce with Deface

I'm learning Spree because I want to create an ecommerce with it. I installed successfully Spree and now I would like to customize the standard spree template with deface. I'm trying to delete the table with "product-properties" id in the products page. I've done this way, but it doesn't work:...

Dx trouble writing output: already prepared… - Error in console

braintree-api-1.6.1-full.jar android:minSdkVersion="14" android:targetSdkVersion="18" I need to implement braintree inside my android app which has no issues, but as I copy the braintree jar file, into my projects libs folder and import the necessary classes, my app crashes. Full error message in console: Dx trouble writing output: already prepared [2015-06-18...

Spree 3.0 emails are not being sent (delivered)

I've got Spree 3.0, rails 4.2.1, nginx, unicorn. Here is spree-related gem list gem 'spree', github:'spree/spree', branch: '3-0-stable' gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: '3-0-stable' gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable' gem 'spree_static_content', github: 'spree/spree_static_content', branch: '3-0-stable' gem "spree_product_zoom", git: "git://github.com/spree/spree_product_zoom.git", branch:...