def getMyAccountURL(self): """ """ shop = IShopManagement(self.context).getShop() customer = ICustomerManagement(shop).getAuthenticatedCustomer() return customer.absolute_url() + "/" + "my-account"
def getMyAccountURL(self): """ """ shop = IShopManagement(self.context).getShop() customer = ICustomerManagement(shop).getAuthenticatedCustomer() return customer.absolute_url() + "/" + "my-account"
def handle_add_address_action(self, action, data): """ """ customer = ICustomerManagement(self.context).getAuthenticatedCustomer() customer_url = customer.absolute_url() template_url = self.context.absolute_url() + "/checkout-select-addresses" url = customer_url + "/add-address?goto=" + template_url self.request.response.redirect(url)
def handle_add_address_action(self, action, data): """ """ customer = ICustomerManagement(self.context).getAuthenticatedCustomer() customer_url = customer.absolute_url() template_url = self.context.absolute_url( ) + "/checkout-select-addresses" url = customer_url + "/add-address?goto=" + template_url self.request.response.redirect(url)
def getOverviewURL(self): """ """ shop = IShopManagement(self.context).getShop() customer = ICustomerManagement(shop).getAuthenticatedCustomer() return "%s/my-orders" % customer.absolute_url()
def getOverviewURL(self): """ """ shop = IShopManagement(self.context).getShop() customer = ICustomerManagement(shop).getAuthenticatedCustomer() return "%s/my-orders" % customer.absolute_url()