I have problems with placing an order for customers using the back end of woocommerce, on the customer search drop down, some users cannot be found by the system, thus not populating the necessary fields required to complete the order. What seems to be the problem here? Thanks in advance for any help. Thank you.
The users are migrated from another database using sql commands.
On the image below, it shows that the customer is not found, I have users with that given name.
Thank you for the help.
Related
Here is the setup.
Customer fills out form of information for product specifications. This creates an entry in the db with a unique detailsID.
They then are taken to a product page, with many variables. They select the variable product and checkout.
Now in the db they have an order as well as a separate table with the details of their request.
What is the best way to connect the product they bought with the detailsID?
I would like to basically pass the detailsID to the product page, then add this detailsID to the product. Or add the orderID back into the details table.
I keep going around whether to add this as meta data, or use a session, or just do post order logic to add the order ID back into the details table.
I really just need to link the two once the order completes but am not sure the best method to do this. I am pretty new to Woocommerce so don't know a lot of the hooks yet.
Thank you so much for your suggestions!
After a lot of research and experimenting here is the method I have decided on. This seems to add the information in a variety of places to make it easy to track orders and to insure that the customer is getting the customized product they want.
add custom data to woocommerce
I am using this method very close to how it is spelled out in this great article. This was really helpful for me being a woocommerce newb.
I am using Drupal 7 and a custom CCK content in order to allow users to submit information to our website. I'd like to be able to only allow submissions between a set of user definable dates. Once the dates expire, i'd like for the user to receive a message of some sort stating that the deadline for submissions is now expired when they click the link to open the form.
I currently manually go in and turn off permissions to the content type once the deadline expires, but that is clunky and requires a little too much management (I have 15 forms I need to do this for). I've searched stack overflow and google and have not come up with anything that fit my needs, most likely because I'm not using the right keywords.
Does anyone know an easy way to do this with a module or do I need to try to write my own in order to accomplish this goal? Thanks in advance for any help.
I think you have to write some custom module to achieve this. You would use hook_node_access() to control node creation page access and and put your error message and/or redirection.
https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_access/7
Another solution is to use Webform module.
https://www.drupal.org/project/webform
Download version 7.x-4.x
Create a form and in the settings there is an option to control total submissions limit, and set time frames for limitations.
Hope this helps.
You can achieve this by:
Create a column in user table in mysql called "expDate", assign the expDate values(mm-dd-yyyy) to each user
In drupal, on the page where users summit message, write php code to grab the expDate from database, and compare it to Current Date, date('mm-dd-yyyy'). Just copy can paste the php codes in each page where you have the form.
You can also pass the expDate from php to js, then do some fancy job instead of simple alert.
I have a woocommerce site setup that is pulling in products from an external system using the woocommerce REST API.
Everything is coming through fine except the parent_id is not being set.
example data:
{"product": {"title":"Example Shoe","type":"simple","status":"publish","regular_price":"84.00","description":"","short_description":"Trainers","categories":["Mens Trainers"],"catalog_visibility":"visible","attributes":[{"name":"Colour","position":1,"visible":true,"variation":false,"options":["BLACK"]}],"images":[{"src":"","title":null,"alt":"","position":0}],"parent_id":5254}}
I'm a bit stumped as to why, and as it is only an integer posting through I can't see why It wouldn't work.
Any help is appreciated,
Thanks.
I figured out after some trial and error that the reason for this is that the parent_id field seems to be used for grouped products so using it for a variable product was causing issues.
I have a problem that I can't find a solution for, even after hours of searching with google. I have an IIS 7.5 installed and Urchin 6 over a SharePoint 2010 application. I have a custom newsletter mechanism, that creates links in messages as follows:
http://somesite/newsletter/pages/newsletter17-20121018164411?NewsletterID=1&userLogin=USER&newslettersrc=http://site-to-redirect/site/pages/page.aspx
(when user enters the url is being redirected to url 'newslettersrc')
I thought I would be able to trace numbers of people who clicks a link from a newsletter and opens a webpage, by analyzing 'Page Query Terms' report. But I can't find any results there, for pages with name 'newsletter'. Moreover, as I checked using the Urchin form for API testing, value in field request_query for specified request_stem is empty. I also checked IIS logs, where I found that the URL is divided properly into cs-uri-stem and cs-uri-query, as follows:
cs-uri-stem:
http://mysite/newsletter/pages/newsletter17-20121018164411
cs-uri-query:
NewsletterID=1&userLogin=USER&newslettersrc=http://site-to-redirect/site/pages/page.aspx
What can be wrong? Other queries, generally some short variables and numeric values are stored properly, So why queries from newsletter are not stored in urchin database? Why, for this request_stems request_queries are empty? Has anyone faced such problem?
Thank you in advance!
Best regards,
Tom
For those who will read this question in future - the solution was easy - the URL string that is a parameter in another url string needs to be encoded. After doing this, Urchin will record it without any troubles.
This is related to Drupal 6 & Ubercart...
Is it safe to erase in-checkout orders from a user, except from the last in-checkout order?
The problem is that a user can create multiple orders with "in checkout" status, and it could be confusing for an administrator look multiple orders from the same user. Moreover, the user can only see his last in-checkout order, the rest in-checkout orders are lost... (or not?)
I think a user will never see past in-checkout orders... If a user generates a new order then pasts orders from him should be erased...? Seeing these orders in the history could generate confusion.
Is it safe to delete past in-checkout orders from the same user?
might be a solution.
After hours of head banging, I had to hack the core ubercart drupal module. I dont know why but the ubercart uc_cart.module unsets the order session everytime the ubercart checkout page is loaded. Hence when the page is loaded or any validation error is there on the checkout page, a new order id is created for preventing the identity theft(which i have no clue what it is).
Coming back to my point. I just commented out the line 142 and 150 in uc_cart.pages.inc of ubercart.
eg:- unset($_SESSION['cart_order']);
I m in drupal 6 ubercart
Now since the cart order is not unset hence there are no multiple in checkout status order created. Seems to be working fine for now. I know that hacking core ubercart module is not good, but i couldn't fine any other solution for this. Please do reply if it will cause any future error.
Thank you.