Shopify Theme PDP Integration
Fenix Product Detail Page (PDP) code snippet Features.
Snippet featured to show Estimated delivery dates on the product page.
Snippet featured to provide edit zip code change functionality on the product page.
Snippet featured to store changed zip code to store in Cookies. i.e. ‘Location’
Snippet featured to interact with Fenix Apis with correct SKU.
Fenix Estimated Delivery Integration in Product Details Page (PDP)
Click your store admin URL https://yourstorename.myshopify.com/admin
Duplicate the production or updated theme to move forward with the Fenix theme integration and to avoid any disturbance in the live theme. Refer to below sample screenshot
Rename the duplicated theme as Fenix Integration-yourthemename for better visibility and avoid confusion for other developers. Refer to below sample screenshot
Edit the theme code. Refer to below sample screenshot
Search Snippets keyword in the search and click on Add a new Snippet. Refer to below sample screenshot
Name the new snippet as fenix-pdp-template.liquid and click Create Snippet button. Refer to below sample screenshot
Fenix PDP Template code snippet
<style>
.fenix-fixd-delivery {
margin-left: -4px !important;
margin-top: 10px;
margin-bottom: 10px;
}
.fenix-provided-options .fenix-logo{
margin-bottom:5px;
}
@media screen and (min-width: 1200px) {
.fenix-fixd-delivery {
font-size: 14px;
}
}
.fenix-resp-span-date,.fenix-resp-span-shippingname{
color:#000 !important;
}
.fenix-fixd-delivery strong {
color:#000 !important;
}
.fenix-fixd-delivery #view-all-shipping{
color: #000;
}
#fenix-change-zip #fenix-zip{
margin-top:10px;
margin-bottom:15px;
}
#fenix-change-zip #fenix-zip input {
padding-top:4px;
padding-bottom: 4px;
text-align:center;
font-size:14px;
width: 150px;
display: inline;
max-height: 40px;
font-weight:bold;
border: solid 1px;
}
#fenix-change-zip #fenix-zip button {
padding-top: 8px;
font-size: 14px;
max-height:40px;
text-transform: uppercase;
background-color:#000;
border:none;
font-weight:500;
margin-top:-1px!important;
}
#fenix-change-zip #fenix-zip button:hover{
background-color:#000;
}
.fenix-provided-options table {
font-size: 12px;
width: 98% !important;
border:none;
margin-top: 5px;
margin-bottom: 15px;
display:inline-table!important;
border-spacing:0px;
border-bottom:1px solid #333;
}
.fenix-provided-options table td {
padding-top: 7px;
padding-bottom: 7px;
border: solid 1px black;
font-weight: bolder;
text-align: center;
font-size: 12px;
padding: 5px;
font-weight:normal;
border-bottom:none;
}
.fenix-provided-options table thead th {
color: #333;
font-weight: bold;
padding: 4px;
border: solid 1px #333;
text-align: center;
font-size:12px;
padding:5px;
border-bottom:none;
}
@media screen and (max-width: 480px) {
.fenix-fixd-delivery {
font-size: 12px;
}
}
a#view-all-shipping::before{