To create a Buy button:
From your X-Cart admin menu, open the Marketing section and click Buy Button.
On the Buy Button page, choose either "Generate product card" or "Embed product to email" and click the corresponding Select product button:
From the Choose a product to create Buy button pop-up, select a product from your catalog or use the search to find a specific product:
From the Configure Buy Button page, you can customize the button's click action and the language settings:
In the Click action dropdown, select what will happen when a customer clicks the buy button.
The "Add to cart" option redirects a customer to the X-Cart store cart page and adds a product to the cart.
The "Show product details" option redirects a customer to the product page.
If your product has multiple variants (like size or color), you can select a specific combination of attributes to associate with the Buy button. Please note that the variant stock status is not considered.
When you're done, click the button available. The name will vary depending on the option you selected at Step 2.
In the pop-up, copy the embed code or the product link, or click the Copy button:
The code is ready for pasting!
After creating a Buy button in your X-Cart admin, you're ready to add it to your website or blog. Adding the embed code to your website's source HTML is a bit different depending on how and where you want the Buy buttons and cart to appear on your website platform.
In general, any website or platform that allows you to paste plain HTML code with script tags can embed the Buy button cart. Look for an HTML code widget or Code text editor mode.