Page 1 of 1

Custom cart behaviour and reseller accounts

Posted: 18 Nov 2017, 17:57
by techgeekh
I have some questions regarding the way to do some tasks using Aimeos.

I have created a list of products without including the prices, I want the customer to be able to add these products to the cart and when the customer is ready for checkout, I want him to be able to click on a button on the cart that will send the cart to the supplier by email so he can specify the right prices and shipping cost for the products, and on submission the cart will be emailed back to the customer so that he can continue the checkout process.

Questions : I know that the behaviour of Aimeos won't allow you to add products without prices to a cart and I know that the behaviour of emailing the cart back-and-forth must be custom made, my question is, when setting the product prices on the supplier's side :
  • Is there a way that these prices would be only applied to the cart ?
  • How can I add a commission rate when adding a supplier from the admin panel and how can I apply the commission rate on the cart ?
for example : if I have product X and the price of this product is not set. if the supplier set's the price to product X to 12 USD, I want it to only be applied to the cart and not the whole site, meaning that if another customer wants to purchase product X, I don't want him to see the price 12 USD.

My reasoning is to create a new temporary product named X and set the status to "archived" or "disabled" so that it doesn't appear on the frontend and link the price 12 USD to it and add it to a custom cart that will be sent to the customer, and after the checkout process I delete the temporary product or is there a better way to do this ?

My other question is regarding multi-type accounts and bulk discounts, I want to have 2 account types "customer" and "reseller", and for the "reseller" type I want to create discounts that would only be applied if the user is a "reseller" and if he is buying in bulk. do I have to create vouchers and check the logged-in user's type and the products quantity on the cart and apply the voucher automatically or is there a better way of doing this using in Aimeos.

Re: Custom cart behaviour and reseller accounts

Posted: 19 Nov 2017, 13:51
by aimeos
techgeekh wrote: I have created a list of products without including the prices, I want the customer to be able to add these products to the cart and when the customer is ready for checkout, I want him to be able to click on a button on the cart that will send the cart to the supplier by email so he can specify the right prices and shipping cost for the products, and on submission the cart will be emailed back to the customer so that he can continue the checkout process.
Please have a look here as it is the same question: help-f15/having-the-supplier-to-enter-t ... html#p5027
techgeekh wrote: Questions : I know that the behaviour of Aimeos won't allow you to add products without prices to a cart
You could change that by overwriting this method in the basket frontend controller:
https://github.com/aimeos/ai-controller ... se.php#L34
techgeekh wrote: My other question is regarding multi-type accounts and bulk discounts, I want to have 2 account types "customer" and "reseller", and for the "reseller" type I want to create discounts that would only be applied if the user is a "reseller" and if he is buying in bulk. do I have to create vouchers and check the logged-in user's type and the products quantity on the cart and apply the voucher automatically or is there a better way of doing this using in Aimeos.
If it should be done automatically, creating a basket plugin that changes the prices of the products in the basket depending on the customer group and discount would be the better option:
https://aimeos.org/docs/Developers/Libr ... et_plugins

Re: Custom cart behaviour and reseller accounts

Posted: 24 Nov 2017, 09:09
by cypriotxx
Thank you so much Admin , you are really appreciated with your help ..
I was wondering
Is it possible to set discounts for seasons automated
Like black friday coming up system could send out emails saying 20% off this friday etc and that day or range of dates could be discounted?

Another question
It could be for certain group of products discount would be 60% on the same day , is this one possible ?


And last for today
Gift card feature , how to offer this ?

Thank you so much

Re: Custom cart behaviour and reseller accounts

Posted: 24 Nov 2017, 21:18
by aimeos
cypriotxx wrote: Is it possible to set discounts for seasons automated
Like black friday coming up system could send out emails saying 20% off this friday etc and that day or range of dates could be discounted?
Yes, Aimeos has start and end dates for prices added to products but currently this can be only done in the expert mode admin interface (drag&drop a price in the product price tab to the left and double click on the added item, there you can set start and stop dates for prices). This also works for attributes, texts, images, etc.
cypriotxx wrote:It could be for certain group of products discount would be 60% on the same day , is this one possible ?
Is not available by default but can be implemented as basket plugin too: https://aimeos.org/docs/Developers/Libr ... et_plugins
cypriotxx wrote:Gift card feature , how to offer this ?
You could extend the existing payment related e-mail and add the generated gift card as attachment:
https://aimeos.org/docs/Configuration/C ... ment_email

Re: Custom cart behaviour and reseller accounts

Posted: 25 Nov 2017, 00:29
by cypriotxx
Thank you so much ,

How about the import duty charge ,
How do we auto calculate and show on basket ?

I found this but i would like to know your idea how to go about this please ?
https://github.com/matthewrevell/stampdutycalculator


And minimum order limit like , minimum order is 30usd over all the site ... how do we set this .

Thank you

Re: Custom cart behaviour and reseller accounts

Posted: 25 Nov 2017, 17:26
by aimeos
cypriotxx wrote: How about the import duty charge , How do we auto calculate and show on basket ?
You can implement the calcPrice() method in a service decorator. It has access to the products and addresses in the basket and can ask a remote API for duty charges. These charges are then added to the delivery costs.
cypriotxx wrote: And minimum order limit like , minimum order is 30usd over all the site ... how do we set this .
Use the BasketLimits baket plugin: https://aimeos.org/docs/User_Manual/Adm ... sketLimits