> ## Documentation Index
> Fetch the complete documentation index at: https://docs-nce.global-e.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring the Global-e Settings

## Plugin Configuration Page

You can use one of the following plug configuration methods:

* [Configuring Global-e Cross Border Settings via the WooCommerce Settings Menu](/4--configuring-the-global-e-settings#configuring-global-e-cross-border-settings-via-the-woocommerce-settings-menu)
* [Customizing Fields within the Global-e API Settings Section](/4--configuring-the-global-e-settings#customizing-fields-within-the-global-e-api-settings-section)

### Configuring Global-e Cross Border Settings via the WooCommerce Settings Menu

#### To configure Global-e Cross Border Settings via the WooCommerce Settings menu

1. Navigate to *Woocommerce > Settings*.

   <Frame>
     <img src="https://mintcdn.com/globale-nce/HEMTL5jLmdt1JA9r/images/uuid-a986c777-4793-afc9-bc67-70244367fccb.png?fit=max&auto=format&n=HEMTL5jLmdt1JA9r&q=85&s=c4e89ec57bdb371273fa51621736b2ab" width="1705" height="919" data-path="images/uuid-a986c777-4793-afc9-bc67-70244367fccb.png" />
   </Frame>
2. Click the *Integration* tab.

   <Frame>
     <img src="https://mintcdn.com/globale-nce/HEMTL5jLmdt1JA9r/images/uuid-9f30a79c-fe63-bf9a-af27-e886519ae1aa.png?fit=max&auto=format&n=HEMTL5jLmdt1JA9r&q=85&s=15417b0b175123a892751ccf8f0d4190" width="1698" height="929" data-path="images/uuid-9f30a79c-fe63-bf9a-af27-e886519ae1aa.png" />
   </Frame>
3. In the *GlobalE Pro Integration* section, configure the fields as needed:

   <Frame>
     <img src="https://mintcdn.com/globale-nce/0sRR-GaiN0-skE3o/images/uuid-4b6fc7da-851b-7355-c5d0-5db263055485.png?fit=max&auto=format&n=0sRR-GaiN0-skE3o&q=85&s=7d41aa994e54b0ce12d23966cd7efae0" width="1042" height="868" data-path="images/uuid-4b6fc7da-851b-7355-c5d0-5db263055485.png" />
   </Frame>

   The following table describes the parameters in the Global-E API Settings section:

   | Parameters | Description and Settings |
   | - | - |
   | Enable JS/CSS Include | ON/OFF switcher of the Global-e extension.Values: yes (default), no.If set to "no", the system does not include the Global-e CSS and JavaScript.If set to "yes", the Global-e script appears on your website. However, this script only becomes functional after the extension has been activated by Global-e. While waiting for activation, you can view the solution by adding the following query string to the site's URL: `?showpro=true`. |
   | Merchant ID | Merchant Account ID in the Global-e system (provided by Global-e as part of the merchant's onboarding process). |
   | Merchant GUID | Private key of the Merchant Account ID in Global-e (provided by Global-e as part of the merchant's onboarding process). |
   | API Path | Path to the Global-e API.<br />QA environment: //glite.bglobale.com/<br />Staging environment: //stglite.bglobale.com/<br />Production environment: //gex.global-e.com/ |

   The following table describes the parameters in the Products section:

   | Parameter | Description |
   | - | - |
   | Extra Product Attributes | You can create product attributes using the standard WooCommerce functionality.<br />By default, the Global-e extension gets and supports the Size and Color attributes. These attributes are displayed in the Global-e checkout screen, transactional emails, and the Merchant Portal View Orders interface, next to the related products.<br />If you create additional attributes in WooCommerce, these must also be configured in the extension's Configuration screen. In the Extra Product Attributes field, add the attribute slugs as comma-separated values. |

### Customizing Fields within the Global-e API Settings Section

#### To customize fields within the Global-e API Settings Section

1. Navigate to *Plugins > Installed Plugins*.

   <Frame>
     <img src="https://mintcdn.com/globale-nce/eLhOOxssApl6JeL0/images/uuid-b47d4e97-83c3-e93e-bbdd-7ac83c84c7df.png?fit=max&auto=format&n=eLhOOxssApl6JeL0&q=85&s=e2b39ca4a5f68bb6b039de7ab8d89d09" width="1090" height="598" data-path="images/uuid-b47d4e97-83c3-e93e-bbdd-7ac83c84c7df.png" />
   </Frame>
2. In the Global-e Cross-Border for WooCommerce section, click Settings.

   <Frame>
     <img src="https://mintcdn.com/globale-nce/Bp2mTKuI4zIQKDG5/images/uuid-81a2635c-ff45-21f2-394f-468eb7f5a6af.png?fit=max&auto=format&n=Bp2mTKuI4zIQKDG5&q=85&s=30a0ad6a4c12920621f9f1653fffa63b" width="1150" height="340" data-path="images/uuid-81a2635c-ff45-21f2-394f-468eb7f5a6af.png" />
   </Frame>

## Global-E API Settings

| Setting | Default | Description |
| - | - | - |
| Enable JS/CSS include | Off | Allows you to enable/disable external Global-e JavaScript and CSS includes. For headless integration, the setting should be disabled. |
| Merchant ID | | The merchant Identifier which allows you to identify JavaScript and CSS includes. |
| Merchant GUID | | The API key that is used for communication to and from Global-e. |
| API path | [//stglite.bglobale.com/](https://stglite.bglobale.com/) | Defines the Global-e Module URL.<br />Possible Values:<br />Integration Environment: [//intgepi.bglobale.com/](https://intgepi.bglobale.com/)<br />Staging Environment: [//stgepi.bglobale.com/](https://stgepi.bglobale.com/)<br />Production Environment: [//gepi.global-e.com/](https://gepi.global-e.com/) |
| API Base URL | [https://connect.bglobale.com/](https://connect.bglobale.com/) | Determines the Global-e environment with which to communicate.<br />Possible values:<br />Integration Environment: [https://connect.bglobale.com/](https://connect.bglobale.com/)<br />Production Environment: [https://api.global-e.com/](https://api.global-e.com/) |
| Include mode | PRO | Defines the Global-e Module variation.<br />Possible values:<br />PRO<br />GEM |
| Global-e data cookie name | GlobalE\_Data | Defines the cookie name. The cookie is set by the plugin and is used by the Global-e Module. |

### Products

Configure these settings to synchronize specific product attributes with Global-e.

| Setting | Default | Description |
| - | - | - |
| Extra product attributes | | Slugs of custom attributes with copa separator (like: "attr1,attr2,attr3") |
| Product attributes map | | Product attributes map. Json. Attributes slug => Attribute sign. (example: \{"attribute\_pa\_size":"size"} ) |
| Brand Attribute | | The technical name of a product custom field used as an extra product brand attribute. |
| Product class code attribute | | Product class code attribute |
| Country of origin attribute | | The technical name of a product custom field used as an extra product country of origin attribute. |
| Description Attribute | | The technical name of a product custom field used as an extra product description attribute. |
| HS Code Attribute | | The technical name of a product custom field used as an extra product HS Code attribute. |
| Weight Attribute | | The technical name of a product custom field used as an extra product weight attribute. |
| Enable save product list | Ticked | Enables/disables saving product data on the Global‑e system. |

### Order

| Setting | Default | Description |
| - | - | - |
| Unique Product identifier | SKU | Defines which product attribute is considered a unique identifier.<br />Possible values:<br />SKU<br />Product ID / Variation ID |
| Skip Cart Validation | False | Enables/disables cart validation on order create notifications. |
| Use Shipping Method Mapping | Plugin map | Defines how the shipping method is mapped.<br />Possible values:<br />Plugin map - shipping method name “globale" will be used.<br />Default - shipping method name will be used in the format: “Global-e :" plus `ShippingMethodName`.<br />Globale map - shipping method name will be used in the format: `ShippingMethodCode`. |
| Save country name as | Country name | Defines how the country of address is saved in Woocommerce.<br />Possible values:<br />Country name - full country name, like the United Kingdom.<br />Country ISO code - country ISO code, like the UK. |
| Add extra metadata to order items | | Extra meta, that should be added to order items .Json. MetaKey => MetaValue.(example: \{"internationalOrder":"YES"} ) |
| Reconciliation VAT | Standard flow | Define how reconciliation VAT is processed.<br />Possible values:<br />Standard flow - product prices contain reconciliation VAT.<br />Deduct - reconciliation VAT is deducted from product prices. |
| Restock refunded products | Ticked | If checked - the system will restock products on order refund. |
| Enable logger | Ticked | Enables/disables module logging. |
| Add shipping cost to totals | Unticked | If checked - the system will add the shipping cost to the product's total cost. |
| Allow order currency from request. | Unticked | If checked - allows a setting order currency different from a store based on the order creation request value. |

### Checkout / Order

| Setting | Default | Description |
| - | - | - |
| JS Code on Checkout Page | var glegem = glegem \|\| function() \{<br /> (window\["glegem"].q = window\["glegem"].q \|\| \[]).push(arguments)<br />};<br /><br />glegem("OnCheckoutStepLoaded", function(data) \{<br /> <br /> console.log('OnCheckoutStepLoaded')<br /> <br /> switch (data.StepId) \{<br /> <br /> case data.Steps.LOADED:<br /> console.log('OnCheckoutStepLoaded:LOADED')<br /> break;<br /> <br /> case data.Steps.CONFIRMATION:<br /> console.log('OnCheckoutStepLoaded:CONFIRMATION')<br /> <br /> if (data.IsSuccess && !data.IsPageReload) \{<br /> console.log('OnCheckoutStepLoaded:IsSuccess')<br /> // send some statistic<br /> }<br /> break;<br /> <br /> }<br />}); | JavaScript code that should run on the checkout page.For more specific example snippets, see Client Analytics. |
| Remove coupons from cart when switching countries | Unticked | Remove coupons from cart when switching from domestic country to any other one. |
| Store Code | | This is a store code. It is used by Global-e to distinguish sales channels on own domains and/or subfolders. |

## Discounts

The Global-e plugin for Woocommerce supports three types of discounts:

* Native Woocommerce discounts. See the [Native guide](https://woocommerce.com/document/coupon-management/).
* Discounts provided by third-party module, [Discount Rules for WooCommerce](https://wordpress.org/plugins/woo-discount-rules/).
* Discounts provided by third-party module, [Advanced Coupons](https://wordpress.org/plugins/advanced-coupons-for-woocommerce-free/).

## Clear Cart

**Clear Cart:** This AJAX endpoint clears the cart after order confirmation.

\[POST] [https://example.com/global-e/?wc-api=pro-cart-clear](https://example.com/global-e/?wc-api=pro-cart-clear)
