Home Page

From Seggiano Docs
Jump to: navigation, search

Home Page sections

The Home page of the site uses Web Site Tags to define parts of the HTML.


Website-tags.png


The home page sections are made up using Web Site Tags. These are a mixture of HTML and simple Netsuite code. Where Netsuite code looks up specific items, it will use this format:

<%=getAttribute('infoitem','25','featureddescription',)%>

Screenshot-Tags-Update.png

The number '25' indicates the record ID within Netsuite. In this case, it is an information item. The ID of a record can normally be found from the list view or the URL when viewing the record. This applies to all record types.


Offers

HOMEITEMOFFERS

Coming Soon

HOMESEASONAL

New

HOMEITEMNEW

Top-10

HOMEITEMTOPTEN


Tag-layout.png


$(document).ready(function() { if ("<%=getAttribute('item',631,'custitem_exclude_hamper',)%>" == "Yes") { $("#631 div#include-hamper-category").hide(); } if ("<%=getAttribute('item',1906,'custitem_exclude_hamper',)%>" == "Yes") { $("#1906 div#include-hamper-category").hide(); } if ("<%=getAttribute('item',1916,'custitem_exclude_hamper',)%>" == "Yes") { $("#1916 div#include-hamper-category").hide(); } }); </script>

<a href="/featured/On-Offer">See All ></a>

offers



<div class="homeItem" id="2017" data-tax="<%=getAttribute('item','2017','salestaxcode')%>" price="<%=getAttribute('item','2017','salespricehtml')%>" origprice="<%=getAttribute('item','2017','custitem_promo_original_price')%>"> <a href="<%=getAttribute('item','2017','storeurl')%>"> <img src="<%=getAttribute('item','2017','storedisplaythumbnail')%>" border="0">

<%=getAttribute('item','2017','custitem_brand')%>

<%=getAttribute('item','2017','storedisplayname')%>

<%=getAttribute('item','2017','custitem_productsize')%> </a>

Updating & Removing 'New' Items From The Homepage

To update the offers shown on the homepage within the 'New' section, please perform the following:

  • Go to Setup > Site Builder > Tags
  • Look for the tag name HOMEITEMNEW
  • Find the product you want to update. In this example, we will remove the second product that is shown.
  • To update this item to a new product, change all references of the product id. For example, between !-- HOMEITEMNEW PRODUCT 2 -- and !--- END HOMEITEMNEW PRODUCT 2 ---, the product is currently 'Colomba Easter Cake' which has the product id 2221. This means that between the previously mentioned tags (HOMEITEMNEW PRODUCT 2 & END HOMEITEMNEW PRODUCT 2), you would need to change 2221 to the id of the product you would like to display.
  • If, however, you wanted to remove the product entirely, you could use an HTML comment to hide the product from the homepage (please see below screenshot on how to do this)

Screen Shot 2019-05-03 at 09.21.25.png