Example #1
0
    def getMyAccountURL(self):
        """
        """
        shop = IShopManagement(self.context).getShop()
        customer = ICustomerManagement(shop).getAuthenticatedCustomer()

        return customer.absolute_url() + "/" + "my-account"
Example #2
0
    def getMyAccountURL(self):
        """
        """
        shop = IShopManagement(self.context).getShop()
        customer = ICustomerManagement(shop).getAuthenticatedCustomer()

        return customer.absolute_url() + "/" + "my-account"
Example #3
0
    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)
Example #4
0
    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)
Example #5
0
 def getOverviewURL(self):
     """
     """
     shop = IShopManagement(self.context).getShop()
     customer = ICustomerManagement(shop).getAuthenticatedCustomer()
     return "%s/my-orders" % customer.absolute_url()
Example #6
0
 def getOverviewURL(self):
     """
     """
     shop = IShopManagement(self.context).getShop()
     customer = ICustomerManagement(shop).getAuthenticatedCustomer()
     return "%s/my-orders" % customer.absolute_url()