Template API

I dine templates har du adgang til objekter af følgende klasser: SafeBlogPost, SafeBrand, SafeCategory, SafeCountry, SafeCustomer, SafeCustomerField, SafeImage, SafeLandingPage, SafeMenu, SafeMenuItem, SafeOrder, SafeOrderProduct, SafePage, SafePager, SafePaymentGateway, SafeProduct, SafeProductReview, SafeProfile, SafeProfileAttribute, SafeProfileAttributeValue, SafeRecurringOrder, SafeRecurringOrderProduct, SafeShipping, SafeSupplier, SafeVoucher, SafeWebshop.

SafeBlogPost #

getBlogPostId() #
getUrl($action = 'view', $controller = null) #
getRemoteUrl() #
getTitle() #
getBody() #
canEdit() #
getImages() #
getMetaValues() #
getMetaValue($key) #
getHtmlFields() #
getHtmlField($tag) #
getMetaTitle() #
getMetaDescription() #
getUserName() #
getCreated() #
getProducts($limit = 50) #

SafeBrand #

getBrandId() #
getName() #
getRemoteUrl() #

SafeCategory #

getInMenu() #
getProductCount() #
getRemoteUrl() #
getSlugName() #
getImages() #
getCategoryId() #
getParentId() #
isFront() #
getUrl($action = 'view', $controller = null) #
getName() #
getDescriptionA() #
getDescriptionB() #
getParents($reverse = '') #
getChildren() #
getCategoriesFromLevel($level) #
canEdit() #
getTree() #
getOnlineProducts($limit = 2500, $offset = 0, $count = null, $sort = null, $sort_order = 'DESC') #
$sort = default | sold | price | alphabetic | created
$sort_order = asc | desc
Argumenterne sort og sort_order tages også fra GET-parametrene som fx ?sort=sold&sort_order=desc
getMetaValues() #
getMetaValue($key) #
getHtmlFields() #
getHtmlField($tag) #
getTag() #
getOpenGraphTitle() #
getOpenGraphDescription() #
getOpenGraphImage() #
getPrimarySearchPhrase() #
getNoIndex() #

SafeCountry #

getCountryId() #
getName() #
getFreeAbove() #
getPrice() #
hasShipping($shipping_id) #

SafeCustomer #

getHasOneClick() #
canUseOneClick() #
getChangeCardUrl() #
getSubscriptionId() #
getCustomerId() #
getCardInfo() #
getCardType() #
getName() #
getEmail() #
getAddress() #
getZipcode() #
getCity() #
getPhone() #
getCountryId() #
getShippingName() #
getShippingAddress() #
getShippingZipcode() #
getShippingCity() #
getShippingCountryId() #
getVatNumber() #
getCompany() #
getTokenUrl() #
getCountry() #
getShippingCountry() #
getSubscriptions() #

SafeCustomerField #

getVal() #
getCustomerFieldId() #
getName() #
getType() #
getValues() #

SafeImage #

getSrc($w, $h, $t, $format = null, $quality = null) #
$w = bredten på billedet
$h = højden på billedet
$t = box | fit
$format = jpg | png | webp
$quality = 0 ... 100
getHtmlSize($w, $h, $t, $format = 'png', $quality = 100) #
Returnerer html-felterne til billedets størrelse så siden loader pænere
getDescription() #
getImageId() #
getWidth() #
getHeight() #

SafeLandingPage #

getCachedProductIds() #
getActivateRss() #
getRemoteUrl() #
getImages() #
getLandingPageId() #
getUrl($action = 'view', $controller = null) #
getName() #
canEdit() #
getDescription() #
getDescriptionA() #
getDescriptionB() #
getProducts($limit = 25000, $offset = 0, $count = null) #
getMetaValues() #
getMetaValue($key) #
getHtmlFields() #
getHtmlField($tag) #
getOpenGraphTitle() #
getOpenGraphDescription() #
getOpenGraphImage() #
getPrimarySearchPhrase() #
getNoIndex() #

SafeMenu #

getTag() #
getName() #
getItems() #
getChildren() #

SafeMenuItem #

getMenuItemId() #
getUrl($action = 'view', $controller = null) #
getVal() #
getType() #
getTitel() #
getTitle() #
getClass() #
getObject() #
getItems() #

SafeOrder #

