Shipstation won't propagate with order info

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #241946

-- url of the page with the problem -- : www.survivalbreakdownbow.com
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

I have followed the instructions for set up...
Shipstation confirms that it is linked in to Hikashop...
When an order is placed and payed for, the info doesn't go from Hikashop to Shipstation and I'm not sure what I'm missing here.

Here are screen shots of the set up:



Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #241998

Hi,

You've configured the shipstation plugin to send the order details to shipstation when the order are paid.
This means that the plugin will do that when your payment plugin changes the status of the order from created to confirmed upon receiving the payment notification from your payment gateway.
So the most likely issue is that your orders are not being confirmed because HikaShop is not receiving payment notifications from your payment gateway.
Please check that the orders are confirmed.
If yes, then activate the debug of the shipstation plugin, do a test, and check the payment log of the HikaShop configuration for clues on the issue.
If no, then the problem is not with the shipstation plugin but with the payment notifications:
www.hikashop.com/support/documentation/i...or.html#notification

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #242044

I do have it set to confirm as you see below:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #242072

Hi,

Your screenshot is a screenshot of your payment method settings.
I'm talking about the order status of your orders.
Are they being confirmed ?

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #242155

Yes, the orders are being confirmed.



Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #242215

Hello,

Can you provide with our "Contact us" form, your log if Shipstation show some data on his processing ?
Please add a link to this topic in order to understand from which issue is linked the message.

Awaiting news from you.

Regards.

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #242297

Hello,

blackfrog :

I'm not really understanding what you are asking for so here is the log in information:


With my message, I asked you to provide us the log file (learn more about this here ), but for this you have to switch On the Debug mode of your Shipstation plugin (I switch it myself in your website, thanks to don't switch it Off until your issue isn't solved).

From what I can see from your website backend everything seems right to me, but if issue is always here...

- Check if you have define your Store Timezone in your Shipstation backend account settings here :



- Check if you have some data about Shipstation processing in your Shipstation backend account here :



- Provide us the Log file, we expecte to have some data about your issue...

Awaiting news from you.

Regards

Attachments:
Last edit: 8 years 5 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #242320

Thank you again for your support!

I have set the correct timezone.
Here is the log file, along with a screen shot of the activity file from Shipstation. It looks to me that from the activity report it is still having an issue with the date set up, though I did change the 2 areas in he plugin as suggested.



Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #242366

Hello,

