#.abishek
1 messages · Page 1 of 1 (latest)
I believe you can only do that if you're using Stripe Link: https://stripe.com/docs/payments/checkout/customization#link
Which description are you referring to? Can you send a screenshot of which text you're talking about?
Yes, it is possible to hide product descriptions on the checkout page using code.
on the left side of the checkout page where it lists the products and quantities, the product description is also shown, I would like to hide it
just fyi, i am using price_data.product when adding line_items
Well actually you can hide that using a coding, i would share you how to can implement that.
If this is on checkout, I think the only way to hide the description would be to not include one when creating the products
ok, thats what I thought as well because I couldn't find a setting on the checkout object to do this. @pliant tendon what did you mean by coding? I am already coding to create a checkout session
To hide product descriptions on your store's checkout page, you will need to access and modify the code of your store's checkout template.
Shopify:
Go to your Shopify admin dashboard.
Navigate to "Online Store" > "Themes".
Click on "Actions" and select "Edit code" for the theme you want to modify.
Locate and open the "checkout.liquid" or "cart.liquid" file in the "Templates" folder.
Find the section of code responsible for displaying the product description and comment it out or remove it.
Save the changes and preview the checkout page to ensure the product descriptions are hidden.
WooCommerce (WordPress):
Log in to your WordPress admin dashboard.
Navigate to "Appearance" > "Theme Editor".
Open the "checkout" template file (usually "checkout/form-checkout.php").
Locate the code responsible for displaying the product description and comment it out or remove it.
Save the changes and preview the checkout page to ensure the product descriptions are hidden.
Magento:
Access your Magento admin panel.
Go to "Content" > "Design" > "Configuration".
Select the store view you want to modify.
Under "Other Settings", open the "HTML Head" section.
Insert the following code in the "Scripts and Style Sheets" field to hide the product description:
<style>
.checkout-product-name { display: none; }
</style>
// Find the product description element on the checkout page
var productDescription = document.getElementById('product-description');
// Hide the product description
productDescription.style.display = 'none';
@fathom veldt are you using Shopify? I assumed you were using Stripe Checkout.
Yeah sure i make use of shopify
Got it. Are you generating Checkout Sessions through them? Or are you creating Checkout Sessions at all? Like, what product(s) of Stripe's are you using in that screenshot you sent?
i am using stripe checkout
Alright some sec.
i didn't know Shopify allowed Stripe Checkout, Stripe isn't even a payment provider on Shopify
since they use Stripe for their shopify payments, Stripe isn't a provider that you can setup on Shopify
No, it is not possible to directly hide product descriptions on the Stripe Checkout page. The Stripe Checkout page is a hosted payment page provided by Stripe, and its customization options are limited.
When using Stripe Checkout, the product information, including descriptions, is passed from your website or application to Stripe, and then displayed on the Stripe Checkout page. As the Stripe Checkout page is hosted by Stripe, you do not have direct control over its appearance or customization.
If you need to hide product descriptions on the checkout page, you may need to consider building a custom checkout page using Stripe's API or integrating a different payment solution that provides more customization options for the checkout page.
Are you there @fathom veldt ?
nah, i will stick to Stripe Checkout, it has more advantages that any other payment provider that I know of when it comes to different checkout options, doesn't matter if I can't hide descriptions
the amount of time it would take to do something custom that stripe already supports is going to take months. Its just a minor detail and I can live with it.
Well i can also briefly explain how this work as well you might think to use it...
what do you think?
Alright no problem friend,besides do you have any more questions to ask based on anything you are confused all about?
no, i am good. thank you