How to make Qty Attribute for Woocommerce
How can we make custom attributes as quantity.
I want to make quantity attributes so it would be easy for the customers buy in bulk with pre-defined options.
Example: X product with attributes 3,5,10 so when user select 3 and add to cart it gonna add X product 3 qty with showing total price for 3 or if they selected 5 then 5 qty it gonna add up with showing the price of 5 qty.
Something like this
php wordpress woocommerce e-commerce product
add a comment |
How can we make custom attributes as quantity.
I want to make quantity attributes so it would be easy for the customers buy in bulk with pre-defined options.
Example: X product with attributes 3,5,10 so when user select 3 and add to cart it gonna add X product 3 qty with showing total price for 3 or if they selected 5 then 5 qty it gonna add up with showing the price of 5 qty.
Something like this
php wordpress woocommerce e-commerce product
You can simply use a variable product with products variations (packs) of 3, 5, 10… So you will set in your variable product a product attribute "Pack" (or "quantity") choosing "Used for variations" option and you will be able to set each variation price.
– LoicTheAztec
Nov 25 '18 at 15:33
add a comment |
How can we make custom attributes as quantity.
I want to make quantity attributes so it would be easy for the customers buy in bulk with pre-defined options.
Example: X product with attributes 3,5,10 so when user select 3 and add to cart it gonna add X product 3 qty with showing total price for 3 or if they selected 5 then 5 qty it gonna add up with showing the price of 5 qty.
Something like this
php wordpress woocommerce e-commerce product
How can we make custom attributes as quantity.
I want to make quantity attributes so it would be easy for the customers buy in bulk with pre-defined options.
Example: X product with attributes 3,5,10 so when user select 3 and add to cart it gonna add X product 3 qty with showing total price for 3 or if they selected 5 then 5 qty it gonna add up with showing the price of 5 qty.
Something like this
php wordpress woocommerce e-commerce product
php wordpress woocommerce e-commerce product
asked Nov 25 '18 at 14:54
Mayank sharmaMayank sharma
96
96
You can simply use a variable product with products variations (packs) of 3, 5, 10… So you will set in your variable product a product attribute "Pack" (or "quantity") choosing "Used for variations" option and you will be able to set each variation price.
– LoicTheAztec
Nov 25 '18 at 15:33
add a comment |
You can simply use a variable product with products variations (packs) of 3, 5, 10… So you will set in your variable product a product attribute "Pack" (or "quantity") choosing "Used for variations" option and you will be able to set each variation price.
– LoicTheAztec
Nov 25 '18 at 15:33
You can simply use a variable product with products variations (packs) of 3, 5, 10… So you will set in your variable product a product attribute "Pack" (or "quantity") choosing "Used for variations" option and you will be able to set each variation price.
– LoicTheAztec
Nov 25 '18 at 15:33
You can simply use a variable product with products variations (packs) of 3, 5, 10… So you will set in your variable product a product attribute "Pack" (or "quantity") choosing "Used for variations" option and you will be able to set each variation price.
– LoicTheAztec
Nov 25 '18 at 15:33
add a comment |
1 Answer
1
active
oldest
votes
Step 1: Select Product > Variable Product
Step 2: Create Attribute > Add Label as Quantity & Values 3, 5, 10 etc
Step 3: Create Variations > It will ask to create Variable Products using Attributes. Click Yes
Step 4: You can add Prices as per your Quantity in generated products after Step 3.
(You can also add images as per your quantities if you wish)
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53468726%2fhow-to-make-qty-attribute-for-woocommerce%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Step 1: Select Product > Variable Product
Step 2: Create Attribute > Add Label as Quantity & Values 3, 5, 10 etc
Step 3: Create Variations > It will ask to create Variable Products using Attributes. Click Yes
Step 4: You can add Prices as per your Quantity in generated products after Step 3.
(You can also add images as per your quantities if you wish)
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
add a comment |
Step 1: Select Product > Variable Product
Step 2: Create Attribute > Add Label as Quantity & Values 3, 5, 10 etc
Step 3: Create Variations > It will ask to create Variable Products using Attributes. Click Yes
Step 4: You can add Prices as per your Quantity in generated products after Step 3.
(You can also add images as per your quantities if you wish)
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
add a comment |
Step 1: Select Product > Variable Product
Step 2: Create Attribute > Add Label as Quantity & Values 3, 5, 10 etc
Step 3: Create Variations > It will ask to create Variable Products using Attributes. Click Yes
Step 4: You can add Prices as per your Quantity in generated products after Step 3.
(You can also add images as per your quantities if you wish)
Step 1: Select Product > Variable Product
Step 2: Create Attribute > Add Label as Quantity & Values 3, 5, 10 etc
Step 3: Create Variations > It will ask to create Variable Products using Attributes. Click Yes
Step 4: You can add Prices as per your Quantity in generated products after Step 3.
(You can also add images as per your quantities if you wish)
answered Nov 25 '18 at 15:44
Uday JoshiUday Joshi
143
143
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
add a comment |
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
I want quantity to auto add rather than i need to customize manually!
– Mayank sharma
Dec 15 '18 at 16:11
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53468726%2fhow-to-make-qty-attribute-for-woocommerce%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can simply use a variable product with products variations (packs) of 3, 5, 10… So you will set in your variable product a product attribute "Pack" (or "quantity") choosing "Used for variations" option and you will be able to set each variation price.
– LoicTheAztec
Nov 25 '18 at 15:33