Show Posts


Messages - picasso99

Pages: [1]
1
General Discussion / Re: Company Name missing in customer details
« on: February 14, 2015, 08:37:57 PM »
Apparently you have to go to edit address from the customer details screen to see the company name. It's not a very logical place, but at least it's possible to see it.

2
General Discussion / Company Name missing in customer details
« on: February 14, 2015, 07:35:50 PM »
Company Name is visible on registration screen, but not visible on the admin customer details screen nor in the customer data export. I need to figure this out ASAP.

3
General Discussion / Re: Content pages viewable by logged in users only
« on: February 06, 2015, 09:56:38 AM »
Figured it out. I did the following:

Added a content page with the authorized info. Content_id = 8.
Added a content page with the notice "Authorized users only." Content_id = 9
Modified "/storefront/controller/pages/content/content.php" as below (changes in red) :
Code: [Select]
      if (isset($this->request->get['content_id'])) {                     
          /* customer is logged in OR content_id != 8 (authorized content) */
         if ($this->customer->isLogged()
         or $this->request->get['content_id'] != 8 ) {
            $content_id = $this->request->get['content_id'];
         else
         {
             /* show "Authorization Required" content page */
            $content_id = 9;
         }
      } else {
         $content_id = 0;
      }

Add all authorized content pages to the second IF statement.

4
Figured it out. I did the following:

  • Added a content page with the authorized info. Content_id = 8.
  • Added a content page with the notice "Authorized users only." Content_id = 9
  • Modified "/storefront/controller/pages/content/content.php" as below (changes in red) :

      if (isset($this->request->get['content_id'])) {                     
          /* customer is logged in OR content_id != 8 (authorized content) */
         if ($this->customer->isLogged()
         or $this->request->get['content_id'] != 8 ) {

            $content_id = $this->request->get['content_id'];
         else
         {
             /* show "Authorization Required" content page */
            $content_id = 9;
         }

      } else {
         $content_id = 0;
      }

Add all authorized content pages to the second IF statement.

5
Thanks for the link. However, it looks too restrictive. There are things on the site that should be viewable without login. Products without pricing should be visible because retail customers should be able to see things they want their local dealer to order. That currently works as expected. I just need to be able to restrict visibility per content page, even if requires adding custom code when a new page is added.

6
Customization help / Hide content pages from users that aren't logged in
« on: February 04, 2015, 05:18:49 PM »
I asked this question in the General thread and was told it was a customization/code issue. If anyone can provide info on the file(s) that need tweaked and an idea on how to accomplish it, please help. I'm a software dev, so coding isn't a problem. However, I haven't had a chance to dig through the code to find a solution yet.

Is there a way to have content pages restricted to being viewed by logged in users only? I have a wholesale site that restricts viewing prices unless registered and authorized. I want to create a page with download links for a price list and literatures. However, I don't want non-registered users to have access to this page. I added a downloadable product, and it worked as expected, but it's cumbersome to go through the checkout process and then download the file(s). A simple page with links would be much better. I also have other pages that I would like to create for registered users only, such as delivery maps, how-to videos (how to sell our products, etc.), and other wholesale only information.

7
General Discussion / Re: Content pages viewable by logged in users only
« on: February 04, 2015, 12:45:33 PM »
I have no problems with code modifications, but unsure where to start.

8
General Discussion / Content pages viewable by logged in users only
« on: February 02, 2015, 03:22:31 PM »
Is there a way to have content pages restricted to being viewed by logged in users only? I have a wholesale site that restricts viewing prices unless registered and authorized. I want to create a page with download links for a price list and literatures. However, I don't want non-registered users to have access to this page. I added a downloadable product, and it worked as expected, but it's cumbersome to go through the checkout process and then download the file(s). A simple page with links would be much better. I also have other pages that I would like to create for registered users only, such as delivery maps, how-to videos (how to sell our products, etc.), and other wholesale only information.

Pages: [1]

Powered by SMFPacks Social Login Mod