News:

AbanteCart v1.4.2 is released.

Main Menu
support

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - picasso99

#1
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
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
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.
#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
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
I have no problems with code modifications, but unsure where to start.
#8
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.

Forum Rules Code of conduct
AbanteCart.com 2010 -