You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shopi...@googlegroups.com
We are using the API to crate the script tag for the store and the we are having the following problem:
1. We are unable to get the amount ({{total_price}}) and transaction ( {{order_number}}) variable in remote JavaScript which we have injected through the script tag API
2. Also, we are unable to get the order id in url of thank you page. We have placed the 4 order and all the order id is same of the url. The URL is
The order id (1023222) in above url are always same and we not able to get the order information using this order id .
However we have get the all orders of the store then this is "1023222" does not exist any ware in the order information.
We want to fetch the intent order information and update the database. Please suggest how to archive this using script tag API.
Dave
unread,
Oct 3, 2011, 11:08:37 AM10/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shopify-api
that is NOT your order ID... that is your SHOP ID, that is why it is
always the same.
If you inject a script tag in there... you will have to scrap DOM to
get the shopify order number... which by the way, is an artificial
construct... it is made up by the Shop keeper so that they can pretend
that their shop actually has orders.. so it could be 4500 or 666666 or
889191919 for all you know... and then the actual order ID is found by
arbitrarily removing 1000 from that?
And then, you can use the API to query for that order number, which
will get you the order, which has a totally different ID.
Hope that helps.... have fun
On Oct 3, 9:36 am, synapse <synapse...@gmail.com> wrote:
> We are using the API to crate the script tag for the store and the we are
> having the following problem:
>
> 1. We are unable to get the amount ({{total_price}})
> and transaction ( {{order_number}}) variable in remote
> JavaScript which we have injected through the script tag API
>
> 2. Also, we are unable to get the order id in url of thank you page. We have
> placed the 4 order and all the order id is same of the url. The URL is
>
> First order
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shopi...@googlegroups.com
The actual ID of the object is unique in Shopify's database, so multiple shops can have the same order number, but won't have the same ID. Removing 1000 won't really get you anywhere. You can use whatever Shopify is displaying as the Order # (like 4500) to query and find the Order as it maps to the name attribute on the Order object.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shopify-api
Right... my point was simply that:
An order has attributes:
name
number
id
All refer to an order... and there is a relation between name and
number, where number is derived from name, which can be seeded from
the admin by the client.
Please suggest if we can call some other php script in remote java script file which is inject through the script tag ?
Tariehk Geter
unread,
Oct 3, 2011, 2:32:47 PM10/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shopi...@googlegroups.com
The developer is trying to do a remote call using AJAX to a php file. The main issue is we are trying to pull in the total and the order id into the javascript that we would insert on the thank you page code and he is having a hard time doing this. He had wrote me and said:
we have try to call the php using remote script tag but shopify not allow to call the external php using ajax