i'm using Woocommerce for doing a ecommerce site and i need to get the option to Add to Cart even if the item is out of stock.
How can i achieve this ?
Thanks and have a nice day !
This can be done by:
Going to your dashboard -> WooCommerce -> Products -> Inventory -> Untick the "Out of Stock Visibility" checkbox.
Next go to the Products tab -> Edit product in question -> in the Product Data section click on the Inventory link and change the Allow Backorders? dropdown list to Allow or Allow, but notify customer.
Related
I have working WC shop. When I try to change the price to sale, I am using this code:
$prid = wc_get_product_id_by_sku('123456');
update_post_meta($prid,'_sale_price', 11.22);
update_post_meta($prid,'_price', 11.22);
This is a variable product.
So on the admin panel, it is showing that there is a sale price, but in the front-end I don't see it until I update the product by clicking the save button.
Why doesn't it show the sale price in the front-end before the save button is clicked?
I am working on a B2B Magento based project where my client needs a specific functionality. He needs to set different discount to the different customer (suppose that a product is of $100 so he can able to give discount of 5% to the one customer, 12% to the 2nd, 12.5% to the 3rd one and so on...).
How can I achieve the same? Hope you got my point.
Maybe you can use group prices. You can create customer groups, assign your customers and you can define different prices for different groups in "Prices" tab of product details.
Hope this helps.
Try to apply the coupon. The coupon can be applied before checkout and you can automatically create the coupon after the 1st/2nd/3rd/4th/... sales of product.
for reference:
Shopping Cart Rules with Custom Condition?
You can use promotions at the group level.
Copied from: https://www.siteground.com/kb/set_custom_group_of_users_that_use_a_discount_in_magento/
You can add a new customer's group through the Magento administrative area -> Customers -> Customer Groups -> Add New Customer Group.
You can set the discount for the newly created group through the Magento administrative area -> Promotions -> Catalog Price Rules -> Add New Rule. At the creation page using the Customer Groups fields you can select the customers’ groups for which the promotion will be valid. Enter the other details, set the rule’s actions and conditions. At the end click on the Save Rule button.
Once a customer is registered you can change his/her group through the Magento administrative area -> Customers -> Manage Customers. Click on the Edit link besides the customer and change its group through Account Information -> Customer Group. When you are ready click on the Save Customer button.
Can grouped products use the backorder functionality in magento?
I have created a grouped product in backend. But there is no any place there to enable backorders for the product. I have changed the Availability message in frontend for simple products and enabled the Add to cart button as well. How can I do the same thing for grouped products?
Any help will be appreciated.
You should ensure that the simple products associated with the group product are available for back-order. As long as the related simple products are saleable and the qty can go below 0 you should be able to take back-orders for grouped products as well.
So in each of your simple products go to inventory tab and set back-orders to "Allow Qty Below 0" and insure that stock availability is set to "In Stock"
If you are using another extension for displaying back-order messages I would refer to the extension documentation to see if they support grouped and configurable products.
We want to allow customer to order out of stock products, Is there any solution by this we can allow customer to checkout out of stock products?
thanks
There is an option available in admin.
Just go to your manage product page and in inventory tab you can find Backorders dropdown, choose allow quantity below 0 option and save, now customer can order out of stock product also.
You can see the location where you need to set "Allow quantity below zero".
Thanks.
Let's say I have 10% off coupon code.
This coupon is applicable only to Product B
A customer have in its cart :
Product P1
Product B
Product P2
I don't want my 10% off coupon apply to other product but only to Product B.
Do you know how I can do that within Magento?
Here is the process to create Coupon Code for any particular product:-
Login to Admin
Go to Promotions -> Shopping Cart Price Rules
Click Add New Rule
Fill Rule Information
Set Conditions
On left sidebar, click Conditions tab
Click + button icon
Select Product attribute combination
Click + button icon
Select SKU
Now, you will see SKU is ...
Put your product SKU over there
Please note that the SKU option may not show up by default. (Go to: catalog -> attributes -> manage attributes. Then search for the ‘SKU’ attribute and set the drop down ‘Use for Promo Rule Conditions’ to YES and reindex if needed.)
Set Actions
You can set how much discount you want to give from here
Save Rule
Also as extra information, if you not found SKU in promotion tab you can do following.
Go to: catalog -> attributes -> manage attributes
Search for the ‘SKU’ attribute and set the drop down ‘Use for Promo Rule Conditions’ on YES.
That will solve the problem.
They are not exact answer for the question.
Most of all the right but you have to setup one more thing as below if you want to discount only specific items or specific items in category.
Do it as above
under Shopping Cart Price Rule
Go to Conditions > Remove all conditions
Go to Actions and setup under
"Apply the rule only to cart items matching the following conditions (leave blank for all items)"
If you want to discount specific items, select SKU and input the SKU #
If you want to discount Category items, select category
It will be discounted only setup items even if other items are in the cart.
Go to your shopping cart rules in Admin Panel of Magento. When you create new rule, under conditions tab you have great options to set.
For example you can that this rule will apply only to products of a one category, or product which has defined attribute.
You should check those option, because Magento has many possibilities here.
Login to Admin
Go to Promotions -> Shopping Cart Price Rules
Click Add New Rule
Fill Rule Information
Under Actions :
In Apply the rule only to cart items matching the following conditions (leave blank for all items)
Click on + button, under that select SKU
Now, you can see SKU is ...
Put your product SKU over there
The SKU option wont be there in default, to add that
Catalog -> attributes -> manage attributes
Find SKU
Set "Use for Promo Rule Conditions" to Yes