[Skip to main content](#vessel-content)

#   Getting buyers name and mobile in php script mass action

##

- **[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")**
- [![khashiz's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61259-khashiz "View khashiz's Profile") Topic Author
- [ Offline](/forum/user/61259-khashiz)

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 10 months ago [\#338326](#338326) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  *[Getting buyers name and mobile in php script mass action](/forum/44-mass-actions/903753-getting-buyers-name-and-mobile-in-php-script-mass-action#338326 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4  Hi. I know that in mass actions for products, I can use the tag {product&#95;code} to get the product code in php script mass action.  I'm creating a mass action php script for orders, I need to get the buyer name and mobile number in my script, how can I get that information of the buyer of an order ?? is there a list of all availables tags tahn can be used in php script mass action ?")* was created by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")*

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.0.5
-- PHP version -- : 7.4

Hi. I know that in mass actions for products, I can use the tag {product_code} to get the product code in php script mass action.

I'm creating a mass action php script for orders, I need to get the buyer name and mobile number in my script, how can I get that information of the buyer of an order ??
is there a list of all availables tags tahn can be used in php script mass action ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDM3NTMtZ2V0dGluZy1idXllcnMtbmFtZS1hbmQtbW9iaWxlLWluLXBocC1zY3JpcHQtbWFzcy1hY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

4 years 10 months ago [\#338328](#338328) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting buyers name and mobile in php script mass action](/forum/44-mass-actions/903753-getting-buyers-name-and-mobile-in-php-script-mass-action#338328 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4  Hi. I know that in mass actions for products, I can use the tag {product&#95;code} to get the product code in php script mass action.  I'm creating a mass action php script for orders, I need to get the buyer name and mobile number in my script, how can I get that information of the buyer of an order ?? is there a list of all availables tags tahn can be used in php script mass action ?")*

Hi,

Only the information of the main element can be used.
So for the product mass actions, you can look at the columns of the hikashop_product table for all the tags you can use, and for the order mass actions, you can look at the columns of the hikashop_order table for all the tags you can use.
The user account name is stored in the joomla users table, the billing address name and phone number are stored in the hikashop_address table. So you can't directly use a tag to get the information.
However, you can use the {order_id} to load the order information, as explained in one of the examples of our developer documentation:
[ www.hikashop.com/support/documentation/6...umentation.html#code](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#code)
And then, you'll have all the information of the order available.
For example: Code:

$orderClass = hikashop_get('class.order'); $order = $orderClass-&gt;loadFullOrder({order_id}, true, false); echo $order-&gt;customer-&gt;username; echo $order-&gt;customer-&gt;name; echo $order-&gt;billing_address-&gt;addres_firstname; echo $order-&gt;billing_address-&gt;addres_lastname; echo $order-&gt;billing_address-&gt;addres_telephone;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDM3NTMtZ2V0dGluZy1idXllcnMtbmFtZS1hbmQtbW9iaWxlLWluLXBocC1zY3JpcHQtbWFzcy1hY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")**
- [![khashiz's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61259-khashiz "View khashiz's Profile") Topic Author
- [ Offline](/forum/user/61259-khashiz)

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 10 months ago [\#338420](#338420) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Getting buyers name and mobile in php script mass action](/forum/44-mass-actions/903753-getting-buyers-name-and-mobile-in-php-script-mass-action#338420 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4  Hi. I know that in mass actions for products, I can use the tag {product&#95;code} to get the product code in php script mass action.  I'm creating a mass action php script for orders, I need to get the buyer name and mobile number in my script, how can I get that information of the buyer of an order ?? is there a list of all availables tags tahn can be used in php script mass action ?")*

Thank you Nicolas.

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDM3NTMtZ2V0dGluZy1idXllcnMtbmFtZS1hbmQtbW9iaWxlLWluLXBocC1zY3JpcHQtbWFzcy1hY3Rpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.052 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
