Customizing search, shipping, etc

  • Posts: 44
  • Thank you received: 0
4 years 9 months ago #320698

Hi,

We have a specific requirement as below and we are using latest Business version. Can you please guide how to achieve the below in Hikashop?

1. Search and display products by city location/Pincode(Zip). Select the product by the customer and add to cart and give an error message, validate if the customer changes the shipping location during checkout where that product(added to cart earlier) is not available for delivery. How to handle this scenario?
2. If user changes location then cart will be refreshed because delivery is location wise only. How it will maintain status of cart?
3. We are wholesalers supplying products to our dealers. On our portal we display and sell the products to end customers. But in the backend, we need to define the below logic so that customers can see and order only the products available at the delivery location.

1. Map products to multiple dealers
2. Map dealer to several delivery locations on the basis or area name or Zip code in a particular City they deliver
3. Customer will come to portal search the products as per his desired delivery location then add to cart(if customer changes shipping location during checkout and if that searched product is not available then error message should display).
4. Customer will make the payment online and notification must go to respective dealer's email ID and installation team
5. Now, the payment made should go ONLY to that particular dealer's bank account with whom that ordered product and its delivery location- city or Zip is mapped.

Please help me with the above scenario.Thanks in advance.
Manish

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 9 months ago #320749

Hi,

Here is what you can do:

- using HikaMarket Multivendor ( www.hikashop.com/hikamarket-multi-vendor.html ) you can create one vendor for each dealer.
- with the address geocoding shipping plugin ( www.hikashop.com/marketplace/product/250...shipping-plugin.html ) you can configure one shipping method for each city (you enter the address and the radius in each shipping method via the menu System>Shipping methods when you create new shipping methods for that geocoding shipping plugin).
Make sure that you activate the "shipping price per product" in your shipping methods.
- then in each product, you'll have a "shipping prices" area where you can block the shipping methods for each product. That way, you can restrict the shipping of products to the cities you want.
- to have the search based on the city, you would have to create a custom product field with the list of cities as values, so that you can select the cities again in each product in that custom field and then you could create a filter based on that custom field (this requires HikaShop Business : www.hikashop.com/extensions/hika-business.html ). That way, on the listings of products the customers will be able to search based on the city.

The only thing left here is the selection of the vendor. You didn't mention anything here but I suspect it will require the development of a plugin of some sort to force the vendor during the checkout.
Should the customer select the vendor (dealer) during the checkout after the list of available vendors has been filtered out based on the available shipping methods (delivery locations) ?
In that case, it would require two things: allowing the vendor to select the shipping methods he wants to support, and displaying the vendor selector on the checkout.

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
4 years 9 months ago #320764

Dear Nicolas,

Thank you for your reply.

Let me briefly tell the core requirement:

1. Manufacturer sales the multiple products to multiple Dealers(out of the scope of our development requirement)
2. Dealers have multiple products and multiple locations assigned to sale and deliver the products(in the scope but dealer's information not to be displayed on the front end)
3. User from front end searches the products by delivery location using city name or zip code
4. Search results display the products mapped to dealer and zip code/city name
5. User checkout, make payment and that payment must go to that dealer's bank account only to whom the zip code/city name is mapped

How we can do the above in the Business version.

Thanks
Manish

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 9 months ago #320772

Hi,

So if I read in between the lines of your message, do you mean that only one dealer will service one city ?

With only the Business edition, I don't think that you can do that unless you do quite a bit of coding.
But even with HikaMarket Mutlivendor, it will require some coding (but a lot less as you already have the "dealer" entity with the sending of the nofitications, etc)

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 0
4 years 9 months ago #320787

Thanks. We have purchased Multi Vendor add-on.

One dealer will have multiple locations mapped. Please guide me on coding part for the requirement I have mentioned in my earlier post.

Many Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 9 months ago #320792

Hi,

Well, what I would do to do it properly is to create three new tables:
- a "location" table, where you can enter the locations you want to be delivered.
- a "location_vendor" table where you can have basically two columns : a location_id pointing to an entry in your location table and a "vendor_id" pointing to a vendor in the hikamarket_vendor table.
- a product_vendor" table so that you can link vendors to products with two columns: a product_id column pointing to an entry in the hikashop_product table and a vendor_id column pointing to a vendor in the hikamarket_vendor table.

Then, you can develop the plugin.
If you're not familiar with Joomla plugins development, you first want to check:
docs.joomla.org/Portal:Plugin_Development
Then, I would recommend to check the plugins/hikashop/email_history/ folder of your website. That's the "email history" plugin of HikaShop, which adds everything you can find under the Customers>Email history menu in your HikaShop backend.
Using that plugin as a reference, and the developer documentation we have ( www.hikashop.com/support/documentation/6...r-documentation.html ), you can first add the interface in the backend to see a listing of locations, create new locations, delete and edit them.
Then, you can create the interface on the product edition page to add the link to the vendors. You can do so implementing the onProductBlocksDisplay event to add your HTML, and the onAfterProductCreate and onAfterProductUpdate triggers to save the data in the database.
You can also create the interface on the vendor edition page to add the link to the locations. You'll have a onAfterVendorCreate and onAfterVendorUpdate triggers for the saving, and for adding the HTML, I would recommend to directly add it as a view override:
www.hikashop.com/support/documentation/1...-display.html#layout
Then, you can develop a joomla module to add a dropdown for the selection of the location and use the onBeforeProductListingLoad event to filter out the products based on that selection.
And finally, you want the select the vendor based on the location of the products in the cart. You can do that with the event onBeforeProductsVendorAttribution :
www.hikashop.com/support/documentation/1...ctsVendorAttribution
Once the vendor is assigned to the cart thanks to that trigger, HikaMarket will automatically notify the vendor for the order. And you can setup the payment methods in each vendor so that the payment will go to the vendor automatically.

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum