Site Builder > Hide "Qty:" Text on Item Drilldown Page of SiteBuilder WebSite via Meta Tag HTML
Published on
June 30, 2023 at 1:10:23 AM PDT June 30, 2023 at 1:10:23 AM PDTth, June 30, 2023 at 1:10:23 AM PDT
Scenario
User wants to remove "Qty:" text on the Item Drilldown page of an item that does not have a price nor Add To Cart button.
Solution
Prerequisite:
- Go to Setup > Company > Enable Features > Web Presence
- Advanced Site Customization: Set Checkmark
- Click Save
User may need to assign a class name for Qty: to be hidden.
- Navigate to Commerce > Site Builder > Item/Category Templates
- Edit the Item Drilldown Template in use
- Look for the word "Qty:" for easy location of the code
- Have a back up copy of the Template HTML or the code by copying it first on a notepad
- Once copied, locate again the "Qty:" code
- Replace
<span style="font-family:'Open Sans Condensed'; font-weight:600; font-size:20px; ">Qty:</span>
with:
<span class="quantity" style="font-family:'Open Sans Condensed'; font-weight:600; font-size:20px; ">Qty:</span>
7.Savechanges
8. Check website, check any item with price and see to it that there's no issue with existing templates
9. Go back to NetSuite account, this time locate the specific item that does not have price to be shown
<style>
input#qty {visibility:hidden;}
input#addtocart {visibility:hidden;}
</style>
10. Replace it with:
<style>
.quantity {
display: none;
}
input#qty {visibility:hidden;}
input#addtocart {visibility:hidden;}
</style>
11.Savechanges on the item record
12. Visit website and check on the item
There should be no "Qty:" text anymore.Check on other items with price, there should still be Qty since they are not affected by the meta tag html.