Need more status fields in Orders(Woocommerce) - php

When anyone order something through my Woocommerce website then the default functionality of woocommerce puts all orders under “Processing” state, I need them to land under “Pending Approval” status. Once I have made the order confirmation call, I will then mark them “Processing”. For this I need help in creating statuses through custom code in Wordpress, Then I need another status, “Dispatch”, for orders whose items I have already procured and are ready to be dispatched, they will be marked as “Dispatch”.
I am newbie in Wordpress custom coding, I know through functions.php I can control most of things through hooks, but I need help in this whole question.
Thanks in Advance :)

Download the extension from your dashboard
Go to Plugins > Add New > Upload and select the ZIP file you just downloaded
Click Install Now, and then Activate
Go to WooCommerce > Settings > Order Statuses and read the next section to learn how to setup and configure the plugin.
https://docs.woothemes.com/document/woocommerce-order-status-manager/

Related

Add custom form data into ORDER tab (WooCommerce)!

I have created one custom form (Wordpress Woo-commerce) for purchasing products.
I need to insert data into ORDER tab OR After Orders I would like to create one more tab called Subscription Orders same like Orders, but inside this post type data is only for subscription orders.
Can you please guide and help me, How I can achieve this. I have also put screenshots so you can get better idea.
Thank you in advance.
try to override template of woocomerce via themes
and use the hooks.
https://docs.woocommerce.com/document/template-structure/
https://docs.woocommerce.com/wc-apidocs/hook-docs.html

Wordpress WooCommerce E-Commerce Additional Customer Profile Customization

I am building an E-Commerce Website with Wordpress using the WooCommerce plugin. Trying to add a feature for customers to add a photo to their profile page. I want this to be manadorty so if the client did not upload photo, I want it to be requested at the process of checkout.
How should I go about this, I been looking all day and can't even find the right file that I am supposed to be editing. Thanks in advance.
You need :
Add a form in my-account.php (Check woocommerce_before_my_account hook for this)
Create a custom code to save the file in wp_usermeta table (Check add_user_meta() function ).
Check woocommerce hook after_woocommerce_pay to check if there is a photo associated to current user

Get notified on stock unavailability

I am trying to create a "Notify me" feature if the stock is unavailable.
On search on admin panel, I could find only that a user should sign up / log in to get notified about the stock availability.
But I just want to let the user (a guest) enter only his/her email address to get notified.
How should I do this?
Please give suggestions..
EDIT:
I have got this link, which gives me a way to start.
Till now what I did is added the following code in my template file which is creating a url for redirect (thinking to do it in ajax way, to stop page refreshing).
<?php
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$base64 = strtr(base64_encode($actual_link), '+/=', '-_,');
$postUrl = "http://$_SERVER[HTTP_HOST]/efk/productalert/add/stock/product_id/" . $simpleProduct->getId() . "/uenc/". $base64;
?>
In the above code, efk is my project folder name.
After this, I have gone to productalert/add/stock controller method i.e stockAction() which is calling sign up / login form (I think so) using $model->save();.
How should I disable this save calling and add my own small overlay which holds a textbox to enter a email address?
Magento has "Notify me when product is back in stock" feature out of the box. It can be configured in admin panel: system / configuration / catalog / product alerts and product alerts run settings.
You're right, it works only for registred customers. To make it working for guest users some coding is required. I'd say you need to do the following steps:
Add email column to product_alert_stock table
Create new controller and action (believe me, it's better than you override existing one via config.xml) which extends Mage_ProductAlert_AddController::stockAction(). Your method will have to set guest's email to productalert/stock model.
Create subscription form and make sure it submits data to your new controller/action.
Update (override) Mage_ProductAlert_Model_Observer::_processStock() method to make it respect situations when "customer" has no ID but has email.
When you'll be testing, I suggest you to install SMTP Pro Email extension and mailcatcher to ease the testing process.
We have done this (http://www.alfresia.co.uk/sorrento-side-table.html/). Here we ended up creating a custom module as when we did this magento did not support any product alert system for the guest users (i do not know if this is supported now).
We first created a text box which would appear on product page where the product is out of stock. We were saving this info in one of our custom tables where we the schema was {id, email, product_sku, status} (status had three values Awaiting Stock, In Stock, and Already Notified).
We then wrote an observer which was hooked to cataloginventory_stock_item_save_after event, this helped us get the product sku which has been back in stock, and update all entries in our custom table with status In Stock and send a mail to the user.
This is how we did it, surely there will be a much cleaner way doing this.
You could have work with plugins. MagentoCommerce has loads of plugins/extensions which does the same
Free Version - http://www.magentocommerce.com/magento-connect/product-out-of-stock-subscription-1350.html
I too had similar requirement, and have installed 'http://www.magentocommerce.com/magento-connect/product-out-of-stock-subscription-1350.html' this plugin.
Well this plugin does the job, But they have override complete product view page template instead of simply adding a new block. By this your custom development on product view page development might get reflected on frontend.
Or else this plugin definitely does the job.
This http://www.magentocommerce.com/magento-connect/product-out-of-stock-subscription-1350.html plugin is really good but it breaks for configurable product types and it completely overrides the product controller which makes your system vulnerable to future upgrades. I think observers should be hooked to events where the product is back in stock and should update the users.

After Placing Order, Customer Does Not Redirect to “Order Placed Successfully” and is Returned to Cart

I have create a magento website, in this when we place order of an item then,
strong textAfter Placing Order, Customer Does Not Redirect to “Order Placed Successfully” and is Returned to Cart.
Order also gone in magento admin section under "Sales > order".
I have tried check/money order, authorize.net etc for order place but no positive results found,
under this they also not checked correct payment details for order in authorize.net.
It seems there is problem related with Payment method.
You can check this using other Payment method like Cash on Delivery etc.
Also please make sure you are entering correct information for Address like ZIP Code etc.
Can you list what extensions you have installed for your Magento install?
I've experienced this problem before when I had a custom module that observes the checkout event, when something has gone wrong with the code itself.
Chances are either one of your extensions or a custom built module that's listening to the checkout events is causing the problem.

Wordpress Simple Shopping Cart

i need WordPress shopping cart function with or without any pluggins. When a registered user click the add to cart button on the normal post, it needs to go to shopping cart. The checkout function should not have the shipping and payment gateways as the user click the check out button he should recieve the mail for order confirmation with the permalinks of the post bought by him, meanwhile the post permalinks has to be saved in data base which can be viewed by the user later. Admin should recieve the mail for perchasing order.
Perhaps you can use this plugin. Its a wordpress e commerce plugin and should take care of all the things you have mentioned.
Salman, Try WP e-Commerce one of my favorite and o.s plugin
For more http://sixrevisions.com/wordpress/top-5-excellent-e-commerce-plugins-for-wordpress/
If you really need a simple cart other than Wordpress integrated plugin, you can go for OpenCart, which was easily administrate and user friendly with analytics and so on...
Please see my answer to similar question here.
In addition - the WP Order Cart plugin does not save orders to database, it only sends the order email to both buyer and seller - this functionality is still in development.

Categories