ReCharge uses specific line item properties to ensure the product is processed as a subscription product in the ReCharge checkout. Some themes mistakenly display all of the line item properties on the cart page, so you may want to hide this text. This how-to article provides instructions to hide these properties.
Before you start
This is an advanced tutorial and is not supported by ReCharge as it is not part of ReCharge's standard turnkey solution. Knowledge of web design languages such as HTML, CSS, JavaScript and Liquid may be required.
Step 1 - Locate the code in the cart.liquid file
In Shopify, access your Shopify theme files.
In the cart.liquid file, look for the code that prints the items properties:
{% unless p.last == blank %}
Note: If you can’t find the code listed above in the cart.liquid template, it is possible that your theme may have a different title for this. In that case, check if instead your theme has a section titled cart-template.liquid or line-items-cart.liquid.
Step 2 - Modify the unless statement
Within the unless statement, add the additional code found in the example below:
{% unless p.last == blank or p.first == 'subscription_id' or p.first == 'shipping_interval_frequency' or p.first == 'shipping_interval_unit_type'%}
Once you have replaced the original unless statement with the updated code, click Save.