package templates import ( "fmt" "git.ma-al.com/goc_marek/ps_shop/internal/viewmodel" ) templ ProductPage(data viewmodel.ProductPageData, cssPath string, jsPath string) { @Layout(data.Product.Name, cssPath, jsPath, data.Menu, data.Locale) {
Prestashop Proxy
if data.Customer != nil {

{ fmt.Sprintf("%s %s", data.Customer.FirstName, data.Customer.LastName) }

} else {

Guest session

} if data.CartSummary != nil {

{ fmt.Sprintf("Cart items: %d", data.CartSummary.TotalItems) }

}

Product

if data.CategoryURL != "" && data.Product.CategoryName != "" { { data.Product.CategoryName } }

{ data.Product.Name }

{ data.Product.ShortDescription }

@templ.Raw(data.Product.Description)
if data.Session != nil {

Go Cookie Debug

Raw Cookie

{ data.Session.RawCookie }

Decoded Values

									for _, line := range sessionCookieLines(data.Session) {
										{ line }
										{"\n"}
									}
								
}
} }