getShipping() #
getComments() #
getIsCreditNote() #
getOriginalWebshopOrderId() #
getPaid() #
getOrderId() #
getInvoiceId() #
getTime() #
getEmail() #
getPhone() #
getSetting($n) #
getWebshopOrderId() #
getTrackingNumber() #
getTrackingUrl() #
getPublicUrl($action = 'order') #
getStatus() #
getOrderPrice() #
getPrice() #
getTotalPrice() #
getShippingPrice() #
getVat() #
getEanNumber() #
getPaymentPrice() #
getOrderName() #
getOrderCompanyName() #
getOrderAddress() #
getOrderAddress2() #
getOrderZipcode() #
getOrderCity() #
getOrderCountry() #
getDelName() #
getDelCompanyName() #
getDelAddress() #
getDelAddress2() #
getDelCity() #
getDelZipcode() #
getDelCountry() #
getPickupAddress() #
getShopId() #
getBasketId() #
getVatNumber() #
getOrderProducts() #
getProducts() #
getExtras($field = null) #
getVoucher() #
getVoucherDiscount() #
getVoucherDiscountAmount() #
getVoucherCode() #
setTrackingCalled($i = 1) #
getTrackingCalled() #
getPaymentGateway() #
getPaymentGatewayId() #
getCardType() #
getTransactionId() #
getShippingWeight() #
getTtStatus() #
getTtData() #

SafeOrderProduct #

getAmount() #
getProduct() #
getProductId() #
getUnitPrice($amount = 1) #
getUnitVat($amount = 1) #
getPrice($amount = 1) #
getRealPrice($amount = 1) #
getName() #
getComment() #
getFromBundle() #
getOwnId() #
getAttributes() #
getImages() #
getImage() #
getFile() #

SafePage #

getPageId() #
getUrl($action = 'view', $controller = null) #
getRemoteUrl() #
getHeadline() #
getIsFront() #
getText() #
canEdit() #
getImages() #
getMetaValues() #
getMetaValue($key) #
getHtmlFields() #
getHtmlField($tag) #
getOpenGraphTitle() #
getOpenGraphDescription() #
getOpenGraphImage() #
getPrimarySearchPhrase() #
getNoIndex() #

SafePager #

render() #

SafePaymentGateway #

getPaymentGatewayId() #
getName() #
getType() #
getSecret() #
getImage() #
getHtmlFields() #
getHtmlField($tag) #

SafeProduct #

getVariant() #
getProductId() #
getOwnId($attribute_value_id = null, $attribute_id = null) #
getSecOwnId($attribute_id = null, $attribute_value_id = null) #
getGtin($attribute_value_id = null, $attribute_id = null) #
getSiblings() #
getNoShopping() #
getMpn($attribute_value_id = null, $attribute_id = null) #
getLocation($attribute_value_id = null, $attribute_id = null) #
getAllowNegativeStock() #
canEdit() #
getMetaValues($parsed = '1') #
getSubscriptionInterval() #
hasVariant() #
hasVariants() #
getSubscriptionPrice($country_id = null) #
getMetaValue($key, $parsed = '1') #
getUrl($action = 'view', $controller = null) #
getRemoteUrl() #
getName() #
getDescription() #
getListDescription() #
getParsedDescription() #
getTariffCode() #
getCountryOfOrigin() #
getProductVat($country_id = null) #
getPrice() #
getDiscountPrice() #
getRealPriceExVat() #
getPriceExVat() #
getSalePriceExVat() #
getBulkDiscountOver() #
getBulkDiscount() #
getBulkDiscountPrice($a = 'Array') #
getSalePrice() #
getRealVat($amount = 1, $attributes = 'Array') #
getRealPrice($amount = 1, $attributes = 'Array', $no_voucher = '') #
getDiscountPriceInclVat($amount, $attribute_value_id) #
getRealSubscriptionVat($amount = 1, $attributes = 'Array', $country_id = null) #
getRealSubscriptionPrice($amount = 1, $attributes = 'Array', $country_id = null) #
getVat() #
hasAttributePrice() #
getAttributePrice($attribute_value_id) #
getAttributeSalePrice($attribute_value_id) #
getAttributeSubscriptionPrice($attribute_value_id, $country_id = null) #
getShippingInclVat() #
getShipping() #
getApproxShipping() #
getDeliveryTime() #
getDeliveryTimeNotInStock() #
getSave() #
getPercentSave() #
getImages() #
getImage() #
getProfile() #
getAttributeValue($i) #
getAttributeValueByName($i) #
getCategory() #
getCategoryName() #
getOnlineSince() #
getOnlineHours() #
getCategoryNames($pre = '', $sep = ' ', $post = '') #
getCategories($as_ids = '') #
getStockCount() #
getIsInStock() #
getInStock($attributes = 'Array', $x = null) #
getAmount() #
getUnitPrice() #
getUnitVat() #
getComment() #
getAttributes() #
getRelatedProducts($limit = 25) #
getNext() #
getPrev() #
getSupplier() #
getSupplierName() #
getBrandName() #
getSearch() #
getAlsoBought($limit = 25) #
getHtmlFields() #
getHtmlField($tag) #
getInStockVariants() #
getStockVariants() #
getFileDownloadUrl() #
getFile() #
getSubscriptionFixation() #
getDiscountIntervals() #
getPurchasePrice($attribute_id = null, $attribute_value_id = null) #
getDiscountIntervalPrice($amount, $attribute_value_id = 0) #
getDiscountIntervalPriceExVat($amount, $attribute_value_id = 0) #
getShippingWeight() #
hasBundleProducts() #
getBundleProducts() #
getBundleProductIds() #
getMainCategory() #
hasCategory($category_id) #
getProductReviews($limit = 25) #
getAvgRating() #
getSafeProduct() #
getBrand() #
getMetaTitle() #
getMetaDescription() #
getOpenGraphTitle() #
getOpenGraphDescription() #
getOpenGraphImage() #
getPrimarySearchPhrase() #
getGoogleShoppingTitle() #
getGoogleCategory() #
getNoIndex() #

