Solved

Can we customize the Merchant Center using PHP ?

  • 19 June 2024
  • 6 replies
  • 77 views

Userlevel 1
Badge

I am new to Commercetools and I created a free trial to explore it. Once I signed up for free trial, I got the access to Merchant Center and I installed the sunrise SPA demo data for testing. I placed one test order from SPA but in Merchant Center, I cannot see the order edit feature. Then I got to know from the below link that the order edit is not possible from Merchant Center and it can be through Custom Application.
 

I have one question here, basically I am a PHP developer, and I saw there is a PHP SDK available in commercetools. Can I create a custom application using PHP or that has to be done from React or JS as I can see here it mentioned React Js knowledge is needed.
https://docs.commercetools.com/merchant-center-customizations/custom-applications

Please help me to understand this.
 

Thanks in Advance.

icon

Best answer by Matheus 20 June 2024, 10:01

View original

6 replies

Userlevel 1
Badge

Hi Siva,

Custom Applications can only be developed in React as it extends the Merchant Center functionality which is also developed in React.

Alternatively, you can create Order Edits via API. https://docs.commercetools.com/api/projects/order-edits

Does this help clarify?

Best regards,

Matheus

Userlevel 1
Badge

Yes, @Matheus,

I can understand that we can create order edit via API.

Actually, I am having PHP background and don’t have React knowledge. In this case, what we can do with PHP SDK, could you please help me on this?

As a PHP developer, what kind of things I must explore in commercetools to grab it more?

Userlevel 1
Badge

@Siva,

You can develop your commerce application with our PHP SDK. 

The SDK allows you to interact with the commercetools API in a more straight forward way, instead of using plain HTTP requests.

I recommend taking a look at our PHP SDK documentation: https://docs.commercetools.com/sdk/php-sdk

Userlevel 1
Badge

@Matheus,

Thanks for the details.

I already referred this link, https://docs.commercetools.com/sdk/php-sdk and installed the php SDK in my machine and also checked few examples code like create customer, products.

But my confusion here is that, only the admin user should have order edit provision and it won't be there for customer as per the e-commerce flow. In this case, how admin can edit the order if its needed. Is there any user interface kind of thing, we need to create or how it can be. As I am new to commercetools, if you provide some brief of these, it will be really helpful. 

Userlevel 1
Badge

Hi @Siva,

The most commonly used approach is to create a Merchant Center Custom Application for order editing, but I understand that you have no experience with React and this would not be feasible for you.

Another option is to create an admin area in your frontend application with the Order Edit functionality. In this case, the admin user will need manage_order_edits permission scope. https://docs.commercetools.com/api/scopes#manage_order_editsprojectkey

You can also use our Impex API playground to do this, which is similar to a normal API platform like Postman but with a nice user interface. https://docs.commercetools.com/tutorials/#impex

Userlevel 1
Badge

@Matheus,

Thanks. I understood.

Reply


© 2024 commercetools GmbH - All rights reserved