I had a look on your Shipstation settings page AND on your backend website, and everything seems right to me...
So, other possibilites may be from Shipstation setting page ( http://www.shipstation.com/ )
- Bad shop configuration ?
- Did you contact Shipstation support ?
- For a reason or another, your website can't communicate with Shipstation Servers ?...

Sorry for this uncomplete answer, hope you will find the roots issue.
If you get it, thanks to make a return on this topic for make everyone progress.

Regards.

Last edit: 8 years 5 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #242401

Hi Philip,
This is what Shipstaion reported:

Here is the full error message showing on your Custom Store connection:
Error in XML. Reason: The 'OrderDate' element is invalid - The value 'Mar/07/2016 22:10:00' is invalid according to its datatype 'DateTime' - The Pattern constraint failed.
To resolve this error, you'll want to have whoever built the custom store integration to change the format of the OrderDate field to be "MM/dd/yyyy HH:mm". The details of how the OrderDate field should be formatted can be found within our Custom Store Development Guide here: help.shipstation.com/hc/en-us/articles/205928478

So it would seem that the plugin date needs to be changed, correct?

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #242440

Hello,

This error was already solved by jerome with you here :
https://www.hikashop.com/forum/shipping-methods/884741-shipstation-date-error.html#241327

Plus, I don't really understand from where does these results come from... See this picture from your log :



As you can see by yourself the date format created by your Shipstation is correct.
This date format error that support tell us isn't from the same website OR Shipstation account, I don't know...
All these elements aren't matched, does there is something you forget to tell me because from my side there is no solution...

Awaiting news from you.

Regards.

Attachments:
Last edit: 8 years 5 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #242589

We got it! Not sure how... I went in and re-entered order status fields in Shipstation and reconnected it to the plugin and bingo, it sent the info over. Guess it needed a kick in the butt...

One thing that we are missing though is the first name of the customer. I looked in the shipstation plugin code and I don't see a field for first name, unless I over looked it somewhere.

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #242642

Hello,

Happy yo learn that problem is now solved !
For the second point, I check the Shipstation documentation and there is no field for the first name...

But, you can try this 'around line 340, in your plugin shipstation.php :

<ShipTo>
	<Name><![CDATA[' . $address->address_firstname . ' ' . $address->address_lastname . ']]></Name>
	<Address1><![CDATA[' . $address->address_street . ']]></Address1>
	<Address2><![CDATA[' . $address->address_street2 . ']]></Address2>
	...
But I don't know if that will works...

Regards

Last edit: 8 years 5 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #243362

Is this where you want it (line 343), or do you mean exactly on line 340 in between the "preg_match"?

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #243494

Hello,

No, the custom code must be modifiy in your generate XML process, more precisely here :

Starting around line 329 :

...
// Generate the Order XML data
			//
			$xml_data .= '
	<Order>
		<OrderID><![CDATA[' . $order->order_number . ']]></OrderID>
		<OrderNumber><![CDATA[' . (int)$order->order_id . ']]></OrderNumber>
		<OrderDate>' . date('m/d/Y H:i:s', (int)$order->order_created) . '</OrderDate>
		<OrderStatus><![CDATA[' . $order->order_status . ']]></OrderStatus>
		<LastModified>' . date('m/d/Y H:i:s', (int)$order->order_modified) . '</LastModified>
		<OrderTotal>' . round($order->order_full_price, 2) . '</OrderTotal>
		<ShippingAmount>' . round($order->order_shipping_price, 2) . '</ShippingAmount>
		<Customer>
			<CustomerCode><![CDATA[' . (int)$order->order_user_id . ']]></CustomerCode>
			<BillTo>
				<Name><![CDATA[' . $address->address_lastname . ']]></Name>
			</BillTo>
			<ShipTo>
				<Name><![CDATA[' . $address->address_lastname . ']]></Name>
				<Address1><![CDATA[' . $address->address_street . ']]></Address1>
				<Address2><![CDATA[' . $address->address_street2 . ']]></Address2>
				<City><![CDATA[' . $address->address_city . ']]></City>
				<State><![CDATA[' . $address->address_state . ']]></State>
				<PostalCode><![CDATA[' . $address->address_post_code . ']]></PostalCode>
				<Country><![CDATA[' . $countryCode . ']]></Country>
			</ShipTo>
		</Customer>
		<Items>';
...



Replace the code by this :
...
// Generate the Order XML data
			//
			$xml_data .= '
	<Order>
		<OrderID><![CDATA[' . $order->order_number . ']]></OrderID>
		<OrderNumber><![CDATA[' . (int)$order->order_id . ']]></OrderNumber>
		<OrderDate>' . date('m/d/Y H:i:s', (int)$order->order_created) . '</OrderDate>
		<OrderStatus><![CDATA[' . $order->order_status . ']]></OrderStatus>
		<LastModified>' . date('m/d/Y H:i:s', (int)$order->order_modified) . '</LastModified>
		<OrderTotal>' . round($order->order_full_price, 2) . '</OrderTotal>
		<ShippingAmount>' . round($order->order_shipping_price, 2) . '</ShippingAmount>
		<Customer>
			<CustomerCode><![CDATA[' . (int)$order->order_user_id . ']]></CustomerCode>
			<BillTo>
				<Name><![CDATA[' . $address->address_firstname . ' ' . $address->address_lastname . ']]></Name>
			</BillTo>
			<ShipTo>
				<Name><![CDATA[' . $address->address_firstname . ' ' . $address->address_lastname . ']]></Name>
				<Address1><![CDATA[' . $address->address_street . ']]></Address1>
				<Address2><![CDATA[' . $address->address_street2 . ']]></Address2>
				<City><![CDATA[' . $address->address_city . ']]></City>
				<State><![CDATA[' . $address->address_state . ']]></State>
				<PostalCode><![CDATA[' . $address->address_post_code . ']]></PostalCode>
				<Country><![CDATA[' . $countryCode . ']]></Country>
			</ShipTo>
		</Customer>
		<Items>';
....

in order to have this :




Hope this will works.

Regards

Attachments:
Last edit: 8 years 5 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 62
  • Thank you received: 1
8 years 5 months ago #243847

This was produced when I put in the code:
Parse error: syntax error, unexpected '<' in /home/surviv55/public_html/plugins/system/shipstation/shipstation.php on line 172

Attached is my file

File Attachment:

File Name: shipstation-new.zip
File Size:6 KB

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #243878

Hello,

I don't understand the root issue, so can you try to process a connection test with file version please.

Note : that this version have the required custom Xml for the first name AND the last name we speak about in previous message.

Awaiting news from you.

Regards

Attachments:
Last edit: 8 years 5 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum