How to create a product which is a multiple quantity of another product?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

New to NopCommerce and wondering how can I create a product which is a certain quantity of another product so they can be tracked by same stock.

For example, we stock 100 box (24 cans) of coke. On NopCommerce we created a product "Coke" with unit "Can", stock of 2400. The we also wanna be able to sell the coke by box (24 cans). So when an order with individual x quantity of can coke, the stock will deduct number x, when an order with y box of coke, the stock should deduct y*24.

Any suggestion would be appreciated.
6 years ago
Hello,

Pretty interesting requirement.

I think I didn't see in default nopcommerce.

But same thing you could do with customization.

If you could any silver spoon solution than let me know.
6 years ago
Hello,

To keep your requirement simple, you can use "Allowed quantities" field which is available on your product edit page in Admin. Here you need to put quantities in text box separated by comma such as 1,2,3,4,5,24 so customer would be able to select any quantity from drop down because when you use this field, it hides enter quantity textbox from product details page on frontside. You can create a separate product for Box and one for non-box packing.

To make it as you need, please follow below steps to see how it works in nopCommerce:

# Go to nopCommerce admin and edit a product you want and then press on "Copy product" button. In my case I tried with "HTC One M8 Android L 5.0 Lollipop" product in nopCommerce demo products

# Name this new product for example as "HTC One M8 Android L 5.0 Lollipop - Bulk" and Submit

# Type 24 in "Allowed quantities" field of this product, enter proper amount for 24 pieces in price of product and click on save and continue

# Now go to edit "HTC One M8 Android L 5.0 Lollipop" product and create a Custom Text product attribute named "Bulk" in Text prompt and select Drop-down list in Control type then click on Save and continue edit

# Go to values of this attribute on same page and click on Add a new value button. Then select "Associated to product" in "Attribute value type"

# Click on "Associate a product" button in Associated product field and select "HTC One M8 Android L 5.0 Lollipop - Bulk" that you created earlier from list

# Name it "Box" and leave Product quantity as 1. Select a picture if you want to reflect a picture for Box. Then click on Save button in window

# Save product and then go to view this product that you just saved. You will be able to see a dropdown named Bulk on this product details page. Select Box from dropdown.

This will solve what you need for now. Other than there is no out of box way rather than developing a plugin or customizing default code.

Hope this would help you.

Thank you,
Atul
6 years ago
gonglao wrote:
Hi,

New to NopCommerce and wondering how can I create a product which is a certain quantity of another product so they can be tracked by same stock.

For example, we stock 100 box (24 cans) of coke. On NopCommerce we created a product "Coke" with unit "Can", stock of 2400. The we also wanna be able to sell the coke by box (24 cans). So when an order with individual x quantity of can coke, the stock will deduct number x, when an order with y box of coke, the stock should deduct y*24.

Any suggestion would be appreciated.

The solution provided by Atul is quite good.
Here is another option using product attributes:
Create your product "Coke" and assign it an attribute (Example "Type of Package") type Radio button list or Drop-down list and Product Attributes in Attribute combinations tab override the price of each value. Example $1 By Can and $20 By Box

If you test this option  please let us know if it met your needs
2 years ago
Tecnofin wrote:
Hi,

New to NopCommerce and wondering how can I create a product which is a certain quantity of another product so they can be tracked by same stock.

For example, we stock 100 box (24 cans) of coke. On NopCommerce we created a product "Coke" with unit "Can", stock of 2400. The we also wanna be able to sell the coke by box (24 cans). So when an order with individual x quantity of can coke, the stock will deduct number x, when an order with y box of coke, the stock should deduct y*24.

Any suggestion would be appreciated.
The solution provided by Atul is quite good.
Here is another option using product attributes:
Create your product "Coke" and assign it an attribute (Example "Type of Package") type Radio button list or Drop-down list and Product Attributes in Attribute combinations tab override the price of each value. Example $1 By Can and $20 By Box

If you test this option  please let us know if it met your needs


I tried this feature but it doesn't seem to work in conjunction with Tiered pricing. Any ideas?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.