SafeProductReview #

getRating() #
getDescription() #
getCreated() #
getName() #
getOrder() #
getProduct() #

SafeProfile #

getAttributeList() #
getName() #
getProfileId() #

SafeProfileAttribute #

getValues() #
getPurpose() #
getTags() #
getIsVariant() #
getDataType() #
getName() #
getVal() #
getAttributeId() #
getList($profile_id) #

SafeProfileAttributeValue #

SafeRecurringOrder #

getDeliver() #
getInterval() #
getFirst() #
getNext() #
getShipping() #
getComments() #
getRecurringOrderId() #
getInvoiceId() #
getTime() #
getEmail() #
getPhone() #
getSetting($n) #
getWebshopRecurringOrderId() #
getTrackingNumber() #
getTrackingUrl() #
getPublicUrl($action = 'subscription') #
getStatus() #
getOrderPrice() #
getPrice() #
getTotalPrice() #
getShippingPrice() #
getVat() #
getEanNumber() #
getPaymentPrice() #
getOrderName() #
getOrderCompanyName() #
getOrderAddress() #
getOrderZipcode() #
getOrderCity() #
getOrderCountry() #
getDelName() #
getDelCompanyName() #
getDelAddress() #
getDelCity() #
getDelZipcode() #
getDelCountry() #
getPickupAddress() #
getOrderProducts() #
getProducts() #
getExtras($field = null) #
getVoucher() #
getVoucherDiscount() #
getVoucherCode() #
setTrackingCalled($i = 1) #
getTrackingCalled() #
getPaymentGateway() #
getPaymentGatewayId() #
getCustomer() #
getSubscriptionId() #
getCloseAfter() #

SafeRecurringOrderProduct #

getAmount() #
getUnitPrice($amount = 1) #
getPrice($amount = 1) #
getRealPrice($amount = 1) #
getName() #
getComment() #
getOwnId() #
getAttributes() #

SafeShipping #

getShippingId() #
getName() #
getModule() #
getCost($country_id = null, $basket_total = null) #
getImage() #
getHtmlFields() #
getHtmlField($tag) #

SafeSupplier #

getSupplierId() #
getName() #
getRemoteUrl() #

SafeVoucher #

canUse() #
getVoucherId() #
getCode() #
getAllowOnSale() #
getPercentDiscount() #
getPriceDiscount() #
getFreeShipping() #
getOnlyOver() #

SafeWebshop #

getName() #
getWebshopId() #
getCheapestShipping() #
getGaId() #
getMerchantNumber() #
getStatus() #
getHideDelivery() #
getThemeSetting($element, $name) #
getUrl($action = 'view', $controller = null) #
getCategories() #
getPages() #
getBrands() #
getShippings() #
getCountries() #
getVouchers() #
getPaymentModule() #
getLandingPageByTag($tag) #
getLandingPagesByTags($tags) #
getLandingPages() #
getCategoryByTag($tag) #
getPagesByTag($tag) #
getCategoriesByTags($tags = null) #
getCategoryByTags($tags = null) #
getCategory($category_id) #
getLandingPage($landing_page_id) #
getAttributeValues($categori_ids = 'Array') #
getAttributeValuesByTags() #
getCurrency() #
getAlsoBought($products) #
getRelated($products) #
getAfterPurchase($products) #
getLiveSince() #
getCreated() #
getRelayUrl($page = '') #
getPaymentGateways() #
getSuppliers() #
getProfiles() #
getMenu($tag) #
getMenuByLocation($location) #
getMenus() #
getRootMenus() #
getHtmlFields() #
getHtmlField($tag) #
getCustomerFields() #
getAllowBasketPayment() #
getPacsoftUsername() #
getProductById($product_id) #
getThemeSettings() #
getBlogPosts($limit = 25, $offset = 0, $count = null) #